@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,5 +1,5 @@
1
- import { J as parseColorTokenParts, N as rgbColorValue, V as hexColorSchema, Y as parseThemeColorToken, b as completeSurfaceForegrounds, g as VARIANT_ROLES, n as STANDARD_BUTTON_SURFACE_POLICY, p as opaqueButtonColourTokenSchema, u as buttonSystemSchema } from "./types-BKaBZFjD.mjs";
2
- import { A as onColorTokenName, B as preparePaletteColourIndex, C as paletteInk, D as paletteMutedInkOnSolid, E as paletteInkToken, G as oklabToSrgb, H as featuresFromHex, I as ORDINARY_TEXT_MIN_CONTRAST_RATIO, J as rgbToHex, L as contrastRatio, M as resolveOpaqueSurfaceHex, O as colourFamily, R as hexLuminance, T as paletteInkRoles, U as hexToRgb, V as solidPaint, _ as ELEVATION_OFFSET, a as compositeHex, b as pickBlackOrWhiteTextColor, h as BORDER_WIDTH_MAP, j as resolveConcreteColorHex, l as buttonStateBorder, m as BORDER_RADIUS_MAP, n as deriveSurfaceDecorationColors, q as oklchToOklab, r as expandPalette, u as compileButtonColourStates, v as FONT_SIZE_MAP, w as paletteInkOnSolid, x as inkFrom, y as generateShadowValue, z as luminanceInterval } from "./expandPalette-ehuW8r2g.mjs";
1
+ import { $ as parseThemeColorToken, G as hexColorSchema, L as rgbColorValue, Q as parseColorTokenParts, _ as isFreeButtonRadius, a as createStandardButtonSurfacePolicy, b as VARIANT_ROLES, h as BUTTON_PART_NAMES, n as STANDARD_BUTTON_SURFACE_POLICY, p as opaqueButtonColourTokenSchema, u as buttonSystemSchema, v as parseButtonPartValue, w as completeSurfaceForegrounds } from "./types-vyz09w64.mjs";
2
+ import { A as onColorTokenName, B as preparePaletteColourIndex, C as paletteInk, D as paletteMutedInkOnSolid, E as paletteInkToken, G as oklabToSrgb, H as featuresFromHex, I as ORDINARY_TEXT_MIN_CONTRAST_RATIO, J as rgbToHex, L as contrastRatio, M as resolveOpaqueSurfaceHex, O as colourFamily, R as hexLuminance, T as paletteInkRoles, U as hexToRgb, V as solidPaint, _ as ELEVATION_OFFSET, a as compositeHex, b as pickBlackOrWhiteTextColor, h as BORDER_WIDTH_MAP, j as resolveConcreteColorHex, l as buttonStateBorder, m as BORDER_RADIUS_MAP, n as deriveSurfaceDecorationColors, q as oklchToOklab, r as expandPalette, u as compileButtonColourStates, v as FONT_SIZE_MAP, w as paletteInkOnSolid, x as inkFrom, y as generateShadowValue, z as luminanceInterval } from "./expandPalette-DxPrNOAB.mjs";
3
3
  import { z } from "zod";
4
4
  /**
5
5
  * Derive the hover foreground that belongs with a resolved resting foreground.
@@ -600,10 +600,26 @@ function resolveOnColorForThemeToken(token) {
600
600
  return shade <= 400 ? "#000000" : "#FFFFFF";
601
601
  }
602
602
  //#endregion
603
+ //#region ../theme-core/src/buttons/actionVariables.ts
604
+ /** The custom properties a surface publishes for each role and state, and the button CSS reads. */
605
+ function actionVariableName(role, state, property) {
606
+ return `--rb-action-${role}-${state}-${property}`;
607
+ }
608
+ function actionVariableFallback(role, state, property, fallback) {
609
+ return `var(${actionVariableName(role, state, property)}, ${fallback})`;
610
+ }
611
+ function actionVariablePrefix(role, state) {
612
+ return `--rb-action-${role}-${state}`;
613
+ }
614
+ //#endregion
603
615
  //#region ../theme-core/src/buttons/styles/domain.ts
604
616
  const PUBLIC_BUTTON_ROLES = VARIANT_ROLES;
605
617
  function defineButtonStyleRecipe(recipe) {
606
- return recipe;
618
+ const defined = {
619
+ ...recipe,
620
+ resolve: (parameters) => resolveButtonStyleRecipe(defined, parameters)
621
+ };
622
+ return defined;
607
623
  }
