@riverbankcms/sdk 0.182.0 → 0.183.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 (226) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +49 -3
  3. package/dist/_dts/{BlocksIslandsHydrator-Bvw2bUif.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
  4. package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-CEqZJZEE.d.ts} +7 -7
  5. package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
  6. package/dist/_dts/{client-D6T430bk.d.ts → client-B_B_amKD.d.ts} +2 -1
  7. package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
  8. package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
  9. package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
  10. package/dist/_dts/{index-CEyYMhLJ.d.ts → index-BOpUh8kO.d.ts} +1 -1
  11. package/dist/_dts/{index-DIU-wL1M.d.ts → index-Bizdaxji.d.ts} +2 -2
  12. package/dist/_dts/{index-Cqxis-nv.d.ts → index-BxCmCit0.d.ts} +1 -1
  13. package/dist/_dts/{index-CQrb3Ccc.d.ts → index-CjAkEWAp.d.ts} +4 -4
  14. package/dist/_dts/{index-DqPKdeTk.d.ts → index-iuFrbIjt.d.ts} +1 -1
  15. package/dist/_dts/{index-CciRW_w1.d.ts → index-liuhlOX7.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
  17. package/dist/_dts/{request-DEwxUSw8.d.ts → request-Gn0O1blj.d.ts} +24912 -23733
  18. package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-DTwklC_v.d.ts → resolvePageContent-xzJ3c9Na.d.ts} +1 -1
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  38. package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +91 -2
  55. package/dist/_dts/{serviceBookingOutline-DtQuFlID.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
  56. package/dist/_dts/{types-B3RjeBLV.d.ts → types-BoITy0rA.d.ts} +41 -4
  57. package/dist/_dts/{types-BvUSGQrw.d.ts → types-DBNuMtSk.d.ts} +16 -5
  58. package/dist/_dts/{types-CkRFtBqd.d.ts → types-DHMcuoeQ.d.ts} +7 -7
  59. package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-BIPO-XlE.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
  61. package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
  62. package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
  63. package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
  64. package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +25 -8
  65. package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
  66. package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
  67. package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
  68. package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
  69. package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
  70. package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-Fr2qi2C2.mjs} +29 -14
  71. package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
  72. package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
  73. package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-COuEJzbO.mjs} +6 -6
  74. package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +21 -42
  75. package/dist/client/{Page-sV6BJkXX.mjs → Page-CgbQZP5g.mjs} +2786 -927
  76. package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
  77. package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
  78. package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
  79. package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DyXoI3ob.mjs} +7 -7
  80. package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
  81. package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-wj4Rloo5.mjs} +336 -119
  82. package/dist/client/{accordion-6cuswD_s.mjs → accordion-BVXfjnh-.mjs} +1 -1
  83. package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-DycPGtke.mjs} +191 -71
  84. package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
  85. package/dist/client/bookings.mjs +5 -5
  86. package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
  87. package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
  88. package/dist/client/{carousel-CGyQVV1M.mjs → carousel-DyCLMP8s.mjs} +2 -2
  89. package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DffP_Nv0.mjs} +1 -1
  90. package/dist/client/{cart-BYOe7MCh.mjs → cart-BuEp_cj4.mjs} +3 -3
  91. package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-CAO39uDG.mjs} +1 -1
  92. package/dist/client/{checkout-Dwd7Di77.mjs → checkout-BoxzT64s.mjs} +3 -3
  93. package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
  94. package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
  95. package/dist/client/client.mjs +446 -93
  96. package/dist/client/{constants-DdxFG3Ic.mjs → constants-C_8AxMdm.mjs} +1 -1
  97. package/dist/client/{context-Hi1RuYEM.mjs → context-D1L0pe__.mjs} +2 -2
  98. package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
  101. package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
  102. package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
  103. package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
  104. package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-aTLifOX7.mjs} +4 -4
  105. package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
  106. package/dist/client/{form-DWnlEVSK.mjs → form-Dikmc2AO.mjs} +3 -3
  107. package/dist/client/{form.client-D7zmeqNI.mjs → form.client-zHaQK5I9.mjs} +5 -5
  108. package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-BLl9n8TH.mjs} +3 -3
  109. package/dist/client/gifting/client.mjs +16 -9
  110. package/dist/client/{gifting-Cn0jidP5.mjs → gifting-CufPM38H.mjs} +4 -4
  111. package/dist/client/{gifting.client-DVo1YFLs.mjs → gifting.client--N1GaSY8.mjs} +155 -84
  112. package/dist/client/gifting.interactive-D9MK4HkV.mjs +157 -0
  113. package/dist/client/gifting.parts-CRtiRzo-.mjs +119 -0
  114. package/dist/client/{headerSection-DjQuj_6v.mjs → headerSection-BIaBpmk3.mjs} +2 -2
  115. package/dist/client/{noop-jesvJXEE.mjs → islands-DJDLGQEm.mjs} +14007 -6685
  116. package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
  117. package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +226 -195
  118. package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
  119. package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
  120. package/dist/client/portal/client.mjs +31 -27
  121. package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
  122. package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DTHlWg_F.mjs} +22 -7
  123. package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
  124. package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
  125. package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-DhZAwo60.mjs} +3 -3
  126. package/dist/client/{productList-BuLemmod.mjs → productList-BiVpbZK2.mjs} +3 -3
  127. package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
  128. package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-C3OBRg7x.mjs} +2027 -781
  129. package/dist/client/rendering/client.mjs +29 -26
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +5 -5
  132. package/dist/client/{richText-coerce-Bnng7JFA.mjs → richText-coerce-ms477Z08.mjs} +2 -2
  133. package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
  135. package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
  136. package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
  137. package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
  138. package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
  139. package/dist/client/{shop-GuMqnDL-.mjs → shop-xt4dQ3HH.mjs} +3 -3
  140. package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
  141. package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-DS8t6749.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/{src-CmXh3JWs.mjs → src-Do_s2lqH.mjs} +11 -18
  144. package/dist/client/{timetableModel-GA-hn1qM.mjs → timetableModel-Dy3nNfTG.mjs} +11 -8
  145. package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
  146. package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
  147. package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
  148. package/dist/client/{view-DOyZc-DF.mjs → view-4gnPcpWJ.mjs} +24 -9
  149. package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-DDvL3iza.mjs} +76 -159
  150. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CLqSRUpt.mjs} +1 -1
  151. package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-CIdAg-Tm.mjs} +1 -1
  152. package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-Bm85jX35.mjs} +2 -2
  153. package/dist/preview-next/client/{PageSectionToolbar-BI3UCdpu.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
  154. package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3864 -1943
  155. package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
  156. package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
  157. package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +12 -8
  158. package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-ORNN4x-3.mjs} +782 -16
  159. package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-eAi3tDAr.mjs} +11 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-BgiYk3PB.mjs → previewAssistantSlot-CqH91EwA.mjs} +17988 -6757
  161. package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
  164. package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
  165. package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
  166. package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.mjs → useOpenBlockForSetup-BaWUF9D7.mjs} +2007 -448
  167. package/dist/preview-next/container-responsive.css +320 -0
  168. package/dist/preview-next/editor-chrome.css +23 -2
  169. package/dist/preview-next/keepAlive.mjs +1 -1
  170. package/dist/preview-next/middleware.mjs +1 -1
  171. package/dist/preview-next/{route-contract-BHTBA48n.mjs → route-contract-Ch0X99vE.mjs} +163 -17
  172. package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-B2FmczLO.mjs} +5 -5
  173. package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DtAyv9qA.mjs} +17 -7
  174. package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-BtPqb76u.mjs} +418 -31
  175. package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
  176. package/dist/server/{bindings-DMJH4bvo.mjs → bindings-B_9JuU66.mjs} +7 -7
  177. package/dist/server/{client-DrwlRNAH.mjs → client-DC7cjiSw.mjs} +469 -92
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +2 -2
  180. package/dist/server/{constants-CeMywaiD.mjs → constants-d6nPNJpe.mjs} +22 -6
  181. package/dist/server/{customCss-C9kgPHvr.mjs → customCss-rtIfEYwQ.mjs} +1 -18
  182. package/dist/server/data/resolveBlockData.mjs +1 -1
  183. package/dist/server/{expandPalette-ehuW8r2g.mjs → expandPalette-DxPrNOAB.mjs} +182 -90
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-D0prFflT.mjs → loadContent-hb27HYic.mjs} +11 -10
  186. package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-JToD8wDD.mjs} +3 -3
  187. package/dist/server/{lookMediaFrame-H0fi4bJk.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
  188. package/dist/server/manifest.mjs +2 -2
  189. package/dist/server/{navigation-wrcuWmgp.mjs → navigation-B2WhGofA.mjs} +1 -1
  190. package/dist/server/navigation.mjs +1 -1
  191. package/dist/server/next.mjs +8 -8
  192. package/dist/server/{overrideResolution-DUgCEH8z.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
  193. package/dist/server/page-converter.mjs +3 -3
  194. package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +86 -97
  195. package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
  196. package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-m80Xu2pd.mjs} +429 -247
  197. package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
  198. package/dist/server/{portal-pG_uhsI2.mjs → portal-B2wCQno_.mjs} +1 -1
  199. package/dist/server/portal.mjs +2 -2
  200. package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-BWIkFaXq.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
  203. package/dist/server/{registry-Cc88-23f.mjs → registry-KtsOsAzY.mjs} +20113 -9774
  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 +9 -9
  209. package/dist/server/{resolveBlockData-OG3KOkig.mjs → resolveBlockData-sjIDJYl7.mjs} +1 -1
  210. package/dist/server/{schema-CwfxQjc4.mjs → schema-BBEqquBM.mjs} +44 -28
  211. package/dist/server/server.mjs +3 -3
  212. package/dist/server/{servicePageContent-BcFuhhD7.mjs → servicePageContent-ChEZDRwU.mjs} +37 -14
  213. package/dist/server/theme-bridge.mjs +3 -3
  214. package/dist/server/theme.mjs +2 -2
  215. package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-DKCIBeb1.mjs} +2 -2
  216. package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-DybHErxH.mjs} +4 -4
  217. package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
  218. package/dist/server/{types-BKaBZFjD.mjs → types-vyz09w64.mjs} +479 -8
  219. package/dist/server/{validation-BovmbS8N.mjs → validation-Cvi-1TZZ.mjs} +13 -9
  220. package/dist/server/{version-hws4hgyX.mjs → version-B-icAIV1.mjs} +1 -1
  221. package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
  222. package/dist/styles/index.css +2482 -108
  223. package/package.json +1 -1
  224. package/dist/client/gifting.parts-Bak93gD2.mjs +0 -86
  225. package/dist/client/runtimeResponse-nXT8VAMl.mjs +0 -3
  226. package/dist/client/types-BEaKfam_.mjs +0 -778
