@riverbankcms/sdk 0.180.0 → 0.182.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 (232) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-DC_AvZwy.d.ts → BlocksIslandsHydrator-Bvw2bUif.d.ts} +1 -1
  2. package/dist/_dts/{Page-DQOxVtp3.d.ts → Page-B2EAT-bE.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DrLgY9_f.d.ts → SdkPreviewMode-D0vww6rh.d.ts} +2 -2
  4. package/dist/_dts/{client-BP7VBRvs.d.ts → client-D6T430bk.d.ts} +56 -70
  5. package/dist/_dts/{content-types-1-K2qi__.d.ts → content-types-wZVWccC6.d.ts} +2 -2
  6. package/dist/_dts/{contracts-Dfqz0Tcu.d.ts → contracts-B-vtOcr8.d.ts} +3 -3
  7. package/dist/_dts/{generatePageMetadata-CSfAqmry.d.ts → generatePageMetadata-CxfwHE6z.d.ts} +2 -2
  8. package/dist/_dts/{index-BeM5Ylwf.d.ts → index-CEyYMhLJ.d.ts} +1 -2
  9. package/dist/_dts/{index-DQr358-m.d.ts → index-CQrb3Ccc.d.ts} +8 -8
  10. package/dist/_dts/{index-DCcxLa8p.d.ts → index-CciRW_w1.d.ts} +2 -2
  11. package/dist/_dts/{index-Blrw2oVk.d.ts → index-Cqxis-nv.d.ts} +1 -1
  12. package/dist/_dts/{index-CB5Csefo.d.ts → index-DIU-wL1M.d.ts} +2 -2
  13. package/dist/_dts/{index-DQBGwBPx.d.ts → index-DqPKdeTk.d.ts} +1 -1
  14. package/dist/_dts/{loadContent-BG2tLGXj.d.ts → loadContent-D0wrxiSp.d.ts} +7 -7
  15. package/dist/_dts/{request-P08l6mkr.d.ts → request-DEwxUSw8.d.ts} +2375 -883
  16. package/dist/_dts/{resolveBlockData-BDHc8lFs.d.ts → resolveBlockData-VaG_MYbN.d.ts} +5 -5
  17. package/dist/_dts/{resolvePageContent-Y3IZBbtL.d.ts → resolvePageContent-DTwklC_v.d.ts} +1 -1
  18. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  19. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client.d.ts +7 -7
  21. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  22. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  23. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  25. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  27. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
  28. package/dist/_dts/sdk/src/index.d.ts +104 -8
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/next/index.d.ts +83 -52
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/portal/client.d.ts +43 -56
  36. package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{serviceBookingOutline-BvtNagjw.d.ts → serviceBookingOutline-DtQuFlID.d.ts} +6 -6
  54. package/dist/_dts/{types-DpEAnP4F.d.ts → types-B3RjeBLV.d.ts} +2 -2
  55. package/dist/_dts/{types-HAy1-Jjo.d.ts → types-BvUSGQrw.d.ts} +3 -3
  56. package/dist/_dts/{types-BrK6SS5c.d.ts → types-CkRFtBqd.d.ts} +7 -7
  57. package/dist/_dts/{validation-D6q3tOBA.d.ts → validation-BZA3DhcV.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-DJSmdNUJ.mjs → BlocksIslandsHydrator-CQMf0HdN.mjs} +19 -19
  59. package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-7kdvuPow.mjs} +93 -18
  60. package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-BJI7mZuV.mjs} +7 -87
  61. package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
  62. package/dist/client/{CalendarNavigationChevron-VfP50sYm.mjs → CalendarNavigationChevron-DPUD6wjy.mjs} +8 -8
  63. package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
  64. package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs} +9 -6
  65. package/dist/client/{EventCalendar.client-CrpiyDSP.mjs → EventCalendar.client-Dhb14bcC.mjs} +10 -10
  66. package/dist/client/{EventCombined.client-D0me9wnz.mjs → EventCombined.client-C1jEZBN9.mjs} +60 -10
  67. package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
  68. package/dist/client/{EventItem-CJITrGkF.mjs → EventItem-Bb0ppG2N.mjs} +9 -177
  69. package/dist/client/{EventListWeekNavigation-BlEm_xjq.mjs → EventListWeekNavigation-DMryCaNV.mjs} +1 -1
  70. package/dist/client/{EventListing.client-BNM_HuS0.mjs → EventListing.client-BuH5kKA3.mjs} +3 -3
  71. package/dist/client/{EventListing.view-CXfb7RRy.mjs → EventListing.view-DsqvuulZ.mjs} +8 -8
  72. package/dist/client/{EventRegistrationPayment-DiD9uYs6.mjs → EventRegistrationPayment-D4FvQSFF.mjs} +555 -502
  73. package/dist/client/{Page-bX7iy_MK.mjs → Page-sV6BJkXX.mjs} +550 -339
  74. package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
  75. package/dist/client/{SiteTermsAgreementField-BAdW5DvE.mjs → SiteTermsAgreementField-VfSd6JU-.mjs} +7 -11
  76. package/dist/client/{StepIndicator-DCfdcb7s.mjs → StepIndicator-B6o5B7g3.mjs} +1 -1
  77. package/dist/client/{StepIndicator-DCqorVne.mjs → StepIndicator-BTqO7cJl.mjs} +235 -26
  78. package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
  79. package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-BogaGutk.mjs} +983 -634
  80. package/dist/client/{accordion-wofJY8xY.mjs → accordion-6cuswD_s.mjs} +1 -1
  81. package/dist/client/{booking-form.client-CYl9NrqS.mjs → booking-form.client-BOMe_SKi.mjs} +52 -29
  82. package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
  83. package/dist/client/{bookingForm-kgVWtuMe.mjs → bookingForm-DSCH-VHo.mjs} +4 -4
  84. package/dist/client/bookings.mjs +17 -11
  85. package/dist/client/{boxStyleClassNames-CQHWz5gJ.mjs → boxStyleClassNames-BFuqZCfz.mjs} +2 -2
  86. package/dist/client/{carousel-BE1dEFsD.mjs → carousel-CGyQVV1M.mjs} +2 -2
  87. package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
  88. package/dist/client/{cart-BsjsdGZE.mjs → cart-BYOe7MCh.mjs} +3 -3
  89. package/dist/client/{cart.client-DylGUWXY.mjs → cart.client-BKFkaXdV.mjs} +1 -1
  90. package/dist/client/{checkout-B5KxEUDr.mjs → checkout-Dwd7Di77.mjs} +3 -3
  91. package/dist/client/{checkout.client-C98fhch3.mjs → checkout.client-C25hpi-z.mjs} +1 -1
  92. package/dist/client/{checkoutUrls-BMLYTf38.mjs → checkoutUrls-tG788sw0.mjs} +1 -1
  93. package/dist/client/client.mjs +106 -43
  94. package/dist/client/{constants-PfYJsEZF.mjs → constants-DdxFG3Ic.mjs} +1 -2
  95. package/dist/client/{context-DtKdUdkO.mjs → context-Hi1RuYEM.mjs} +753 -373
  96. package/dist/client/{dateFormatting-BaGPvQS3.mjs → dateFormatting-C8vBCHuo.mjs} +15 -25
  97. package/dist/client/{demoPortalMagicLink-B8eDjhuG.mjs → demoPortalMagicLink-BAL5UIDG.mjs} +2 -3
  98. package/dist/client/{enhanceHeaderSection-DvhD-8eE.mjs → enhanceHeaderSection-Dv1Lr9kJ.mjs} +4 -5
  99. package/dist/client/{event-registration.client-Du9a_xAN.mjs → event-registration.client-dB_Z7bb-.mjs} +191 -210
  100. package/dist/client/{eventCalendar-Di9wDfzl.mjs → eventCalendar-CQnRA4Ww.mjs} +4 -4
  101. package/dist/client/{eventCombined-CNW6nBsB.mjs → eventCombined-BDOG1hVp.mjs} +4 -4
  102. package/dist/client/{eventListing-CQMxQ8By.mjs → eventListing-DSVmhy9n.mjs} +4 -4
  103. package/dist/client/{eventRegistration-CprS9k1D.mjs → eventRegistration-CD5mRtEH.mjs} +4 -4
  104. package/dist/client/{form-Zl1_8RJ6.mjs → form-DWnlEVSK.mjs} +3 -3
  105. package/dist/client/{form.client-TaMUys6I.mjs → form.client-D7zmeqNI.mjs} +5 -5
  106. package/dist/client/{form.parts-CpNPbPPM.mjs → form.parts-C-G6N_MK.mjs} +3 -3
  107. package/dist/client/gifting/client.mjs +32 -29
  108. package/dist/client/{gifting-DNVa7-Wj.mjs → gifting-Cn0jidP5.mjs} +4 -4
  109. package/dist/client/{gifting.client-CFUq3GVx.mjs → gifting.client-DVo1YFLs.mjs} +5 -5
  110. package/dist/client/{gifting.parts-CDQvxA4A.mjs → gifting.parts-Bak93gD2.mjs} +2 -2
  111. package/dist/client/{headerSection-Cg6083rn.mjs → headerSection-DjQuj_6v.mjs} +2 -2
  112. package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
  113. package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
  114. package/dist/client/{newsletter-form.client-VuL9I96G.mjs → newsletter-form.client-rIYPziZC.mjs} +7 -7
  115. package/dist/client/{newsletter-form.interactive-7Of3eYn0.mjs → newsletter-form.interactive-DVt3enLr.mjs} +181 -155
  116. package/dist/client/{newsletter-form.parts-OBqsfT24.mjs → newsletter-form.parts-CH6dGfdn.mjs} +2 -2
  117. package/dist/client/{newsletterForm-BkJe_RTv.mjs → newsletterForm-Cg8cBDHd.mjs} +3 -3
  118. package/dist/client/{lookSurfaces-gJ3OqPf9.mjs → noop-jesvJXEE.mjs} +403 -275
  119. package/dist/client/portal/client.mjs +12202 -7166
  120. package/dist/client/portalOrders-oEoTvzkW.mjs +596 -0
  121. package/dist/client/portalRoutes-ByyVZfVq.mjs +873 -0
  122. package/dist/client/{product-detail.client-B2hdxqJN.mjs → product-detail.client-5aHq-vuu.mjs} +1 -1
  123. package/dist/client/{product-list.client-CCEgu9rx.mjs → product-list.client-CyAk5rnC.mjs} +1 -1
  124. package/dist/client/{productDetail-CRX_ZRfS.mjs → productDetail-B8aZ2mqY.mjs} +3 -3
  125. package/dist/client/{productList-BAdJ6z5S.mjs → productList-BuLemmod.mjs} +3 -3
  126. package/dist/client/{propsDecoder-BLKAmX0S.mjs → propsDecoder-0Unsqn3R.mjs} +2 -2
  127. package/dist/client/{registry.server-Bj9cmHHF.mjs → registry.server-DzvtVVD0.mjs} +664 -434
  128. package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
  129. package/dist/client/rendering/client.mjs +26 -26
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +16 -8
  132. package/dist/client/{richText-coerce-Z45OLLEX.mjs → richText-coerce-Bnng7JFA.mjs} +2 -1
  133. package/dist/client/{routeIslandApiConfig-DHpTTK77.mjs → routeIslandApiConfig-BGfcc9sk.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-DAPVRToN.mjs} +1 -1
  135. package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-nXT8VAMl.mjs} +1 -1
  136. package/dist/client/{shop-BKsgxm_-.mjs → shop-GuMqnDL-.mjs} +3 -3
  137. package/dist/client/{shop-commerce-Cbtk_kUW.mjs → shop-commerce-D5bDY1o1.mjs} +53 -16
  138. package/dist/client/{shop-commerce-store-B-rv2p5h.mjs → shop-commerce-store-B7sHnLwI.mjs} +22 -5
  139. package/dist/client/{shop-discount-apply.state-CiCDLNh7.mjs → shop-discount-apply.state-Dos2zdC2.mjs} +2 -2
  140. package/dist/client/{shop.client-Rnqa74Tk.mjs → shop.client-uvj5GDZb.mjs} +17 -39
  141. package/dist/client/{shopShared-BaBfhjCq.mjs → shopShared-3giNWE3H.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/src-Al4ooTl_.mjs +164 -0
  144. package/dist/client/{src-o7WEvbK1.mjs → src-CmXh3JWs.mjs} +233 -91
  145. package/dist/client/{timetableModel-BOff1Kk5.mjs → timetableModel-GA-hn1qM.mjs} +11 -87
  146. package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
  147. package/dist/client/{useAvailableSlots-DQJNh10g.mjs → useAvailableSlots-CBneCxbG.mjs} +2 -3
  148. package/dist/client/{useDiscountCodeUi-BcFQRI_7.mjs → useDiscountCodeUi-D0kGF0C7.mjs} +1 -1
  149. package/dist/client/{useEventPagination-BvdcexDC.mjs → useEventPagination-xX8n_Tuu.mjs} +8 -8
  150. package/dist/client/{view-CTBwSpKv.mjs → view-DOyZc-DF.mjs} +4 -4
  151. package/dist/client/{wizardSteps-CWIQyRIw.mjs → wizardSteps-B952ify5.mjs} +1241 -295
  152. package/dist/preview-next/client/{PageSectionToolbar-CG6KwITA.mjs → PageSectionToolbar-BI3UCdpu.mjs} +3 -3
  153. package/dist/preview-next/client/{PreviewEditorSidebar-BGBqrC9m.mjs → PreviewEditorSidebar-jkfLVOgY.mjs} +12 -9
  154. package/dist/preview-next/client/{PreviewEditorUI-Bwkyx28x.mjs → PreviewEditorUI-DwJQs4hM.mjs} +4 -4
  155. package/dist/preview-next/client/{PreviewShell-DB1l6JNU.mjs → PreviewShell-BAxAkuz8.mjs} +5 -5
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bs6Cwzr3.mjs → SdkPreviewModeRuntime-0UVB-39f.mjs} +68 -17
  157. package/dist/preview-next/client/{previewAssistantSlot-T-oDD_Dd.mjs → previewAssistantSlot-BgiYk3PB.mjs} +7347 -3516
  158. package/dist/preview-next/client/{previewChromeRoot-BeukcDRy.mjs → previewChromeRoot-tieNdF3E.mjs} +1 -1
  159. package/dist/preview-next/client/runtime.mjs +3 -3
  160. package/dist/preview-next/client/{sdk-runtime-ceDW_9q2.mjs → sdk-runtime-DXb_Evl0.mjs} +2 -2
  161. package/dist/preview-next/client/{siteStyleAccess-CCB9bScO.mjs → siteStyleAccess-BlN0jt2c.mjs} +3 -3
  162. package/dist/preview-next/client/{useAutosaveStatus-D4o0CKq7.mjs → useAutosaveStatus-BUEPA4oL.mjs} +1 -1
  163. package/dist/preview-next/client/{useOpenBlockForSetup-Seccrvwu.mjs → useOpenBlockForSetup-BVfr5P--.mjs} +1 -1
  164. package/dist/preview-next/container-responsive.css +203 -174
  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-FwFj8zGL.mjs → route-contract-BHTBA48n.mjs} +90 -37
  168. package/dist/server/{Block.shared-D6WrRCxX.mjs → Block.shared-hGoyEdjJ.mjs} +5 -5
  169. package/dist/server/{ThemeScopeCore-BQzjDQ2q.mjs → ThemeScopeCore-BfUCTOwj.mjs} +160 -142
  170. package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-Dskni4Xj.mjs} +94 -330
  171. package/dist/server/accordions-By_0Ykks.mjs +111 -0
  172. package/dist/server/{bindings-CS6ih1Yc.mjs → bindings-DMJH4bvo.mjs} +7 -7
  173. package/dist/server/{client-m0ylCj_f.mjs → client-DrwlRNAH.mjs} +105 -42
  174. package/dist/server/config-validation.mjs +1 -1
  175. package/dist/server/config.mjs +2 -2
  176. package/dist/server/constants-CeMywaiD.mjs +1485 -0
  177. package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
  178. package/dist/server/data/resolveBlockData.mjs +1 -1
  179. package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → expandPalette-ehuW8r2g.mjs} +745 -1229
  180. package/dist/server/index.mjs +3 -3
  181. package/dist/server/{loadContent-vgWMz1uD.mjs → loadContent-D0prFflT.mjs} +5 -4
  182. package/dist/server/{loadPage-CIOL3-9t.mjs → loadPage-CBLke9pJ.mjs} +3 -3
  183. package/dist/server/{lookMediaFrame-m-91jGGn.mjs → lookMediaFrame-H0fi4bJk.mjs} +38 -18
  184. package/dist/server/manifest.mjs +36 -25
  185. package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
  186. package/dist/server/media-BRmYrnzb.mjs +31 -0
  187. package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
  188. package/dist/server/{navigation-BcNfYYuu.mjs → navigation-wrcuWmgp.mjs} +2 -2
  189. package/dist/server/navigation.mjs +1 -1
  190. package/dist/server/next.mjs +134 -81
  191. package/dist/server/{overrideResolution-BiHmsvTZ.mjs → overrideResolution-DUgCEH8z.mjs} +1 -1
  192. package/dist/server/page-converter.mjs +3 -3
  193. package/dist/server/{pageRenderPlan-DJo_obpi.mjs → pageRenderPlan-BHrmogsW.mjs} +165 -247
  194. package/dist/server/{pageRuntimeSupport-BnSuoHON.mjs → pageRuntimeSupport-D2-YMRei.mjs} +5 -5
  195. package/dist/server/{pageShared-BJuOzxzn.mjs → pageShared-CG8O31Eo.mjs} +3402 -3249
  196. package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-CrPlbJEN.mjs} +3 -2
  197. package/dist/server/{portal-B4JVkdjc.mjs → portal-pG_uhsI2.mjs} +62 -46
  198. package/dist/server/portal.mjs +3 -3
  199. package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
  200. package/dist/server/{prebuild-Cr8p8T7V.mjs → prebuild-C8Amvzce.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-BZh57-ua.mjs → prefetchBlockData-BxUETRIZ.mjs} +4 -3
  203. package/dist/server/{registry-CvhFwbXJ.mjs → registry-Cc88-23f.mjs} +1514 -1190
  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 +4 -4
  208. package/dist/server/rendering.mjs +10 -9
  209. package/dist/server/{resolveBlockData-Cv_W1LVB.mjs → resolveBlockData-OG3KOkig.mjs} +2 -2
  210. package/dist/server/{responseMedia-KRKguBC5.mjs → responseMedia-IfH65QAH.mjs} +1 -1
  211. package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
  212. package/dist/server/server.mjs +3 -3
  213. package/dist/server/{servicePageContent-CRKbTm_7.mjs → servicePageContent-BcFuhhD7.mjs} +22 -21
  214. package/dist/server/theme-bridge.mjs +34 -8
  215. package/dist/server/theme.mjs +2 -2
  216. package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
  217. package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
  218. package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
  219. package/dist/server/types-BKaBZFjD.mjs +1085 -0
  220. package/dist/server/{validation-DCl-FCk_.mjs → validation-BovmbS8N.mjs} +70 -17
  221. package/dist/server/{version-DT_R5JAR.mjs → version-hws4hgyX.mjs} +1 -1
  222. package/dist/server/video-Cdr3wh-q.mjs +272 -0
  223. package/dist/styles/index.css +1098 -1885
  224. package/package.json +2 -1
  225. package/dist/_dts/index-B0_2-65A.d.ts +0 -101
  226. package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
  227. package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
  228. package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
  229. package/dist/client/formatDate-hhI1-tzt.mjs +0 -26
  230. package/dist/server/constants-Cj7hfbrA.mjs +0 -41
  231. package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
  232. package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
