@riverbankcms/sdk 0.166.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 (230) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +5 -0
  3. package/dist/_dts/{BlocksIslandsHydrator-CPvN6RBW.d.ts → BlocksIslandsHydrator-CiD_VVGM.d.ts} +1 -1
  4. package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bj6VJRS5.d.ts} +9 -8
  5. package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-ChpsnwDX.d.ts} +2 -2
  6. package/dist/_dts/{client-D4BXQEZc.d.ts → client-C8mfUxrJ.d.ts} +73 -35
  7. package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-_vXZyR4H.d.ts} +2 -2
  8. package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-CJFfrVKU.d.ts} +9 -5
  9. package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-CMegb23G.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-D9YdAIMh.d.ts} +2 -2
  11. package/dist/_dts/{index-DdcwPqQN.d.ts → index-BQXaZ7aY.d.ts} +4 -4
  12. package/dist/_dts/{index-ahxQCUc7.d.ts → index-Bpr-wT5k.d.ts} +2 -2
  13. package/dist/_dts/{index--qflsCiy.d.ts → index-C7_Rz8EY.d.ts} +3 -3
  14. package/dist/_dts/{index-kQ5xkM6X.d.ts → index-Cx2BQlHL.d.ts} +3 -3
  15. package/dist/_dts/{index-Bmboeb49.d.ts → index-Dgz6yhsy.d.ts} +1 -1
  16. package/dist/_dts/index-Vh8B9FSa.d.ts +14 -0
  17. package/dist/_dts/{index-BgJ2aU5c.d.ts → index-vR3p9Bu-.d.ts} +2 -2
  18. package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-dhWSgLeS.d.ts} +7 -7
  19. package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
  20. package/dist/_dts/{index-wbBZ0awa.d.ts → request-BrYhNV9Z.d.ts} +81287 -47810
  21. package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-BfSHm8Ms.d.ts} +5 -5
  22. package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-gZJ4i1wN.d.ts} +2 -2
  23. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  25. package/dist/_dts/sdk/src/client.d.ts +7 -7
  26. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  27. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  29. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  30. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  31. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  32. package/dist/_dts/sdk/src/index.d.ts +8 -8
  33. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/metadata/index.d.ts +6 -1
  35. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  36. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  37. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  38. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  39. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  40. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  41. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  43. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  45. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +7 -5
  48. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  49. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  50. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  51. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  52. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  53. package/dist/_dts/sdk/src/server.d.ts +5 -5
  54. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  55. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  56. package/dist/_dts/{types-BX3Y-EW3.d.ts → types-BB33-Spd.d.ts} +3 -3
  57. package/dist/_dts/{types-DF54stxv.d.ts → types-BVFXYtRg.d.ts} +7 -7
  58. package/dist/_dts/{types-DuiHLiPo.d.ts → types-FOsJ-KYb.d.ts} +4 -2
  59. package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-DckTc6TQ.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DcwEaliO.mjs} +21 -21
  61. package/dist/client/BookingMailingListNote-Dsugoe-n.mjs +946 -0
  62. package/dist/client/BookingQuestionFields-Bhh0cvsl.mjs +359 -0
  63. package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-CNe3ZjdC.mjs} +166 -17
  64. package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-BeiZxEUJ.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-BL943-tl.mjs} +11 -30
  67. package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-BFVxECTp.mjs} +137 -61
  68. package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
  69. package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-BIc4gjiD.mjs} +86 -17
  70. package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-a0QEIEf0.mjs} +1 -1
  71. package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-CEFTC3jH.mjs} +3 -3
  72. package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-Bt2sBBms.mjs} +41 -50
  73. package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-D9YBNb_E.mjs} +255 -40
  74. package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-gqzt5gkW.mjs} +2 -2
  75. package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-13JQI7_z.mjs} +22 -2
  76. package/dist/client/{Page-DNDZLRlB.mjs → Page-D_M2Vxz3.mjs} +26063 -22139
  77. package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
  78. package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-CaN8snZ8.mjs} +3 -3
  79. package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-DkVKtK5a.mjs} +19 -19
  80. package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
  81. package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
  82. package/dist/client/{accordion-uVqNowRX.mjs → accordion-DE7OG--d.mjs} +1 -1
  83. package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-CS1PPjw7.mjs} +842 -374
  84. package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-DE2CwIU9.mjs} +5 -4
  85. package/dist/client/{src-DjnxOjXG.mjs → bookingQuestionValues-BjcyCru5.mjs} +88 -1
  86. package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
  87. package/dist/client/bookings.mjs +18 -13
  88. package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-DZyUdnFh.mjs} +3 -3
  89. package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
  90. package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
  91. package/dist/client/{cart-DCxjE3Is.mjs → cart-D7HkkNwe.mjs} +3 -3
  92. package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-H4sv2TpD.mjs} +1 -1
  93. package/dist/client/{checkout-B0EKbeVv.mjs → checkout-2qVyG-Sh.mjs} +3 -3
  94. package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DAjrBZ74.mjs} +1 -1
  95. package/dist/client/client.mjs +325 -65
  96. package/dist/client/{context-n6IZigd3.mjs → context-DXmIbXCK.mjs} +300 -3
  97. package/dist/client/{cta-CDeAwYoN.mjs → cta-DP_IBnq3.mjs} +2 -2
  98. package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-CwrkFZTr.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-DQXK-Fh6.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-DheQj7rg.mjs} +4 -4
  101. package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-C5UufcRp.mjs} +1 -1
  102. package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-CMGg63IU.mjs} +73 -239
  103. package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-DlD0GCEy.mjs} +4 -4
  104. package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-DoSi8p_l.mjs} +4 -4
  105. package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-DzuQYgmO.mjs} +2 -2
  106. package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-CkiMjl0g.mjs} +4 -4
  107. package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-CjS3Zpjp.mjs} +4 -4
  108. package/dist/client/{form-BeNQiZ2V.mjs → form-DgQqm7T2.mjs} +3 -3
  109. package/dist/client/{form.client-BFdCKlp7.mjs → form.client-BI9Dcsq5.mjs} +5 -5
  110. package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-DevF0L_A.mjs} +3 -3
  111. package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DDyURjoe.mjs} +1 -1
  112. package/dist/client/gifting/client.mjs +3 -3
  113. package/dist/client/{headerSection-CalNAShx.mjs → headerSection-DYIG6Pwb.mjs} +2 -2
  114. package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
  115. package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
  116. package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-BWp7Y1e1.mjs} +6 -6
  117. package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-Dg8s9NwJ.mjs} +2 -2
  118. package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-DnPraMzx.mjs} +3 -3
  119. package/dist/client/{noop-D-RG9eR3.mjs → noop-ByFRHYQ2.mjs} +456 -491
  120. package/dist/client/portal/client.mjs +76 -229
  121. package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-BFAgHrdg.mjs} +1 -1
  122. package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DVrs_DyY.mjs} +1 -1
  123. package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-D4rvl6Xg.mjs} +3 -3
  124. package/dist/client/{productList-DjGrjOwD.mjs → productList-B8o5AOMX.mjs} +3 -3
  125. package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-hhotPP6P.mjs} +5 -5
  126. package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-Ch3EpupA.mjs} +2296 -2489
  127. package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
  128. package/dist/client/rendering/client.mjs +30 -30
  129. package/dist/client/rendering/islands.mjs +1 -1
  130. package/dist/client/rendering.mjs +10 -9
  131. package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-C3LabQ1O.mjs} +1 -1
  132. package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-CQGlxId8.mjs} +1 -1
  133. package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
  134. package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
  135. package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-VDbVaKY-.mjs} +12 -12
  136. package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-DqdgJ8Zw.mjs} +1 -1
  137. package/dist/client/{shop-DLufMauE.mjs → shop-rRXplPGZ.mjs} +3 -3
  138. package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-DdwvMvaK.mjs} +13 -13
  139. package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-C8OvFY06.mjs} +167 -68
  140. package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-BeuJiGPU.mjs} +2 -2
  141. package/dist/client/spam-protection.mjs +1 -1
  142. package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
  143. package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-Cko9LRKy.mjs} +13 -158
  144. package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
  145. package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-M6QIEiWf.mjs} +3 -3
  146. package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-BJSnyO0f.mjs} +3 -3
  147. package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-D3XnOSCi.mjs} +1 -1
  148. package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-PhTIoFVX.mjs} +7 -7
  149. package/dist/client/{view-DAVEoe8A.mjs → view-448wvvEY.mjs} +21 -12
  150. package/dist/client/{view-8w4GA8rf.mjs → view-L_mkgtnk.mjs} +4 -4
  151. package/dist/client/{site-styles-DELkUk9s.mjs → wizardSteps-CFulHWnT.mjs} +19371 -17045
  152. package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-BpvnOGlN.mjs} +26 -17
  153. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
  154. package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
  155. package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
  156. package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-C0OtdWu_.mjs} +432 -127
  157. package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-Csc5vH5k.mjs} +6 -6
  158. package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-BOLH_pm-.mjs} +252 -158
  159. package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-CKodLReY.mjs} +31 -32
  160. package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-BeEZpeKn.mjs} +19484 -18082
  161. package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
  162. package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
  163. package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-BBdN5kfY.mjs} +21470 -16697
  164. package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-VZtGwPuH.mjs} +1 -1
  165. package/dist/preview-next/client/runtime.mjs +3 -3
  166. package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-kiZkMcuR.mjs} +2 -2
  167. package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-BiIHEeE0.mjs} +2 -2
  168. package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-BuFLIpmX.mjs} +2 -93
  169. package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-DlxYgmh_.mjs} +1 -1
  170. package/dist/preview-next/keepAlive.mjs +1 -1
  171. package/dist/preview-next/middleware.mjs +1 -1
  172. package/dist/preview-next/{route-contract-Bq7SUX3K.mjs → route-contract-C0sCvCYL.mjs} +248 -0
  173. package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-Dnhc0Wu5.mjs} +5 -5
  174. package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-NAQ_zsFu.mjs} +1173 -148
  175. package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-108nxyGc.mjs} +520 -129
  176. package/dist/server/{bindings-DjdUq9FR.mjs → bindings-DLoZYUxG.mjs} +2 -2
  177. package/dist/server/{client-07UeMDzA.mjs → client-Bc8jI8zN.mjs} +346 -63
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +1 -1
  180. package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
  181. package/dist/server/data/resolveBlockData.mjs +1 -1
  182. package/dist/server/headerVariant-BwR9NV4b.mjs +463 -0
  183. package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-D61gpqHB.mjs} +4 -5
  186. package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-B4ZYpIcd.mjs} +2 -2
  187. package/dist/server/manifest.mjs +1 -1
  188. package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
  189. package/dist/server/metadata.mjs +5 -1
  190. package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
  191. package/dist/server/next/revalidate.mjs +9 -4
  192. package/dist/server/next.mjs +6 -6
  193. package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
  194. package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-CDReKy2P.mjs} +1 -1
  195. package/dist/server/page-converter.mjs +3 -3
  196. package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-ByVTA7-4.mjs} +375 -171
  197. package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-Dzz_Dze6.mjs} +291 -5
  198. package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Dk5Ku6hs.mjs} +12184 -11593
  199. package/dist/server/{schema-C2PqHrMo.mjs → parseThemeForPersistence-pJPGfMrf.mjs} +593 -1591
  200. package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-CW4M0WEZ.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-Bvx0SiIM.mjs} +5 -34
  203. package/dist/server/{registry-TFPJdGQi.mjs → registry-Bh0Y25zH.mjs} +6041 -4562
  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 +3 -3
  208. package/dist/server/rendering.mjs +8 -8
  209. package/dist/server/{resolveBlockData-OHlOXlOE.mjs → resolveBlockData-CnHHst9r.mjs} +1 -1
  210. package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +393 -502
  211. package/dist/server/responseMedia-t6gs0cB7.mjs +115 -0
  212. package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
  213. package/dist/server/server.mjs +3 -3
  214. package/dist/server/theme-bridge.mjs +2 -3
  215. package/dist/server/theme.mjs +1 -2
  216. package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
  217. package/dist/server/{validation-DIBFZeMB.mjs → validation-D2bHWSxJ.mjs} +59 -10
  218. package/dist/server/{version-DZWZM1H6.mjs → version-DkM1eAxG.mjs} +1 -1
  219. package/dist/styles/index.css +991 -48
  220. package/package.json +4 -3
  221. package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
  222. package/dist/_dts/index-mMMvLLAJ.d.ts +0 -31339
  223. package/dist/client/BookingMailingListNote-DOWOZYlK.mjs +0 -331
  224. package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
  225. package/dist/client/events-BmqPeeQm.mjs +0 -20
  226. package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
  227. package/dist/client/useBookingNowIso-Da-f9iHw.mjs +0 -58
  228. package/dist/client/wizardSteps-DNpajrAH.mjs +0 -6926
  229. package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +0 -52
  230. package/dist/server/publicProducts-W9hDRwjz.mjs +0 -64