@@ -1,2 +1,2 @@
1
- import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-BovmbS8N.mjs";
1
+ import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-Cvi-1TZZ.mjs";
2
2
  export { activeThemeSchema, blockFieldConfigSchema, blockFieldExtensionSchema, blockFieldExtensionsSchema, blockFieldOptionsSchema, containerAlignmentSchema, containerMaxWidthSchema, containerOptionsSchema, contentConfigSchema, deployConfigSchema, fieldSelectOptionSchema, layoutConfigSchema, loaderParamBindingSchema, loaderParamValueSchema, loaderWhenValueSchema, riverbankSiteConfigSchema, sdkConfigLoaderSchema, sdkCustomBlockSchema, sdkDataLoadersSchema, sdkLoaderEndpointSchema, sdkSiteUrlSchema, sdkThemeConfigSchema, sdkThemePaletteSchema, sdkWorkflowConfigSchema, sdkWorkflowConfirmationSchema, sdkWorkflowEndpointSchema, sdkWorkflowIdSchema, sdkWorkflowTriggerSchema, sdkWorkflowsSchema, sectionBackgroundSchema, sectionOptionsSchema, sectionSpacingSchema, siteStyleConfigSchema, syncConfigSchema, themeSourceSchema, validateFieldIdConflicts };
@@ -1,5 +1,5 @@
1
- import { Js as isCanonicalRichTextDoc } from "./registry-Cc88-23f.mjs";
2
- import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-BovmbS8N.mjs";
1
+ import { nc as isCanonicalRichTextDoc } from "./registry-KtsOsAzY.mjs";
2
+ import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-Cvi-1TZZ.mjs";
3
3
  import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