@@ -1,17 +1,18 @@
1
- import { f as builtinTransformDefinitions } from "./pageRenderPlan-DJo_obpi.mjs";
2
- import { $o as validateManifestLookField, Ko as NodeSchema, Qo as fieldSchema, Ss as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Xo as blockSectionDeclarationShape, Yo as blockCategoryEnum, Zo as builtInBlockKindsSchema, t as getBlockDefinition, zs as parseMailingListProviderScope } from "./registry-CvhFwbXJ.mjs";
3
- import { c as SUPPORTED_LOADER_ENDPOINTS } from "./responseMedia-KRKguBC5.mjs";
1
+ import { f as builtinTransformDefinitions } from "./pageRenderPlan-BHrmogsW.mjs";
2
+ import { Gs as parseMailingListProviderScope, Os as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, cs as blockCategoryEnum, ds as fieldSchema, fs as validateManifestLookField, ls as blockSectionDeclarationShape, t as getBlockDefinition, us as builtInBlockKindsSchema } from "./registry-Cc88-23f.mjs";
3
+ import { c as SUPPORTED_LOADER_ENDPOINTS } from "./responseMedia-IfH65QAH.mjs";
4
+ import { o as customBlockLayoutSchema } from "./typeGuards-CTW_9AXq.mjs";
4
5
  import { r as footerModeSchema } from "./mode-bkFS8glh.mjs";
