@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
@@ -0,0 +1,413 @@
1
+ import { z } from "zod";
2
+ //#region ../core/src/record-guards.ts
3
+ function isRecord$1(value) {
4
+ return typeof value === "object" && value !== null && !Array.isArray(value);
5
+ }
6
+ //#endregion
7
+ //#region ../core/src/rich-text-href.ts
8
+ const SAFE_PROTOCOLS = /* @__PURE__ */ new Set([
9
+ "http:",
10
+ "https:",
11
+ "mailto:",
12
+ "tel:"
13
+ ]);
14
+ const CONTROL_CHARS_PATTERN = /[\u0000-\u001F\u007F]+/g;
15
+ function normalizeInput(value) {
16
+ return value.replace(CONTROL_CHARS_PATTERN, "").trim();
17
+ }
18
+ function decodeForSchemeCheck(value) {
19
+ try {
20
+ return decodeURIComponent(value);
21
+ } catch {
22
+ return value;
23
+ }
24
+ }
25
+ /**
26
+ * Returns a safe href for rich-text anchors, or null when the value should not be rendered.
27
+ *
28
+ * Policy:
29
+ * - Allow absolute URLs with protocols: http, https, mailto, tel.
30
+ * - Allow root-relative ("/path") and hash-only ("#section") links.
31
+ * - Reject protocol-relative URLs ("//example.com"), bare domains ("example.com"),
32
+ * backslashes, executable schemes (javascript/data/vbscript), malformed URLs, and empty values.
33
+ * - Preserve percent-encoding from the original normalized input.
34
+ */
35
+ function sanitizeHref(raw) {
36
+ if (typeof raw !== "string") return null;
37
+ const normalized = normalizeInput(raw);
38
+ if (!normalized) return null;
39
+ if (normalized.includes("\\") || normalized.startsWith("//")) return null;
40
+ if (normalized.startsWith("/")) return normalized;
41
+ if (normalized.startsWith("#")) return normalized;
42
+ return sanitizeAbsoluteHref(normalized);
43
+ }
44
+ function sanitizeAbsoluteHref(normalized) {
45
+ const schemeMatch = normalizeInput(decodeForSchemeCheck(normalized)).match(/^([a-zA-Z][a-zA-Z0-9+.-]*):/);
46
+ if (schemeMatch === null) return null;
47
+ const rawScheme = schemeMatch[1];
48
+ if (rawScheme === void 0 || rawScheme.length === 0) return null;
49
+ const protocol = `${rawScheme.toLowerCase()}:`;
50
+ if (!SAFE_PROTOCOLS.has(protocol)) return null;
51
+ try {
52
+ const parsed = new URL(normalized);
53
+ if (!SAFE_PROTOCOLS.has(parsed.protocol.toLowerCase())) return null;
54
+ } catch {
55
+ return null;
56
+ }
57
+ return normalized;
58
+ }
59
+ /** Strict authoring admission; existing stored links keep the renderer's normalization. */
60
+ function isSafeRichTextHref(raw) {
61
+ const decoded = decodeForSchemeCheck(raw);
62
+ return !/[\u0000-\u001F\u007F\\]/.test(decoded) && !decoded.startsWith("//") && sanitizeHref(raw) === raw;
63
+ }
64
+ //#endregion
65
+ //#region ../core/src/rich-text-schema.ts
66
+ /**
67
+ * Shared Rich Text Schema
68
+ *
69
+ * This module provides a single source of truth for TipTap rich text validation
70
+ * across both the block-form editor and the block rendering system.
71
+ *
72
+ * Rich-text fields use one canonical root shape:
73
+ * `{ type: 'doc', content: [...] }`.
74
+ */
75
+ /**
76
+ * TipTap document node schema (recursive structure)
77
+ *
78
+ * Supports the full TipTap document structure including:
79
+ * - type: Node type (e.g., 'doc', 'paragraph', 'text')
80
+ * - content: Nested array of child nodes
81
+ * - text: Text content for text nodes
82
+ * - attrs: Node attributes (e.g., alignment, color)
83
+ * - marks: Text formatting marks (e.g., bold, italic)
84
+ */
85
+ const TipTapMarkSchema = z.object({
86
+ type: z.string().min(1),
87
+ attrs: z.record(z.string(), z.unknown()).optional()
88
+ }).strict();
89
+ const TipTapNodeSchema = z.lazy(() => z.object({
90
+ type: z.string().min(1),
91
+ content: z.array(TipTapNodeSchema).optional(),
92
+ text: z.string().optional(),
93
+ attrs: z.record(z.string(), z.unknown()).optional(),
94
+ marks: z.array(TipTapMarkSchema).optional()
95
+ }).strict().superRefine((node, ctx) => {
96
+ if (node.type === "doc") ctx.addIssue({
97
+ code: "custom",
98
+ path: ["type"],
99
+ message: "Document nodes are only valid at the rich-text root"
100
+ });
101
+ if (node.type === "text") {
102
+ if (node.text === void 0 || node.text.length === 0) ctx.addIssue({
103
+ code: "custom",
104
+ path: ["text"],
105
+ message: "Text nodes require a non-empty text value"
106
+ });
107
+ if (node.content !== void 0) ctx.addIssue({
108
+ code: "custom",
109
+ path: ["content"],
110
+ message: "Text nodes cannot contain child nodes"
111
+ });
112
+ return;
113
+ }
114
+ if (node.text !== void 0) ctx.addIssue({
115
+ code: "custom",
116
+ path: ["text"],
117
+ message: "Only text nodes can contain a text value"
118
+ });
119
+ }));
120
+ /**
121
+ * Canonical schema for a TipTap rich-text document root.
122
+ *
123
+ * Stricter than {@link TipTapNodeSchema}: `type` is literally `'doc'` and
124
+ * `content` is required (possibly empty). This is the shape every producer
125
+ * (dummy content, editor output, migrations) must emit, and the shape every
126
+ * non-legacy consumer can rely on.
127
+ *
128
+ */
129
+ const RichTextDocSchema = z.object({
130
+ type: z.literal("doc"),
131
+ content: z.array(TipTapNodeSchema)
132
+ }).strict();
133
+ /**
134
+ * Type guard for {@link RichTextDoc}.
135
+ *
136
+ * Returns `true` only for the canonical unwrapped form. The shared structural
137
+ * contract lives in `@riverbankcms/core`; parity tests keep its dependency-free
138
+ * guard aligned with this detailed Zod validator.
139
+ */
140
+ function isRichTextDoc(value) {
141
+ return z.safeParse(RichTextDocSchema, value).success;
142
+ }
143
+ /**
144
+ * Build a canonical {@link RichTextDoc} from plain-text paragraphs.
145
+ *
146
+ * Single source of truth for constructing a TipTap doc from strings.
147
+ * Used by:
148
+ * - `@riverbankcms/dummy-content` (fixture body generators)
149
+ * - `@riverbankcms/content-model` (default template `cta-full` content)
150
+ *
151
+ * Empty strings produce a paragraph with no `content` array — matching
152
+ * the TipTap convention for empty paragraphs. The shape is exactly what
153
+ * {@link RichTextDocSchema} validates, so the type and runtime check
154
+ * never drift from the constructor.
155
+ */
156
+ function createRichTextDoc(paragraphs) {
157
+ return {
158
+ type: "doc",
159
+ content: paragraphs.map((text) => text ? {
160
+ type: "paragraph",
161
+ content: [{
162
+ type: "text",
163
+ text
164
+ }]
165
+ } : { type: "paragraph" })
166
+ };
167
+ }
168
+ /**
169
+ * Build Zod validation schema for rich text fields
170
+ *
171
+ * @param options - Optional configuration
172
+ * @param options.required - If true, validates that content is not empty
173
+ * @param options.label - Field label for error messages (defaults to 'This field')
174
+ * @returns Zod schema for rich text validation
175
+ *
176
+ * @example
177
+ * // Basic usage
178
+ * const schema = buildRichTextSchema()
179
+ *
180
+ * @example
181
+ * // Required field with custom label
182
+ * const schema = buildRichTextSchema({ required: true, label: 'Description' })
183
+ */
184
+ function buildRichTextSchema(options) {
185
+ if (options?.required === true) {
186
+ const label = options.label ?? "This field";
187
+ return RichTextDocSchema.refine((val) => {
188
+ const content = val.content;
189
+ if (!Array.isArray(content) || content.length === 0) return false;
190
+ const first = content[0];
191
+ if (content.length === 1 && isRecord$1(first) && first.type === "paragraph" && (!("content" in first) || first.content == null)) return false;
192
+ return true;
193
+ }, { message: `${label} is required` });
194
+ }
195
+ return RichTextDocSchema;
196
+ }
197
+ //#endregion
198
+ //#region ../blocks/src/system/manifest/richTextSchema.ts
199
+ function createHardBreakNode() {
200
+ return { type: "hardBreak" };
201
+ }
202
+ /**
203
+ * Parse a small markdown subset into TipTap inline nodes.
204
+ *
205
+ * This intentionally supports only bold (`**text**`) because the SDK/content
206
+ * import paths use it for lightweight default content, not full markdown.
207
+ */
208
+ function parseRichTextInlineMarkdown(text) {
209
+ const out = [];
210
+ const pushText = (value, marks) => {
211
+ if (!value) return;
212
+ out.push(marks && marks.length > 0 ? {
213
+ type: "text",
214
+ text: value,
215
+ marks
216
+ } : {
217
+ type: "text",
218
+ text: value
219
+ });
220
+ };
221
+ let rest = text;
222
+ while (rest.length > 0) {
223
+ const start = rest.indexOf("**");
224
+ if (start === -1) {
225
+ pushText(rest);
226
+ break;
227
+ }
228
+ const end = rest.indexOf("**", start + 2);
229
+ if (end === -1) {
230
+ pushText(rest);
231
+ break;
232
+ }
233
+ pushText(rest.slice(0, start));
234
+ pushText(rest.slice(start + 2, end), [{ type: "bold" }]);
235
+ rest = rest.slice(end + 2);
236
+ }
237
+ return out;
238
+ }
239
+ function parseRichTextParagraphInlineMarkdown(text) {
240
+ return text.split("\n").flatMap((line, index) => {
241
+ const lineNodes = parseRichTextInlineMarkdown(line.trim());
242
+ return index === 0 ? lineNodes : [createHardBreakNode(), ...lineNodes];
243
+ });
244
+ }
245
+ /**
246
+ * Convert a plain string with a tiny markdown subset to canonical TipTap JSON.
247
+ *
248
+ * Double newlines create semantic paragraphs. Single newlines remain inside the
249
+ * current paragraph as TipTap `hardBreak` nodes for line-oriented content such
250
+ * as addresses, opening hours, and contact details.
251
+ */
252
+ function createRichTextDocFromMarkdown(markdown) {
253
+ const normalized = markdown.replace(/\r\n/g, "\n").trim();
254
+ if (!normalized) return {
255
+ type: "doc",
256
+ content: []
257
+ };
258
+ return {
259
+ type: "doc",
260
+ content: normalized.split(/\n{2,}/).map((paragraph) => paragraph.trim()).filter(Boolean).map((paragraph) => {
261
+ const inline = parseRichTextParagraphInlineMarkdown(paragraph);
262
+ return inline.length > 0 ? {
263
+ type: "paragraph",
264
+ content: inline
265
+ } : { type: "paragraph" };
266
+ })
267
+ };
268
+ }
269
+ //#endregion
270
+ //#region ../site-contracts/src/blocks/nodes.ts
271
+ const transformStepSchema = z.object({
272
+ id: z.string().min(1, "Transform requires an identifier"),
273
+ options: z.record(z.string(), z.unknown()).optional()
274
+ });
275
+ const bindingPathSchema = z.string().min(1, "Binding path is required").regex(/[A-Za-z0-9_\.$\[\]/-]+/, "Binding path contains invalid characters");
276
+ const bindingSchema = z.object({
277
+ from: bindingPathSchema,
278
+ fallback: z.unknown().optional(),
279
+ transforms: transformStepSchema.array().default([]),
280
+ pick: z.enum([
281
+ "value",
282
+ "collection",
283
+ "context"
284
+ ]).default("value"),
285
+ coerce: z.enum([
286
+ "number",
287
+ "boolean",
288
+ "string"
289
+ ]).optional()
290
+ });
291
+ const repeatSchema = z.object({
292
+ collection: bindingSchema,
293
+ itemName: z.string().min(1).default("item"),
294
+ indexName: z.string().min(1).default("index"),
295
+ limit: z.number().int().positive().optional(),
296
+ sortBy: z.object({
297
+ path: bindingPathSchema,
298
+ direction: z.enum(["asc", "desc"]).default("asc")
299
+ }).optional()
300
+ });
301
+ const conditionalAuthoringPresenceSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("visitor-only") }), z.object({
302
+ kind: z.literal("recover-empty-when-active"),
303
+ placeholder: z.string().min(1).optional()
304
+ })]);
305
+ const conditionSchema = z.object({
306
+ when: bindingSchema,
307
+ equals: z.unknown().optional(),
308
+ not: z.boolean().default(false),
309
+ authoringPresence: conditionalAuthoringPresenceSchema.default({ kind: "visitor-only" })
310
+ });
311
+ const dataScopeSchema = z.object({
312
+ name: z.string().min(1),
313
+ from: bindingSchema
314
+ });
315
+ const nodePropsSchema = z.record(z.string(), z.unknown()).default({});
316
+ /**
317
+ * A plain `z.object`, so a key it does not list is stripped from the parsed
318
+ * node. For custom-block layouts that strip is part of the protection (issue
319
+ * 1185): the renderer treats unknown top-level keys as props, and only the
320
+ * parsed value has been through the layout gate. Store and render the parsed
321
+ * value, never the raw manifest.
322
+ */
323
+ const nodeSchema = z.object({
324
+ type: z.string().min(1, "Node type is required"),
325
+ key: z.string().optional(),
326
+ props: nodePropsSchema.optional(),
327
+ children: z.lazy(() => z.array(nodeSchema).default([])).optional(),
328
+ $bind: bindingSchema.optional(),
329
+ $repeat: repeatSchema.optional(),
330
+ $when: conditionSchema.optional(),
331
+ $scopes: dataScopeSchema.array().optional()
332
+ });
333
+ const MAX_CUSTOM_LAYOUT_NODES = 1e3;
334
+ const NODE_KEYS = /* @__PURE__ */ new Set([
335
+ "type",
336
+ "key",
337
+ "props",
338
+ "children",
339
+ "$bind",
340
+ "$repeat",
341
+ "$when",
342
+ "$scopes"
343
+ ]);
344
+ const isRawNode = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
345
+ const rawChildren = (node) => isRawNode(node) && Array.isArray(node.children) ? node.children : [];
346
+ /** Whether the tree nests deeper than `levels`, looking no further down than that. */
347
+ const nestsDeeperThan = (node, levels) => levels === 0 ? isRawNode(node) : rawChildren(node).some((child) => nestsDeeperThan(child, levels - 1));
348
+ /** Nodes in a tree already known to be no deeper than the limit. */
349
+ const countNodes = (node) => rawChildren(node).reduce((total, child) => total + countNodes(child), 1);
350
+ /** Why a custom-block layout is too large to check or render, or null. Safe to call on any value. */
351
+ function customLayoutSizeProblem(layout) {
352
+ if (nestsDeeperThan(layout, 24)) return `The layout nests more than 24 levels deep. Flatten it.`;
353
+ const count = countNodes(layout);
354
+ return count > 1e3 ? `The layout has ${count} nodes, and a custom block takes at most ${MAX_CUSTOM_LAYOUT_NODES}. Use a repeater for repeated items.` : null;
355
+ }
356
+ /** Keys on a node (or any node below it) that `nodeSchema` would strip. */
357
+ function unknownNodeKeys(node, path) {
358
+ if (!isRawNode(node)) return [];
359
+ return [...Object.keys(node).filter((key) => !NODE_KEYS.has(key)).map((key) => ({
360
+ path: [...path, key],
361
+ key
362
+ })), ...rawChildren(node).flatMap((child, index) => unknownNodeKeys(child, [
363
+ ...path,
364
+ "children",
365
+ index
366
+ ]))];
367
+ }
368
+ function reportRawLayoutShape(layout, ctx) {
369
+ const sizeProblem = customLayoutSizeProblem(layout);
370
+ if (sizeProblem !== null) {
371
+ ctx.addIssue({
372
+ code: "custom",
373
+ message: sizeProblem,
374
+ continue: false
375
+ });
376
+ return;
377
+ }
378
+ unknownNodeKeys(layout, []).forEach(({ path, key }) => ctx.addIssue({
379
+ code: "custom",
380
+ path: [...path],
381
+ message: `"${key}" is not part of a node, so it would be dropped. A node has type, key, props, children, $bind, $repeat, $when and $scopes; put "${key}" under props.`
382
+ }));
383
+ }
384
+ /**
385
+ * A custom-block layout as its author wrote it. `nodeSchema` strips keys it
386
+ * does not know, which is safe but silent: an author who writes `style` beside
387
+ * `type` loses it without being told. This reports those keys, and refuses a
388
+ * tree too large to walk, before `nodeSchema` parses it.
389
+ */
390
+ const customBlockLayoutSchema = z.unknown().superRefine(reportRawLayoutShape).pipe(nodeSchema);
391
+ const nodeTreeSchema = z.union([z.array(nodeSchema), nodeSchema]);
392
+ const NodeSchema = nodeSchema;
393
+ const NodeTreeSchema = nodeTreeSchema;
394
+ //#endregion
395
+ //#region ../blocks/src/lib/typeGuards.ts
396
+ /**
397
+ * Strict record guard: excludes null, primitives, and arrays.
398
+ */
399
+ function isRecord(value) {
400
+ return typeof value === "object" && value !== null && !Array.isArray(value);
401
+ }
402
+ /**
403
+ * Non-null object guard: includes arrays for behavior parity with legacy helpers.
404
+ *
405
+ * NOTE: This intentionally narrows to UnknownRecord for compatibility with existing
406
+ * callsites even though arrays pass at runtime. Follow-up cleanup should replace
407
+ * this API with a more precise predicate type and migrate consumers.
408
+ */
409
+ function isObjectRecord(value) {
410
+ return typeof value === "object" && value !== null;
411
+ }
412
+ //#endregion
413
+ export { bindingSchema as a, createRichTextDocFromMarkdown as c, createRichTextDoc as d, isRichTextDoc as f, isRecord$1 as h, NodeTreeSchema as i, RichTextDocSchema as l, sanitizeHref as m, isRecord as n, customBlockLayoutSchema as o, isSafeRichTextHref as p, NodeSchema as r, customLayoutSizeProblem as s, isObjectRecord as t, buildRichTextSchema as u };