4
4
  //#region src/config/bindings.ts
5
5
  function fieldBinding(path) {
@@ -476,7 +476,8 @@ const orderItemSchema = exactSchema()(z.object({
476
476
  "event_series_registration",
477
477
  "pass",
478
478
  "membership",
479
- "appointment"
479
+ "appointment",
480
+ "gift"
480
481
  ]),
481
482
  displayName: z.string(),
482
483
  quantity: z.number(),
@@ -718,6 +719,25 @@ const portalRegularSessionCadenceSchema = exactSchema()(z.discriminatedUnion("ki
718
719
  "last"
719
720
  ])
720
721
  })]));
722
+ const patternSchema = exactSchema()(z.object({
723
+ cadence: z.discriminatedUnion("kind", [z.object({
724
+ kind: z.literal("weekly"),
725
+ everyWeeks: z.literal([1, 2])
726
+ }), z.object({
727
+ kind: z.literal("monthly"),
728
+ nth: z.literal([
729
+ 1,
730
+ 2,
731
+ 3,
732
+ 4,
733
+ "last"
734
+ ])
735
+ })]),
736
+ days: z.array(z.object({
737
+ weekday: weekdaySchema,
738
+ localStart: z.string()
739
+ })).min(1).readonly()
740
+ }));
721
741
  const dateSchema = exactSchema()(z.union([
722
742
  z.object({
723
743
  state: z.literal("booked"),
@@ -744,11 +764,7 @@ const dateSchema = exactSchema()(z.union([
744
764
  const portalRegularSessionSchema = exactSchema()(z.object({
745
765
  arrangementId: brandedId(parseClientArrangementId, "regular sessions id"),
746
766
  timezone: z.string(),
747
- schedule: z.object({
748
- effectiveFrom: z.string(),
749
- cadence: portalRegularSessionCadenceSchema,
750
- localStart: z.string()
751
- }),
767
+ pattern: patternSchema,
752
768
  trainerName: z.string().nullable(),
753
769
  serviceName: z.string().nullable(),
754
770
  holdsTime: z.boolean(),
@@ -46,23 +46,6 @@ const arrangementModes = [
46
46
  function isArrangementMode(value) {
47
47
  return value === "list" || value === "calendar" || value === "week" || value === "combined";
48
48
  }
49
- /** Every transition that draws something; `none` is the absence of a join. */
50
- const decorativeTransitionIntentValues = [
51
- "soft-fade-short",
52
- "soft-fade-long",
53
- "soft-fade-expansive",
54
- "wave-edge",
55
- "wave-edge-balanced",
56
- "wave-edge-gentle",
57
- "wave-edge-bold",
58
- "wave-edge-drift",
59
- "wave-edge-echo",
60
- "arc-edge-echo",
61
- "arc-edge-bulge",
62
- "angle-edge",
63
- "angle-edge-subtle",
64
- "angle-edge-steep"
65
- ];
66
49
  const tileTreatmentValues = [
67
50
  "default",
68
51
  "quiet",
@@ -244,4 +227,4 @@ const customCssRulesSchema = z.array(customCssRuleSchema).optional();
244
227
  */
245
228
  const blockCustomCssRulesSchema = z.array(blockCustomCssRuleSchema).optional();
246
229
  //#endregion
247
- export { makeBoundaryId as A, asBoundaryOptionId as C, asLayoutVariantKey as D, asDesignSystemTemplateId as E, asPageFlowPresetId as O, asAppearancePresetId as S, asDesignBoundaryId as T, headingDecorationColorTokenValues as _, customCssRuleSchema as a, tileTreatmentValues as b, declarationsSchema as c, accordionIconMotionValues as d, accordionIconSetValues as f, eyebrowTreatmentValues as g, eventListTreatmentValues as h, containsRemoteUrl as i, asSiteStyleId as k, selectorSchema as l, decorativeTransitionIntentValues as m, blockCustomCssRulesSchema as n, customCssRulesSchema as o, arrangementModes as p, containsJavascriptUrl as r, declarationValueSchema as s, blockCustomCssRuleSchema as t, accordionIconColorTokenValues as u, headingDecorationOverrideValues as v, asDesignBlockId as w, visibleHeadingDecorationFamilyValues as x, isArrangementMode as y };
230
+ export { asDesignBlockId as C, asPageFlowPresetId as D, asLayoutVariantKey as E, asSiteStyleId as O, asBoundaryOptionId as S, asDesignSystemTemplateId as T, headingDecorationOverrideValues as _, customCssRuleSchema as a, visibleHeadingDecorationFamilyValues as b, declarationsSchema as c, accordionIconMotionValues as d, accordionIconSetValues as f, headingDecorationColorTokenValues as g, eyebrowTreatmentValues as h, containsRemoteUrl as i, makeBoundaryId as k, selectorSchema as l, eventListTreatmentValues as m, blockCustomCssRulesSchema as n, customCssRulesSchema as o, arrangementModes as p, containsJavascriptUrl as r, declarationValueSchema as s, blockCustomCssRuleSchema as t, accordionIconColorTokenValues as u, isArrangementMode as v, asDesignBoundaryId as w, asAppearancePresetId as x, tileTreatmentValues as y };
@@ -1,2 +1,2 @@
1
- import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-OG3KOkig.mjs";
1
+ import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-sjIDJYl7.mjs";
2
2
  export { CONFIG_ONLY_BLOCK_DATA_POLICY, DEFAULT_RESOLVE_BLOCK_DATA_DEPS, createBlockDataLoadPolicy, hasRegisteredDataLoaders, resolveBlockData, resolveBlockDataWithDeps, warnHostDataLoaderFailure };
@@ -1,4 +1,4 @@
1
- import { G as paletteColorsFromEntries, H as isThemeColorToken, J as parseColorTokenParts, U as normalizePaletteHex, V as hexColorSchema, c as buttonEffectApplicationSchema, m as parseOpaqueButtonColourToken, q as paletteModeSchema, s as unsafeAsOpaqueButtonColourToken, w as surfaceForegroundValue, z as PALETTE_TOKEN_NAMES } from "./types-BKaBZFjD.mjs";
1
+ import { G as hexColorSchema, K as isThemeColorToken, O as surfaceForegroundValue, Q as parseColorTokenParts, U as PALETTE_TOKEN_NAMES, Y as paletteColorsFromEntries, Z as paletteModeSchema, c as buttonEffectApplicationSchema, m as parseOpaqueButtonColourToken, q as normalizePaletteHex, s as unsafeAsOpaqueButtonColourToken } from "./types-vyz09w64.mjs";
2
2
  import { z } from "zod";
3
3
  //#region ../theme-core/src/palette/utils/colorConversion.ts
4
4
  const clamp01 = (x) => Math.max(0, Math.min(1, x));
@@ -1222,15 +1222,42 @@ function unknownEffect(input, effect) {
1222
1222
  }
1223
1223
  //#endregion
1224
1224
  //#region ../theme-core/src/buttons/contextualHover.ts
1225
+ /**
1226
+ * The smallest OKLab move that reads as a hover. Neighbouring steps of a
1227
+ * palette scale are about 0.06 to 0.08 apart.
1228
+ */
1229
+ const MINIMUM_VISIBLE_STEP = .04;
1230
+ /**
1231
+ * The contrast at which a fill reads as a fill rather than a shadow on its
1232
+ * ground. It applies when the recipe names the ink to fill with
1233
+ * (`preferredToken`): those buttons rest as an outline and fill only on hover,
1234
+ * so the fill has to read against the ground on its own. A button edge can keep
1235
+ * a darker fill distinct, but it then looks like a hole in the panel.
1236
+ */
1237
+ const FILL_CLEARS_GROUND = 1.5;
1238
+ /** Two label inks closer than this read as the same ink (a near-black for black); a light label against a dark one is far above it. */
1239
+ const SAME_LABEL_INK = 3;
1240
+ /** A step a filled button can change its label for: one or two neighbouring shades of its scale. */
1241
+ const NEAR_STEP = .2;
1242
+ /**
1243
+ * The ends of a scale are often close to neutral black or white. A shade below
1244
+ * the dark end or above the light end (OKLab lightness) that has under this
1245
+ * share of the seed's chroma reads as grey, black or white, not as the button.
1246
+ */
1247
+ const HUELESS_DARK_END = .2;
1248
+ const HUELESS_LIGHT_END = .94;
1249
+ const HUE_KEPT_SHARE = .5;
1250
+ /** The recipe's own hover ink wins when it holds; otherwise the shade shift decides. */
1225
1251
  function resolveContextualHoverPreference(input) {
1226
1252
  const preferred = input.instruction.preferredToken;
1227
- if (preferred && isSafeCandidate(preferred, input.palette, input.surface, input.colourIndex, input.border)) return {
1253
+ if (preferred && preferredInkHolds(preferred, input)) return {
1228
1254
  kind: "resolved",
1229
1255
  token: preferred,
1230
1256
  repair: null
1231
1257
  };
1232
1258
  const contextual = resolveContextualHover(input);
1233
- return contextual.kind === "resolved" ? {
1259
+ if (contextual.kind === "unavailable") return contextual;
1260
+ return {
1234
1261
  kind: "resolved",
1235
1262
  token: contextual.token,
1236
1263
  repair: preferred ? {
@@ -1238,112 +1265,154 @@ function resolveContextualHoverPreference(input) {
1238
1265
  preferredToken: preferred,
1239
1266
  contextualToken: contextual.token
1240
1267
  } : null
1241
- } : contextual;
1268
+ };
1242
1269
  }
1243
1270
  /**
1244
- * Resolves semantic shade movement from real palette steps. The persisted
1245
- * instruction owns the colour family and deterministic unknown-surface
1246
- * fallback; a proven surface may select the opposite direction when it gives
1247
- * the button stronger separation while retaining the shared contrast contract.
1271
+ * Chooses the hover fill from the seed's own shade family, so the hue stays.
1272
+ *
1273
+ * A hover should read as the same button, stronger. The choice is made on the
1274
+ * colours themselves, not on shade numbers (a brand colour is rarely the 500
1275
+ * step of its scale). Hard limits come first: the label stays readable, the
1276
+ * hover stands apart from a known surface, and a button that rests filled
1277
+ * stays recognisably itself. `HOVER_PREFERENCE` then ranks what's left.
1278
+ *
1279
+ * The ground is the proven surface, or the palette's page colour when the
1280
+ * surface is unknown. With neither, the instruction's fallback direction
1281
+ * stands in for "stronger".
1248
1282
  */
1249
1283
  function resolveContextualHover(input) {
1250
- const candidates = shadeCandidates(input.instruction.seedToken, input.palette);
1251
- if (candidates.length === 0) return {
1284
+ const shades = shadeCandidates(input);
1285
+ if (shades.length === 0) return {
1252
1286
  kind: "unavailable",
1253
1287
  reason: "no-distinct-shade"
1254
1288
  };
1255
- const textSafe = candidates.filter((candidate) => hasSafeTextContrast(candidate.token, input.palette, input.colourIndex));
1256
- if (textSafe.length === 0) return {
1289
+ const readable = shades.filter((shade) => labelReadable(shade.hex, shade.labelInk, input.colourIndex));
1290
+ if (readable.length === 0) return {
1257
1291
  kind: "unavailable",
1258
1292
  reason: "no-text-safe-candidate"
1259
1293
  };
1260
- if (!input.surface) {
1261
- const selected = textSafe.find((candidate) => candidate.direction === input.instruction.fallbackDirection) ?? textSafe[0];
1262
- return selected ? {
1263
- kind: "resolved",
1264
- token: selected.token,
1265
- direction: selected.direction,
1266
- evidence: "fallback-direction"
1267
- } : {
1268
- kind: "unavailable",
1269
- reason: "no-text-safe-candidate"
1270
- };
1271
- }
1272
- const selected = selectSurfaceSafeHover(textSafe, {
1273
- palette: input.palette,
1274
- surface: input.surface,
1275
- colourIndex: input.colourIndex,
1276
- fallbackDirection: input.instruction.fallbackDirection,
1277
- border: input.border
1278
- });
1279
- return selected ? {
1294
+ const restLabel = seedFilledRestLabel(input.rest, input.instruction.seedToken);
1295
+ const selected = pickHover(readable.filter((shade) => standsApartFromSurface(shade.hex, shade.labelInk, input) && (restLabel === void 0 || staysTheSameFilledButton(shade, restLabel))));
1296
+ const surfaceKnown = input.surface !== void 0;
1297
+ if (!selected) return {
1298
+ kind: "unavailable",
1299
+ reason: surfaceKnown ? "no-surface-safe-candidate" : "no-text-safe-candidate"
1300
+ };
1301
+ return {
1280
1302
  kind: "resolved",
1281
1303
  token: selected.token,
1282
1304
  direction: selected.direction,
1283
- evidence: "known-surface"
1284
- } : {
1285
- kind: "unavailable",
1286
- reason: "no-surface-safe-candidate"
1305
+ evidence: surfaceKnown ? "known-surface" : "fallback-direction"
1287
1306
  };
1288
1307
  }
1289
- /** Rank the proven-surface candidates without mixing selection with fallback policy. */
1290
- function selectSurfaceSafeHover(candidates, input) {
1291
- return candidates.flatMap((candidate) => {
1292
- const separation = buttonSurfaceSeparation(input.palette[candidate.token] ?? "", input.surface, {
1293
- border: input.border,
1294
- palette: input.palette,
1295
- labelInk: input.palette[solidForegroundToken(candidate.token)] ?? ""
1296
- });
1297
- return separation.distinct ? [{
1298
- ...candidate,
1299
- surfaceDistance: separation.deltaE
1300
- }] : [];
1301
- }).sort((left, right) => {
1302
- const distanceDifference = left.distance - right.distance;
1303
- if (distanceDifference !== 0) return distanceDifference;
1304
- const contrastDifference = (right.surfaceDistance ?? 0) - (left.surfaceDistance ?? 0);
1305
- if (contrastDifference !== 0) return contrastDifference;
1306
- if (left.direction === right.direction) return left.token.localeCompare(right.token);
1307
- return left.direction === input.fallbackDirection ? -1 : 1;
1308
- })[0];
1309
- }
1310
- function shadeCandidates(seedToken, palette) {
1311
- const match = String(seedToken).match(/^(.*?)(?:-(\d{2,3}))?$/);
1312
- const family = match?.[1] ?? String(seedToken);
1313
- const currentShade = match?.[2] ? Number(match[2]) : 500;
1314
- const seedHex = palette[seedToken];
1315
- const shades = Object.keys(palette).flatMap((token) => {
1316
- const shade = token.match(new RegExp(`^${escapeRegExp(family)}-(\\d{2,3})$`));
1317
- return shade?.[1] ? [Number(shade[1])] : [];
1318
- }).filter((shade) => Number.isFinite(shade)).sort((left, right) => left - right);
1319
- const lower = [...shades].filter((shade) => shade < currentShade).sort((left, right) => right - left);
1320
- const higher = shades.filter((shade) => shade > currentShade);
1321
- return [...lower.map((shade) => candidate(family, shade, currentShade, "lighter", seedHex, palette)), ...higher.map((shade) => candidate(family, shade, currentShade, "darker", seedHex, palette))].filter((value) => value !== null);
1322
- }
1323
- function candidate(family, shade, currentShade, direction, seedHex, palette) {
1324
- const token = parseOpaqueButtonColourToken(`${family}-${shade}`);
1325
- if (token === null) return null;
1326
- const candidateHex = palette[token];
1327
- if (!candidateHex || candidateHex === seedHex) return null;
1308
+ const visible = (shade) => shade.distance >= MINIMUM_VISIBLE_STEP;
1309
+ /**
1310
+ * Where the hover is looked for, in order. The first group with a shade wins,
1311
+ * and within it the nearest visible step (or, with none visible, the furthest).
1312
+ *
1313
+ * 1. Stronger, keeping the hue, and clearing the ground when the recipe names a fill ink.
1314
+ * 2. Stronger, keeping the hue.
1315
+ * 3. The other way, keeping the hue: a visible hover beats a hue-less or invisible one.
1316
+ * 4. Any stronger shade.
1317
+ * 5. Any shade the other way.
1318
+ */
1319
+ const HOVER_PREFERENCE = [
1320
+ (shade) => shade.stronger && shade.keepsHue && visible(shade) && shade.fillClearsGround,
1321
+ (shade) => shade.stronger && shade.keepsHue && visible(shade),
1322
+ (shade) => !shade.stronger && shade.keepsHue && visible(shade),
1323
+ (shade) => shade.stronger,
1324
+ () => true
1325
+ ];
1326
+ function pickHover(allowed) {
1327
+ for (const inGroup of HOVER_PREFERENCE) {
1328
+ const group = allowed.filter(inGroup);
1329
+ if (group.length > 0) return nearestVisibleStep(group);
1330
+ }
1331
+ }
1332
+ function nearestVisibleStep(shades) {
1333
+ const byDistance = [...shades].sort((left, right) => left.distance - right.distance || left.token.localeCompare(right.token));
1334
+ return byDistance.find(visible) ?? byDistance[byDistance.length - 1];
1335
+ }
1336
+ /** The label ink of a button that rests filled with the seed; undefined when it rests some other way (it fills only on hover). */
1337
+ function seedFilledRestLabel(rest, seed) {
1338
+ return rest.kind === "solid" && rest.colorToken === seed ? rest.labelInk : void 0;
1339
+ }
1340
+ /**
1341
+ * A button that rests filled with the seed should still read as itself on
1342
+ * hover. A shade that needs the other label ink is only allowed a near step
1343
+ * away (a jump across the scale with the label flipped looks like another
1344
+ * button), and a shade the other way has to keep the hue. A button that fills
1345
+ * only on hover changes its label anyway, so this doesn't apply to it.
1346
+ */
1347
+ function staysTheSameFilledButton(shade, restLabel) {
1348
+ return (contrastRatio(shade.labelInk, restLabel) < SAME_LABEL_INK || shade.distance <= NEAR_STEP) && (shade.stronger || shade.keepsHue);
1349
+ }
1350
+ function labelReadable(hex, labelInk, colourIndex) {
1351
+ return labelInk !== void 0 && contrastRatio(hex, labelInk, colourIndex) >= BUTTON_CONTRAST_POLICY.textMinimumRatio;
1352
+ }
1353
+ /** On a proven surface, the fill stands apart from it by colour or by a declared edge. */
1354
+ function standsApartFromSurface(hex, labelInk, input) {
1355
+ return input.surface === void 0 || buttonSurfaceSeparation(hex, input.surface, {
1356
+ border: input.border,
1357
+ palette: input.palette,
1358
+ labelInk
1359
+ }).distinct;
1360
+ }
1361
+ /** The recipe's own hover ink holds when its label reads and, on a proven surface, it stands apart and clears the surface as a fill. */
1362
+ function preferredInkHolds(token, input) {
1363
+ const hex = input.palette[token];
1364
+ const labelInk = input.palette[solidForegroundToken(token)];
1365
+ if (hex === void 0 || !labelReadable(hex, labelInk, input.colourIndex)) return false;
1366
+ return input.surface === void 0 || standsApartFromSurface(hex, labelInk, input) && contrastRatio(hex, input.surface.backgroundHex, input.colourIndex) >= FILL_CLEARS_GROUND;
1367
+ }
1368
+ /** The other steps of the seed's scale (`primary-100` … `primary-950`), measured against the seed and the ground. */
1369
+ function shadeCandidates(input) {
1370
+ const { instruction, palette, colourIndex } = input;
1371
+ const seedHex = palette[instruction.seedToken];
1372
+ if (seedHex === void 0) return [];
1373
+ const family = String(instruction.seedToken).match(/^(.*?)(?:-\d{2,3})?$/)?.[1] ?? String(instruction.seedToken);
1374
+ const step = new RegExp(`^${escapeRegExp(family)}-\\d{2,3}$`);
1375
+ const ground = input.surface?.backgroundHex ?? palette.background;
1376
+ const seed = {
1377
+ hex: seedHex,
1378
+ lightness: contrastRatio(seedHex, "#000000"),
1379
+ chroma: oklab(seedHex).chroma,
1380
+ ground: ground === void 0 ? void 0 : {
1381
+ contrast: (hex) => contrastRatio(hex, ground, colourIndex),
1382
+ restContrast: contrastRatio(seedHex, ground, colourIndex)
1383
+ }
1384
+ };
1385
+ return Object.keys(palette).flatMap((name) => {
1386
+ const token = step.test(name) ? parseOpaqueButtonColourToken(name) : null;
1387
+ const hex = token === null ? void 0 : palette[token];
1388
+ return token === null || hex === void 0 || hex === seedHex ? [] : [describeShade(token, hex, seed, input)];
1389
+ });
1390
+ }
1391
+ function describeShade(token, hex, seed, input) {
1392
+ const { instruction, palette } = input;
1393
+ const direction = contrastRatio(hex, "#000000") > seed.lightness ? "lighter" : "darker";
1394
+ const groundContrast = seed.ground?.contrast(hex);
1328
1395
  return {
1329
1396
  token,
1397
+ hex,
1330
1398
  direction,
1331
- distance: Math.abs(shade - currentShade),
1332
- surfaceDistance: null
1399
+ labelInk: palette[solidForegroundToken(token)],
1400
+ distance: hexOklabDistance(seed.hex, hex),
1401
+ stronger: seed.ground === void 0 ? direction === instruction.fallbackDirection : seed.ground.contrast(hex) >= seed.ground.restContrast,
1402
+ keepsHue: keepsHue(oklab(hex), seed.chroma),
1403
+ fillClearsGround: instruction.preferredToken !== void 0 && groundContrast !== void 0 && groundContrast >= FILL_CLEARS_GROUND
1333
1404
  };
1334
1405
  }
1335
- function hasSafeTextContrast(token, palette, colourIndex) {
1336
- const background = palette[token];
1337
- const foreground = palette[solidForegroundToken(token)];
1338
- return typeof background === "string" && typeof foreground === "string" && contrastRatio(background, foreground, colourIndex) >= BUTTON_CONTRAST_POLICY.textMinimumRatio;
1406
+ function keepsHue(shade, seedChroma) {
1407
+ return !(shade.lightness < HUELESS_DARK_END || shade.lightness > HUELESS_LIGHT_END) || shade.chroma >= seedChroma * HUE_KEPT_SHARE;
1339
1408
  }
1340
- function isSafeCandidate(token, palette, surface, colourIndex, border) {
1341
- if (!hasSafeTextContrast(token, palette, colourIndex)) return false;
1342
- return surface ? buttonSurfaceSeparation(palette[token] ?? "", surface, {
1343
- border,
1344
- palette,
1345
- labelInk: palette[solidForegroundToken(token)] ?? ""
1346
- }).distinct : true;
1409
+ function oklab(hex) {
1410
+ const { r, g, b } = hexToRgb(hex);
1411
+ const lab = srgbToOklab(r, g, b);
1412
+ return {
1413
+ lightness: lab.L,
1414
+ chroma: Math.hypot(lab.a, lab.b)
1415
+ };
1347
1416
  }
1348
1417
  function escapeRegExp(value) {
1349
1418
  return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
@@ -1357,7 +1426,8 @@ function resolveButtonHoverTreatment(input) {
1357
1426
  palette: input.palette,
1358
1427
  colourIndex: input.colourIndex,
1359
1428
  surface: input.surface,
1360
- border: input.variant.border
1429
+ border: input.variant.border,
1430
+ rest: input.rest
1361
1431
  });
1362
1432
  if (contextual.kind === "resolved") return {
1363
1433
  treatment: {
@@ -1407,6 +1477,11 @@ function compileButtonColourStates(input) {
1407
1477
  variant: input.variant,
1408
1478
  global: input.global,
1409
1479
  fallback: base.treatment,
1480
+ rest: restingFill({
1481
+ ...input,
1482
+ variantId: input.variant.id,
1483
+ state: "base"
1484
+ }, base.treatment),
1410
1485
  palette: input.palette,
1411
1486
  surface: input.surface,
1412
1487
  colourIndex: input.colourIndex
@@ -1431,7 +1506,12 @@ function compileDeclaredVisualStates(input, states) {
1431
1506
  hoverColor: "none",
1432
1507
  hoverColorToken: void 0
1433
1508
  },
1434
- fallback: states.hover.background
1509
+ fallback: states.hover.background,
1510
+ rest: restingFill({
1511
+ ...input,
1512
+ variantId: input.variant.id,
1513
+ state: "base"
1514
+ }, states.base.background)
1435
1515
  });
1436
1516
  const colours = collectStateColours(mapVisualStates((state) => compileDeclaredVisualState(input, states, state, state === "hover" ? hover.treatment : states[state].background)));
1437
1517
  return colours.ok ? {
@@ -1592,6 +1672,18 @@ function resolveSolid(input, backgroundToken, preferredForeground) {
1592
1672
  function resolveSolidButtonColour(input, backgroundToken, preferredForeground) {
1593
1673
  return resolveSolid(input, backgroundToken, preferredForeground);
1594
1674
  }
1675
+ /** A solid rest fill with the label ink resolveSolidInk gives it, so a contextual hover compares against the ink visitors see. */
1676
+ function restingFill(input, treatment) {
1677
+ if (treatment.type !== "solid") return { kind: "not-solid" };
1678
+ const hex = input.palette[treatment.colorToken];
1679
+ if (hex === void 0) return { kind: "not-solid" };
1680
+ const ink = resolveSolidInk(input, treatment.colorToken, hex, treatment.foregroundToken);
1681
+ return {
1682
+ kind: "solid",
1683
+ colorToken: treatment.colorToken,
1684
+ labelInk: ink.foregroundHex
1685
+ };
1686
+ }
1595
1687
  /** Preserve checked on-colours (a requested label colour first); a solid state's last resort is the palette ink for its actual fill. */
1596
1688
  function resolveSolidInk(input, backgroundToken, backgroundHex, preferredForeground) {
1597
1689
  if (preferredForeground !== void 0) {
@@ -1,9 +1,9 @@
1
- import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-DrwlRNAH.mjs";
1
+ import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as normalizeRuntimePublicPath, d as parsePublishedRuntimeCachePayloadSchemaVersion, f as readsCanonicalPath, g as buildEndpointURL, h as API_ENDPOINTS, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKey, m as siteWideReadPath, n as classifyPublishedRuntimeCacheFreshness, o as decideSiteReadPath, p as siteReadIncludesTermsHistory, r as derivePublishedRuntimeCacheKey, s as isPublishedRuntimeCacheKeyEndpoint, t as createRiverbankClient, u as parsePublishedRuntimeCacheKeyDetails } from "./client-DC7cjiSw.mjs";
2
2
  import { _ as parseMediaIdentifier, a as persistableMediaSchema, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, g as parseCanonicalMediaIdentifier, h as mediaIdentifierSchema, i as mediaSchema, l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-gvfIw3z8.mjs";
3
3
  import { r as getResilienceStatusFromError, t as RiverbankApiError } from "./error-f4g44bKx.mjs";
4
4
  import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
5
5
  import { t as SDK_CORRELATION_HEADER_NAMES } from "./types-C2eBBV6E.mjs";
6
- import { t as prebuildCache } from "./prebuild-C8Amvzce.mjs";
6
+ import { t as prebuildCache } from "./prebuild-BWIkFaXq.mjs";
7
7
  import * as path from "path";
8
8
  import * as fs from "fs";
9
9
  //#region src/prebuild/loader.ts
@@ -240,4 +240,4 @@ function createPrebuildLoader(config) {
240
240
  return new PrebuildLoader(config);
241
241
  }
242
242
  //#endregion
243
- export { API_ENDPOINTS, DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, PrebuildLoader, RiverbankApiError, SDK_CORRELATION_HEADER_NAMES, SYSTEM_BLOCK_KINDS, buildEndpointURL, buildRenderableMediaAssetIndex, canUsePrebuild, classifyPublishedRuntimeCacheFreshness, createPrebuildLoader, createRiverbankClient, derivePublishedRuntimeCacheKey, getResilienceStatusFromError, isPublishedRuntimeCacheKeyEndpoint, mediaIdentifierSchema, mediaSchema, normalizeRuntimePublicPath, parseCanonicalMediaIdentifier, parseMediaIdentifier, parsePublishedRuntimeCacheKey, parsePublishedRuntimeCacheKeyDetails, parsePublishedRuntimeCachePayloadSchemaVersion, persistableMediaSchema, prebuildCache, renderableMediaAssetSchema, resolveManagedMediaReference, resolveRuntimeCachePolicy, runtimeMediaSchema };
243
+ export { API_ENDPOINTS, DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, PrebuildLoader, RiverbankApiError, SDK_CORRELATION_HEADER_NAMES, SYSTEM_BLOCK_KINDS, buildEndpointURL, buildRenderableMediaAssetIndex, canUsePrebuild, classifyPublishedRuntimeCacheFreshness, createPrebuildLoader, createRiverbankClient, decideSiteReadPath, derivePublishedRuntimeCacheKey, getResilienceStatusFromError, isPublishedRuntimeCacheKeyEndpoint, mediaIdentifierSchema, mediaSchema, normalizeRuntimePublicPath, parseCanonicalMediaIdentifier, parseMediaIdentifier, parsePublishedRuntimeCacheKey, parsePublishedRuntimeCacheKeyDetails, parsePublishedRuntimeCachePayloadSchemaVersion, persistableMediaSchema, prebuildCache, readsCanonicalPath, renderableMediaAssetSchema, resolveManagedMediaReference, resolveRuntimeCachePolicy, runtimeMediaSchema, siteReadIncludesTermsHistory, siteWideReadPath };
@@ -1,10 +1,10 @@
1
- import { $n as selectionRepresentativeEvent, Dr as resolveDateRuntimeContext, Zn as registrationDataForEventSelection, uc as resolveBookingBusinessTimeZone } from "./registry-Cc88-23f.mjs";
2
- import { P as readPublishedBlockPlacement, a as invalidRenderableBlock, d as siteBlockRenderContext, h as compileManifestContentContract, i as collectMediaAssetSidecar, l as resolveSdkBlockManifest, m as admitTransportedRenderableManifestContent, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, u as sanitizeSdkRuntimeBlockContent } from "./pageRuntimeSupport-D2-YMRei.mjs";
3
- import { n as isRecord } from "./typeGuards-CTW_9AXq.mjs";
4
- import { _ as buildTemplatePageOutline, c as buildBookingPageOutline, l as bookingPageIdentity, n as SERVICE_BOOKING_BLOCK_IDS, o as bookingPageFacts, r as buildServiceBookingOutline, s as bookingPageSeedData, t as parseServicePageContent, v as readStoredSectionValues, y as selectBlocksForDeclaredEntrySlot } from "./servicePageContent-BcFuhhD7.mjs";
1
+ import { Or as resolveDateRuntimeContext, Qn as registrationDataForEventSelection, er as selectionRepresentativeEvent, vc as resolveBookingBusinessTimeZone } from "./registry-KtsOsAzY.mjs";
2
+ import { P as readPublishedBlockPlacement, a as invalidRenderableBlock, d as siteBlockRenderContext, h as compileManifestContentContract, i as collectMediaAssetSidecar, l as resolveSdkBlockManifest, m as admitTransportedRenderableManifestContent, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, u as sanitizeSdkRuntimeBlockContent } from "./pageRuntimeSupport-CAhr4oOf.mjs";
3
+ import { n as isRecord } from "./typeGuards-DZOaGTEv.mjs";
4
+ import { _ as buildTemplatePageOutline, b as selectBlocksForDeclaredEntrySlot, c as buildBookingPageOutline, l as bookingPageIdentity, n as SERVICE_BOOKING_BLOCK_IDS, o as bookingPageFacts, r as buildServiceBookingOutline, s as bookingPageSeedData, t as parseServicePageContent, v as selectTemplateComposition, y as readStoredSectionValues } from "./servicePageContent-ChEZDRwU.mjs";
5
5
  import { r as requireSdkTheme } from "./themeAdmission-DGSAlFUK.mjs";
6
6
  import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-lMRTfG5Z.mjs";
7
- import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-OG3KOkig.mjs";
7
+ import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-sjIDJYl7.mjs";
8
8
  //#region ../api/src/publicBookingService.ts
9
9
  /** Adapt an admitted service to the catalogue row consumed by booking pickers. */
10
10
  function toPublicBookingServiceCatalogueItem(service, categoryId) {
@@ -212,12 +212,13 @@ function processEntryTemplate(input) {
212
212
  });
213
213
  }
214
214
  async function processTemplatePage(input) {
215
- const template = input.templates?.[0];
216
- if (!template?.blocks?.length) return {
215
+ const composition = selectTemplateComposition(input.templates, input.slotContent);
216
+ if (!composition?.template.blocks?.length) return {
217
217
  templatePage: null,
218
218
  resolvedData: {}
219
219
  };
220
- const templatePage = materializeSdkTemplate(input, template);
220
+ const { template } = composition;
221
+ const templatePage = materializeSdkTemplate(input, composition);
221
222
  if (templatePage === null) return {
222
223
  templatePage: null,
223
224
  resolvedData: {}
@@ -241,7 +242,7 @@ async function processTemplatePage(input) {
241
242
  };
242
243
  }
243
244
  /** Pure adapter: the shared renderer owns bindings, applicability, Looks and admission. */
244
- function materializeSdkTemplate(input, template) {
245
+ function materializeSdkTemplate(input, { template, slots }) {
245
246
  return buildTemplatePageOutline({
246
247
  entry: input.entry,
247
248
  subject: templateCompilerSubject(input.renderTargetSource),
@@ -256,7 +257,7 @@ function materializeSdkTemplate(input, template) {
256
257
  pageSections: input.pageSections,
257
258
  resolveEntrySlotBlocks: ({ slotKey }) => selectBlocksForDeclaredEntrySlot({
258
259
  declaredSlotKey: slotKey,
259
- entrySlots: input.slotContent ?? []
260
+ entrySlots: slots
260
261
  }).map((block) => admitEntrySlotBlock(block, input.customBlocks, input.previewStage)),
261
262
  resolveBlockContentContract: (kind) => {
262
263
  const manifest = resolveSdkBlockManifest(kind, input.customBlocks);
@@ -1,8 +1,8 @@
1
- import { d as siteBlockRenderContext, i as collectMediaAssetSidecar, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport } from "./pageRuntimeSupport-D2-YMRei.mjs";
1
+ import { d as siteBlockRenderContext, i as collectMediaAssetSidecar, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport } from "./pageRuntimeSupport-CAhr4oOf.mjs";
2
2
  import { r as requireSdkTheme } from "./themeAdmission-DGSAlFUK.mjs";
3
- import { a as loadContentFromContentResponseWithDeps, n as isPageContent } from "./loadContent-D0prFflT.mjs";
3
+ import { a as loadContentFromContentResponseWithDeps, n as isPageContent } from "./loadContent-hb27HYic.mjs";
4
4
  import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-lMRTfG5Z.mjs";
5
- import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-OG3KOkig.mjs";
5
+ import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-sjIDJYl7.mjs";
6
6
  //#region src/rendering/helpers/loadPage.ts
7
7
  /**
8
8
  * Server-side helper to fetch all data needed for <Page> component.