@riverbankcms/sdk 0.167.0 → 0.168.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-Dgb-ptph.d.ts → BlocksIslandsHydrator-CiD_VVGM.d.ts} +1 -1
  2. package/dist/_dts/{Page-Bs3WxFgr.d.ts → Page-Bj6VJRS5.d.ts} +7 -6
  3. package/dist/_dts/{SdkPreviewMode-DtUCsaHY.d.ts → SdkPreviewMode-ChpsnwDX.d.ts} +2 -2
  4. package/dist/_dts/{client-CwsI23pj.d.ts → client-C8mfUxrJ.d.ts} +65 -35
  5. package/dist/_dts/{content-types-CAeP_-cV.d.ts → content-types-_vXZyR4H.d.ts} +2 -2
  6. package/dist/_dts/{contracts-BXHCiF-b.d.ts → contracts-CJFfrVKU.d.ts} +5 -4
  7. package/dist/_dts/{footerPageOutline-Bb2gbppW.d.ts → footerPageOutline-CMegb23G.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-DaBBDx7M.d.ts → generatePageMetadata-D9YdAIMh.d.ts} +2 -2
  9. package/dist/_dts/{index-CS6b1B-c.d.ts → index-BQXaZ7aY.d.ts} +4 -4
  10. package/dist/_dts/{index-5_jf52sZ.d.ts → index-Bpr-wT5k.d.ts} +2 -2
  11. package/dist/_dts/{index-DeHDwMfu.d.ts → index-C7_Rz8EY.d.ts} +3 -3
  12. package/dist/_dts/{index-D7EbliE3.d.ts → index-Cx2BQlHL.d.ts} +3 -3
  13. package/dist/_dts/{index-C20yUyob.d.ts → index-Dgz6yhsy.d.ts} +1 -1
  14. package/dist/_dts/index-Vh8B9FSa.d.ts +14 -0
  15. package/dist/_dts/{index-bDln38Hm.d.ts → index-vR3p9Bu-.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-CTqcL7CS.d.ts → loadContent-dhWSgLeS.d.ts} +7 -7
  17. package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
  18. package/dist/_dts/{index-ChpjHK0U.d.ts → request-BrYhNV9Z.d.ts} +80718 -47665
  19. package/dist/_dts/{resolveBlockData-C3s9WMPs.d.ts → resolveBlockData-BfSHm8Ms.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-JPwgRxwh.d.ts → resolvePageContent-gZJ4i1wN.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  28. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  29. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  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 +2 -2
  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/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -5
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  54. package/dist/_dts/{types-CwtTcaQP.d.ts → types-BB33-Spd.d.ts} +3 -3
  55. package/dist/_dts/{types-D-WElMCy.d.ts → types-BVFXYtRg.d.ts} +7 -7
  56. package/dist/_dts/{types-BlaCuPLr.d.ts → types-FOsJ-KYb.d.ts} +4 -2
  57. package/dist/_dts/{validation-Y5wD9fGK.d.ts → validation-DckTc6TQ.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-DFqkx158.mjs → BlocksIslandsHydrator-DcwEaliO.mjs} +21 -21
  59. package/dist/client/BookingMailingListNote-Dsugoe-n.mjs +946 -0
  60. package/dist/client/BookingQuestionFields-Bhh0cvsl.mjs +359 -0
  61. package/dist/client/{CalendarNavigationChevron-DQwJ7BPx.mjs → CalendarNavigationChevron-CNe3ZjdC.mjs} +7 -7
  62. package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
  63. package/dist/client/{DemoBookingPortalAccess-DdkY86qI.mjs → DemoBookingPortalAccess-BeiZxEUJ.mjs} +7 -7
  64. package/dist/client/{EventCalendar.client-DAeQPV76.mjs → EventCalendar.client-BL943-tl.mjs} +9 -9
  65. package/dist/client/{EventCombined.client-Bus9R0bj.mjs → EventCombined.client-BFVxECTp.mjs} +8 -8
  66. package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
  67. package/dist/client/{EventItem-DPBLjGwj.mjs → EventItem-BIc4gjiD.mjs} +37 -15
  68. package/dist/client/{EventListWeekNavigation-D6cwU82_.mjs → EventListWeekNavigation-a0QEIEf0.mjs} +1 -1
  69. package/dist/client/{EventListing.client-Bogi_SnJ.mjs → EventListing.client-CEFTC3jH.mjs} +3 -3
  70. package/dist/client/{EventListing.view-CEumpN7i.mjs → EventListing.view-Bt2sBBms.mjs} +34 -16
  71. package/dist/client/{EventRegistrationPayment-CIQw6vNy.mjs → EventRegistrationPayment-D9YBNb_E.mjs} +250 -40
  72. package/dist/client/{LocationMapActions-BVO-qx4q.mjs → LocationMapActions-gqzt5gkW.mjs} +2 -2
  73. package/dist/client/{MapDrawingSvg-CcGaFawl.mjs → MapDrawingSvg-13JQI7_z.mjs} +1 -1
  74. package/dist/client/{Page-D4_H_u9V.mjs → Page-D_M2Vxz3.mjs} +4471 -1601
  75. package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
  76. package/dist/client/{StepIndicator-Dptantmg.mjs → StepIndicator-CaN8snZ8.mjs} +3 -3
  77. package/dist/client/{TabBarFragment-BxEGsKUx.mjs → TabBarFragment-DkVKtK5a.mjs} +1 -1
  78. package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
  79. package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
  80. package/dist/client/{accordion--EUHmEGa.mjs → accordion-DE7OG--d.mjs} +1 -1
  81. package/dist/client/{booking-form.client-BCXwOnhc.mjs → booking-form.client-CS1PPjw7.mjs} +842 -374
  82. package/dist/client/{bookingForm-sHHcdism.mjs → bookingForm-DE2CwIU9.mjs} +5 -4
  83. package/dist/client/{src-DjnxOjXG.mjs → bookingQuestionValues-BjcyCru5.mjs} +88 -1
  84. package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
  85. package/dist/client/bookings.mjs +18 -13
  86. package/dist/client/{carousel-Cp9xPBFZ.mjs → carousel-DZyUdnFh.mjs} +3 -3
  87. package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
  88. package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
  89. package/dist/client/{cart-CCZZC-Lq.mjs → cart-D7HkkNwe.mjs} +3 -3
  90. package/dist/client/{cart.client-B7JfA19I.mjs → cart.client-H4sv2TpD.mjs} +1 -1
  91. package/dist/client/{checkout-CipmYL4A.mjs → checkout-2qVyG-Sh.mjs} +3 -3
  92. package/dist/client/{checkout.client-DraalWdH.mjs → checkout.client-DAjrBZ74.mjs} +1 -1
  93. package/dist/client/client.mjs +240 -63
  94. package/dist/client/{context-Cv3QHjAF.mjs → context-DXmIbXCK.mjs} +297 -3
  95. package/dist/client/{cta-P2vJVTEn.mjs → cta-DP_IBnq3.mjs} +2 -2
  96. package/dist/client/{dateFormatting-D8D47VT4.mjs → dateFormatting-CwrkFZTr.mjs} +1 -1
  97. package/dist/client/{demoPortalMagicLink-CXWZoV-d.mjs → demoPortalMagicLink-DQXK-Fh6.mjs} +1 -1
  98. package/dist/client/{enhanceHeaderSection-BkAro1DJ.mjs → enhanceHeaderSection-DheQj7rg.mjs} +3 -3
  99. package/dist/client/{event-details.client-dLmyuPap.mjs → event-details.client-C5UufcRp.mjs} +1 -1
  100. package/dist/client/{event-registration.client-BEhC2_-Y.mjs → event-registration.client-CMGg63IU.mjs} +72 -235
  101. package/dist/client/{eventCalendar-FBMS2Cpb.mjs → eventCalendar-DlD0GCEy.mjs} +4 -4
  102. package/dist/client/{eventCombined-BrBhUvGe.mjs → eventCombined-DoSi8p_l.mjs} +4 -4
  103. package/dist/client/{eventDetails-C7WUrbZ2.mjs → eventDetails-DzuQYgmO.mjs} +2 -2
  104. package/dist/client/{eventListing-Bih-BgQM.mjs → eventListing-CkiMjl0g.mjs} +4 -4
  105. package/dist/client/{eventRegistration-DfTlqGbl.mjs → eventRegistration-CjS3Zpjp.mjs} +4 -4
  106. package/dist/client/{form-Bw1uuiUs.mjs → form-DgQqm7T2.mjs} +3 -3
  107. package/dist/client/{form.client-pZ-9gN33.mjs → form.client-BI9Dcsq5.mjs} +5 -5
  108. package/dist/client/{form.parts-PXlu6XQO.mjs → form.parts-DevF0L_A.mjs} +3 -3
  109. package/dist/client/{formatDate-DI3DP48e.mjs → formatDate-DDyURjoe.mjs} +1 -1
  110. package/dist/client/gifting/client.mjs +3 -3
  111. package/dist/client/{headerSection-BpJYUMd6.mjs → headerSection-DYIG6Pwb.mjs} +2 -2
  112. package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
  113. package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
  114. package/dist/client/{newsletter-form.client-CSoP0cGR.mjs → newsletter-form.client-BWp7Y1e1.mjs} +6 -6
  115. package/dist/client/{newsletter-form.parts-DDbX_Sj0.mjs → newsletter-form.parts-Dg8s9NwJ.mjs} +2 -2
  116. package/dist/client/{newsletterForm-vCxYRar_.mjs → newsletterForm-DnPraMzx.mjs} +3 -3
  117. package/dist/client/{noop-ByVtIWf4.mjs → noop-ByFRHYQ2.mjs} +437 -496
  118. package/dist/client/portal/client.mjs +76 -229
  119. package/dist/client/{product-detail.client-7Pi6avM-.mjs → product-detail.client-BFAgHrdg.mjs} +1 -1
  120. package/dist/client/{product-list.client-DEad-Pma.mjs → product-list.client-DVrs_DyY.mjs} +1 -1
  121. package/dist/client/{productDetail-G1SMXG13.mjs → productDetail-D4rvl6Xg.mjs} +3 -3
  122. package/dist/client/{productList-B21TGdpT.mjs → productList-B8o5AOMX.mjs} +3 -3
  123. package/dist/client/{propsDecoder-B3vIBkex.mjs → propsDecoder-hhotPP6P.mjs} +5 -4
  124. package/dist/client/{registry.server-B8aQhJpO.mjs → registry.server-Ch3EpupA.mjs} +2213 -2433
  125. package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
  126. package/dist/client/rendering/client.mjs +30 -30
  127. package/dist/client/rendering/islands.mjs +1 -1
  128. package/dist/client/rendering.mjs +10 -9
  129. package/dist/client/{richText-coerce-DHkBtO0G.mjs → richText-coerce-C3LabQ1O.mjs} +1 -1
  130. package/dist/client/{routeIslandApiConfig-DbHX4JOS.mjs → routeIslandApiConfig-CQGlxId8.mjs} +1 -1
  131. package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
  132. package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
  133. package/dist/client/{shop-commerce-B2UmrQg_.mjs → shop-commerce-VDbVaKY-.mjs} +12 -12
  134. package/dist/client/{shop-commerce-store-B7n-Z7nY.mjs → shop-commerce-store-DqdgJ8Zw.mjs} +1 -1
  135. package/dist/client/{shop-mqyoOvOK.mjs → shop-rRXplPGZ.mjs} +3 -3
  136. package/dist/client/{shop.client-BH-BBnA9.mjs → shop.client-DdwvMvaK.mjs} +13 -13
  137. package/dist/client/{shop.interactive-mdM3UMWG.mjs → shop.interactive-C8OvFY06.mjs} +141 -66
  138. package/dist/client/{shopShared-CXF5wxdg.mjs → shopShared-BeuJiGPU.mjs} +2 -2
  139. package/dist/client/spam-protection.mjs +1 -1
  140. package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
  141. package/dist/client/{timetableModel-CrC80EOG.mjs → timetableModel-Cko9LRKy.mjs} +11 -11
  142. package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
  143. package/dist/client/{useAvailableSlots-C4LOaI_Z.mjs → useAvailableSlots-M6QIEiWf.mjs} +3 -3
  144. package/dist/client/{useDiscountApply-6Q0nToVA.mjs → useDiscountApply-BJSnyO0f.mjs} +3 -3
  145. package/dist/client/{useDiscountCodeUi-CM-DTX5X.mjs → useDiscountCodeUi-D3XnOSCi.mjs} +1 -1
  146. package/dist/client/{useEventPagination-Bcs89BR5.mjs → useEventPagination-PhTIoFVX.mjs} +7 -7
  147. package/dist/client/{view-BN-fxyfq.mjs → view-448wvvEY.mjs} +11 -7
  148. package/dist/client/{view-Dh2tGoS0.mjs → view-L_mkgtnk.mjs} +4 -4
  149. package/dist/client/{site-styles-D56hT2u1.mjs → wizardSteps-CFulHWnT.mjs} +19660 -18565
  150. package/dist/preview-next/client/{ArrangementLookControls-D4VjPs-r.mjs → ArrangementLookControls-BpvnOGlN.mjs} +26 -17
  151. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
  152. package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
  153. package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
  154. package/dist/preview-next/client/{PreviewEditorSidebar-Ckr2zk_L.mjs → PreviewEditorSidebar-C0OtdWu_.mjs} +128 -21
  155. package/dist/preview-next/client/{PreviewEditorUI-KOZgw_gS.mjs → PreviewEditorUI-Csc5vH5k.mjs} +6 -6
  156. package/dist/preview-next/client/{PreviewShell-CyO2V4kB.mjs → PreviewShell-BOLH_pm-.mjs} +199 -155
  157. package/dist/preview-next/client/{SdkPreviewModeRuntime-DW3uKvNF.mjs → SdkPreviewModeRuntime-CKodLReY.mjs} +31 -32
  158. package/dist/preview-next/client/{SiteChromeCustomizeButton-CU9VD-7O.mjs → SiteChromeCustomizeButton-BeEZpeKn.mjs} +3780 -3436
  159. package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
  160. package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
  161. package/dist/preview-next/client/{previewAssistantSlot-DBi-WybM.mjs → previewAssistantSlot-BBdN5kfY.mjs} +18697 -15557
  162. package/dist/preview-next/client/{previewChromeSurface-BhkUJst9.mjs → previewChromeSurface-VZtGwPuH.mjs} +1 -1
  163. package/dist/preview-next/client/runtime.mjs +3 -3
  164. package/dist/preview-next/client/{sdk-runtime-BjCb6lOn.mjs → sdk-runtime-kiZkMcuR.mjs} +2 -2
  165. package/dist/preview-next/client/{useAutosaveStatus-CKxTaC3j.mjs → useAutosaveStatus-BiIHEeE0.mjs} +2 -2
  166. package/dist/preview-next/client/{useBlockCustomizeControls-B7MLTjBX.mjs → useBlockCustomizeControls-BuFLIpmX.mjs} +2 -2
  167. package/dist/preview-next/client/{useOpenBlockForSetup-BTUc0g9X.mjs → useOpenBlockForSetup-DlxYgmh_.mjs} +1 -1
  168. package/dist/preview-next/keepAlive.mjs +1 -1
  169. package/dist/preview-next/middleware.mjs +1 -1
  170. package/dist/preview-next/{route-contract-Bv3nkdpV.mjs → route-contract-C0sCvCYL.mjs} +165 -0
  171. package/dist/server/{Block.shared-4fMqzltx.mjs → Block.shared-Dnhc0Wu5.mjs} +5 -5
  172. package/dist/server/{ThemeScopeCore-C72VC_lR.mjs → ThemeScopeCore-NAQ_zsFu.mjs} +461 -128
  173. package/dist/server/{accessibleSurfaces-B_Y_dA20.mjs → accessibleSurfaces-108nxyGc.mjs} +319 -131
  174. package/dist/server/{bindings-ConMYJ2U.mjs → bindings-DLoZYUxG.mjs} +2 -2
  175. package/dist/server/{client-Cot-H5fQ.mjs → client-Bc8jI8zN.mjs} +261 -61
  176. package/dist/server/config-validation.mjs +1 -1
  177. package/dist/server/config.mjs +1 -1
  178. package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
  179. package/dist/server/data/resolveBlockData.mjs +1 -1
  180. package/dist/server/headerVariant-BwR9NV4b.mjs +463 -0
  181. package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
  182. package/dist/server/index.mjs +3 -3
  183. package/dist/server/{loadContent-BkaWYEwt.mjs → loadContent-D61gpqHB.mjs} +4 -5
  184. package/dist/server/{loadPage-kviUdH8c.mjs → loadPage-B4ZYpIcd.mjs} +2 -2
  185. package/dist/server/manifest.mjs +1 -1
  186. package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
  187. package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
  188. package/dist/server/next.mjs +6 -6
  189. package/dist/server/{opaqueSurface-BTnS09GS.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
  190. package/dist/server/{overrideResolution-itXZCXs7.mjs → overrideResolution-CDReKy2P.mjs} +1 -1
  191. package/dist/server/page-converter.mjs +3 -3
  192. package/dist/server/{pageRenderPlan-CDyn7iLy.mjs → pageRenderPlan-ByVTA7-4.mjs} +255 -158
  193. package/dist/server/{pageRuntimeSupport-DZ6cLxrM.mjs → pageRuntimeSupport-Dzz_Dze6.mjs} +291 -5
  194. package/dist/server/{pageShared-Q_Vij87H.mjs → pageShared-Dk5Ku6hs.mjs} +1285 -897
  195. package/dist/server/{schema-DEizlyi4.mjs → parseThemeForPersistence-pJPGfMrf.mjs} +593 -1592
  196. package/dist/server/{prebuild-DOG4MkOy.mjs → prebuild-CW4M0WEZ.mjs} +1 -1
  197. package/dist/server/prebuild.mjs +1 -1
  198. package/dist/server/{prefetchBlockData-DlprLLsc.mjs → prefetchBlockData-Bvx0SiIM.mjs} +5 -4
  199. package/dist/server/{registry-BPFcpn6k.mjs → registry-Bh0Y25zH.mjs} +4399 -4065
  200. package/dist/server/rendering/components/pageShared.mjs +1 -1
  201. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  202. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  203. package/dist/server/rendering/server.mjs +3 -3
  204. package/dist/server/rendering.mjs +8 -8
  205. package/dist/server/{resolveBlockData-BHvfGD4y.mjs → resolveBlockData-CnHHst9r.mjs} +1 -1
  206. package/dist/server/{resolveButtonColourStates-OXFRGn5M.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +399 -518
  207. package/dist/server/{responseMedia-D8J3VAFs.mjs → responseMedia-t6gs0cB7.mjs} +2 -2
  208. package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
  209. package/dist/server/server.mjs +3 -3
  210. package/dist/server/theme-bridge.mjs +2 -3
  211. package/dist/server/theme.mjs +1 -2
  212. package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
  213. package/dist/server/{validation-bl6WcAi_.mjs → validation-D2bHWSxJ.mjs} +57 -8
  214. package/dist/server/{version-BLXZ31S-.mjs → version-DkM1eAxG.mjs} +1 -1
  215. package/dist/styles/index.css +340 -68
  216. package/package.json +4 -3
  217. package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
  218. package/dist/_dts/index-RugyUnqR.d.ts +0 -31535
  219. package/dist/client/BookingMailingListNote-CCVXX1LN.mjs +0 -331
  220. package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
  221. package/dist/client/site-styles-CMCUxsIM.mjs +0 -3
  222. package/dist/client/useBookingNowIso-BDmWkYUW.mjs +0 -58
  223. package/dist/client/wizardSteps-DtkhwKXK.mjs +0 -6933
  224. package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +0 -52
@@ -1,5 +1,55 @@
1
- import { $ as maxContrastBlackOrWhite, A as opaqueButtonColourTokenSchema, B as pickBlackOrWhiteTextColor, F as deriveSurfaceMutedColor, Ft as parseColorTokenParts, H as normalizePaletteHex, M as colourFamily, Mt as parseThemeColorToken, N as oklabDistance, P as deriveSurfaceDecorationColors, Q as contrastRatio, R as onColorTokenName, T as buttonSystemSchema, V as hexColorSchema, X as ORDINARY_TEXT_MIN_CONTRAST_RATIO, Z as assertContrastRatio, _ as generateShadowValue, at as hexToRgb, b as VARIANT_ROLES, f as BORDER_RADIUS_MAP, g as FONT_SIZE_MAP, h as ELEVATION_OFFSET, ht as completeSurfaceForegrounds, i as BUTTON_VISUAL_STATES, it as featuresFromHex, l as resolveThemeColorReferenceValue, lt as oklchToOklab, n as compileButtonColourStates, nt as solidPaint, p as BORDER_WIDTH_MAP, rt as worstContrast, s as parseThemeColorReference, st as oklabToSrgb, t as buttonStateBorder, tt as relativeLuminance, ut as rgbToHex, y as STANDARD_BUTTON_SURFACE_POLICY } from "./resolveButtonColourStates-OXFRGn5M.mjs";
1
+ import { B as relativeLuminance, C as opaqueButtonColourTokenSchema, D as oklabDistance, E as colourFamily, Et as parseThemeColorToken, F as ORDINARY_TEXT_MIN_CONTRAST_RATIO, H as worstContrast, I as assertContrastRatio, J as oklchToOklab, K as oklabToSrgb, L as contrastRatio, M as onColorTokenName, O as deriveSurfaceDecorationColors, P as pickBlackOrWhiteTextColor, R as maxContrastBlackOrWhite, St as paletteColorsFromEntries, T as VARIANT_ROLES, Tt as parseColorTokenParts, U as featuresFromHex, V as solidPaint, W as hexToRgb, Y as rgbToHex, a as BORDER_RADIUS_MAP, b as buttonSystemSchema, bt as normalizePaletteHex, c as ELEVATION_OFFSET, et as completeSurfaceForegrounds, f as STANDARD_BUTTON_SURFACE_POLICY, ft as rgbColorValue, gt as PALETTE_TOKEN_NAMES, k as deriveSurfaceMutedColor, l as FONT_SIZE_MAP, n as compileButtonColourStates, o as BORDER_WIDTH_MAP, t as buttonStateBorder, u as generateShadowValue, vt as hexColorSchema, wt as paletteModeSchema } from "./resolveButtonColourStates-Cn6j8Ee0.mjs";
2
2
  import { z } from "zod";
3
+ //#region ../theme-core/src/palette/colors.ts
4
+ const PALETTE_VALUE_KEY_PREFIX = "palette-value:v1|";
5
+ z.string().regex(/^[0-9a-f]{64}$/, "Palette hash must be a lowercase SHA-256 value").transform((value) => value);
6
+ function requirePaletteColorsFromEntries(entries) {
7
+ const result = paletteColorsFromEntries(entries);
8
+ if (result.ok) return result.colors;
9
+ throw new Error(`Invalid complete palette: ${result.error.kind}`);
10
+ }
11
+ function paletteColorFingerprint(colors) {
12
+ return PALETTE_TOKEN_NAMES.map((name) => `${name}:${colors[name]}`).join("|");
13
+ }
14
+ function canonicalPaletteHashInput(colors, mode) {
15
+ return `${mode}|${paletteColorFingerprint(colors)}`;
16
+ }
17
+ /**
18
+ * Stable curated-catalogue identity. Do not reorder roles: the order comes
19
+ * from PALETTE_TOKEN_NAMES through canonicalPaletteHashInput.
20
+ */
21
+ function paletteValueKey(colors, mode) {
22
+ return `${PALETTE_VALUE_KEY_PREFIX}${canonicalPaletteHashInput(colors, mode)}`;
23
+ }
24
+ /** Parses only the exact v1 canonical form emitted by paletteValueKey. */
25
+ function parsePaletteValueKey(value) {
26
+ if (typeof value !== "string" || !value.startsWith(PALETTE_VALUE_KEY_PREFIX)) return null;
27
+ const [rawMode, ...rawRoles] = value.slice(17).split("|");
28
+ const mode = paletteModeSchema.safeParse(rawMode);
29
+ if (!mode.success || rawRoles.length !== PALETTE_TOKEN_NAMES.length) return null;
30
+ const colors = paletteColorsFromEntries(rawRoles.map((roleValue) => {
31
+ const separator = roleValue.indexOf(":");
32
+ return separator === -1 ? {
33
+ name: "",
34
+ hex: ""
35
+ } : {
36
+ name: roleValue.slice(0, separator),
37
+ hex: roleValue.slice(separator + 1)
38
+ };
39
+ }));
40
+ if (!colors.ok || paletteValueKey(colors.colors, mode.data) !== value) return null;
41
+ return value;
42
+ }
43
+ const paletteValueKeySchema = z.string().transform((value, ctx) => {
44
+ const parsed = parsePaletteValueKey(value);
45
+ if (parsed) return parsed;
46
+ ctx.addIssue({
47
+ code: "custom",
48
+ message: "Invalid canonical palette value key"
49
+ });
50
+ return z.NEVER;
51
+ });
52
+ //#endregion
3
53
  //#region ../theme-core/src/palette/utils/opaqueSurfaceColor.ts
4
54
  /** Resolve an opaque colour, compositing alpha against an explicit underlay. */
5
55
  function resolveOpaqueSurfaceHex(reference, palette, underlayReference) {
@@ -121,6 +171,121 @@ function survivesEveryBackdrop(token, palette, backdrops) {
121
171
  });
122
172
  }
123
173
  //#endregion
174
+ //#region ../site-contracts/src/renderResults/buttonTypes.ts
175
+ const BUTTON_VISUAL_STATES = [
176
+ "base",
177
+ "hover",
178
+ "focus",
179
+ "active",
180
+ "disabled"
181
+ ];
182
+ //#endregion
183
+ //#region ../theme-core/src/surfaces/inkCertificate.ts
184
+ /**
185
+ * The ink certificate: every colour the site paints text or a mark on is held to
186
+ * its threshold here, on every backdrop it shows. An ink that misses takes the
187
+ * black/white ink that clears all of them; inks that pass are kept as they are,
188
+ * so a palette that already passes paints exactly what it declared. It never
189
+ * throws, because owner palettes are arbitrary.
190
+ *
191
+ * Surfaces (`certifySurface`), every measured foreground (`resolveSurfaceForeground`)
192
+ * and the chrome colours painted outside a foreground contract all certify here.
193
+ */
194
+ const contrastThresholdByPolicy = {
195
+ "body-aa": 4.5,
196
+ "large-text-aa": 3,
197
+ decorative: 1
198
+ };
199
+ /** Headings are large text; every other foreground role is ordinary text. */
200
+ const surfaceTextPolicy = Object.freeze({
201
+ heading: "large-text-aa",
202
+ text: "body-aa",
203
+ link: "body-aa",
204
+ linkHover: "body-aa",
205
+ supporting: "body-aa",
206
+ muted: "body-aa"
207
+ });
208
+ /**
209
+ * Text shown only while a pointer hovers needs 3:1: the reader has already
210
+ * found it at rest, where it holds 4.5:1. States that stay on screen (open,
211
+ * the current-page link) keep the text threshold.
212
+ */
213
+ const HOVER_TEXT_THRESHOLD = contrastThresholdByPolicy["large-text-aa"];
214
+ const FALLBACK_INKS = ["#000000", "#FFFFFF"];
215
+ const isFallbackInk = (ink) => FALLBACK_INKS.includes(ink);
216
+ function inkReference(ink) {
217
+ return isFallbackInk(ink) ? `raw:${ink}` : ink;
218
+ }
219
+ /** A token, `rgba()` or literal, composited over each backdrop, clears the threshold on all of them. */
220
+ function inkClearsBackdrops(ink, threshold, backdrops, measurement) {
221
+ return backdrops.every((backdrop) => {
222
+ const hex = resolveOpaqueSurfaceHex(ink, measurement.palette, backdrop);
223
+ return hex !== null && contrastRatio(hex, backdrop, measurement.colourIndex) >= threshold;
224
+ });
225
+ }
226
+ /** The black/white ink that clears every backdrop at ordinary-text contrast, preferring the best one for the painted end. */
227
+ function fallbackInk(backdrops, measurement) {
228
+ const [endpoint] = backdrops.slice(-1);
229
+ return [...endpoint ? [pickBlackOrWhiteTextColor(endpoint)] : [], ...FALLBACK_INKS].find((candidate) => inkClearsBackdrops(candidate, contrastThresholdByPolicy["body-aa"], backdrops, measurement)) ?? null;
230
+ }
231
+ function failingInks(inks, backdrops, measurement) {
232
+ return {
233
+ roles: Object.keys(inks.foreground).filter((role) => !inkClearsBackdrops(inks.foreground[role], contrastThresholdByPolicy[surfaceTextPolicy[role]], backdrops, measurement)),
234
+ mark: inks.mark !== void 0 && !inkClearsBackdrops(inks.mark, 3, backdrops, measurement) ? ["mark"] : []
235
+ };
236
+ }
237
+ function replaceFailing(inks, failing, ink) {
238
+ return {
239
+ foreground: {
240
+ ...inks.foreground,
241
+ ...Object.fromEntries(failing.roles.map((role) => [role, ink]))
242
+ },
243
+ ...inks.mark === void 0 ? {} : { mark: failing.mark.length > 0 ? ink : inks.mark },
244
+ fallback: [...failing.roles, ...failing.mark]
245
+ };
246
+ }
247
+ /**
248
+ * Hold every role to its text policy and the mark to 3:1 on every backdrop.
249
+ * Null only when neither black nor white clears every backdrop, which only a
250
+ * radial tint's samples can do: `certifySolidSurfaceInks` is the total form for
251
+ * one solid backdrop.
252
+ */
253
+ function certifySurfaceInks(inks, backdrops, measurement) {
254
+ const failing = failingInks(inks, backdrops, measurement);
255
+ if (failing.roles.length === 0 && failing.mark.length === 0) return {
256
+ ...inks,
257
+ fallback: []
258
+ };
259
+ const ink = fallbackInk(backdrops, measurement);
260
+ return ink ? replaceFailing(inks, failing, ink) : null;
261
+ }
262
+ /** One solid backdrop: black or white always reaches 4.58:1 on it, so certification always succeeds. */
263
+ function certifySolidSurfaceInks(inks, backdrop, measurement) {
264
+ const failing = failingInks(inks, [backdrop], measurement);
265
+ if (failing.roles.length === 0 && failing.mark.length === 0) return {
266
+ ...inks,
267
+ fallback: []
268
+ };
269
+ return replaceFailing(inks, failing, pickBlackOrWhiteTextColor(backdrop));
270
+ }
271
+ /** Kept when the ink clears the threshold, otherwise the black/white ink, which always clears a solid backdrop. */
272
+ function certifyPaint(place, ink, threshold, backdrop, measurement) {
273
+ return inkClearsBackdrops(ink, threshold, [backdrop], measurement) ? {
274
+ place,
275
+ ink,
276
+ backdrop,
277
+ threshold,
278
+ fallback: false
279
+ } : {
280
+ place,
281
+ ink: pickBlackOrWhiteTextColor(backdrop),
282
+ backdrop,
283
+ threshold,
284
+ fallback: true,
285
+ declared: ink
286
+ };
287
+ }
288
+ //#endregion
124
289
  //#region ../theme-core/src/palette/utils/inkSolver.ts
125
290
  /**
126
291
  * How far (OKLab ΔE) a brand colour drawn as ink may be nudged along its own
@@ -240,102 +405,6 @@ function familyOf(seed) {
240
405
  return family;
241
406
  }
242
407
  //#endregion
243
- //#region ../theme-core/src/surfaces/inkCertificate.ts
244
- const contrastThresholdByPolicy = {
245
- "body-aa": 4.5,
246
- "large-text-aa": 3,
247
- decorative: 1
248
- };
249
- /** Headings are large text; every other foreground role is ordinary text. */
250
- const surfaceTextPolicy = Object.freeze({
251
- heading: "large-text-aa",
252
- text: "body-aa",
253
- link: "body-aa",
254
- linkHover: "body-aa",
255
- supporting: "body-aa",
256
- muted: "body-aa"
257
- });
258
- /**
259
- * Text shown only while a pointer hovers needs 3:1: the reader has already
260
- * found it at rest, where it holds 4.5:1. States that stay on screen (open,
261
- * the current-page link) keep the text threshold.
262
- */
263
- const HOVER_TEXT_THRESHOLD = contrastThresholdByPolicy["large-text-aa"];
264
- const FALLBACK_INKS = ["#000000", "#FFFFFF"];
265
- const isFallbackInk = (ink) => FALLBACK_INKS.includes(ink);
266
- function inkReference(ink) {
267
- return isFallbackInk(ink) ? `raw:${ink}` : ink;
268
- }
269
- /** A token, `rgba()` or literal, composited over each backdrop, clears the threshold on all of them. */
270
- function inkClearsBackdrops(ink, threshold, backdrops, measurement) {
271
- return backdrops.every((backdrop) => {
272
- const hex = resolveOpaqueSurfaceHex(ink, measurement.palette, backdrop);
273
- return hex !== null && contrastRatio(hex, backdrop, measurement.colourIndex) >= threshold;
274
- });
275
- }
276
- /** The black/white ink that clears every backdrop at ordinary-text contrast, preferring the best one for the painted end. */
277
- function fallbackInk(backdrops, measurement) {
278
- const [endpoint] = backdrops.slice(-1);
279
- return [...endpoint ? [pickBlackOrWhiteTextColor(endpoint)] : [], ...FALLBACK_INKS].find((candidate) => inkClearsBackdrops(candidate, contrastThresholdByPolicy["body-aa"], backdrops, measurement)) ?? null;
280
- }
281
- function failingInks(inks, backdrops, measurement) {
282
- return {
283
- roles: Object.keys(inks.foreground).filter((role) => !inkClearsBackdrops(inks.foreground[role], contrastThresholdByPolicy[surfaceTextPolicy[role]], backdrops, measurement)),
284
- mark: inks.mark !== void 0 && !inkClearsBackdrops(inks.mark, 3, backdrops, measurement) ? ["mark"] : []
285
- };
286
- }
287
- function replaceFailing(inks, failing, ink) {
288
- return {
289
- foreground: {
290
- ...inks.foreground,
291
- ...Object.fromEntries(failing.roles.map((role) => [role, ink]))
292
- },
293
- ...inks.mark === void 0 ? {} : { mark: failing.mark.length > 0 ? ink : inks.mark },
294
- fallback: [...failing.roles, ...failing.mark]
295
- };
296
- }
297
- /**
298
- * Hold every role to its text policy and the mark to 3:1 on every backdrop.
299
- * Null only when neither black nor white clears every backdrop, which only a
300
- * radial tint's samples can do: `certifySolidSurfaceInks` is the total form for
301
- * one solid backdrop.
302
- */
303
- function certifySurfaceInks(inks, backdrops, measurement) {
304
- const failing = failingInks(inks, backdrops, measurement);
305
- if (failing.roles.length === 0 && failing.mark.length === 0) return {
306
- ...inks,
307
- fallback: []
308
- };
309
- const ink = fallbackInk(backdrops, measurement);
310
- return ink ? replaceFailing(inks, failing, ink) : null;
311
- }
312
- /** One solid backdrop: black or white always reaches 4.58:1 on it, so certification always succeeds. */
313
- function certifySolidSurfaceInks(inks, backdrop, measurement) {
314
- const failing = failingInks(inks, [backdrop], measurement);
315
- if (failing.roles.length === 0 && failing.mark.length === 0) return {
316
- ...inks,
317
- fallback: []
318
- };
319
- return replaceFailing(inks, failing, pickBlackOrWhiteTextColor(backdrop));
320
- }
321
- /** Kept when the ink clears the threshold, otherwise the black/white ink, which always clears a solid backdrop. */
322
- function certifyPaint(place, ink, threshold, backdrop, measurement) {
323
- return inkClearsBackdrops(ink, threshold, [backdrop], measurement) ? {
324
- place,
325
- ink,
326
- backdrop,
327
- threshold,
328
- fallback: false
329
- } : {
330
- place,
331
- ink: pickBlackOrWhiteTextColor(backdrop),
332
- backdrop,
333
- threshold,
334
- fallback: true,
335
- declared: ink
336
- };
337
- }
338
- //#endregion
339
408
  //#region ../theme-core/src/surfaces/resolveSurfaceForeground.ts
340
409
  const FALLBACK_TEXT_TOKENS = [
341
410
  "text",
@@ -526,19 +595,125 @@ function normalizedReference(value) {
526
595
  }
527
596
  //#endregion
528
597
  //#region ../theme-core/src/site-styles/ownedThemeSnapshot.ts
598
+ const ownedThemeValues = /* @__PURE__ */ new WeakSet();
599
+ function isOwnedThemeValue(value) {
600
+ return ownedThemeValues.has(value);
601
+ }
529
602
  /** Copy before freezing: the editor still owns its source data. */
530
603
  function ownedThemeSnapshot(input) {
531
- return freezeOwnedThemeValue(structuredClone(input));
604
+ return typeof input === "object" && input !== null && isOwnedThemeValue(input) ? input : freezeOwnedThemeValue(structuredClone(input));
532
605
  }
533
606
  /** Only freshly owned data belongs here; no caller-owned object is frozen. */
534
607
  function freezeOwnedThemeValue(value) {
535
608
  if (typeof value === "object" && value !== null) {
609
+ if (ownedThemeValues.has(value)) return value;
536
610
  Object.values(value).forEach(freezeOwnedThemeValue);
537
611
  Object.freeze(value);
612
+ ownedThemeValues.add(value);
538
613
  }
539
614
  return value;
540
615
  }
541
616
  //#endregion
617
+ //#region ../theme-core/src/utils/tokenOrColor.ts
618
+ const CSS_COLOR_FUNCTION_PATTERN = /^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\(/i;
619
+ const CSS_HEX_COLOR_PATTERN = /^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
620
+ const CSS_COLOR_KEYWORDS = /* @__PURE__ */ new Set([
621
+ "transparent",
622
+ "currentcolor",
623
+ "inherit",
624
+ "initial",
625
+ "revert",
626
+ "revert-layer",
627
+ "unset"
628
+ ]);
629
+ const COMMON_CSS_NAMED_COLORS = /* @__PURE__ */ new Set([
630
+ "black",
631
+ "blue",
632
+ "gray",
633
+ "green",
634
+ "grey",
635
+ "orange",
636
+ "pink",
637
+ "purple",
638
+ "red",
639
+ "white",
640
+ "yellow"
641
+ ]);
642
+ function isCssColorLiteral(value) {
643
+ const trimmed = value.trim();
644
+ if (!trimmed) return false;
645
+ return CSS_HEX_COLOR_PATTERN.test(trimmed) || CSS_COLOR_FUNCTION_PATTERN.test(trimmed) || /^var\(/i.test(trimmed) || CSS_COLOR_KEYWORDS.has(trimmed.toLowerCase());
646
+ }
647
+ function parseThemeToken(token) {
648
+ const trimmed = token.trim();
649
+ const match = trimmed.match(/^(.*?)-(\d{2,3})$/);
650
+ if (!match) return {
651
+ role: trimmed,
652
+ shade: null
653
+ };
654
+ const role = match[1] ?? trimmed;
655
+ const shade = match[2] ? Number(match[2]) : null;
656
+ return {
657
+ role,
658
+ shade: Number.isFinite(shade) ? shade : null
659
+ };
660
+ }
661
+ function parseContextThemeColorToken(value, context) {
662
+ const parts = parseColorTokenParts(value);
663
+ if (parts.kind !== "token") return null;
664
+ if (!(Boolean(context?.palette?.[value.trim()]) || parts.opacityPercent !== null && Boolean(context?.palette?.[parts.token]))) return null;
665
+ return value.trim();
666
+ }
667
+ function isTokenShapedTypo(value) {
668
+ if (COMMON_CSS_NAMED_COLORS.has(value.toLowerCase())) return false;
669
+ if (!/^[a-zA-Z][a-zA-Z0-9]*(?:-[a-zA-Z0-9]+)*(?:\/[^/]+)?$/.test(value)) return false;
670
+ return !isCssColorLiteral(value);
671
+ }
672
+ function warnUnknownThemeColorReference(value) {
673
+ if (typeof process !== "undefined" && process.env.NODE_ENV === "production") return;
674
+ if (!isTokenShapedTypo(value)) return;
675
+ console.warn(`[theme-core] Unknown Theme V2 color token "${value}" treated as literal CSS. Use raw:* for deliberate custom CSS values.`);
676
+ }
677
+ function parseThemeColorReference(input, context) {
678
+ const trimmed = input.trim();
679
+ if (trimmed.startsWith("raw:")) return {
680
+ kind: "literal-css",
681
+ value: trimmed.slice(4)
682
+ };
683
+ const contextToken = parseContextThemeColorToken(trimmed, context);
684
+ if (contextToken) return {
685
+ kind: "palette-context-token",
686
+ token: contextToken
687
+ };
688
+ const knownToken = parseThemeColorToken(trimmed);
689
+ if (knownToken) return {
690
+ kind: "theme-token",
691
+ token: knownToken
692
+ };
693
+ warnUnknownThemeColorReference(trimmed);
694
+ return {
695
+ kind: "literal-css",
696
+ value: trimmed
697
+ };
698
+ }
699
+ function resolveThemeColorReferenceValue(input, context) {
700
+ const reference = parseThemeColorReference(input, context);
701
+ return reference.kind === "literal-css" ? reference.value : rgbColorValue(reference.token);
702
+ }
703
+ function resolveTokenOrCssColorValue(input, context) {
704
+ return resolveThemeColorReferenceValue(input, context);
705
+ }
706
+ function resolveOnColorForThemeToken(token) {
707
+ if (!parseThemeColorToken(token)) return null;
708
+ const parts = parseColorTokenParts(token);
709
+ if (parts.kind !== "token") return null;
710
+ const { role, shade } = parseThemeToken(parts.token);
711
+ const normalizedRole = role.trim();
712
+ if (!normalizedRole) return null;
713
+ if (!shade) return rgbColorValue(`on${normalizedRole.charAt(0).toUpperCase() + normalizedRole.slice(1)}`);
714
+ return shade <= 400 ? "#000000" : "#FFFFFF";
715
+ }
716
+ //#endregion
542
717
  //#region ../theme-core/src/buttons/styles/domain.ts
543
718
  const PUBLIC_BUTTON_ROLES = VARIANT_ROLES;
544
719
  function defineButtonStyleRecipe(recipe) {
@@ -1073,7 +1248,7 @@ function candidateVariant(fallback, requested, system) {
1073
1248
  }
1074
1249
  /** Each state's border travels with the decision, copied so freezing it never touches the caller's variant. */
1075
1250
  function withBorderEvidence(value, variant) {
1076
- const borders = freezeOwnedThemeValue(ownedThemeSnapshot(Object.fromEntries(BUTTON_VISUAL_STATES.map((state) => [state, buttonStateBorder(variant, state)]))));
1251
+ const borders = ownedThemeSnapshot(Object.fromEntries(BUTTON_VISUAL_STATES.map((state) => [state, buttonStateBorder(variant, state)])));
1077
1252
  return {
1078
1253
  ...value,
1079
1254
  borders
@@ -1630,34 +1805,25 @@ function missingBackgroundSurface(input) {
1630
1805
  rejectedCandidates: input.rejectedCandidates
1631
1806
  };
1632
1807
  }
1633
- const resolvedSurfaceBrand = Symbol("ResolvedSurface");
1634
1808
  const surfaceOwners = /* @__PURE__ */ new WeakSet();
1635
1809
  const preparedIndexOwners = /* @__PURE__ */ new WeakSet();
1636
1810
  const surfaceTransports = /* @__PURE__ */ new WeakMap();
1637
- const ownedRevisionInputs = /* @__PURE__ */ new WeakMap();
1638
1811
  const revisionOwners = /* @__PURE__ */ new WeakMap();
1639
1812
  const surfaceRevisionOwners = /* @__PURE__ */ new WeakMap();
1640
1813
  function ownSurfaceRevision(context) {
1641
- if (!ownedRevisionInputs.get(context.palette)?.has(context.buttonSystem)) {
1642
- const revision = ownedThemeSnapshot({
1643
- palette: context.palette,
1644
- buttonSystem: context.buttonSystem
1645
- });
1646
- registerOwnedRevisionInputs(revision);
1647
- surfaceRevisionOwners.set(revision, { revision });
1648
- revisionOwners.set(revision.palette, /* @__PURE__ */ new Map([[revision.buttonSystem, revision]]));
1649
- return revision;
1650
- }
1651
- const revisions = revisionOwners.get(context.palette) ?? /* @__PURE__ */ new Map();
1652
- const existing = revisions.get(context.buttonSystem);
1814
+ const palette = ownedThemeSnapshot(context.palette);
1815
+ const buttonSystem = context.buttonSystem === void 0 ? void 0 : ownedThemeSnapshot(context.buttonSystem);
1816
+ if (!isOwnedThemeValue(palette)) throw new TypeError("A surface context needs a palette object.");
1817
+ const revisions = revisionOwners.get(palette) ?? /* @__PURE__ */ new Map();
1818
+ const existing = revisions.get(buttonSystem);
1653
1819
  if (existing) return existing;
1654
1820
  const revision = Object.freeze({
1655
- palette: context.palette,
1656
- buttonSystem: context.buttonSystem
1821
+ palette,
1822
+ buttonSystem
1657
1823
  });
1658
1824
  surfaceRevisionOwners.set(revision, { revision });
1659
- revisions.set(context.buttonSystem, revision);
1660
- revisionOwners.set(context.palette, revisions);
1825
+ revisions.set(buttonSystem, revision);
1826
+ revisionOwners.set(palette, revisions);
1661
1827
  return revision;
1662
1828
  }
1663
1829
  /** Local computation keeps its colour index; transport references only the owning revision inputs. */
@@ -1675,12 +1841,6 @@ function surfaceTransportContext(context) {
1675
1841
  });
1676
1842
  return result;
1677
1843
  }
1678
- /** Called only after copying and recursively freezing owner inputs. */
1679
- function registerOwnedRevisionInputs(context) {
1680
- const buttons = ownedRevisionInputs.get(context.palette) ?? /* @__PURE__ */ new Set();
1681
- buttons.add(context.buttonSystem);
1682
- ownedRevisionInputs.set(context.palette, buttons);
1683
- }
1684
1844
  function isResolvedSurface(value) {
1685
1845
  return typeof value === "object" && value !== null && surfaceOwners.has(value) && "kind" in value && (value.kind === "owned" || value.kind === "inherit");
1686
1846
  }
@@ -1691,6 +1851,38 @@ function requireResolvedSurface(value) {
1691
1851
  function resolveSurface(spec, context) {
1692
1852
  return spec.kind === "section" ? resolveSectionSurface(spec.background, context) : preparedSurfaceValue(spec, context) ?? certifySurface(spec, context);
1693
1853
  }
1854
+ function prepareSurfaceIndex(specs, context) {
1855
+ const snapshot = ownedThemeSnapshot({
1856
+ palette: context.palette,
1857
+ buttonSystem: context.buttonSystem,
1858
+ colourIndex: context.colourIndex,
1859
+ linkHoverToken: context.linkHoverToken,
1860
+ foreground: context.foreground,
1861
+ compositeBase: context.compositeBase,
1862
+ buttonContext: context.buttonContext,
1863
+ solvedInks: context.solvedInks
1864
+ });
1865
+ return surfaceIndexFromOwnedInputs(ownedThemeSnapshot(specs), snapshot);
1866
+ }
1867
+ /** Private construction path: both entry points above own and freeze these inputs. */
1868
+ function surfaceIndexFromOwnedInputs(specs, context) {
1869
+ const entries = [...new Map(specs.map((spec) => [surfaceResolutionKey(spec, context), spec]))].flatMap(([key, spec]) => preparedSurfaceEntry(key, spec, context));
1870
+ const index = Object.freeze({
1871
+ palette: context.palette,
1872
+ buttonSystem: context.buttonSystem,
1873
+ colourIndex: context.colourIndex,
1874
+ values: freezeOwnedThemeValue(Object.fromEntries(entries))
1875
+ });
1876
+ preparedIndexOwners.add(index);
1877
+ return index;
1878
+ }
1879
+ function preparedSurfaceEntry(key, spec, context) {
1880
+ try {
1881
+ return [[key, certifySurface(spec, context)]];
1882
+ } catch {
1883
+ return [];
1884
+ }
1885
+ }
1694
1886
  function matchingPreparedSurfaceIndex(index, context) {
1695
1887
  return index && preparedIndexOwners.has(index) && index.palette === context.palette && index.buttonSystem === context.buttonSystem && index.colourIndex === context.colourIndex ? index : void 0;
1696
1888
  }
@@ -1912,8 +2104,7 @@ function resolveSectionSurface(background, context) {
1912
2104
  buttonContext,
1913
2105
  proof: sectionProof(background, foreground),
1914
2106
  revision,
1915
- textPolicy: surfaceTextPolicy,
1916
- [resolvedSurfaceBrand]: true
2107
+ textPolicy: surfaceTextPolicy
1917
2108
  };
1918
2109
  Object.defineProperties(result, {
1919
2110
  buttonContext: { enumerable: false },
@@ -2089,7 +2280,6 @@ function certifySurface(spec, context) {
2089
2280
  };
2090
2281
  const decision = certifyThresholds(resolveSurfaceSpec(inputs.spec, inputs.context), inputs.context);
2091
2282
  const result = Object.assign(surfaceProof(decision, spec), {
2092
- [resolvedSurfaceBrand]: true,
2093
2283
  revision,
2094
2284
  textPolicy: surfaceTextPolicy,
2095
2285
  $surface: inputs
@@ -2260,12 +2450,10 @@ function parseSurfaceTree(value, solvedInks) {
2260
2450
  if (!isSurfaceTreeRecord(value) || !("$surfaceTransport" in value)) return mapSurfaceTreeChildren(value, (item) => parseSurfaceTree(item, solvedInks));
2261
2451
  const envelope = surfaceEnvelopeSchema.parse(value)[SURFACE_TRANSPORT_KEY];
2262
2452
  const revisions = envelope.revisions.map((revision) => {
2263
- const owned = ownedThemeSnapshot({
2453
+ return ownSurfaceRevision(ownedThemeSnapshot({
2264
2454
  palette: revision.palette,
2265
2455
  buttonSystem: revision.buttonSystem
2266
- });
2267
- registerOwnedRevisionInputs(owned);
2268
- return ownSurfaceRevision(owned);
2456
+ }));
2269
2457
  });
2270
2458
  const decode = (item) => {
2271
2459
  if (isSurfaceTreeRecord(item) && "$surfaceRevision" in item) {
@@ -2302,4 +2490,4 @@ function mapSurfaceTreeChildren(value, map) {
2302
2490
  return isSurfaceTreeRecord(value) ? Object.fromEntries(Object.entries(value).map(([key, item]) => [key, map(item)])) : value;
2303
2491
  }
2304
2492
  //#endregion
2305
- export { inkReference as A, mapButtonVisualAppearances as C, HOVER_TEXT_THRESHOLD as D, surfaceInkPublication as E, planForegroundHover as M, resolveConcreteColorHex as N, certifyPaint as O, resolveOpaqueSurfaceHex as P, mapButtonRoleAppearances as S, safeTokenOr as T, buttonTypographyDeclarations as _, serializeSurfaceTree as a, PUBLIC_BUTTON_ROLES as b, compositeHex as c, actionVariableFallback as d, contextualButtonSurfaceResetStyles as f, buttonStateAppearanceDeclarations as g, buttonShadow as h, resolveSurface as i, solveSurfaceInks as j, contrastThresholdByPolicy as k, gradientScrimSamples as l, buttonRadius as m, parseSurfaceTree as n, surfaceButtonRequest as o, buttonBorder as p, requireResolvedSurface as r, surfaceDecorationColors as s, parseResolvedSurface as t, scrimTone as u, materializeRuntimeButtonAppearance as v, resolveSurfaceForeground as w, defineButtonStyleRecipe as x, paddingDeclarations as y };
2493
+ export { ownedThemeSnapshot as A, resolveConcreteColorHex as B, mapButtonRoleAppearances as C, resolveThemeColorReferenceValue as D, resolveOnColorForThemeToken as E, HOVER_TEXT_THRESHOLD as F, paletteValueKey as H, certifyPaint as I, contrastThresholdByPolicy as L, safeTokenOr as M, surfaceInkPublication as N, resolveTokenOrCssColorValue as O, solveSurfaceInks as P, inkReference as R, defineButtonStyleRecipe as S, isCssColorLiteral as T, paletteValueKeySchema as U, resolveOpaqueSurfaceHex as V, requirePaletteColorsFromEntries as W, buttonStateAppearanceDeclarations as _, resolveSurface as a, paddingDeclarations as b, surfaceDecorationColors as c, scrimTone as d, actionVariableFallback as f, buttonShadow as g, buttonRadius as h, requireResolvedSurface as i, resolveSurfaceForeground as j, freezeOwnedThemeValue as k, compositeHex as l, buttonBorder as m, parseSurfaceTree as n, serializeSurfaceTree as o, contextualButtonSurfaceResetStyles as p, prepareSurfaceIndex as r, surfaceButtonRequest as s, parseResolvedSurface as t, gradientScrimSamples as u, buttonTypographyDeclarations as v, mapButtonVisualAppearances as w, PUBLIC_BUTTON_ROLES as x, materializeRuntimeButtonAppearance as y, planForegroundHover as z };
@@ -1,5 +1,5 @@
1
- import { er as formatDate, wi as plainTextToInlineText } from "./registry-BPFcpn6k.mjs";
2
- import { i as isRichTextDoc, o as isRecord } from "./richTextSchema-Euhuj-7V.mjs";
1
+ import { $n as formatDate, Pi as isRecord, Ti as plainTextToInlineText } from "./registry-Bh0Y25zH.mjs";
2
+ import { i as isRichTextDoc } from "./richTextSchema-DQ2NBP0n.mjs";
3
3
  import { t as BINDING_TRANSFORMS } from "./bindings-DhmIW3Er.mjs";
4
4
  //#region ../blocks/src/bindings/types.ts
5
5
  /**