608
624
  function mapButtonVisualAppearances(states, transform) {
609
625
  return {
@@ -625,6 +641,348 @@ function mapButtonRoleAppearances(roles, transform) {
625
641
  accent: role("accent")
626
642
  };
627
643
  }
644
+ function materializeButtonRoles(definitions) {
645
+ return {
646
+ primary: materializeCompleteRole("primary", definitions.primary),
647
+ secondary: materializeCompleteRole("secondary", definitions.secondary),
648
+ outline: materializeCompleteRole("outline", definitions.outline),
649
+ ghost: materializeCompleteRole("ghost", definitions.ghost),
650
+ accent: materializeCompleteRole("accent", definitions.accent)
651
+ };
652
+ }
653
+ function resolveButtonStyleRecipe(recipe, parameters) {
654
+ const parsedParameters = z.safeParse(recipe.parameterSchema, parameters);
655
+ if (!parsedParameters.success) return {
656
+ kind: "error",
657
+ error: {
658
+ kind: "invalid-parameters",
659
+ styleId: recipe.id,
660
+ issues: parsedParameters.error.issues.map((issue) => issue.message)
661
+ }
662
+ };
663
+ const definition = recipe.defineSystem(parsedParameters.data);
664
+ const roles = materializeButtonRoles(definition.roles);
665
+ const buttonSystem = {
666
+ global: buttonFamilyProjection(roles.primary),
667
+ sizes: roles.primary.visualStates?.base.sizes,
668
+ variants: PUBLIC_BUTTON_ROLES.map((role) => roles[role]),
669
+ surfacePolicy: definition.surfacePolicy ?? createStandardButtonSurfacePolicy()
670
+ };
671
+ const parsedButtonSystem = z.safeParse(buttonSystemSchema, buttonSystem);
672
+ if (!parsedButtonSystem.success) return {
673
+ kind: "error",
674
+ error: {
675
+ kind: "invalid-button-system",
676
+ styleId: recipe.id,
677
+ issues: parsedButtonSystem.error.issues.map((issue) => issue.message)
678
+ }
679
+ };
680
+ return {
681
+ kind: "resolved",
682
+ buttonSystem: parsedButtonSystem.data
683
+ };
684
+ }
685
+ /** Historical family metadata remains a projection; recipes never read it. */
686
+ function buttonFamilyProjection(primary) {
687
+ const base = primary.visualStates.base;
688
+ const type = base.typography;
689
+ return {
690
+ cornerStyle: base.borderRadius === "rounded-none" ? "square" : base.borderRadius === "rounded-full" ? "pill" : "rounded",
691
+ shadow: base.shadow.elevation,
692
+ fontWeight: type.fontWeight,
693
+ textTransform: type.textTransform,
694
+ typography: type.typography,
695
+ ...type.fontSize === null ? {} : { fontSize: type.fontSize },
696
+ ...type.letterSpacing === null || type.letterSpacing === "heading" ? {} : { letterSpacing: type.letterSpacing },
697
+ ...type.italic ? { italic: true } : {},
698
+ hoverTransform: "none",
699
+ hoverColor: "none"
700
+ };
701
+ }
702
+ function materializeCompleteRole(role, appearance) {
703
+ return {
704
+ visualStates: appearance.states,
705
+ background: appearance.states.base.background,
706
+ borderRadius: appearance.states.base.borderRadius,
707
+ ...appearance.states.base.border === "none" ? {} : { border: appearance.states.base.border },
708
+ shadow: appearance.states.base.shadow,
709
+ sizes: appearance.states.base.sizes,
710
+ effects: Object.fromEntries([
711
+ "base",
712
+ "hover",
713
+ "focus",
714
+ "active"
715
+ ].flatMap((state) => {
716
+ const effects = appearance.states[state].effects;
717
+ return effects.length === 0 ? [] : [[state, effects]];
718
+ })),
719
+ ...appearance.states.hover.contextualHover ? { contextualHover: appearance.states.hover.contextualHover } : {},
720
+ ...appearance.affordance ? { affordance: appearance.affordance } : {},
721
+ ...appearance.keyframes ? { keyframes: appearance.keyframes } : {},
722
+ id: role,
723
+ name: roleName(role),
724
+ enabled: true,
725
+ priority: rolePriority(role)
726
+ };
727
+ }
728
+ function roleName(role) {
729
+ return role.charAt(0).toUpperCase() + role.slice(1);
730
+ }
731
+ function rolePriority(role) {
732
+ if (role === "primary") return 1;
733
+ if (role === "secondary") return 2;
734
+ return 3;
735
+ }
736
+ //#endregion
737
+ //#region ../theme-core/src/buttons/affordanceIcons.ts
738
+ /**
739
+ * Affordance icon path data for CSS-emitted button affordances.
740
+ *
741
+ * A button variant may declare a trailing `affordance` icon (see
742
+ * `ButtonVariantAffordance`). The generated button CSS renders that icon as a
743
+ * masked `::after` pseudo-element, so the theme supplies it to every
744
+ * button of the variant without per-node authoring.
745
+ *
746
+ * Icons live in the `@riverbankcms/blocks` registry, but the button CSS is
747
+ * generated here in theme-core, so this module carries a small, curated copy of
748
+ * the *affordance-eligible* icon path data (arrows/chevrons — the action-oriented
749
+ * subset). The `d` values below are duplicated verbatim from the matching entries
750
+ * in `blocks/src/system/icons/svg.tsx`; ids match the registry ids exactly so a
751
+ * node-level `trailingIcon` and a theme-owned `affordance` share one id space.
752
+ *
753
+ * Keep this set intentionally tiny. It is not the full CTA icon set — only the
754
+ * shapes that read as a trailing affordance.
755
+ */
756
+ /** Registry icon id → the SVG path `d` fragments composing that icon. */
757
+ const AFFORDANCE_ICON_PATHS = {
758
+ ArrowRight: ["M5 12h14", "m13 6 6 6-6 6"],
759
+ ArrowLeft: ["M19 12H5", "m11 6-6 6 6 6"],
760
+ ChevronRight: ["m9 18 6-6-6-6"],
761
+ ChevronLeft: ["m15 18-6-6 6-6"],
762
+ ChevronDown: ["m6 9 6 6 6-6"],
763
+ ArrowUpRight: ["M7 17 17 7", "M7 7h10v10"]
764
+ };
765
+ /**
766
+ * Build a `data:image/svg+xml,...` URL for an affordance icon, suitable for use
767
+ * as a CSS `mask-image`. The stroke is painted solid black so the mask's alpha
768
+ * traces the icon outline; the visible colour is supplied separately by the
769
+ * `::after` rule's `background-color`. Returns `null` for unknown ids.
770
+ */
771
+ function affordanceIconMaskUrl(iconId) {
772
+ const paths = AFFORDANCE_ICON_PATHS[iconId];
773
+ if (!paths || paths.length === 0) return null;
774
+ return svgDataUrl(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>${paths.map((d) => `<path d='${d}'/>`).join("")}</svg>`);
775
+ }
776
+ /**
777
+ * Minimal, deterministic percent-encoding for the characters that are unsafe
778
+ * inside an unquoted-ish `url(...)` data URI. Keeps output stable for tests.
779
+ */
780
+ function svgDataUrl(svg) {
781
+ return `data:image/svg+xml,${svg.replace(/"/g, "'").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ")}`;
782
+ }
783
+ /**
784
+ * Filled shapes a button part may use as a mask, beside the affordance icons.
785
+ * `Wave` is one 24 by 8 period of a wavy rule, made to repeat along x.
786
+ */
787
+ const BUTTON_FILLED_SHAPES = { Wave: {
788
+ viewBox: "0 0 24 8",
789
+ d: "M0 3Q3 0 6 3T12 3T18 3T24 3V5Q21 8 18 5T12 5T6 5T0 5Z"
790
+ } };
791
+ /** Mask URL for a `{shape:Name}` placeholder: an affordance icon or a filled shape. Null for unknown names. */
792
+ function buttonShapeMaskUrl(shapeId) {
793
+ const filled = Object.prototype.hasOwnProperty.call(BUTTON_FILLED_SHAPES, shapeId) ? BUTTON_FILLED_SHAPES[shapeId] : void 0;
794
+ if (filled) return svgDataUrl(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='${filled.viewBox}'><path d='${filled.d}'/></svg>`);
795
+ return affordanceIconMaskUrl(shapeId);
796
+ }
797
+ //#endregion
798
+ //#region ../theme-core/src/buttons/buttonParts.ts
799
+ /**
800
+ * Turns a recipe's declared parts, shadow layers and keyframes into CSS.
801
+ *
802
+ * The recipe says what each part looks like in every state; this module only
803
+ * resolves placeholders and works out which declarations a state rule needs.
804
+ * It knows nothing about any one button family.
805
+ */
806
+ /** The label span every themed button renders, and the attribute that repeats its text for `content`. */
807
+ const BUTTON_LABEL_CLASS = "rb-btn-label";
808
+ const BUTTON_LABEL_ATTRIBUTE = "data-rb-label";
809
+ function fillFallback(colour) {
810
+ switch (colour.kind) {
811
+ case "solid":
812
+ case "known-solid": return colour.backgroundCss;
813
+ case "gradient": return `rgb(var(--tb-${colour.backgroundTokens[0]}))`;
814
+ case "surface": return "transparent";
815
+ }
816
+ }
817
+ function buttonKeyframeName(prefix, name) {
818
+ return `rb-btn-${prefix}-${name}`;
819
+ }
820
+ /** Resolve one part value to CSS, or null when it names a shape that does not exist. */
821
+ function compileButtonPartValue(value, paint) {
822
+ const tokens = parseButtonPartValue(value);
823
+ if (tokens === null) return null;
824
+ const state = (name) => paint.colours[name];
825
+ const pieces = tokens.map((token) => {
826
+ switch (token.kind) {
827
+ case "text": return token.text;
828
+ case "ink": return token.state === null ? "currentColor" : actionVariableFallback(paint.role, token.state, "color", state(token.state).foregroundCss);
829
+ case "fill": return actionVariableFallback(paint.role, token.state, "background-color", fillFallback(state(token.state)));
830
+ case "token": return `rgb(var(--tb-${token.token}))`;
831
+ case "mark": return "var(--rb-surface-mark-color, rgb(var(--tb-accent)))";
832
+ case "label": return `attr(${BUTTON_LABEL_ATTRIBUTE})`;
833
+ case "shape": {
834
+ const url = buttonShapeMaskUrl(token.id);
835
+ return url === null ? null : `url("${url}")`;
836
+ }
837
+ case "key": return buttonKeyframeName(paint.keyframePrefix, token.name);
838
+ }
839
+ });
840
+ return pieces.some((piece) => piece === null) ? null : pieces.join("");
841
+ }
842
+ /** Properties that still need a vendor-prefixed twin. */
843
+ const PREFIXED = {
844
+ mask: "-webkit-mask",
845
+ "mask-position": "-webkit-mask-position",
846
+ "backdrop-filter": "-webkit-backdrop-filter"
847
+ };
848
+ function declaration(property, value, paint) {
849
+ const css = compileButtonPartValue(value, paint);
850
+ if (css === null) return [];
851
+ if (property === "content") return [["content", css], ["content", `${css} / ""`]];
852
+ if (property === "mask-composite") return [["-webkit-mask-composite", css === "exclude" ? "xor" : css], ["mask-composite", css]];
853
+ const prefixed = PREFIXED[property];
854
+ return prefixed ? [[prefixed, css], [property, css]] : [[property, css]];
855
+ }
856
+ function buttonShadowLayersValue(layers, paint) {
857
+ if (layers.length === 0) return "none";
858
+ return layers.map((layer) => {
859
+ const colour = compileButtonPartValue(layer.paint, paint) ?? "transparent";
860
+ return `${layer.inset ? "inset " : ""}${layer.x}px ${layer.y}px ${layer.blur}px ${layer.spread}px ${colour}`;
861
+ }).join(", ");
862
+ }
863
+ function partSelector(selector, part) {
864
+ switch (part) {
865
+ case "self": return selector;
866
+ case "label": return `${selector} > .${BUTTON_LABEL_CLASS}`;
867
+ case "before": return `${selector}::before`;
868
+ case "after": return `${selector}::after`;
869
+ }
870
+ }
871
+ /**
872
+ * A part that shows the label a second time needs the label's text on the
873
+ * control. Where the attribute is missing or empty (hand-written markup, a
874
+ * label wrapper this module can't read), those parts and anything that moves
875
+ * the real label must not apply, or the label would be covered or rolled away
876
+ * with nothing to replace it. The button then shows its plain colour change.
877
+ */
878
+ const HAS_LABEL_TEXT = `[${BUTTON_LABEL_ATTRIBUTE}]:not([${BUTTON_LABEL_ATTRIBUTE}=""])`;
879
+ function repeatsLabel(declarations) {
880
+ return parseButtonPartValue(declarations?.content ?? "")?.some((token) => token.kind === "label") ?? false;
881
+ }
882
+ /** The parts of a variant that only make sense when the label can be repeated. */
883
+ function labelDependentParts(states) {
884
+ const repeating = ["before", "after"].filter((part) => repeatsLabel(states.base.parts?.[part]));
885
+ return repeating.length === 0 ? [] : [...repeating, "label"];
886
+ }
887
+ function stateSelectors(selector, state, part, gate) {
888
+ const on = (host) => partSelector(host.replace(selector, `${selector}${gate}`), part);
889
+ switch (state) {
890
+ case "base": return [on(selector)];
891
+ case "hover": return [on(`${selector}:hover`), on(`${selector}[data-force-hover="true"]`)];
892
+ case "focus": return [on(`${selector}:focus-visible`)];
893
+ case "active": return [on(`${selector}:active`)];
894
+ case "disabled": return [
895
+ on(`${selector}:disabled`),
896
+ on(`${selector}:disabled:hover`),
897
+ on(`${selector}:disabled:active`)
898
+ ];
899
+ }
900
+ }
901
+ function variantHasParts(states) {
902
+ return states !== void 0 && BUTTON_PART_NAMES.some((part) => states.base.parts?.[part] !== void 0);
903
+ }
904
+ /** The pseudo-elements a variant's parts own; the generic disabled rule leaves these alone. */
905
+ function partOwnedPseudoElements(states) {
906
+ return ["before", "after"].filter((part) => states?.base.parts?.[part] !== void 0);
907
+ }
908
+ /**
909
+ * Which of a state's declarations its rule has to carry. Hover and focus carry
910
+ * what differs from rest. Press also restates anything hover changed, because a
911
+ * pressed button is hovered too. Disabled restates anything any other state changed.
912
+ */
913
+ function changedProperties(part, state, states) {
914
+ const of = (name) => states[name].parts?.[part] ?? {};
915
+ const base = of("base");
916
+ const differs = (name, property) => of(name)[property] !== base[property];
917
+ const against = state === "active" ? ["hover", "active"] : state === "disabled" ? [
918
+ "hover",
919
+ "focus",
920
+ "active",
921
+ "disabled"
922
+ ] : [state];
923
+ return Object.keys(base).filter((property) => against.some((name) => differs(name, property)));
924
+ }
925
+ function partStateRules(part, selector, states, paint) {
926
+ const base = states.base.parts?.[part];
927
+ if (base === void 0) return [];
928
+ const gate = labelDependentParts(states).includes(part) ? HAS_LABEL_TEXT : "";
929
+ const pseudo = part === "before" || part === "after";
930
+ const declare = (declarations, properties) => properties.flatMap((property) => declaration(property, declarations[property] ?? "", paint));
931
+ return [{
932
+ selectors: stateSelectors(selector, "base", part, gate),
933
+ declarations: [...pseudo && base.content === void 0 ? [["content", "\"\""]] : [], ...declare(base, Object.keys(base))]
934
+ }, ...[
935
+ "hover",
936
+ "active",
937
+ "focus",
938
+ "disabled"
939
+ ].flatMap((state) => {
940
+ const declarations = declare(states[state].parts?.[part] ?? {}, changedProperties(part, state, states));
941
+ const stopped = state === "disabled" && pseudo ? [["animation", "none"], ["pointer-events", "none"]] : [];
942
+ return declarations.length + stopped.length === 0 ? [] : [{
943
+ selectors: stateSelectors(selector, state, part, gate),
944
+ declarations: [...declarations.filter(([property]) => !(stopped.length > 0 && property === "animation")), ...stopped]
945
+ }];
946
+ })];
947
+ }
948
+ function renderRule(rule, indent = "") {
949
+ const declarations = rule.declarations.map(([property, value]) => `${indent} ${property}: ${value};`).join("\n");
950
+ return `${indent}${rule.selectors.join(`,\n${indent}`)} {\n${declarations}\n${indent}}`;
951
+ }
952
+ function keyframesCss(variant, paint) {
953
+ return Object.entries(variant.keyframes ?? {}).map(([name, frames]) => {
954
+ const body = Object.entries(frames).map(([offset, declarations]) => {
955
+ return ` ${offset} { ${Object.entries(declarations).flatMap(([property, value]) => declaration(property, value, paint)).map(([property, value]) => `${property}: ${value};`).join(" ")} }`;
956
+ }).join("\n");
957
+ return `@keyframes ${buttonKeyframeName(paint.keyframePrefix, name)} {\n${body}\n}`;
958
+ });
959
+ }
960
+ /**
961
+ * Someone who asks for reduced motion still sees every state change, but at
962
+ * once and in place: no keyframes run, nothing travels, and a button that
963
+ * moves or tilts on hover or press stays where it is.
964
+ */
965
+ function reducedMotionCss(selector, states) {
966
+ const targets = BUTTON_PART_NAMES.filter((part) => states.base.parts?.[part] !== void 0).map((part) => partSelector(selector, part));
967
+ const selectors = [.../* @__PURE__ */ new Set([selector, ...targets])];
968
+ const still = states.base.parts?.self?.transform === void 0 ? "" : `\n ${[
969
+ `${selector}:hover`,
970
+ `${selector}[data-force-hover="true"]`,
971
+ `${selector}:active`
972
+ ].join(",\n ")} {\n transform: none !important;\n }`;
973
+ return `@media (prefers-reduced-motion: reduce) {\n ${selectors.join(",\n ")} {\n animation: none !important;\n transition-duration: 1ms !important;\n transition-delay: 0s !important;\n }${still}\n}`;
974
+ }
975
+ /** Everything a variant's parts and keyframes add to its CSS, in cascade order. Empty for a variant without parts. */
976
+ function buttonPartsCss(variant, selector, paint) {
977
+ const states = variant.visualStates;
978
+ if (!variantHasParts(states)) return "";
979
+ const rules = BUTTON_PART_NAMES.flatMap((part) => partStateRules(part, selector, states, paint));
980
+ return [
981
+ ...keyframesCss(variant, paint),
982
+ ...rules.map((rule) => renderRule(rule)),
983
+ reducedMotionCss(selector, states)
984
+ ].join("\n\n");
985
+ }
628
986
  //#endregion
629
987
  //#region ../theme-core/src/buttons/buttonAppearance.ts
630
988
  /** Expand persisted pre-recipe families at the rendering boundary, once. */
@@ -745,12 +1103,18 @@ function buttonTypographyDeclarations(type) {
745
1103
  ...type.textTransform === "none" ? [] : [["text-transform", type.textTransform]]
746
1104
  ];
747
1105
  }
1106
+ /** A Tailwind radius token, or a free radius (`46% 54% 58% 42% / 52% 44% 56% 48%`) passed through as written. */
748
1107
  function buttonRadius(radius) {
749
- return BORDER_RADIUS_MAP[radius] ?? BORDER_RADIUS_MAP.rounded ?? "0.375rem";
1108
+ return BORDER_RADIUS_MAP[radius] ?? (isFreeButtonRadius(radius) ? radius : BORDER_RADIUS_MAP.rounded ?? "0.375rem");
750
1109
  }
751
1110
  function buttonShadow(shadow, tokens) {
752
1111
  return generateShadowValue(shadow.elevation, shadow.softness, shadow.position, shadow.colorToken ? tokens.getColor(shadow.colorToken) : void 0);
753
1112
  }
1113
+ /** A state's whole box-shadow: its declared layers when it has them, otherwise its one shadow. */
1114
+ function buttonStateShadow(state, tokens, paint) {
1115
+ if (state.shadow === "focus-indicator") return null;
1116
+ return state.shadowLayers ? buttonShadowLayersValue(state.shadowLayers, paint) : buttonShadow(state.shadow, tokens);
1117
+ }
754
1118
  function buttonBorder(border, tokens) {
755
1119
  return border === "none" ? null : `${BORDER_WIDTH_MAP[border.widthClass] || "1px"} solid ${border.boundaryInk ? tokens.getColor(border.boundaryInk) : "currentColor"}`;
756
1120
  }
@@ -765,15 +1129,15 @@ function buttonTypographyChanges(base, state) {
765
1129
  return [...declared, ...resets].filter(([property, value]) => original.get(property) !== value);
766
1130
  }
767
1131
  /** Emit only changed declarations; identical states keep historical CSS bytes. */
768
- function buttonStateAppearanceDeclarations(base, state, tokens, disabled = false) {
1132
+ function buttonStateAppearanceDeclarations(base, state, tokens, paint, disabled = false) {
769
1133
  const border = buttonBorder(state.border, tokens);
770
1134
  const radius = buttonRadius(state.borderRadius);
771
- const shadow = !disabled && state.shadow !== "focus-indicator" ? buttonShadow(state.shadow, tokens) : null;
1135
+ const shadow = disabled ? null : buttonStateShadow(state, tokens, paint);
772
1136
  return [
773
1137
  ...buttonTypographyChanges(base.typography, state.typography),
774
1138
  ...buttonRadius(base.borderRadius) === radius ? [] : [["border-radius", radius]],
775
1139
  ...buttonBorder(base.border, tokens) === border ? [] : [["border", border ?? "none"]],
776
- ...shadow === null || base.shadow === "focus-indicator" || buttonShadow(base.shadow, tokens) === shadow ? [] : [["box-shadow", shadow]]
1140
+ ...shadow === null || buttonStateShadow(base, tokens, paint) === shadow ? [] : [["box-shadow", shadow]]
777
1141
  ];
778
1142
  }
779
1143
  /** Surface paint is a context for the recipe, checked by the same colour owner. */
@@ -1022,7 +1386,7 @@ function resolveFallbackButtonRole(input, requested, fallbacks, rejected) {
1022
1386
  kind: "repaired",
1023
1387
  requestedRole: input.role,
1024
1388
  candidate: candidate.name,
1025
- states: candidate.name === "surface-outline" ? withSurfaceInversion(compiled.states, input.surface) : compiled.states,
1389
+ states: surfaceFallbackStates(fallback, compiled.states, input.surface),
1026
1390
  focusIndicator: compiled.focusIndicator,
1027
1391
  boundary: candidate.boundary,
1028
1392
  rejectedCandidates: rejected
@@ -1073,26 +1437,39 @@ function resetActionVariables(role) {
1073
1437
  ]) styles[actionVariableName(role, state, property)] = "initial";
1074
1438
  return styles;
1075
1439
  }
1076
- function withSurfaceInversion(states, surface) {
1077
- const inverted = {
1078
- kind: "known-solid",
1079
- backgroundCss: surface.foregroundCss,
1080
- foregroundCss: surface.backgroundCss
1081
- };
1082
- return {
1440
+ /**
1441
+ * Both surface fallbacks paint with the surface's own checked pair. The outline
1442
+ * fills with the ground's ink on hover. The solid is filled with it from the
1443
+ * start, and on hover either stays so or takes the ground's colour, as an
1444
+ * opaque paint so a part can draw with it.
1445
+ */
1446
+ function surfaceFallbackStates(fallback, states, surface) {
1447
+ const inverted = surfaceInkFill(surface);
1448
+ if (fallback.kind === "surface-outline") return {
1083
1449
  ...states,
1084
1450
  hover: inverted,
1085
1451
  active: inverted
1086
1452
  };
1087
- }
1088
- function actionVariableName(role, state, property) {
1089
- return `--rb-action-${role}-${state}-${property}`;
1090
- }
1091
- function actionVariableFallback(role, state, property, fallback) {
1092
- return `var(${actionVariableName(role, state, property)}, ${fallback})`;
1093
- }
1094
- function actionVariablePrefix(role, state) {
1095
- return `--rb-action-${role}-${state}`;
1453
+ if (fallback.kind !== "surface-solid") return states;
1454
+ if (fallback.hover === "steady") return {
1455
+ base: inverted,
1456
+ hover: inverted,
1457
+ focus: inverted,
1458
+ active: inverted,
1459
+ disabled: inverted
1460
+ };
1461
+ const ground = {
1462
+ kind: "known-solid",
1463
+ backgroundCss: surface.backgroundCss,
1464
+ foregroundCss: surface.foregroundCss
1465
+ };
1466
+ return {
1467
+ base: inverted,
1468
+ hover: ground,
1469
+ focus: inverted,
1470
+ active: ground,
1471
+ disabled: inverted
1472
+ };
1096
1473
  }
1097
1474
  function compileCandidate(variant, context) {
1098
1475
  return compileButtonColourStates({
@@ -1103,6 +1480,13 @@ function compileCandidate(variant, context) {
1103
1480
  colourIndex: context.colourIndex
1104
1481
  });
1105
1482
  }
1483
+ function surfaceInkFill(surface) {
1484
+ return {
1485
+ kind: "known-solid",
1486
+ backgroundCss: surface.foregroundCss,
1487
+ foregroundCss: surface.backgroundCss
1488
+ };
1489
+ }
1106
1490
  function candidateVariant(fallback, requested, system) {
1107
1491
  if (fallback.kind === "variant") {
1108
1492
  const variant = findVariant(system, fallback.role);
@@ -1114,7 +1498,7 @@ function candidateVariant(fallback, requested, system) {
1114
1498
  }
1115
1499
  const width = BORDER_WIDTH_MAP.border ?? "1px";
1116
1500
  return {
1117
- name: "surface-outline",
1501
+ name: fallback.kind,
1118
1502
  variant: {
1119
1503
  ...requested,
1120
1504
  visualStates: void 0,
@@ -1122,12 +1506,15 @@ function candidateVariant(fallback, requested, system) {
1122
1506
  type: "surface",
1123
1507
  role: "link"
1124
1508
  },
1125
- border: { widthClass: "border" },
1509
+ border: fallback.kind === "surface-solid" && fallback.hover === "swap" ? {
1510
+ widthClass: "border",
1511
+ marksBoundary: true
1512
+ } : { widthClass: "border" },
1126
1513
  hoverBackgroundToken: void 0,
1127
1514
  contextualHover: void 0,
1128
1515
  effects: void 0
1129
1516
  },
1130
- boundary: {
1517
+ boundary: fallback.kind === "surface-solid" && requested.border?.ring ? boundaryForVariant(requested) : {
1131
1518
  width,
1132
1519
  color: "currentColor"
1133
1520
  }
@@ -1655,14 +2042,14 @@ function ownSurfaceRevision(context) {
1655
2042
  revisionOwners.set(palette, revisions);
1656
2043
  return revision;
1657
2044
  }
1658
- /** Local computation keeps its colour index; transport references only the owning revision inputs. */
2045
+ /** Keep the derived colour index for local computation, but never repeat it on the wire. */
1659
2046
  function surfaceTransportContext(context) {
1660
2047
  const revision = ownSurfaceRevision(context);
1661
- const result = Object.freeze({
2048
+ const result = Object.freeze(Object.defineProperty({
1662
2049
  ...revision,
1663
2050
  colourIndex: context.colourIndex,
1664
2051
  solvedInks: context.solvedInks
1665
- });
2052
+ }, "colourIndex", { enumerable: false }));
1666
2053
  const preparedSurfaces = matchingPreparedSurfaceIndex(preparedSurfaceIndexFor(context), result);
1667
2054
  surfaceRevisionOwners.set(result, {
1668
2055
  revision,
@@ -2370,4 +2757,4 @@ function mapSurfaceTreeChildren(value, map) {
2370
2757
  return isSurfaceTreeRecord(value) ? Object.fromEntries(Object.entries(value).map(([key, item]) => [key, map(item)])) : value;
2371
2758
  }
2372
2759
  //#endregion
2373
- export { ownedThemeSnapshot as A, planForegroundHover as B, mapButtonRoleAppearances as C, resolveThemeColorReferenceValue as D, resolveOnColorForThemeToken as E, solveSurfaceInks as F, HOVER_TEXT_THRESHOLD as I, certifyPaint as L, safeTokenOr as M, surfaceInkPublication as N, resolveTokenOrCssColorValue as O, CONTROL_EDGE_SEED_TOKEN as P, contrastThresholdByPolicy as R, defineButtonStyleRecipe as S, isCssColorLiteral as T, buttonStateAppearanceDeclarations as _, requireResolvedSurface as a, paddingDeclarations as b, surfaceButtonRequest as c, toAccessibleColorSurfaceIntent as d, actionVariableFallback as f, buttonShadow as g, buttonRadius as h, prepareThemeSurfaceRevision as i, resolveSurfaceForeground as j, freezeOwnedThemeValue as k, surfaceDecorationColors as l, buttonBorder as m, parseSurfaceTree as n, resolveSurface as o, contextualButtonSurfaceResetStyles as p, prepareSurfaceIndex as r, serializeSurfaceTree as s, parseResolvedSurface as t, surfaceTransportContext as u, buttonTypographyDeclarations as v, mapButtonVisualAppearances as w, PUBLIC_BUTTON_ROLES as x, materializeRuntimeButtonAppearance as y, inkReference as z };
2760
+ export { actionVariableFallback as A, CONTROL_EDGE_SEED_TOKEN as B, buttonShadowLayersValue as C, defineButtonStyleRecipe as D, PUBLIC_BUTTON_ROLES as E, freezeOwnedThemeValue as F, inkReference as G, HOVER_TEXT_THRESHOLD as H, ownedThemeSnapshot as I, planForegroundHover as K, resolveSurfaceForeground as L, resolveOnColorForThemeToken as M, resolveThemeColorReferenceValue as N, mapButtonRoleAppearances as O, resolveTokenOrCssColorValue as P, safeTokenOr as R, buttonPartsCss as S, affordanceIconMaskUrl as T, certifyPaint as U, solveSurfaceInks as V, contrastThresholdByPolicy as W, buttonTypographyDeclarations as _, requireResolvedSurface as a, BUTTON_LABEL_ATTRIBUTE as b, surfaceButtonRequest as c, toAccessibleColorSurfaceIntent as d, contextualButtonSurfaceResetStyles as f, buttonStateShadow as g, buttonStateAppearanceDeclarations as h, prepareThemeSurfaceRevision as i, isCssColorLiteral as j, mapButtonVisualAppearances as k, surfaceDecorationColors as l, buttonRadius as m, parseSurfaceTree as n, resolveSurface as o, buttonBorder as p, prepareSurfaceIndex as r, serializeSurfaceTree as s, parseResolvedSurface as t, surfaceTransportContext as u, materializeRuntimeButtonAppearance as v, partOwnedPseudoElements as w, BUTTON_LABEL_CLASS as x, paddingDeclarations as y, surfaceInkPublication as z };
@@ -1,4 +1,4 @@
1
- import { X as themeColorTokenSchema } from "./types-BKaBZFjD.mjs";
1
+ import { et as themeColorTokenSchema } from "./types-vyz09w64.mjs";
2
2
  import { z } from "zod";
3
3
  //#region ../site-contracts/src/theme/accordions.ts
4
4
  /**
@@ -1,10 +1,10 @@
1
- import { et as parseStoredVariant, it as resolveRuntimeSection, rt as lookFillPartsFromContent, t as buildPageRenderPlan } from "./pageRenderPlan-BHrmogsW.mjs";
2
- import { $a as resolveArrangementLookForBlock, Fr as formatDate, Go as isDecorativeTransitionIntent, Ho as boundaryOptions, Jo as spaciousBoundaryOption, Ko as noneBoundaryOption, No as resolvePageDesignBlockLookChoice, Po as resolvePageDesignBoundaryChoice, Qa as getCompatibleBlockAppearancePresets, Vo as boundaryOptionForTransitionIntent, Wo as boundaryTreatmentForBoundaryOptionId, Xa as automaticArrangementLook, Ya as arrangementStyleAvailability, Yo as transitionIntentForTreatment, Za as compileArrangementLookRuntime, _o as getCuratedSiteStyle, bo as stripCompiledRuntimeStyleFields, do as filterLayoutProfilesForPolicy, eo as resolveLookForBlock, es as parseCanonicalRuntimeBackground, fo as filterLookIdsForPolicy, ft as systemCustomizeFacetDefinitionsForBlock, ga as plainTextToInlineText, io as resolveEffectiveArrangement, qa as arrangementAppearancePresets, qo as softBoundaryOption, ro as readStoredMode, rs as defaultHeroImageSurfaceTreatment, t as getBlockDefinition, ti as resolveDeclaredBlockDesignCapability, ts as resolveSectionBackground, uo as deriveSiteStyleBlockPolicy, yo as compilePageRuntimeFields } from "./registry-Cc88-23f.mjs";
3
- import { A as makeBoundaryId, D as asLayoutVariantKey, O as asPageFlowPresetId, w as asDesignBlockId, y as isArrangementMode } from "./customCss-C9kgPHvr.mjs";
4
- import { r as sectionStylesOverrideSchema } from "./schema-CwfxQjc4.mjs";
5
- import { m as admitTransportedRenderableManifestContent, v as registeredManifestContentContract } from "./pageRuntimeSupport-D2-YMRei.mjs";
6
- import { f as isRichTextDoc, n as isRecord } from "./typeGuards-CTW_9AXq.mjs";
7
- import { E as toNonEmptyReadonlyArray, S as plainFrame, _ as designIssueSeverityForPolicy, d as lookModes, f as assertNever, p as defineBlockDesignCapability, w as sectionBackgroundPaintValues } from "./lookMediaFrame-H0fi4bJk.mjs";
1
+ import { $ as parseStoredVariant, nt as lookFillPartsFromContent, rt as resolveRuntimeSection, t as buildPageRenderPlan } from "./pageRenderPlan-CdqJ1NQZ.mjs";
2
+ import { $a as arrangementStyleAvailability, $o as transitionIntentForTreatment, Co as compilePageRuntimeFields, Go as boundaryOptionForTransitionIntent, Ir as formatDate, Jo as boundaryTreatmentForBoundaryOptionId, Ko as boundaryOptions, Lo as resolvePageDesignBlockLookChoice, Qo as spaciousBoundaryOption, Ro as resolvePageDesignBoundaryChoice, Xo as noneBoundaryOption, Yo as isDecorativeTransitionIntent, Za as arrangementAppearancePresets, Zo as softBoundaryOption, _a as plainTextToInlineText, as as resolveSectionBackground, co as resolveEffectiveArrangement, eo as automaticArrangementLook, ft as systemCustomizeFacetDefinitionsForBlock, go as filterLookIdsForPolicy, ho as filterLayoutProfilesForPolicy, io as resolveLookForBlock, is as parseCanonicalRuntimeBackground, mo as deriveSiteStyleBlockPolicy, ni as resolveDeclaredBlockDesignCapability, no as getCompatibleBlockAppearancePresets, ro as resolveArrangementLookForBlock, so as readStoredMode, ss as defaultHeroImageSurfaceTreatment, t as getBlockDefinition, to as compileArrangementLookRuntime, wo as stripCompiledRuntimeStyleFields, xo as getCuratedSiteStyle } from "./registry-KtsOsAzY.mjs";
3
+ import { C as asDesignBlockId, D as asPageFlowPresetId, E as asLayoutVariantKey, k as makeBoundaryId, v as isArrangementMode } from "./customCss-rtIfEYwQ.mjs";
4
+ import { r as sectionStylesOverrideSchema } from "./schema-BBEqquBM.mjs";
5
+ import { m as admitTransportedRenderableManifestContent, v as registeredManifestContentContract } from "./pageRuntimeSupport-CAhr4oOf.mjs";
6
+ import { n as isRecord, s as isRichTextDoc } from "./typeGuards-DZOaGTEv.mjs";
7
+ import { E as toNonEmptyReadonlyArray, S as plainFrame, _ as designIssueSeverityForPolicy, d as lookModes, f as assertNever, p as defineBlockDesignCapability, w as sectionBackgroundPaintValues } from "./lookMediaFrame-CTsycLLK.mjs";
8
8
  import { t as BINDING_TRANSFORMS } from "./bindings-DhmIW3Er.mjs";
9
9
  //#region ../theme-core/src/site-styles/resolver.ts
10
10
  const repairActionsByIssueKind = {