@@ -1,11 +1,5 @@
1
1
  import { z } from "zod";
2
- //#region ../theme-core/src/customCss/validation.ts
3
- /**
4
- * Custom CSS Validation Schemas
5
- *
6
- * Zod schemas for validating custom CSS rules.
7
- * Enforces security constraints by construction.
8
- */
2
+ //#region ../site-contracts/src/theme/customCss.ts
9
3
  /** Global selectors that could affect elements outside theme scope */
10
4
  const FORBIDDEN_SELECTORS = [
11
5
  ":root",
@@ -25,18 +19,15 @@ function isForbiddenSelectorPart(part) {
25
19
  const normalized = part.toLowerCase().trim();
26
20
  if (!normalized) return true;
27
21
  if (normalized === UNIVERSAL_SELECTOR || normalized.startsWith("* ") || normalized.endsWith(" *") || normalized.includes(" * ")) return true;
28
- for (const forbidden of FORBIDDEN_SELECTORS) {
29
- if (normalized === forbidden) return true;
30
- if (normalized.startsWith(forbidden + " ")) return true;
31
- if (normalized.startsWith(forbidden + ">")) return true;
32
- if (normalized.startsWith(forbidden + "+")) return true;
33
- if (normalized.startsWith(forbidden + "~")) return true;
34
- if (normalized.startsWith(forbidden + ".")) return true;
35
- if (normalized.startsWith(forbidden + "#")) return true;
36
- if (normalized.startsWith(forbidden + "[")) return true;
37
- if (normalized.startsWith(forbidden + ":") && !normalized.startsWith(forbidden + "::")) return true;
38
- }
39
- return false;
22
+ return FORBIDDEN_SELECTORS.some((forbidden) => normalized === forbidden || [
23
+ " ",
24
+ ">",
25
+ "+",
26
+ "~",
27
+ ".",
28
+ "#",
29
+ "["
30
+ ].some((suffix) => normalized.startsWith(forbidden + suffix)) || normalized.startsWith(forbidden + ":") && !normalized.startsWith(forbidden + "::"));
40
31
  }
41
32
  /**
42
33
  * Check if a selector uses sibling combinators with & that could escape scope.
@@ -54,9 +45,7 @@ function containsForbiddenSelector(selector) {
54
45
  const normalized = selector.toLowerCase().trim();
55
46
  if (!normalized) return true;
56
47
  if (hasScopeEscapingSiblingCombinator(selector)) return true;
57
- const parts = normalized.split(",");
58
- for (const part of parts) if (isForbiddenSelectorPart(part)) return true;
59
- return false;
48
+ return normalized.split(",").some(isForbiddenSelectorPart);
60
49
  }
61
50
  /**
62
51
  * Validates a CSS selector for safety.
@@ -104,37 +93,5 @@ const customCssRulesSchema = z.array(customCssRuleSchema).optional();
104
93
  * Array of block-specific CSS rules.
105
94
  */
106
95
  const blockCustomCssRulesSchema = z.array(blockCustomCssRuleSchema).optional();
107
- function toValidatedCssSelector(value) {
108
- return value;
109
- }
110
- function toValidatedCssDeclarationValue(value) {
111
- return value;
112
- }
113
- function toValidatedCssDeclarations(declarations) {
114
- return Object.fromEntries(Object.entries(declarations).map(([property, value]) => [property, toValidatedCssDeclarationValue(value)]));
115
- }
116
- function parseCustomCssRule(rule) {
117
- const parsed = customCssRuleSchema.parse(rule);
118
- return {
119
- id: parsed.id,
120
- selector: toValidatedCssSelector(parsed.selector),
121
- declarations: toValidatedCssDeclarations(parsed.declarations)
122
- };
123
- }
124
- function parseCustomCssRules(rules) {
125
- return rules?.map((rule) => parseCustomCssRule(rule));
126
- }
127
- function parseBlockCustomCssRule(rule) {
128
- const parsed = blockCustomCssRuleSchema.parse(rule);
129
- return {
130
- id: parsed.id,
131
- selector: toValidatedCssSelector(parsed.selector),
132
- declarations: toValidatedCssDeclarations(parsed.declarations),
133
- blockKind: parsed.blockKind
134
- };
135
- }
136
- function parseBlockCustomCssRules(rules) {
137
- return rules?.map((rule) => parseBlockCustomCssRule(rule));
138
- }
139
96
  //#endregion
140
- export { parseBlockCustomCssRules as a, declarationsSchema as i, customCssRulesSchema as n, parseCustomCssRules as o, declarationValueSchema as r, selectorSchema as s, blockCustomCssRulesSchema as t };
97
+ export { declarationValueSchema as a, customCssRulesSchema as i, blockCustomCssRulesSchema as n, declarationsSchema as o, customCssRuleSchema as r, selectorSchema as s, blockCustomCssRuleSchema as t };
@@ -1,2 +1,2 @@
1
- import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-OHlOXlOE.mjs";
1
+ import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-CnHHst9r.mjs";
2
2
  export { CONFIG_ONLY_BLOCK_DATA_POLICY, DEFAULT_RESOLVE_BLOCK_DATA_DEPS, createBlockDataLoadPolicy, hasRegisteredDataLoaders, resolveBlockData, resolveBlockDataWithDeps, warnHostDataLoaderFailure };
@@ -0,0 +1,463 @@
1
+ import { Dt as themeColorTokenSchema } from "./resolveButtonColourStates-Cn6j8Ee0.mjs";
2
+ import { n as externalMediaSchema, r as imageMediaSchema, s as videoMediaSchema, t as assetMediaSchema } from "./media-Brn9FW5s.mjs";
3
+ import { z } from "zod";
4
+ //#region ../site-contracts/src/identity/designIds.ts
5
+ function asDesignBlockId(value) {
6
+ return brandNonEmptyString(value, "DesignBlockId");
7
+ }
8
+ function asDesignBoundaryId(value) {
9
+ const boundaryId = brandNonEmptyString(value, "DesignBoundaryId");
10
+ if (!boundaryId.startsWith("boundary:")) throw new Error(`DesignBoundaryId must start with "boundary:". Received: ${value}`);
11
+ return boundaryId;
12
+ }
13
+ function asLayoutVariantKey(value) {
14
+ return brandNonEmptyString(value, "LayoutVariantKey");
15
+ }
16
+ function asAppearancePresetId(value) {
17
+ return brandNonEmptyString(value, "AppearancePresetId");
18
+ }
19
+ function asBoundaryOptionId(value) {
20
+ return brandNonEmptyString(value, "BoundaryOptionId");
21
+ }
22
+ function asPageFlowPresetId(value) {
23
+ return brandNonEmptyString(value, "PageFlowPresetId");
24
+ }
25
+ function asSiteStyleId(value) {
26
+ const siteStyleId = brandNonEmptyString(value, "SiteStyleId");
27
+ if (!siteStyleId.startsWith("site-style:")) throw new Error(`SiteStyleId must start with "site-style:". Received: ${value}`);
28
+ return siteStyleId;
29
+ }
30
+ function asDesignSystemTemplateId(value) {
31
+ return brandNonEmptyString(value, "DesignSystemTemplateId");
32
+ }
33
+ function makeBoundaryId(previousBlockId, nextBlockId) {
34
+ return asDesignBoundaryId(`boundary:${encodeURIComponent(previousBlockId)}:${encodeURIComponent(nextBlockId)}`);
35
+ }
36
+ function brandNonEmptyString(value, label) {
37
+ if (value.length === 0) throw new Error(`${label} must be a non-empty string.`);
38
+ return value;
39
+ }
40
+ //#endregion
41
+ //#region ../site-contracts/src/identity/presentationVocabulary.ts
42
+ const arrangementModes = [
43
+ "list",
44
+ "calendar",
45
+ "week",
46
+ "combined"
47
+ ];
48
+ function isArrangementMode(value) {
49
+ return value === "list" || value === "calendar" || value === "week" || value === "combined";
50
+ }
51
+ const tileTreatmentValues = [
52
+ "default",
53
+ "quiet",
54
+ "brand-depth"
55
+ ];
56
+ const eventListTreatmentValues = [
57
+ "plain",
58
+ "lined-panel",
59
+ "ruled-register",
60
+ "editorial-register",
61
+ "dense-index"
62
+ ];
63
+ const eyebrowTreatmentValues = [
64
+ "plain",
65
+ "accent",
66
+ "pill",
67
+ "accent-pill",
68
+ "pill-bounce",
69
+ "accent-pill-bounce"
70
+ ];
71
+ const visibleHeadingDecorationFamilyValues = ["organic-squiggle", "short-center-rule"];
72
+ const headingDecorationOverrideValues = ["site-default", "off"];
73
+ const headingDecorationColorTokenValues = [
74
+ "text",
75
+ "primary",
76
+ "secondary",
77
+ "accent",
78
+ "border",
79
+ "muted"
80
+ ];
81
+ const accordionIconSetValues = [
82
+ "plus",
83
+ "chevron",
84
+ "caret",
85
+ "minimal-cross"
86
+ ];
87
+ const accordionIconColorTokenValues = [
88
+ "text",
89
+ "muted",
90
+ "primary",
91
+ "secondary",
92
+ "accent",
93
+ "current"
94
+ ];
95
+ const accordionIconMotionValues = [
96
+ "none",
97
+ "rotate",
98
+ "swap"
99
+ ];
100
+ //#endregion
101
+ //#region ../site-contracts/src/identity/siteStyleLooks.ts
102
+ /** Deterministic fallback order; Fulcrum is the default. */
103
+ const bookingPageLookIdValues = [
104
+ "site-style:fulcrum",
105
+ "site-style:folio",
106
+ "site-style:measure",
107
+ "site-style:lantern",
108
+ "site-style:poster",
109
+ "site-style:loom",
110
+ "site-style:brook"
111
+ ];
112
+ function asFooterLookId(value) {
113
+ return value;
114
+ }
115
+ function asHeaderLayoutId(value) {
116
+ return value;
117
+ }
118
+ function asHeaderStyleId(value) {
119
+ return value;
120
+ }
121
+ const pageDesignEditorBackgroundOverrideOwner = "page-design-editor";
122
+ const siteChromeBackgroundOverrideOwner = "site-chrome-editor";
123
+ //#endregion
124
+ //#region ../site-contracts/src/theme/cards.ts
125
+ /** Arrangement Looks can request only these shared item roles. */
126
+ const itemRoleValues = [
127
+ "card",
128
+ "statement",
129
+ "highlight"
130
+ ];
131
+ const cardVariantRoleValues = ["default", "alternative"];
132
+ const boxlessCardVariantValue = "none";
133
+ const openCardRoleValue = "open";
134
+ /**
135
+ * The roles a site style implements with an actual card variant. `none` is
136
+ * deliberately absent: it is a role value only, never a variant.
137
+ */
138
+ const surfaceCardRoleValues = [...cardVariantRoleValues, openCardRoleValue];
139
+ /**
140
+ * The closed role vocabulary Looks and blocks use for surfaced and boxless
141
+ * card choices.
142
+ *
143
+ * - `none` — no site-style card surface; the block's own composition and
144
+ * the author's own card fields govern the item. This is *not*
145
+ * a promise of visible boxlessness: a block whose base class
146
+ * draws a border still draws one. It says the Look is not
147
+ * asking the site style for a card.
148
+ * - `open` — boxless but marked (a rule or accent edge, no enclosing box)
149
+ * - `default` — the site's quiet everyday card
150
+ * - `alternative` — the statement card carrying the site's personality
151
+ */
152
+ const cardRoleValues = [...surfaceCardRoleValues, boxlessCardVariantValue];
153
+ const cardSpacingSchema = z.enum([
154
+ "none",
155
+ "compact",
156
+ "cozy",
157
+ "medium",
158
+ "comfortable",
159
+ "spacious"
160
+ ]);
161
+ /** Per-axis padding, for boxless cards whose inline padding differs from block. */
162
+ const cardSpacingAxesSchema = z.object({
163
+ block: cardSpacingSchema,
164
+ inline: cardSpacingSchema
165
+ });
166
+ /**
167
+ * A card's content padding: one value for both axes, or one per axis. Two
168
+ * fields would let a variant say both and leave the reader to guess, so this is
169
+ * a union.
170
+ */
171
+ const cardSpacingValueSchema = z.union([cardSpacingSchema, cardSpacingAxesSchema]);
172
+ const gradientDirectionSchema = z.enum([
173
+ "to-r",
174
+ "to-l",
175
+ "to-t",
176
+ "to-b",
177
+ "to-tr",
178
+ "to-tl",
179
+ "to-br",
180
+ "to-bl"
181
+ ]);
182
+ const surfaceCardRoleSchema = z.enum(surfaceCardRoleValues);
183
+ const cardRoleSchema = z.enum(cardRoleValues);
184
+ const cardBackgroundSchema = z.discriminatedUnion("type", [
185
+ z.object({
186
+ type: z.literal("solid"),
187
+ colorToken: themeColorTokenSchema
188
+ }),
189
+ z.object({
190
+ type: z.literal("gradient"),
191
+ fromToken: themeColorTokenSchema,
192
+ toToken: themeColorTokenSchema,
193
+ direction: gradientDirectionSchema
194
+ }),
195
+ z.object({ type: z.literal("transparent") })
196
+ ]);
197
+ const cardBorderSchema = z.object({
198
+ widthClass: z.string(),
199
+ colorToken: themeColorTokenSchema
200
+ });
201
+ /** Per-corner radius value. `expressive` is a large block-radius multiple. */
202
+ const cardCornerValueSchema = z.enum([
203
+ "square",
204
+ "soft",
205
+ "rounded",
206
+ "pill",
207
+ "expressive"
208
+ ]);
209
+ const cardEdgeSchema = z.enum([
210
+ "left",
211
+ "top",
212
+ "right",
213
+ "bottom"
214
+ ]);
215
+ /** `hairline` (1px) is the widening the boxless `open` role needs. */
216
+ const cardEdgeRuleWidthSchema = z.enum([
217
+ "hairline",
218
+ "thin",
219
+ "medium",
220
+ "thick",
221
+ "heavy"
222
+ ]);
223
+ const cardEdgeRuleLengthSchema = z.enum(["full", "short"]);
224
+ const cardEdgeRuleAlignSchema = z.enum([
225
+ "start",
226
+ "center",
227
+ "end"
228
+ ]);
229
+ /**
230
+ * Decorations are edge rules today. The alias exists so the list can grow into
231
+ * a discriminated union without every call site changing.
232
+ */
233
+ const cardDecorationSchema = z.object({
234
+ edge: cardEdgeSchema,
235
+ colorToken: themeColorTokenSchema,
236
+ width: cardEdgeRuleWidthSchema,
237
+ /** Defaults to `full`. */
238
+ length: cardEdgeRuleLengthSchema.optional(),
239
+ /** Where a `short` rule sits along its edge. Defaults to `start`. */
240
+ align: cardEdgeRuleAlignSchema.optional(),
241
+ /** Opacity applied to `colorToken`, 0–1. Scoped here, not on the token. */
242
+ alpha: z.number().min(0).max(1).optional()
243
+ });
244
+ const cardDecorationsSchema = z.array(cardDecorationSchema).max(2);
245
+ const cardCornerRadiiSchema = z.object({
246
+ topLeft: cardCornerValueSchema.optional(),
247
+ topRight: cardCornerValueSchema.optional(),
248
+ bottomLeft: cardCornerValueSchema.optional(),
249
+ bottomRight: cardCornerValueSchema.optional()
250
+ });
251
+ const cardVariantSchema = z.strictObject({
252
+ id: z.string(),
253
+ name: z.string().min(1).max(20),
254
+ enabled: z.boolean(),
255
+ priority: z.union([
256
+ z.literal(1),
257
+ z.literal(2),
258
+ z.literal(3)
259
+ ]),
260
+ role: surfaceCardRoleSchema,
261
+ background: cardBackgroundSchema,
262
+ spacing: cardSpacingValueSchema,
263
+ foregroundToken: themeColorTokenSchema.optional(),
264
+ shadow: z.object({
265
+ elevation: z.enum([
266
+ "none",
267
+ "low",
268
+ "medium",
269
+ "high"
270
+ ]),
271
+ softness: z.enum([
272
+ "crisp",
273
+ "soft",
274
+ "hard"
275
+ ]).nullable(),
276
+ position: z.enum(["bottom", "bottom-right"]).default("bottom")
277
+ }).optional(),
278
+ corners: z.enum([
279
+ "square",
280
+ "soft",
281
+ "rounded",
282
+ "pill"
283
+ ]).optional(),
284
+ cornerRadii: cardCornerRadiiSchema.optional(),
285
+ border: cardBorderSchema.optional(),
286
+ decorations: cardDecorationsSchema.optional()
287
+ });
288
+ /**
289
+ * A site style saying "these two
290
+ * variants are both the default card" is an authoring error worth rejecting.
291
+ */
292
+ function validateUniqueCardVariantRoles(system, ctx) {
293
+ const declared = /* @__PURE__ */ new Set();
294
+ system.variants.forEach((variant, index) => {
295
+ const role = variant.role;
296
+ if (declared.has(role)) {
297
+ ctx.addIssue({
298
+ code: "custom",
299
+ path: [
300
+ "variants",
301
+ index,
302
+ "role"
303
+ ],
304
+ message: `Card role "${role}" is already implemented by another variant.`
305
+ });
306
+ return;
307
+ }
308
+ declared.add(role);
309
+ });
310
+ }
311
+ const cardSystemSchema = z.object({ variants: z.array(cardVariantSchema).min(1).max(3) }).superRefine(validateUniqueCardVariantRoles);
312
+ //#endregion
313
+ //#region ../site-contracts/src/theme/tokenOrColor.ts
314
+ /**
315
+ * Runtime color-reference fields intentionally accept any string, including
316
+ * the legacy empty-string "no color" sentinel. Semantic validation needs
317
+ * palette context and happens in `parseThemeColorReference`.
318
+ */
319
+ const tokenOrCssColorValueSchema = z.string();
320
+ //#endregion
321
+ //#region ../site-contracts/src/theme/backgrounds.ts
322
+ const boxBackgroundOverlaySchema = z.preprocess(normalizeAuthoringOpacity, z.discriminatedUnion("type", [
323
+ z.object({ type: z.literal("none") }),
324
+ z.object({
325
+ type: z.literal("color"),
326
+ color: tokenOrCssColorValueSchema.nullable().optional(),
327
+ opacity: z.number().min(0).max(1).nullable().optional()
328
+ }),
329
+ z.object({
330
+ type: z.literal("gradient"),
331
+ gradient: z.string().nullable().optional(),
332
+ opacity: z.number().min(0).max(1).nullable().optional()
333
+ })
334
+ ]));
335
+ const commonSchema = z.object({
336
+ contentOwner: z.literal(pageDesignEditorBackgroundOverrideOwner).optional(),
337
+ textColor: tokenOrCssColorValueSchema.nullable().optional(),
338
+ headingColor: tokenOrCssColorValueSchema.nullable().optional(),
339
+ linkColor: tokenOrCssColorValueSchema.nullable().optional(),
340
+ supportingColor: tokenOrCssColorValueSchema.nullable().optional()
341
+ });
342
+ const mediaPresentationSchema = commonSchema.extend({
343
+ opacity: z.preprocess(normalizeOpacity, z.number().min(0).max(1).nullable()).optional(),
344
+ objectFit: z.enum([
345
+ "fill",
346
+ "fit",
347
+ "original",
348
+ "custom"
349
+ ]).nullable().optional(),
350
+ scale: z.string().nullable().optional(),
351
+ position: z.string().nullable().optional(),
352
+ motion: z.enum(["static", "fixed-frame"]).nullable().optional(),
353
+ overflow: z.boolean().nullable().optional(),
354
+ overlay: boxBackgroundOverlaySchema.nullable().optional()
355
+ });
356
+ const boxBackgroundSchema = z.discriminatedUnion("type", [
357
+ commonSchema.extend({
358
+ type: z.literal("color"),
359
+ color: tokenOrCssColorValueSchema.nullable().optional(),
360
+ /**
361
+ * Compiler-owned. The scrim a site-style colour surface lays over media
362
+ * that replaces it (a Look's band meeting an authored photo), sized so the
363
+ * surface's foreground stays legible over any pixel. A colour background
364
+ * never draws it itself; `resolveSectionBackground` moves it onto the
365
+ * merged media background as its overlay.
366
+ */
367
+ mediaScrim: boxBackgroundOverlaySchema.nullable().optional()
368
+ }),
369
+ commonSchema.extend({
370
+ type: z.literal("gradient"),
371
+ gradient: z.string().nullable().optional(),
372
+ gradientPresetId: z.string().min(1).nullable().optional(),
373
+ /** Compiler-owned; see the colour branch. */
374
+ mediaScrim: boxBackgroundOverlaySchema.nullable().optional()
375
+ }),
376
+ mediaPresentationSchema.extend({
377
+ type: z.literal("image"),
378
+ image: imageMediaSchema.nullable().optional()
379
+ }),
380
+ mediaPresentationSchema.extend({
381
+ type: z.literal("video"),
382
+ image: videoMediaSchema.nullable().optional(),
383
+ showVideoOnMobile: z.boolean().nullable().optional()
384
+ })
385
+ ]);
386
+ /** Application rendering sources are admitted separately from saved references. */
387
+ const runtimeBoxBackgroundSchema = z.discriminatedUnion("type", [
388
+ boxBackgroundSchema.options[0],
389
+ boxBackgroundSchema.options[1],
390
+ boxBackgroundSchema.options[2].extend({ image: z.union([
391
+ imageMediaSchema,
392
+ externalMediaSchema.extend({ type: z.literal("image") }),
393
+ assetMediaSchema.extend({ type: z.literal("image") })
394
+ ]).nullable().optional() }),
395
+ boxBackgroundSchema.options[3].extend({ image: z.union([
396
+ videoMediaSchema,
397
+ externalMediaSchema.extend({ type: z.literal("video") }),
398
+ assetMediaSchema.extend({ type: z.literal("video") })
399
+ ]).nullable().optional() })
400
+ ]);
401
+ function normalizeAuthoringOpacity(value) {
402
+ if (!isRecord(value)) return value;
403
+ return {
404
+ ...value,
405
+ opacity: normalizeOpacity(value.opacity)
406
+ };
407
+ }
408
+ function normalizeOpacity(value) {
409
+ return typeof value === "number" && value > 1 && value <= 100 ? value / 100 : value;
410
+ }
411
+ function isRecord(value) {
412
+ return typeof value === "object" && value !== null && !Array.isArray(value);
413
+ }
414
+ //#endregion
415
+ //#region ../site-contracts/src/theme/headerVariant.ts
416
+ /**
417
+ * The header variants the system actually renders.
418
+ *
419
+ * Each one has a layout row in the site-header block and a paint target in
420
+ * `paintTargets.ts`. This is the canonical list: the block transform's variant
421
+ * class allowlist and the AI theme generator's enum both derive from it, so
422
+ * they cannot drift.
423
+ */
424
+ const headerVariantValues = [
425
+ "classic",
426
+ "centered",
427
+ "floating"
428
+ ];
429
+ z.enum(headerVariantValues);
430
+ /**
431
+ * Header variant spellings that were once authorable but no longer name a
432
+ * layout of their own, and the variant they read as now.
433
+ *
434
+ * `transparent` was an overlay header with no CSS of its own: everything it
435
+ * did (transparent root background, overlay content flow) is what `floating`
436
+ * already does, and it had zero persisted usage in production or locally when
437
+ * it was retired. It survives here as a one-boundary alias so a theme authored
438
+ * against the old vocabulary still parses.
439
+ *
440
+ * This matters because the theme schema is strict and has no per-field
441
+ * `.catch()`: an out-of-enum variant fails `themeSchema.safeParse` for the
442
+ * *whole* theme, which silently swaps the site's theme for
443
+ * `modernMinimalTheme`. Aliasing here keeps that from happening.
444
+ */
445
+ const legacyHeaderVariants = { transparent: "floating" };
446
+ const legacyHeaderVariantValues = Object.keys(legacyHeaderVariants);
447
+ /**
448
+ * The header variant boundary for themes that go through `themeSchema`:
449
+ * canonical variants pass through, legacy spellings normalize to the variant
450
+ * they meant, everything else fails the parse.
451
+ *
452
+ * Deliberately an enum plus a transform rather than a `z.preprocess`, so the
453
+ * schema's *input* type stays an accurate union (the legacy spelling is still
454
+ * accepted on the wire) instead of widening to `unknown`. `SdkThemeWire` in
455
+ * `@riverbankcms/api` is `z.input<typeof themeSchema>`, so a widened input here
456
+ * would leak straight into a public type.
457
+ *
458
+ * Persisted runtime themes are admitted through `parseThemeForPersistence`
459
+ * before reaching consumers, so legacy spellings normalize at that boundary.
460
+ */
461
+ const headerVariantWithLegacyAliasSchema = z.enum([...headerVariantValues, ...legacyHeaderVariantValues]).transform((value) => value in legacyHeaderVariants ? legacyHeaderVariants[value] : value);
462
+ //#endregion
463
+ export { tileTreatmentValues as A, accordionIconSetValues as C, headingDecorationColorTokenValues as D, eyebrowTreatmentValues as E, asDesignSystemTemplateId as F, asLayoutVariantKey as I, asPageFlowPresetId as L, asAppearancePresetId as M, asBoundaryOptionId as N, headingDecorationOverrideValues as O, asDesignBlockId as P, asSiteStyleId as R, accordionIconMotionValues as S, eventListTreatmentValues as T, asHeaderStyleId as _, runtimeBoxBackgroundSchema as a, siteChromeBackgroundOverrideOwner as b, cardRoleSchema as c, cardVariantRoleValues as d, itemRoleValues as f, asHeaderLayoutId as g, asFooterLookId as h, boxBackgroundSchema as i, visibleHeadingDecorationFamilyValues as j, isArrangementMode as k, cardRoleValues as l, surfaceCardRoleValues as m, headerVariantWithLegacyAliasSchema as n, tokenOrCssColorValueSchema as o, openCardRoleValue as p, boxBackgroundOverlaySchema as r, boxlessCardVariantValue as s, headerVariantValues as t, cardSystemSchema as u, bookingPageLookIdValues as v, arrangementModes as w, accordionIconColorTokenValues as x, pageDesignEditorBackgroundOverrideOwner as y, makeBoundaryId as z };
@@ -1,4 +1,4 @@
1
- import { v as parseUuidBrand } from "./media-DnlczCMA.mjs";
1
+ import { x as parseUuidBrand } from "./media-Brn9FW5s.mjs";
2
2
  //#region ../core/src/branded/identity.ts
3
3
  const unsafeAsSiteId = (id) => id;
4
4
  const parseSiteId = (value) => parseUuidBrand(value, unsafeAsSiteId);
@@ -1,8 +1,8 @@
1
- import { a as persistableMediaSchema, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, f as mediaIdentifierSchema, i as mediaSchema, l as renderableMediaAssetSchema, m as parseMediaIdentifier, o as runtimeMediaSchema, p as parseCanonicalMediaIdentifier } from "./media-DnlczCMA.mjs";
2
- import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, g as getResilienceStatusFromError, h as RiverbankApiError, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-07UeMDzA.mjs";
1
+ import { _ as parseMediaIdentifier, a as persistableMediaSchema, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, g as parseCanonicalMediaIdentifier, h as mediaIdentifierSchema, i as mediaSchema, l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-Brn9FW5s.mjs";
2
+ import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, g as getResilienceStatusFromError, h as RiverbankApiError, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-Bc8jI8zN.mjs";
3
3
  import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-CdI7NvAW.mjs";
4
4
  import { t as SDK_CORRELATION_HEADER_NAMES } from "./types-C2eBBV6E.mjs";
5
- import { t as prebuildCache } from "./prebuild-Cl-bkaMA.mjs";
5
+ import { t as prebuildCache } from "./prebuild-CW4M0WEZ.mjs";
6
6
  import * as path from "path";
7
7
  import * as fs from "fs";
8
8
  //#region src/prebuild/loader.ts
@@ -1,9 +1,8 @@
1
- import { Wn as resolveDateRuntimeContext } from "./registry-TFPJdGQi.mjs";
2
- import { a as invalidRenderableBlock, d as siteLocationRenderContext, i as collectMediaAssetSidecar, l as resolveSdkBlockManifest, m as compileManifestContentContract, n as buildRenderablePageOutline, o as projectRenderablePageOutline, p as admitTransportedRenderableManifestContent, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, u as sanitizeSdkRuntimeBlockContent, v as readPublishedBlockPlacement } from "./pageRuntimeSupport-C4Dh5-mB.mjs";
3
- import { o as isRecord } from "./richTextSchema-Euhuj-7V.mjs";
4
- import { t as applyBindingsToContent } from "./bindings-DjdUq9FR.mjs";
1
+ import { Pi as isRecord, Wn as resolveDateRuntimeContext } from "./registry-Bh0Y25zH.mjs";
2
+ import { E as readPublishedBlockPlacement, a as invalidRenderableBlock, d as siteLocationRenderContext, i as collectMediaAssetSidecar, l as resolveSdkBlockManifest, m as compileManifestContentContract, n as buildRenderablePageOutline, o as projectRenderablePageOutline, p as admitTransportedRenderableManifestContent, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, u as sanitizeSdkRuntimeBlockContent } from "./pageRuntimeSupport-Dzz_Dze6.mjs";
3
+ import { t as applyBindingsToContent } from "./bindings-DLoZYUxG.mjs";
5
4
  import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
6
- import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-OHlOXlOE.mjs";
5
+ import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-CnHHst9r.mjs";
7
6
  //#region ../content-model/src/entry-slots/types.ts
8
7
  function ok(value) {
9
8
  return {
@@ -1,7 +1,7 @@
1
- import { d as siteLocationRenderContext, i as collectMediaAssetSidecar, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport } from "./pageRuntimeSupport-C4Dh5-mB.mjs";
1
+ import { d as siteLocationRenderContext, i as collectMediaAssetSidecar, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport } from "./pageRuntimeSupport-Dzz_Dze6.mjs";
2
2
  import { r as requireSdkTheme } from "./themeAdmission-DGSAlFUK.mjs";
3
3
  import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
4
- import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-OHlOXlOE.mjs";
4
+ import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-CnHHst9r.mjs";
5
5
  //#region src/rendering/helpers/loadPage.ts
6
6
  /**
7
7
  * Server-side helper to fetch all data needed for <Page> component.
@@ -1,5 +1,5 @@
1
1
  import { i as ALLOWED_TRANSFORM_IDS, n as ALLOWED_NODE_TYPES } from "./titleSourceSchema-DwKJfMYb.mjs";
2
- import { _ as formatThemeSummaryForPrompt, a as collectValidationErrors, c as llmAtRuleSchema, d as llmMediaAtRuleSchema, f as llmNestedRuleSchema, g as normalizeLlmMediaAtRule, h as normalizeLlmCssRule, l as llmCustomBlockSchema, m as normalizeDeclarationsArrayToRecord, n as validateManifestOutput, o as formatValidationFeedback, p as llmThemePatchOpSchema, s as htmlToManifestOutputSchema, t as convertHtmlToManifest, u as llmCustomCssRuleSchema, v as summarizeThemeForLLM } from "./three-pass-converter-_j2UE2tR.mjs";
2
+ import { _ as formatThemeSummaryForPrompt, a as collectValidationErrors, c as llmAtRuleSchema, d as llmMediaAtRuleSchema, f as llmNestedRuleSchema, g as normalizeLlmMediaAtRule, h as normalizeLlmCssRule, l as llmCustomBlockSchema, m as normalizeDeclarationsArrayToRecord, n as validateManifestOutput, o as formatValidationFeedback, p as llmThemePatchOpSchema, s as htmlToManifestOutputSchema, t as convertHtmlToManifest, u as llmCustomCssRuleSchema, v as summarizeThemeForLLM } from "./three-pass-converter-CQWdnfjV.mjs";
3
3
  //#region src/manifest/prompt/knowledge-base.ts
4
4
  /**
5
5
  * LLM Knowledge Base for HTML-to-Manifest Conversion
@@ -81,6 +81,20 @@ const mediaTypeDiscriminants = [
81
81
  "spreadsheet",
82
82
  "archive"
83
83
  ];
84
+ const DISPLAY_MEDIA_KINDS = [
85
+ "image",
86
+ "video",
87
+ "audio"
88
+ ];
89
+ const PUBLIC_FILE_FIELD_KINDS = [
90
+ "document",
91
+ "spreadsheet",
92
+ "archive",
93
+ "audio"
94
+ ];
95
+ function isDisplayMediaKind(kind) {
96
+ return DISPLAY_MEDIA_KINDS.includes(kind);
97
+ }
84
98
  //#endregion
85
99
  //#region ../media-core/src/renderableMediaAsset.ts
86
100
  /** Shared identifier indexing for admitted site-scoped projections. */
@@ -228,4 +242,4 @@ const runtimeMediaSchema = z.union([
228
242
  assetMediaSchema
229
243
  ]);
230
244
  //#endregion
231
- export { unsafeAsStoragePath as _, persistableMediaSchema as a, ok as b, buildRenderableMediaAssetIndex as c, resolveManagedMediaReference as d, mediaIdentifierSchema as f, unsafeAsStorageBucketName as g, unsafeAsMediaAssetId as h, mediaSchema as i, renderableMediaAssetSchema as l, parseMediaIdentifier as m, externalMediaSchema as n, runtimeMediaSchema as o, parseCanonicalMediaIdentifier as p, imageMediaSchema as r, videoMediaSchema as s, assetMediaSchema as t, indexRenderableMediaAssets as u, parseUuidBrand as v, err as y };
245
+ export { ok as C, err as S, parseMediaIdentifier as _, persistableMediaSchema as a, unsafeAsStoragePath as b, buildRenderableMediaAssetIndex as c, resolveManagedMediaReference as d, PUBLIC_FILE_FIELD_KINDS as f, parseCanonicalMediaIdentifier as g, mediaIdentifierSchema as h, mediaSchema as i, renderableMediaAssetSchema as l, mediaTypeDiscriminants as m, externalMediaSchema as n, runtimeMediaSchema as o, isDisplayMediaKind as p, imageMediaSchema as r, videoMediaSchema as s, assetMediaSchema as t, indexRenderableMediaAssets as u, unsafeAsMediaAssetId as v, parseUuidBrand as x, unsafeAsStorageBucketName as y };
@@ -109,7 +109,11 @@ function toEventNode(subject) {
109
109
  location: {
110
110
  "@type": "Place",
111
111
  name: subject.event.locationName,
112
- ...subject.event.locationAddress ? { address: subject.event.locationAddress } : {}
112
+ ...subject.event.locationAddress ? { address: subject.event.locationAddress } : {},
113
+ ...subject.event.locationArea ? { containedInPlace: {
114
+ "@type": "Place",
115
+ name: subject.event.locationArea
116
+ } } : {}
113
117
  },
114
118
  ...subject.event.offer ? { offers: {
115
119
  "@type": "Offer",