5
- import { a as ALLOWED_TRANSFORM_IDS_SET, r as ALLOWED_NODE_TYPES_SET, t as titleSourceValueSchema } from "./titleSourceSchema-Cu-3PRvv.mjs";
6
+ import { c as ALLOWED_NODE_TYPES_SET, i as customBlockLayoutSizeIssues, n as customBlockFieldDefaultIssues, r as customBlockLayoutPropIssues, t as titleSourceValueSchema, u as ALLOWED_TRANSFORM_IDS_SET } from "./titleSourceSchema-NhK6azFS.mjs";
6
7
  import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-Cqp13TKc.mjs";
7
- import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-BZh57-ua.mjs";
8
+ import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-BxUETRIZ.mjs";
8
9
  import { n as BINDING_TRANSFORM_VALUES$1 } from "./bindings-DhmIW3Er.mjs";
9
10
  import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
10
11
  import { i as safeParseRouteTemplate, t as describeRouteTemplateParseError } from "./routeTemplate-AsKQwa47.mjs";
11
12
  import { z } from "zod";
12
13
  //#region ../site-contracts/src/blocks/sdkDeclaration.ts
13
14
  const sdkBlockPresentationShape = {
14
- variants: z.record(z.string().min(1), NodeSchema).optional(),
15
+ variants: z.record(z.string().min(1), customBlockLayoutSchema).optional(),
15
16
  defaultVariant: z.string().min(1).optional(),
16
17
  variantOptions: z.record(z.string().min(1), z.object({
17
18
  label: z.string().min(1).optional(),
@@ -228,7 +229,7 @@ const sdkCustomBlockInputSchema = z.object({
228
229
  tags: z.array(z.string()).optional(),
229
230
  fields: z.array(fieldDefinitionInputSchema).min(1),
230
231
  dataLoaders: sdkDataLoadersSchema$1,
231
- layout: z.optional(NodeSchema),
232
+ layout: z.optional(customBlockLayoutSchema),
232
233
  ...sdkBlockPresentationShape,
233
234
  ...blockSectionDeclarationShape
234
235
  }).superRefine(validateManifestLookField).superRefine(validateSdkBlockDeclaration);
@@ -763,8 +764,10 @@ const contentConfigSchema = z.object({
763
764
  /**
764
765
  * Validation functions for declarative node layouts in custom blocks.
765
766
  *
766
- * These functions validate that layouts only use allowed node types
767
- * and transform IDs. Used for strict save-time validation.
767
+ * These functions validate that layouts only use allowed node types and
768
+ * transform IDs, and that node props carry nothing unsafe to render (the rules
769
+ * live in `@riverbankcms/blocks`, `system/node/safeLayoutProps`). Used for
770
+ * strict save-time validation.
768
771
  */
769
772
  /**
770
773
  * Validate all node types in a layout tree.
@@ -863,10 +866,30 @@ function isBindingObject(value) {
863
866
  return value !== null && typeof value === "object" && "$bind" in value && typeof value.$bind === "object";
864
867
  }
865
868
  /**
866
- * Validate a complete layout (both node types and transform IDs).
869
+ * Validate that no node prop in a layout carries something unsafe to render:
870
+ * CSS outside the allowlist, `url()`, an address on another origin, raw content
871
+ * bound into `style` or `className`, markup or handler props.
867
872
  *
868
- * Combines validateLayoutNodeTypes and validateTransformIds into
869
- * a single validation pass.
873
+ * Each error names the node path and the property, so the author can fix it.
874
+ */
875
+ function validateLayoutProps(layout) {
876
+ const errors = customBlockLayoutPropIssues(layout).map(toUnsafePropError);
877
+ return {
878
+ valid: errors.length === 0,
879
+ errors
880
+ };
881
+ }
882
+ const toUnsafePropError = (issue) => ({
883
+ path: issue.path,
884
+ type: "unsafe_prop",
885
+ value: issue.value,
886
+ message: issue.message
887
+ });
888
+ /**
889
+ * Validate a complete layout (node types, transform IDs and node props).
890
+ *
891
+ * Combines validateLayoutNodeTypes, validateTransformIds and the prop safety
892
+ * rules into a single validation pass.
870
893
  *
871
894
  * @example
872
895
  * ```typescript
@@ -877,11 +900,19 @@ function isBindingObject(value) {
877
900
  * ```
878
901
  */
879
902
  function validateLayout(layout) {
880
- const nodeTypeResult = validateLayoutNodeTypes(layout);
881
- const transformResult = validateTransformIds(layout);
903
+ const sizeErrors = customBlockLayoutSizeIssues(layout).map(toUnsafePropError);
904
+ if (sizeErrors.length > 0) return {
905
+ valid: false,
906
+ errors: sizeErrors
907
+ };
908
+ const errors = [
909
+ ...validateLayoutNodeTypes(layout).errors,
910
+ ...validateTransformIds(layout).errors,
911
+ ...validateLayoutProps(layout).errors
912
+ ];
882
913
  return {
883
- valid: nodeTypeResult.valid && transformResult.valid,
884
- errors: [...nodeTypeResult.errors, ...transformResult.errors]
914
+ valid: errors.length === 0,
915
+ errors
885
916
  };
886
917
  }
887
918
  //#endregion
@@ -1213,7 +1244,7 @@ const sdkCustomBlockSchema = z.object({
1213
1244
  tags: z.array(z.string()).optional(),
1214
1245
  fields: fieldSchema.array().min(1, "Custom blocks must have at least one field"),
1215
1246
  dataLoaders: sdkDataLoadersSchema,
1216
- layout: z.optional(NodeSchema),
1247
+ layout: z.optional(customBlockLayoutSchema),
1217
1248
  ...sdkBlockPresentationShape,
1218
1249
  ...blockSectionDeclarationShape
1219
1250
  }).superRefine(validateManifestLookField).superRefine(validateSdkBlockDeclaration).superRefine(validateCustomBlockPresentation);
@@ -1298,7 +1329,29 @@ const riverbankSiteConfigSchema = z.object({
1298
1329
  activeTheme: activeThemeSchema,
1299
1330
  dashboard: dashboardConfigSchema.optional()
1300
1331
  }).strict();
1332
+ /**
1333
+ * Layout bindings read loader data from `data.*`, and the layout gate trusts
1334
+ * those as platform-loaded. A content field named `data` would sit in the same
1335
+ * scope and could stand in for it, so a block with a layout can't have one.
1336
+ */
1337
+ const LOADER_DATA_FIELD_ID = "data";
1301
1338
  function validateCustomBlockPresentation(data, ctx) {
1339
+ const hasLayout = Boolean(data.layout) || Object.keys(data.variants ?? {}).length > 0;
1340
+ const shadowIndex = data.fields.findIndex((field) => "id" in field && field.id === LOADER_DATA_FIELD_ID);
1341
+ if (hasLayout && shadowIndex >= 0) ctx.addIssue({
1342
+ code: z.ZodIssueCode.custom,
1343
+ message: `A custom block with a layout can't have a field with id "${LOADER_DATA_FIELD_ID}": layouts read loaded data from data.*. Rename the field.`,
1344
+ path: [
1345
+ "fields",
1346
+ shadowIndex,
1347
+ "id"
1348
+ ]
1349
+ });
1350
+ if (hasLayout) customBlockFieldDefaultIssues(data.fields).forEach((issue) => ctx.addIssue({
1351
+ code: z.ZodIssueCode.custom,
1352
+ message: issue.message,
1353
+ path: ["fields"]
1354
+ }));
1302
1355
  if (data.layout) addLayoutIssues(data.layout, ["layout"], "", ctx);
1303
1356
  if (!data.variants) return;
1304
1357
  Object.entries(data.variants).forEach(([key, node]) => addLayoutIssues(node, ["variants", key], `${key}: `, ctx));
@@ -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.180.0";
12
+ const SDK_VERSION = "0.182.0";
13
13
  //#endregion
14
14
  export { SDK_VERSION as t };
@@ -0,0 +1,272 @@
1
+ import { n as isRecord } from "./typeGuards-CTW_9AXq.mjs";
2
+ //#region ../theme-core/src/accordions/types.ts
3
+ /**
4
+ * Icon configuration mapping icon styles to Lucide icons and behavior
5
+ * Used by both CSS generation (for rotation) and component rendering (for icon selection)
6
+ */
7
+ const ICON_CONFIG = {
8
+ "plus-minus": {
9
+ closedIcon: "Plus",
10
+ openIcon: "Minus",
11
+ rotation: 0
12
+ },
13
+ "chevron": {
14
+ closedIcon: "ChevronDown",
15
+ rotation: 180
16
+ },
17
+ "caret": {
18
+ closedIcon: "ChevronDown",
19
+ rotation: 180
20
+ },
21
+ "arrow": {
22
+ closedIcon: "ArrowDown",
23
+ rotation: 180
24
+ },
25
+ "circle-plus-minus": {
26
+ closedIcon: "CirclePlus",
27
+ openIcon: "CircleMinus",
28
+ rotation: 0
29
+ }
30
+ };
31
+ /**
32
+ * Icon size mapping (px values for CSS and Lucide React)
33
+ */
34
+ const ICON_SIZE_PX = {
35
+ sm: "16px",
36
+ md: "20px",
37
+ lg: "24px"
38
+ };
39
+ /**
40
+ * Spacing map for accordion content padding
41
+ */
42
+ const ACCORDION_SPACING_MAP = {
43
+ none: "0",
44
+ compact: "0.75rem",
45
+ cozy: "1rem",
46
+ medium: "1.25rem",
47
+ comfortable: "1.5rem",
48
+ spacious: "2rem"
49
+ };
50
+ /**
51
+ * Question (trigger) font-size by scale step. Kept as self-contained clamps
52
+ * rather than the heading-scale CSS vars so question size stays predictable
53
+ * even when a theme configures very large headings.
54
+ */
55
+ const ACCORDION_TRIGGER_FONT_SCALE = {
56
+ body: "clamp(0.95rem, var(--fs-body), 1.0625rem)",
57
+ md: "clamp(1.0625rem, 0.98rem + 0.45vw, 1.3rem)",
58
+ lg: "clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem)"
59
+ };
60
+ const ACCORDION_TRIGGER_LETTER_SPACING = {
61
+ normal: "0",
62
+ tight: "-0.01em",
63
+ wide: "0.04em"
64
+ };
65
+ const ACCORDION_OPEN_ACCENT_THICKNESS = {
66
+ thin: "2px",
67
+ medium: "3px",
68
+ thick: "4px"
69
+ };
70
+ //#endregion
71
+ //#region ../blocks/src/system/node/nodeProps.ts
72
+ /**
73
+ * Which values on a node definition become its component's props.
74
+ *
75
+ * The resolver renders these and the custom-block gate checks them, so both
76
+ * read them from here: if the two ever disagreed, a value could reach the DOM
77
+ * without being checked (issue 1185).
78
+ */
79
+ /** Keys that describe the node itself. `$`-prefixed keys are directives. */
80
+ const NODE_STRUCTURE_KEYS = /* @__PURE__ */ new Set([
81
+ "type",
82
+ "key",
83
+ "children",
84
+ "props"
85
+ ]);
86
+ /** `Object.hasOwn`, which this package's target library doesn't declare. */
87
+ const hasOwn = (record, key) => Object.prototype.hasOwnProperty.call(record, key);
88
+ /**
89
+ * A node's props in render order. Older manifests put props at the top level of
90
+ * the node rather than under `props`; those still render, and a key under
91
+ * `props` wins over the same key at the top level.
92
+ */
93
+ function nodePropEntries(node) {
94
+ const props = isRecord(node.props) ? node.props : {};
95
+ return [...Object.entries(node).filter(([key]) => !NODE_STRUCTURE_KEYS.has(key) && !key.startsWith("$") && !hasOwn(props, key)).map(([key, value]) => [
96
+ key,
97
+ value,
98
+ "node"
99
+ ]), ...Object.entries(props).map(([key, value]) => [
100
+ key,
101
+ value,
102
+ "props"
103
+ ])];
104
+ }
105
+ /** The props the resolver hands to a node's component, before bindings resolve. */
106
+ function getNodeProps(node) {
107
+ return Object.fromEntries(nodePropEntries(node).map(([key, value]) => [key, value]));
108
+ }
109
+ //#endregion
110
+ //#region ../blocks/src/lib/video.ts
111
+ /**
112
+ * Parse a video URL and extract provider and video ID.
113
+ * Uses URL constructor for safe parsing.
114
+ *
115
+ * @param url - Video URL to parse
116
+ * @returns VideoInfo if valid, null otherwise
117
+ *
118
+ * Supported formats:
119
+ * - YouTube: youtube.com/watch?v=ID, youtu.be/ID, youtube.com/embed/ID
120
+ * - Vimeo: vimeo.com/ID, player.vimeo.com/video/ID
121
+ * - Instagram: instagram.com/p/SHORTCODE, instagram.com/reel/SHORTCODE, instagram.com/tv/SHORTCODE
122
+ */
123
+ function parseVideoUrl(url) {
124
+ if (!url || typeof url !== "string") return null;
125
+ try {
126
+ const parsed = new URL(url);
127
+ const hostname = parsed.hostname.toLowerCase().replace(/^www\./, "");
128
+ if (hostname === "youtube.com" || hostname === "m.youtube.com" || hostname === "youtu.be" || hostname === "youtube-nocookie.com") {
129
+ const id = extractYouTubeId(parsed);
130
+ if (id) return {
131
+ provider: "youtube",
132
+ id,
133
+ url
134
+ };
135
+ }
136
+ if (hostname === "vimeo.com" || hostname === "player.vimeo.com") {
137
+ const id = extractVimeoId(parsed);
138
+ if (id) return {
139
+ provider: "vimeo",
140
+ id,
141
+ url
142
+ };
143
+ }
144
+ if (hostname === "instagram.com" || hostname === "m.instagram.com" || hostname === "instagr.am") {
145
+ const instagram = extractInstagramShortcode(parsed);
146
+ if (instagram) return {
147
+ provider: "instagram",
148
+ id: instagram.shortcode,
149
+ kind: instagram.kind,
150
+ url
151
+ };
152
+ }
153
+ return null;
154
+ } catch {
155
+ return null;
156
+ }
157
+ }
158
+ /**
159
+ * Extract YouTube video ID from parsed URL.
160
+ */
161
+ function extractYouTubeId(url) {
162
+ if (url.hostname.toLowerCase().replace(/^www\./, "") === "youtu.be") {
163
+ const id = url.pathname.slice(1).split("/")[0] ?? "";
164
+ return isValidYouTubeId(id) ? id : null;
165
+ }
166
+ const vParam = url.searchParams.get("v");
167
+ if (vParam && isValidYouTubeId(vParam)) return vParam;
168
+ const shortsId = url.pathname.match(/^\/shorts\/([^/?]+)/)?.[1];
169
+ if (shortsId && isValidYouTubeId(shortsId)) return shortsId;
170
+ const embedId = url.pathname.match(/^\/embed\/([^/?]+)/)?.[1];
171
+ if (embedId && isValidYouTubeId(embedId)) return embedId;
172
+ const vId = url.pathname.match(/^\/v\/([^/?]+)/)?.[1];
173
+ if (vId && isValidYouTubeId(vId)) return vId;
174
+ return null;
175
+ }
176
+ /**
177
+ * Validate YouTube video ID format.
178
+ * YouTube IDs are 11 characters, alphanumeric plus - and _
179
+ */
180
+ function isValidYouTubeId(id) {
181
+ return /^[a-zA-Z0-9_-]{11}$/.test(id);
182
+ }
183
+ /**
184
+ * Extract Vimeo video ID from parsed URL.
185
+ */
186
+ function extractVimeoId(url) {
187
+ const playerId = url.pathname.match(/^\/video\/(\d+)/)?.[1];
188
+ if (playerId) return playerId;
189
+ const pathId = url.pathname.match(/^\/(\d+)/)?.[1];
190
+ if (pathId) return pathId;
191
+ return null;
192
+ }
193
+ function extractInstagramShortcode(url) {
194
+ const match = url.pathname.match(/^\/(p|reel|reels|tv)\/([^/?#]+)/);
195
+ const rawKind = match?.[1];
196
+ const shortcode = match?.[2];
197
+ if (!rawKind || !shortcode) return null;
198
+ const normalizedKind = rawKind === "reels" ? "reel" : rawKind;
199
+ if (normalizedKind !== "p" && normalizedKind !== "reel" && normalizedKind !== "tv") return null;
200
+ const kind = normalizedKind;
201
+ if (!isValidInstagramShortcode(shortcode)) return null;
202
+ return {
203
+ kind,
204
+ shortcode
205
+ };
206
+ }
207
+ function isValidInstagramShortcode(shortcode) {
208
+ return /^[a-zA-Z0-9_-]{5,}$/.test(shortcode);
209
+ }
210
+ /**
211
+ * Generate privacy-enhanced embed URL for a video.
212
+ *
213
+ * @param info - VideoInfo from parseVideoUrl
214
+ * @returns Embed URL suitable for iframe src
215
+ */
216
+ function getEmbedUrl(info) {
217
+ switch (info.provider) {
218
+ case "youtube": return `https://www.youtube-nocookie.com/embed/${info.id}`;
219
+ case "vimeo": return `https://player.vimeo.com/video/${info.id}`;
220
+ case "instagram": return `https://www.instagram.com/${info.kind ?? "p"}/${info.id}/embed`;
221
+ }
222
+ return info.provider;
223
+ }
224
+ /**
225
+ * Generate thumbnail URL for a video.
226
+ *
227
+ * @param info - VideoInfo from parseVideoUrl
228
+ * @returns Thumbnail image URL
229
+ *
230
+ * Note: YouTube maxresdefault.jpg may 404 for some videos.
231
+ * Consider using hqdefault.jpg as a more reliable fallback.
232
+ */
233
+ function getThumbnailUrl(info) {
234
+ switch (info.provider) {
235
+ case "youtube": return `https://img.youtube.com/vi/${info.id}/maxresdefault.jpg`;
236
+ case "vimeo": return `https://vumbnail.com/${info.id}.jpg`;
237
+ case "instagram": return "";
238
+ }
239
+ return info.provider;
240
+ }
241
+ function getVideoEmbedLoadingStrategy(provider) {
242
+ switch (provider) {
243
+ case "youtube":
244
+ case "vimeo": return "native-lazy";
245
+ case "instagram": return "defer-until-near-viewport";
246
+ }
247
+ return provider;
248
+ }
249
+ /**
250
+ * Parse URL and get complete embed information.
251
+ * Convenience function that combines parseVideoUrl with embed/thumbnail URLs.
252
+ *
253
+ * @param url - Video URL to parse
254
+ * @returns EmbedInfo if valid, null otherwise
255
+ */
256
+ function getVideoEmbed(url) {
257
+ const info = parseVideoUrl(url);
258
+ if (!info) return null;
259
+ return {
260
+ ...info,
261
+ embedUrl: getEmbedUrl(info),
262
+ thumbnailUrl: getThumbnailUrl(info)
263
+ };
264
+ }
265
+ /**
266
+ * A video frame's aspect ratio: `16/9`, `4 / 3`, `1.5` or `auto`. The video
267
+ * node writes the value into a style attribute, so anything else is dropped at
268
+ * render and refused in a custom-block layout (issue 1185).
269
+ */
270
+ const VIDEO_ASPECT_RATIO_PATTERN = /^(?:auto|\d+(?:\.\d+)?(?:\s*\/\s*\d+(?:\.\d+)?)?)$/;
271
+ //#endregion
272
+ export { hasOwn as a, ACCORDION_SPACING_MAP as c, ICON_CONFIG as d, ICON_SIZE_PX as f, getNodeProps as i, ACCORDION_TRIGGER_FONT_SCALE as l, getVideoEmbed as n, nodePropEntries as o, getVideoEmbedLoadingStrategy as r, ACCORDION_OPEN_ACCENT_THICKNESS as s, VIDEO_ASPECT_RATIO_PATTERN as t, ACCORDION_TRIGGER_LETTER_SPACING as u };