@riverbankcms/sdk 0.164.0 → 0.165.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 (198) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CubPwupc.d.ts → BlocksIslandsHydrator-CdsSMQEv.d.ts} +1 -1
  2. package/dist/_dts/{Page-CDzsagB2.d.ts → Page-D6gp2Ipb.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-CPRQbRCI.d.ts → SdkPreviewMode-DNXAvnet.d.ts} +83 -71
  4. package/dist/_dts/{client-CbeYTSry.d.ts → client-BkkExozE.d.ts} +1 -1
  5. package/dist/_dts/{content-types--uYRIcIF.d.ts → content-types-CXNAD7ef.d.ts} +2 -2
  6. package/dist/_dts/{contracts-DJQYAOsv.d.ts → contracts-XRXhbLWP.d.ts} +4 -4
  7. package/dist/_dts/{footerPageOutline-CKkhBwgJ.d.ts → footerPageOutline-BP2bJYdY.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata--qd7NCIA.d.ts → generatePageMetadata-DcMtbztV.d.ts} +2 -2
  9. package/dist/_dts/{index-D_pQO-AS.d.ts → index-B4ozSzFP.d.ts} +35642 -35443
  10. package/dist/_dts/{index-DYQFmf--.d.ts → index-BdkHhyf8.d.ts} +1 -1
  11. package/dist/_dts/{index-BZE-1azr.d.ts → index-CQfJhOEA.d.ts} +2 -2
  12. package/dist/_dts/{index-BpEbwDM7.d.ts → index-CRRiddNp.d.ts} +4 -4
  13. package/dist/_dts/{index-CjdIn9-_.d.ts → index-C_3kdrUb.d.ts} +2 -2
  14. package/dist/_dts/{index-JS8WYgD3.d.ts → index-DAPTSmBM.d.ts} +401 -569
  15. package/dist/_dts/{index-DriYVLfT.d.ts → index-DKNEgSOS.d.ts} +2 -2
  16. package/dist/_dts/{index-wegfy7lf.d.ts → index-RXkE3a7M.d.ts} +3 -3
  17. package/dist/_dts/{loadContent-DUi94Qfk.d.ts → loadContent-B9vJMq3s.d.ts} +6 -6
  18. package/dist/_dts/{resolvePageContent-JDE0ry6T.d.ts → resolvePageContent-DIQyYUi-.d.ts} +2 -2
  19. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client.d.ts +6 -6
  22. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  23. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/index.d.ts +8 -8
  26. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  27. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  28. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  29. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  30. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  31. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  33. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  35. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  36. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  37. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  38. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  39. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  40. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  41. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  42. package/dist/_dts/sdk/src/server.d.ts +5 -5
  43. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  44. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  45. package/dist/_dts/{types-W40f2olO.d.ts → types-BDF73NzM.d.ts} +2 -2
  46. package/dist/_dts/{types-DiciZDrk.d.ts → types-Cl0nP6al.d.ts} +3 -3
  47. package/dist/_dts/{types-DubJnBnI.d.ts → types-mstFvhK4.d.ts} +7 -7
  48. package/dist/_dts/{validation-BF4_zNkR.d.ts → validation-DVWqSvjK.d.ts} +4 -4
  49. package/dist/client/{BlocksIslandsHydrator-64hFxF02.mjs → BlocksIslandsHydrator-CzKpH9Pm.mjs} +20 -20
  50. package/dist/client/{BookingMailingListNote-CSQyFm9J.mjs → BookingMailingListNote-rUqsBN7L.mjs} +1 -1
  51. package/dist/client/{CalendarNavigationChevron-Bvkx8Z7Y.mjs → CalendarNavigationChevron-YGzw2IPB.mjs} +6 -6
  52. package/dist/client/{CheckboxChoice-3PhxDxgR.mjs → CheckboxChoice-DlTC4J2a.mjs} +1 -1
  53. package/dist/client/{DemoBookingPortalAccess-pt2xXBQp.mjs → DemoBookingPortalAccess-D2LyS_Bi.mjs} +5 -5
  54. package/dist/client/{DemoPortalSignInLink-Qw780EfW.mjs → DemoPortalSignInLink-BaFg2Uit.mjs} +1 -1
  55. package/dist/client/{EventCalendar.client-DWoboRW5.mjs → EventCalendar.client-tRrhPscX.mjs} +17 -10
  56. package/dist/client/{EventCombined.client-C98ucpcP.mjs → EventCombined.client-6cfAVtnZ.mjs} +8 -8
  57. package/dist/client/{EventEmbeddedCheckoutStep-DHRlFfkp.mjs → EventEmbeddedCheckoutStep-CDNUpI0S.mjs} +2 -2
  58. package/dist/client/{EventItem-hrSyTApW.mjs → EventItem-dILw2PN_.mjs} +11 -5
  59. package/dist/client/{EventListWeekNavigation-C3t7H13W.mjs → EventListWeekNavigation-ClgLtjNY.mjs} +1 -1
  60. package/dist/client/{EventListing.client-Cp11sBX_.mjs → EventListing.client-BNueAHmU.mjs} +3 -3
  61. package/dist/client/{EventListing.view-Dd5QHIAf.mjs → EventListing.view-DtVbKVkt.mjs} +56 -12
  62. package/dist/client/{EventRegistrationPayment-ByT88VHR.mjs → EventRegistrationPayment-CzkG0NSJ.mjs} +10 -10
  63. package/dist/client/{LocationMapActions-BsepG5Vv.mjs → LocationMapActions-zWQsJhE5.mjs} +2 -2
  64. package/dist/client/{MapDrawingSvg-R4JMT4yd.mjs → MapDrawingSvg-D1AO_o4h.mjs} +1 -1
  65. package/dist/client/{Page-Dub71o3c.mjs → Page-DUr2YhFR.mjs} +1521 -235
  66. package/dist/client/{ProtectedSubmitButton-DGbgGvdh.mjs → ProtectedSubmitButton-2fJqT_NR.mjs} +1 -1
  67. package/dist/client/{SpamProtectionWidget-CRsKTQV-.mjs → SpamProtectionWidget-CCF6YLUX.mjs} +5 -3
  68. package/dist/client/{StepIndicator-Bp7MyutT.mjs → StepIndicator-udNHcpOT.mjs} +2 -2
  69. package/dist/client/{TabBarFragment-C4WJyybx.mjs → TabBarFragment-C_kt-PXh.mjs} +1 -1
  70. package/dist/client/{ThemedButton-BGVwNwE-.mjs → ThemedButton-Cfbo1bfh.mjs} +1 -1
  71. package/dist/client/{accordion-vCG_JC5t.mjs → accordion-3CYNWzTS.mjs} +1 -1
  72. package/dist/client/{altchaProtection-BWchRM3v.mjs → altchaProtection-DjIV9A5n.mjs} +1 -1
  73. package/dist/client/{booking-form.client-CHTbcZJM.mjs → booking-form.client-BSbWgLyx.mjs} +13 -13
  74. package/dist/client/{bookingForm-BxbUbzUr.mjs → bookingForm-2MoFBWSt.mjs} +4 -4
  75. package/dist/client/bookings.mjs +5 -5
  76. package/dist/client/{carousel-FM1mkkL0.mjs → carousel-Cu5mcpO-.mjs} +2 -2
  77. package/dist/client/{carousel.client-ChoLiWwD.mjs → carousel.client-CQLV8_Al.mjs} +1 -1
  78. package/dist/client/{cart-BDFhbh9j.mjs → cart-CDc6x9cR.mjs} +3 -3
  79. package/dist/client/{cart.client-x3HOke6T.mjs → cart.client-BWS2r5Ef.mjs} +1 -1
  80. package/dist/client/{checkout-BibhwnTd.mjs → checkout-CkxPqSwD.mjs} +3 -3
  81. package/dist/client/{checkout.client-CE4jUi0G.mjs → checkout.client-DJfomKQc.mjs} +1 -1
  82. package/dist/client/client.mjs +2 -2
  83. package/dist/client/{context-BNAM7NsW.mjs → context-CBV21-9L.mjs} +1 -1
  84. package/dist/client/{cta-ChiN1Vgg.mjs → cta-Bw-al3cs.mjs} +26 -2
  85. package/dist/client/{dateFormatting-QwBSo0hK.mjs → dateFormatting-CFIUJ4Uf.mjs} +1 -1
  86. package/dist/client/{demoPortalMagicLink-NwKJk6gn.mjs → demoPortalMagicLink-D0veHJyi.mjs} +1 -1
  87. package/dist/client/{enhanceHeaderSection-D4zqEBDl.mjs → enhanceHeaderSection-CEqqq92r.mjs} +3 -3
  88. package/dist/client/{event-details.client-jFyFjOIC.mjs → event-details.client-Bk2kQ7ax.mjs} +1 -1
  89. package/dist/client/{event-registration.client-BK_jVv3R.mjs → event-registration.client-QMqtIywj.mjs} +23 -14
  90. package/dist/client/{eventCalendar-DSkzejQh.mjs → eventCalendar-BTDTMosr.mjs} +4 -4
  91. package/dist/client/{eventCombined-BG-BEaYh.mjs → eventCombined-BC7a709c.mjs} +4 -4
  92. package/dist/client/{eventDetails-BhIwXAKe.mjs → eventDetails-DL08GpUc.mjs} +2 -2
  93. package/dist/client/{eventListing-DQtyO1Xj.mjs → eventListing-BfzuEQp_.mjs} +4 -4
  94. package/dist/client/{eventRegistration-DRTz8X0M.mjs → eventRegistration-Lfyzh1Ab.mjs} +4 -4
  95. package/dist/client/{form-GXqjObPC.mjs → form-L-xZOBUS.mjs} +3 -3
  96. package/dist/client/{form.client-CoKNba2e.mjs → form.client-BtpK3TZW.mjs} +6 -6
  97. package/dist/client/{form.parts-magB_epJ.mjs → form.parts-Djos5Un4.mjs} +3 -3
  98. package/dist/client/{formatDate-BiloOyjS.mjs → formatDate-DGmrm7YB.mjs} +1 -1
  99. package/dist/client/gifting/client.mjs +5 -5
  100. package/dist/client/{headerSection-BMQCPHT3.mjs → headerSection-f16OGkz-.mjs} +2 -2
  101. package/dist/client/{mediaAssets-BX-vWwQc.mjs → mediaAssets-DHAmrVIi.mjs} +1 -1
  102. package/dist/client/{mediaContext-CdqGYlWl.mjs → mediaContext-CwT6ZOm7.mjs} +1 -1
  103. package/dist/client/{newsletter-form.client-8orCez1z.mjs → newsletter-form.client-DpHNZc7k.mjs} +8 -8
  104. package/dist/client/{newsletter-form.parts-D8NgHY_F.mjs → newsletter-form.parts-CLGH20PL.mjs} +2 -2
  105. package/dist/client/{newsletterForm-BhBNsS3n.mjs → newsletterForm-BEU0Ocu9.mjs} +3 -3
  106. package/dist/client/{noop-C2vZse15.mjs → noop-CQU7tiMg.mjs} +8 -4
  107. package/dist/client/portal/client.mjs +13 -13
  108. package/dist/client/{product-detail.client-CQ0k0fbH.mjs → product-detail.client-Be-om1BT.mjs} +1 -1
  109. package/dist/client/{product-list.client-Xlr1P0x9.mjs → product-list.client-DR7hD5Vs.mjs} +1 -1
  110. package/dist/client/{productDetail-BsCao6X4.mjs → productDetail-BD42UOmG.mjs} +3 -3
  111. package/dist/client/{productList-Cc-PmbEe.mjs → productList-CSk8sXCl.mjs} +3 -3
  112. package/dist/client/{propsDecoder-DikkDJ9x.mjs → propsDecoder-C_Y6VYnF.mjs} +3 -3
  113. package/dist/client/{purchase-BMsWpx8y.mjs → purchase-BV5xfaZH.mjs} +1 -1
  114. package/dist/client/{registry.server-BpLZo3bC.mjs → registry.server-CIKtTsCl.mjs} +189 -162
  115. package/dist/client/rendering/client.mjs +27 -27
  116. package/dist/client/rendering/islands.mjs +1 -1
  117. package/dist/client/rendering.mjs +7 -7
  118. package/dist/client/{richText-coerce-WuMYrBm3.mjs → richText-coerce-spWtx86G.mjs} +1 -1
  119. package/dist/client/{routeIslandApiConfig-DNx6b07x.mjs → routeIslandApiConfig-CROHPlYS.mjs} +1 -1
  120. package/dist/client/{schema-DMUkBtIO.mjs → schema-BdSglH2X.mjs} +189 -20
  121. package/dist/client/{shop-DyXtB5TD.mjs → shop-DscvMz86.mjs} +3 -3
  122. package/dist/client/{shop-commerce-xjWH7-Ym.mjs → shop-commerce-CDUohm_2.mjs} +11 -11
  123. package/dist/client/{shop-commerce-store-CbBsS1kD.mjs → shop-commerce-store-B9nw4lRP.mjs} +1 -1
  124. package/dist/client/{shop.client-QOKqQPgK.mjs → shop.client-M3kNsVPi.mjs} +12 -12
  125. package/dist/client/{shop.interactive-BQdm441g.mjs → shop.interactive-BGmkdIAZ.mjs} +251 -24
  126. package/dist/client/{shopShared-CyW6MU48.mjs → shopShared-BdWp6LHa.mjs} +2 -2
  127. package/dist/client/{site-styles-BLHYJ8S7.mjs → site-styles-CWHmlVT5.mjs} +2612 -448
  128. package/dist/client/spam-protection.mjs +2 -2
  129. package/dist/client/{timetableModel-BgdkhRuA.mjs → timetableModel-Dynh5-j4.mjs} +10 -10
  130. package/dist/client/{useAvailableSlots-wmdo6uZ8.mjs → useAvailableSlots-Cw9paRPY.mjs} +3 -3
  131. package/dist/client/{useBookingNowIso-CUExAee1.mjs → useBookingNowIso-C9SF2rC6.mjs} +1 -1
  132. package/dist/client/{useDiscountApply-BRM-OoTN.mjs → useDiscountApply-B-QJfBg0.mjs} +2 -2
  133. package/dist/client/{useDiscountCodeUi-BEIvL31G.mjs → useDiscountCodeUi-Uvum8q9d.mjs} +1 -1
  134. package/dist/client/{useEventPagination-Dk3g64we.mjs → useEventPagination-BfM3xk6j.mjs} +9 -156
  135. package/dist/client/{view-BnaOmrap.mjs → view-DXOuduIr.mjs} +4 -4
  136. package/dist/client/{view-vhKGFfC3.mjs → view-DlkCDfuN.mjs} +45 -32
  137. package/dist/client/{wizardSteps-xqU4q63H.mjs → wizardSteps-DManVJpc.mjs} +49 -39
  138. package/dist/preview-next/before-render.mjs +2 -2
  139. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-43wIAWr4.mjs → EventEmbeddedCheckoutStep-Die6Y25O.mjs} +1 -1
  140. package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-Bp4BHLCL.mjs} +1 -1
  141. package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-Cb0JhM9p.mjs} +2 -2
  142. package/dist/preview-next/client/{PreviewEditorSidebar-C3AQVxQt.mjs → PreviewEditorSidebar-DEP3xD9K.mjs} +3566 -3197
  143. package/dist/preview-next/client/{PreviewEditorUI-C-1zDCR_.mjs → PreviewEditorUI-CxwlLBGw.mjs} +577 -172
  144. package/dist/preview-next/client/{SdkPreviewModeRuntime-C6Rhm2NQ.mjs → SdkPreviewModeRuntime-Cpe-XP8e.mjs} +1 -1
  145. package/dist/preview-next/client/{SdkPreviewModeRuntime-B47yHFL0.mjs → SdkPreviewModeRuntime-QDkMPASV.mjs} +3811 -4882
  146. package/dist/preview-next/client/{siteStyleAccess-BiSyYyyr.mjs → SiteChromeCustomizeButton-1JaoGOKX.mjs} +8506 -13317
  147. package/dist/preview-next/client/{ThemedButton-g7NPrsGp.mjs → ThemedButton-Dc6aJ34Z.mjs} +214 -23
  148. package/dist/preview-next/client/editorStatusDecision-DR4BBKhy.mjs +101 -0
  149. package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CqxuVAyz.mjs} +1 -1
  150. package/dist/preview-next/client/{previewChromeSurface-Cjwxv90x.mjs → previewChromeSurface-yuwnDP3B.mjs} +49 -6
  151. package/dist/preview-next/client/{previewAuthStore-By_zfrS5.mjs → previewSidebarNavigation-AXUj9-qQ.mjs} +205988 -193500
  152. package/dist/preview-next/client/runtime.mjs +3 -3
  153. package/dist/preview-next/client/{sdk-runtime-BG2HYvQj.mjs → sdk-runtime-O-eA9-rV.mjs} +1 -1
  154. package/dist/preview-next/keepAlive.mjs +3 -3
  155. package/dist/preview-next/middleware.mjs +2 -2
  156. package/dist/preview-next/{route-contract-D5tHZEz5.mjs → route-contract-BBAJjFIz.mjs} +11 -8
  157. package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
  158. package/dist/preview-next/session.mjs +1 -1
  159. package/dist/server/{Block.shared-Iy7g11iP.mjs → Block.shared-ClFI3qpX.mjs} +4 -4
  160. package/dist/server/{bindings-BVJGgUT0.mjs → bindings-Bi8EoRZD.mjs} +2 -2
  161. package/dist/server/{client-CiKaE8ms.mjs → client-DfMDbZ41.mjs} +2 -2
  162. package/dist/server/config-validation.mjs +1 -1
  163. package/dist/server/config.mjs +2 -2
  164. package/dist/server/{effectiveNavLinkStyle-EDSdd_oK.mjs → effectiveNavLinkStyle-BHIYPVG1.mjs} +2353 -214
  165. package/dist/server/index.mjs +3 -3
  166. package/dist/server/{loadContent-BuintpdO.mjs → loadContent-dEEhQxL7.mjs} +4 -4
  167. package/dist/server/loadPage-CnVB-aeL.mjs +2 -0
  168. package/dist/server/{loadPage-Dk4wea8M.mjs → loadPage-DBFBad8A.mjs} +2 -2
  169. package/dist/server/next/middleware.mjs +1 -1
  170. package/dist/server/next/revalidate.mjs +1 -1
  171. package/dist/server/next.mjs +11 -11
  172. package/dist/server/{overrideResolution-BDiQWM7D.mjs → overrideResolution-BIJbiXYc.mjs} +1 -1
  173. package/dist/server/{overrides-DVemf-GV.mjs → overrides-DhF87Vsd.mjs} +294 -103
  174. package/dist/server/page-converter.mjs +1 -1
  175. package/dist/server/{prebuild-DubLNgRH.mjs → prebuild-DaemmWQL.mjs} +1 -1
  176. package/dist/server/prebuild.mjs +1 -1
  177. package/dist/server/{prefetchBlockData-Bnbwoe5n.mjs → prefetchBlockData-FwcsT5H2.mjs} +293 -90
  178. package/dist/server/{publicProducts-D3Fc5TKk.mjs → publicProducts-Bz8loTRn.mjs} +13 -10
  179. package/dist/server/{registry-zjd1P2Dl.mjs → registry-Cdvz1OtL.mjs} +499 -374
  180. package/dist/server/rendering/server.mjs +4 -4
  181. package/dist/server/rendering.mjs +8 -8
  182. package/dist/server/{resolveBlockData-CZJ--nH6.mjs → resolveBlockData-CLpAJWWf.mjs} +1 -1
  183. package/dist/server/routing.mjs +1 -1
  184. package/dist/server/{schema-BlTWmTSl.mjs → schema-uSA_x1Zh.mjs} +189 -20
  185. package/dist/server/server.mjs +3 -3
  186. package/dist/server/{site-styles-yHytcXIB.mjs → site-styles-CntHn2KI.mjs} +55 -30
  187. package/dist/server/{siteChromeOverlayClearance-D0uCNZ7E.mjs → siteChromeOverlayClearance-DqP40Ka0.mjs} +2 -2
  188. package/dist/server/{src-cbbK3Bho.mjs → src-DsYPhTbs.mjs} +1009 -25
  189. package/dist/server/theme-bridge.mjs +1 -1
  190. package/dist/server/theme.mjs +1 -1
  191. package/dist/server/{themeAdmission-BdY8lP-K.mjs → themeAdmission-CSknYpxk.mjs} +2 -2
  192. package/dist/server/{validation-CGH-Xs4E.mjs → validation-DYxhLzqQ.mjs} +2 -2
  193. package/dist/server/{version-DoOG6F13.mjs → version-Beu4q-Gv.mjs} +1 -1
  194. package/dist/styles/index.css +914 -10
  195. package/package.json +1 -1
  196. package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
  197. package/dist/preview-next/client/spinner-DnWpeDp2.mjs +0 -67
  198. package/dist/server/loadPage-BwjncpJf.mjs +0 -2
@@ -1,4 +1,4 @@
1
- import { Rr as parseBackgroundContent, n as listBlockDescriptors } from "./registry-zjd1P2Dl.mjs";
1
+ import { Br as parseBackgroundContent, n as listBlockDescriptors } from "./registry-Cdvz1OtL.mjs";
2
2
  import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
3
3
  import { i as getJsonFromAiText, r as getJsonFromAi, t as convertHtmlToManifest } from "./three-pass-converter-Chnb1XD-.mjs";
4
4
  import { z } from "zod";
@@ -1,4 +1,4 @@
1
- import { t as SDK_VERSION } from "./version-DoOG6F13.mjs";
1
+ import { t as SDK_VERSION } from "./version-Beu4q-Gv.mjs";
2
2
  import * as crypto$1 from "crypto";
3
3
  import * as path from "path";
4
4
  import * as fs from "fs";
@@ -1,2 +1,2 @@
1
- import { t as prebuildCache } from "./prebuild-DubLNgRH.mjs";
1
+ import { t as prebuildCache } from "./prebuild-DaemmWQL.mjs";
2
2
  export { prebuildCache };
@@ -1,9 +1,9 @@
1
- import { Cn as ok, Dn as parseResolvedSurface, Dt as indexRenderableMediaAssets, Et as renderableMediaAssetSchema, Lt as asDesignBlockId, On as parseSurfaceTree, Ot as resolveManagedMediaReference, Sn as err, St as mediaSchema, Ut as asSiteStyleId, Vt as asLayoutVariantKey, _n as parseSiteTermsVersionId, bt as stripStaleTransitionStyleGroup, dn as parseApiKeyId, dr as defaultThemeTokens, gn as parseSiteId, kn as resolveSurface, r as themeSchema, tn as makeBoundaryId, vn as parseUserId, wn as mapDrawingStyle, wt as runtimeMediaSchema } from "./schema-BlTWmTSl.mjs";
2
- import { $r as lookSkinSlotTransform, Ai as validateManifestLookField, Br as parseRuntimeBackgroundContent, Bt as buildEventListWeek, Ci as blockCategoryEnum, Da as toUtcIsoDateTimeString, Ei as fieldSchema, F as projectRecurringSchedule, Fi as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, G as resolveCalendarReadProfile, Gn as headerRuntimeTransforms, Gt as eventCalendarWeekStart, Hn as readRuntimeNow, Hr as resolveSurfaceForegroundStyles, Jr as BACKGROUND_POSITION_PRESET_VALUES, Ki as augmentManifest, Kn as chromeLogoTransforms, Mi as validateSdkBlockDeclaration, Ni as NodeSchema, Pi as bindingSchema, Pr as boxStylesTransforms, Qr as lookQuoteLimitTransform, Rn as contentTransforms, Rr as parseBackgroundContent, Ti as builtInBlockKindsSchema, Un as resolveDateRuntimeContext, Ur as resolveBackgroundColorValue, Vr as resolveSectionSurfaceForeground, W as calendarWindowQuerySchema, Wn as mediaTransforms, Xn as uiTransforms, Xr as lookCarouselRegionTransform, Yn as resolveHeroTitleLength, Yr as getAnchorClasses, Zn as formattingTransforms, Zr as lookLeadSlotTransform, aa as parseMailingListProviderScope, bt as eventCalendarListLayoutOptions, ei as asPartialObject, ji as sdkBlockPresentationShape, la as locationValueSchema, ni as runTransforms, nt as computeMediaTransformStyle, pr as standardAspectRatioOptions, pt as resolveEventSelection, qn as layoutTransforms, qr as standardImageShapeOptions, t as getBlockDefinition, ti as createTransformRegistry, vt as eventCalendarListGroupingDecision, wi as blockSectionDeclarationShape, xa as getLocalScheduleDate, xt as resolveEventCalendarReadPlan, yt as eventCalendarListLayoutCompatibleDisplayModeValues, zr as parseBackgroundOverlay } from "./registry-zjd1P2Dl.mjs";
1
+ import { An as resolveSurface, Cn as err, Ct as mediaSchema, Dt as renderableMediaAssetSchema, Ht as asLayoutVariantKey, On as parseResolvedSurface, Ot as indexRenderableMediaAssets, Rt as asDesignBlockId, Tn as mapDrawingStyle, Tt as runtimeMediaSchema, Wt as asSiteStyleId, _n as parseSiteId, bt as stripStaleTransitionStyleGroup, fn as parseApiKeyId, fr as defaultThemeTokens, kn as parseSurfaceTree, kt as resolveManagedMediaReference, nn as makeBoundaryId, r as themeSchema, vn as parseSiteTermsVersionId, wn as ok, xt as themeV2CompilerOwnedFieldNames, yn as parseUserId } from "./schema-uSA_x1Zh.mjs";
2
+ import { $n as formattingTransforms, $r as lookSkinSlotTransform, Bn as contentTransforms, Br as parseBackgroundContent, Bt as buildEventListWeek, Ca as getLocalScheduleDate, Di as builtInBlockKindsSchema, Ei as blockSectionDeclarationShape, F as projectRecurringSchedule, Fi as NodeSchema, G as resolveCalendarReadProfile, Gn as resolveDateRuntimeContext, Gr as resolveBackgroundColorValue, Hr as parseRuntimeBackgroundContent, Ii as bindingSchema, Ir as boxStylesTransforms, Ji as augmentManifest, Jn as chromeLogoTransforms, Jr as BACKGROUND_POSITION_PRESET_VALUES, Kn as mediaTransforms, Li as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Mi as validateManifestLookField, Ni as sdkBlockPresentationShape, Oi as fieldSchema, Pi as validateSdkBlockDeclaration, Qn as uiTransforms, Qr as lookQuoteLimitTransform, Ti as blockCategoryEnum, Ur as resolveSectionSurfaceForeground, Vr as parseBackgroundOverlay, W as calendarWindowQuerySchema, Wn as readRuntimeNow, Wr as resolveSurfaceForegroundStyles, Xr as lookCarouselRegionTransform, Yn as layoutTransforms, Yr as getAnchorClasses, Zn as resolveHeroTitleLength, Zr as lookLeadSlotTransform, bt as eventCalendarListLayoutOptions, da as locationValueSchema, ei as asPartialObject, hr as standardAspectRatioOptions, ka as toUtcIsoDateTimeString, ni as runTransforms, nt as computeMediaTransformStyle, pt as resolveEventSelection, qn as headerRuntimeTransforms, qr as standardImageShapeOptions, qt as eventCalendarWeekStart, sa as parseMailingListProviderScope, t as getBlockDefinition, ti as createTransformRegistry, vt as eventCalendarListGroupingDecision, xt as resolveEventCalendarReadPlan, yt as eventCalendarListLayoutCompatibleDisplayModeValues } from "./registry-Cdvz1OtL.mjs";
3
3
  import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
4
- import { m as SUPPORTED_LOADER_ENDPOINTS$1, n as parsePublicProductCategorySelector } from "./publicProducts-D3Fc5TKk.mjs";
5
- import { D as getGradientPreset, E as gradientToCss, G as resolveEffectiveKnobs, K as cardListFamilyBlocks, O as parseGradientPresetId, _ as readStoredMode, b as resolvePublishedLook, g as arrangementManifestFromVariants, h as resolveLookSlotSurfaces, m as resolveItemSurface, p as arrangementSlotNames, q as cardListKnobBlocks, v as resolveEffectiveArrangement, x as deriveSiteStyleBlockPolicy, y as resolveModeArrangement } from "./effectiveNavLinkStyle-EDSdd_oK.mjs";
6
- import { a as deriveSectionGround, c as resolveSectionBackground, i as applyLookPhotoTreatment, n as composeBoundary, o as heroPhotoPaintsGround, r as sectionFactsForContent, s as parseCanonicalRuntimeBackground, t as boundaryLayout } from "./site-styles-yHytcXIB.mjs";
4
+ import { m as SUPPORTED_LOADER_ENDPOINTS$1, n as parsePublicProductCategorySelector } from "./publicProducts-Bz8loTRn.mjs";
5
+ import { B as sectionShapeForGround, D as gradientToCss, H as sectionShapeHook, O as getGradientPreset, S as deriveSiteStyleBlockPolicy, V as sectionShapeFromContent, X as cardListFamilyBlocks, Y as resolveEffectiveKnobs, Z as cardListKnobBlocks, _ as arrangementManifestFromVariants, b as resolveModeArrangement, f as arrangementAppearancePresets, g as resolveLookSlotSurfaces, h as resolveItemSurface, k as parseGradientPresetId, m as arrangementSlotNames, v as readStoredMode, x as resolvePublishedLook, y as resolveEffectiveArrangement } from "./effectiveNavLinkStyle-BHIYPVG1.mjs";
6
+ import { a as sectionFactsForContent, c as parseCanonicalRuntimeBackground, i as composeBoundary, l as resolveSectionBackground, n as storedSectionPhoto, o as applyLookPhotoTreatment, r as boundaryLayout, s as deriveSectionGround, t as heroPhotoPaintsGround } from "./site-styles-CntHn2KI.mjs";
7
7
  import { i as isObjectRecord, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
8
8
  import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
9
9
  import { z } from "zod";
@@ -388,43 +388,56 @@ function parseStoredVariant(manifest, content) {
388
388
  }
389
389
  //#endregion
390
390
  //#region ../blocks/src/pageRenderAdmission.ts
391
- function toPresentationPage(page) {
392
- if (!page) return null;
393
- return {
394
- ...page,
395
- blocks: page.blocks.map((block) => {
396
- const presentationMetadata = {
397
- id: block.id,
398
- kind: block.kind,
399
- purpose: block.purpose,
400
- ...block.contentVersionId ? { contentVersionId: block.contentVersionId } : {},
401
- ...block.draftContentId !== void 0 ? { draftContentId: block.draftContentId } : {},
402
- publishedPlacement: block.publishedPlacement,
403
- ...block.bindings ? { bindings: block.bindings } : {}
404
- };
405
- return block.admission.kind === "renderable" ? {
406
- ...presentationMetadata,
407
- content: block.admission.content,
408
- presentationAdmission: { kind: "renderable" }
409
- } : {
410
- ...presentationMetadata,
411
- presentationAdmission: {
412
- kind: "invalid",
413
- error: block.admission.error
414
- }
415
- };
416
- })
391
+ function presentPublicBlock(block) {
392
+ const metadata = {
393
+ id: block.id,
394
+ kind: block.kind,
395
+ purpose: block.purpose,
396
+ ...block.contentVersionId ? { contentVersionId: block.contentVersionId } : {},
397
+ ...block.draftContentId !== void 0 ? { draftContentId: block.draftContentId } : {},
398
+ publishedPlacement: block.publishedPlacement,
399
+ ...block.bindings ? { bindings: block.bindings } : {}
400
+ };
401
+ return block.admission.kind === "renderable" ? {
402
+ ...metadata,
403
+ content: block.admission.content,
404
+ presentationAdmission: { kind: "renderable" }
405
+ } : {
406
+ ...metadata,
407
+ presentationAdmission: {
408
+ kind: "invalid",
409
+ error: block.admission.error
410
+ }
417
411
  };
418
412
  }
419
- function toEditorPresentationPage(page) {
420
- if (!page) return null;
413
+ function presentEditorBlock(block) {
421
414
  return {
415
+ ...block,
416
+ presentationAdmission: { kind: "editor" }
417
+ };
418
+ }
419
+ function createPresentationPageReader() {
420
+ const readBlock = memoizePresentationBlock(presentPublicBlock);
421
+ return (page) => page ? {
422
422
  ...page,
423
- blocks: page.blocks.map((block) => ({
424
- ...block,
425
- publishedPlacement: block.publishedPlacement,
426
- presentationAdmission: { kind: "editor" }
427
- }))
423
+ blocks: page.blocks.map(readBlock)
424
+ } : null;
425
+ }
426
+ function createEditorPresentationPageReader() {
427
+ const readBlock = memoizePresentationBlock(presentEditorBlock);
428
+ return (page) => page ? {
429
+ ...page,
430
+ blocks: page.blocks.map(readBlock)
431
+ } : null;
432
+ }
433
+ function memoizePresentationBlock(present) {
434
+ const blocks = /* @__PURE__ */ new WeakMap();
435
+ return (block) => {
436
+ const cached = blocks.get(block);
437
+ if (cached) return cached;
438
+ const presentation = present(block);
439
+ blocks.set(block, presentation);
440
+ return presentation;
428
441
  };
429
442
  }
430
443
  //#endregion
@@ -572,6 +585,20 @@ const onOff = [{
572
585
  value: "false",
573
586
  label: "Off"
574
587
  }];
588
+ const columnCounts = [
589
+ {
590
+ value: "2",
591
+ label: "2"
592
+ },
593
+ {
594
+ value: "3",
595
+ label: "3"
596
+ },
597
+ {
598
+ value: "4",
599
+ label: "4"
600
+ }
601
+ ];
575
602
  const systemCustomizeFacetDefinitions = [
576
603
  eventCalendarListLayoutFacet,
577
604
  fixedKnob("block.offerings-preview", "dates", "Dates", [{
@@ -664,6 +691,9 @@ const systemCustomizeFacetDefinitions = [
664
691
  ...fixedKnob("block.feature-cards", "showPhotos", "Show photos", onOff, "true", false, true),
665
692
  blockKinds: cardListFamilyBlocks
666
693
  },
694
+ fixedKnob("block.feature-cards", "columns", "Columns", columnCounts, "3", true),
695
+ fixedKnob("block.image-gallery", "blackAndWhite", "Black and white", onOff, "false", false, true),
696
+ fixedKnob("block.event-calendar", "listColumns", "Columns", columnCounts, "3", true),
667
697
  fixedKnob("block.event-calendar", "showPhotos", "Photos", [{
668
698
  value: "true",
669
699
  label: "Show"
@@ -699,6 +729,121 @@ function systemCustomizeFacetDefinitionsForBlock(blockKind) {
699
729
  return systemCustomizeFacetDefinitions.filter((definition) => definition.blockKind === blockKind || "blockKinds" in definition && definition.blockKinds?.some((kind) => kind === blockKind));
700
730
  }
701
731
  //#endregion
732
+ //#region ../blocks/src/system/customize/fieldOwnership.ts
733
+ /**
734
+ * Values with their own owner, whatever their fields are tagged: the Background
735
+ * row and Photo control edit `_sectionStyles`, and the style compiler writes the
736
+ * other style groups (card, container and text-card styles), which the editor
737
+ * already hides on styles with a page design.
738
+ */
739
+ const dedicatedPaths = ["_sectionStyles", ...themeV2CompilerOwnedFieldNames];
740
+ /**
741
+ * One owner for "does this setting belong to the Look?". The editor form, the
742
+ * renderer's bindings, publish validation and the catalogue all ask here.
743
+ * With no arrangement Look resolved (older styles, recipes, blocks without
744
+ * Looks on a newer style), every field stays with the owner.
745
+ */
746
+ function resolveFieldOwnership(input) {
747
+ if (!input.arrangementLook) return { kind: "no-look" };
748
+ const knobFields = new Set(systemCustomizeFacetDefinitionsForBlock(input.blockKind).flatMap((facet) => facet.knob && facet.target.kind === "content-field" ? [facet.target.field] : []));
749
+ const meaning = input.manifest.variantMeaning;
750
+ const arrangementField = meaning?.kind === "mode" ? meaning.arrangementField : meaning ? "variant" : null;
751
+ const modeField = meaning?.kind === "mode" ? "variant" : null;
752
+ const paths = /* @__PURE__ */ new Map();
753
+ const dataPaths = /* @__PURE__ */ new Map();
754
+ const visit = (fields, parent, inherited, inRepeaterItem = false) => {
755
+ fields.forEach((field) => {
756
+ const path = parent.schema ? `${parent.schema}.${field.id}` : field.id;
757
+ const flattened = inRepeaterItem && field.type === "group" && field.ui?.flattenInRepeater === true;
758
+ const dataPath = flattened ? parent.data : parent.data ? `${parent.data}.${field.id}` : field.id;
759
+ const owner = ownerOf(field, path, inherited, {
760
+ knobFields,
761
+ arrangementField,
762
+ modeField
763
+ });
764
+ paths.set(path, owner);
765
+ if (!flattened) dataPaths.set(dataPath, owner);
766
+ childFields(field).forEach((children) => visit(children, {
767
+ schema: path,
768
+ data: dataPath
769
+ }, owner, field.type === "repeater"));
770
+ });
771
+ };
772
+ visit(input.manifest.fields ?? [], {
773
+ schema: "",
774
+ data: ""
775
+ }, "owner");
776
+ knobFields.forEach((field) => {
777
+ if (!paths.has(field)) paths.set(field, "knob");
778
+ if (!dataPaths.has(field)) dataPaths.set(field, "knob");
779
+ });
780
+ return {
781
+ kind: "look",
782
+ paths,
783
+ dataPaths
784
+ };
785
+ }
786
+ new Set(arrangementAppearancePresets.flatMap((preset) => preset.blockKinds));
787
+ /** Content paths with a given owner, for the renderer, outermost first. */
788
+ function contentPathsOwnedBy(ownership, owners) {
789
+ return ownership.kind === "no-look" ? [] : outermost(ownership.dataPaths, owners);
790
+ }
791
+ function outermost(paths, owners) {
792
+ const matching = [...paths].filter(([, owner]) => owners.includes(owner)).map(([path]) => path);
793
+ return matching.filter((path) => !matching.some((other) => path.startsWith(`${other}.`)));
794
+ }
795
+ /**
796
+ * Content with the owner's values for Look-owned paths taken out, so nothing
797
+ * that renders the block (bindings, views, media delivery) can read them.
798
+ */
799
+ function withoutLookOwnedContent(content, paths) {
800
+ return paths.reduce((current, path) => withoutPath(current, path.split(".")), { ...content });
801
+ }
802
+ function withoutPath(value, [key, ...rest]) {
803
+ if (key === void 0 || !(key in value)) return { ...value };
804
+ if (rest.length === 0) return Object.fromEntries(Object.entries(value).filter(([entry]) => entry !== key));
805
+ const child = value[key];
806
+ const stripped = Array.isArray(child) ? child.map((item) => isContentRecord(item) ? withoutPath(item, rest) : item) : isContentRecord(child) ? withoutPath(child, rest) : child;
807
+ return {
808
+ ...value,
809
+ [key]: stripped
810
+ };
811
+ }
812
+ function isContentRecord(value) {
813
+ return typeof value === "object" && value !== null && !Array.isArray(value);
814
+ }
815
+ function ownerOf(field, path, inherited, facts) {
816
+ return inheritedOwner(path, inherited) ?? lookSectionOwner(field, path, facts) ?? keptByOwner(field, path, facts) ?? intentOwner(field, inherited);
817
+ }
818
+ /** Below a dedicated or Look-owned container, everything goes with it. */
819
+ function inheritedOwner(path, inherited) {
820
+ if (inherited === "dedicated" || dedicatedPaths.includes(path)) return "dedicated";
821
+ return inherited === "look" ? "look" : null;
822
+ }
823
+ function lookSectionOwner(field, path, facts) {
824
+ if (!path.includes(".") && facts.knobFields.has(path)) return "knob";
825
+ if (field.ui?.hidden === true || field.ui?.renderInHeader === true) return "dedicated";
826
+ return path === facts.arrangementField ? "arrangement" : null;
827
+ }
828
+ function keptByOwner(field, path, facts) {
829
+ return path === facts.modeField || field.ui?.underLooks === "owner" ? "owner" : null;
830
+ }
831
+ function intentOwner(field, inherited) {
832
+ switch (field.ui?.intent) {
833
+ case "display":
834
+ case "style": return "look";
835
+ case "content":
836
+ case "behavior": return "owner";
837
+ case void 0: return inherited;
838
+ }
839
+ }
840
+ function childFields(field) {
841
+ if (field.type === "group" || field.type === "modal") return [field.schema.fields];
842
+ if (field.type === "repeater") return [field.schema?.fields ?? [], ...Object.values(field.itemTypes ?? {}).map((item) => item.fields)];
843
+ if (field.type === "tabGroup") return field.tabs.map((tab) => tab.fields);
844
+ return [];
845
+ }
846
+ //#endregion
702
847
  //#region ../blocks/src/system/transforms/registry/offeringsPreview.ts
703
848
  /** Reuse the existing occurrence read for the date strip and card date rows. */
704
849
  const offeringsPreviewDatesReadEnabled = {
@@ -1137,7 +1282,10 @@ function coerceLinkedContentEntriesPayload(payload) {
1137
1282
  function getLinkedContentEntryMeta(value) {
1138
1283
  if (!isRecord$2(value)) return null;
1139
1284
  const candidate = value[LINKED_CONTENT_ENTRY_META_KEY];
1140
- return isLinkedContentEntryMeta(candidate) ? candidate : null;
1285
+ return isLinkedContentEntryMeta(candidate) ? {
1286
+ ...candidate,
1287
+ editRevision: candidate.editRevision ?? null
1288
+ } : null;
1141
1289
  }
1142
1290
  function buildLinkedContentEditTarget(input) {
1143
1291
  const { entry, sourceBlockId, sourceBlockKind, itemIndex } = input;
@@ -1152,6 +1300,7 @@ function buildLinkedContentEditTarget(input) {
1152
1300
  contentTypeLabel: meta.contentTypeLabel,
1153
1301
  title: meta.title,
1154
1302
  optimisticHash: meta.optimisticHash,
1303
+ editRevision: meta.editRevision,
1155
1304
  sourceBlockId: sourceBlockId ?? null,
1156
1305
  sourceBlockKind: sourceBlockKind ?? null,
1157
1306
  itemIndex,
@@ -1214,6 +1363,7 @@ function enrichLinkedContentEntry(entry, contentType) {
1214
1363
  const title = typeof entry.title === "string" && entry.title.trim().length > 0 ? entry.title : entryId;
1215
1364
  const optimisticHash = typeof entry.optimisticHash === "string" && entry.optimisticHash.length > 0 ? entry.optimisticHash : null;
1216
1365
  const content = isRecord$2(entry.content) ? entry.content : {};
1366
+ const editRevision = typeof entry.editRevision === "number" ? entry.editRevision : null;
1217
1367
  const meta = {
1218
1368
  kind: "linked-content-entry",
1219
1369
  entryId,
@@ -1221,6 +1371,7 @@ function enrichLinkedContentEntry(entry, contentType) {
1221
1371
  contentTypeLabel: contentTypeKeyToLabel(contentType.key),
1222
1372
  title,
1223
1373
  optimisticHash,
1374
+ editRevision,
1224
1375
  support: resolveLinkedContentEditSupport(contentType),
1225
1376
  contentType,
1226
1377
  fieldSources: deriveLinkedEntryFieldSources(entry, contentType, content)
@@ -1345,16 +1496,23 @@ function parseStringArray(value) {
1345
1496
  return value.filter((item) => typeof item === "string");
1346
1497
  }
1347
1498
  function isLinkedContentEntryMeta(value) {
1348
- if (!isRecord$2(value)) return false;
1349
- if (value.kind !== "linked-content-entry") return false;
1350
- if (typeof value.entryId !== "string") return false;
1351
- if (typeof value.contentTypeKey !== "string") return false;
1352
- if (typeof value.contentTypeLabel !== "string") return false;
1353
- if (typeof value.title !== "string") return false;
1354
- if (!(value.optimisticHash === null || typeof value.optimisticHash === "string")) return false;
1355
- if (!isRecord$2(value.contentType)) return false;
1356
- if (!isLinkedEntryFieldSourceArray(value.fieldSources)) return false;
1357
- return isLinkedContentEditSupport(value.support);
1499
+ if (!isRecord$2(value) || value.kind !== "linked-content-entry") return false;
1500
+ return [
1501
+ [
1502
+ "entryId",
1503
+ "contentTypeKey",
1504
+ "contentTypeLabel",
1505
+ "title"
1506
+ ].every((key) => typeof value[key] === "string"),
1507
+ isNullOrOfType(value.optimisticHash, "string"),
1508
+ value.editRevision === void 0 || isNullOrOfType(value.editRevision, "number"),
1509
+ isRecord$2(value.contentType),
1510
+ isLinkedEntryFieldSourceArray(value.fieldSources),
1511
+ isLinkedContentEditSupport(value.support)
1512
+ ].every(Boolean);
1513
+ }
1514
+ function isNullOrOfType(value, type) {
1515
+ return value === null || typeof value === type;
1358
1516
  }
1359
1517
  function isLinkedEntryFieldSourceArray(value) {
1360
1518
  return Array.isArray(value) && value.every(isLinkedEntryFieldSource);
@@ -1584,7 +1742,8 @@ function composePageJoins(input) {
1584
1742
  return [{
1585
1743
  previousBlockId: previous.id,
1586
1744
  nextBlockId: next.id,
1587
- join: join ? composeJoin(join, previous, next) : null
1745
+ join: join ? composeJoin(join, previous, next) : null,
1746
+ fieldsMeet: sectionShapeFromContent(previous.content) === "field" && sectionShapeFromContent(next.content) === "field"
1588
1747
  }];
1589
1748
  });
1590
1749
  }
@@ -1615,19 +1774,29 @@ function pairKey(previousBlockId, nextBlockId) {
1615
1774
  }
1616
1775
  //#endregion
1617
1776
  //#region ../blocks/src/pageRenderPlan.ts
1618
- /**
1619
- * Decides, once per page render, which blocks can render and what happens to
1620
- * the ones that cannot.
1621
- *
1622
- * Pure. Effects — logging in particular — belong at the call site, because this
1623
- * runs inside a `useMemo` whose recomputation React makes no promises about.
1624
- */
1625
- function buildPageRenderPlan(input) {
1777
+ /** Owner-local derived reuse; shared settings and admitted rhythm position remain inputs. */
1778
+ function createPageRenderPlanReader() {
1779
+ const memo = { current: null };
1780
+ return (input) => {
1781
+ memo.current = planPageRender(input, memo.current);
1782
+ return memo.current.plan;
1783
+ };
1784
+ }
1785
+ function planPageRender(input, previous = null) {
1626
1786
  const resolveTarget = createRenderTargetResolver(input);
1627
- const outcomes = input.page.blocks.map((block) => planPageBlock(block, input, resolveTarget));
1787
+ const reusable = previous && samePlanSettings(previous.input, input) ? previous : null;
1788
+ const planned = input.page.blocks.map((block) => [block, reusable?.outcomes.get(block) ?? planPageBlock(block, input, resolveTarget)]);
1789
+ const outcomes = planned.map(([, outcome]) => outcome);
1628
1790
  const entries = outcomes.flatMap((outcome) => outcome.kind === "admitted" ? [outcome.entry] : []);
1629
- return {
1630
- entries: entries.map(applyArrangementRhythm),
1791
+ const rhythmic = entries.map((entry, position) => {
1792
+ const cached = reusable?.rhythm.get(entry);
1793
+ return [entry, {
1794
+ position,
1795
+ entry: cached?.position === position ? cached.entry : applyArrangementRhythm(entry, position)
1796
+ }];
1797
+ });
1798
+ const plan = {
1799
+ entries: rhythmic.map(([, value]) => value.entry),
1631
1800
  omitted: outcomes.flatMap((outcome) => outcome.kind === "omitted" ? [outcome.omission] : []),
1632
1801
  runtimeJoins: retargetJoinsAcrossOmissions({
1633
1802
  joins: input.runtimeJoins ?? [],
@@ -1635,6 +1804,15 @@ function buildPageRenderPlan(input) {
1635
1804
  survivingBlocks: new Set(entries.map((entry) => entry.block))
1636
1805
  })
1637
1806
  };
1807
+ return {
1808
+ input,
1809
+ outcomes: new Map(planned),
1810
+ rhythm: new Map(rhythmic),
1811
+ plan
1812
+ };
1813
+ }
1814
+ function samePlanSettings(previous, current) {
1815
+ return previous.siteStyleId === current.siteStyleId && previous.audience === current.audience && previous.previewStage === current.previewStage && previous.sdkConfig === current.sdkConfig && previous.customBlocks === current.customBlocks && previous.blockOverrides === current.blockOverrides;
1638
1816
  }
1639
1817
  /**
1640
1818
  * Mirrors the order of the checks `MemoBlockSection` used to make inline, so no
@@ -1793,8 +1971,11 @@ function restoreCompiledLook(look) {
1793
1971
  };
1794
1972
  }
1795
1973
  function restoreArrangementRuntime(runtime) {
1974
+ const transported = runtime;
1975
+ const fieldGrounds = Array.isArray(transported.fieldGrounds) ? transported.fieldGrounds.filter((token) => typeof token === "string") : [];
1796
1976
  return {
1797
1977
  ...runtime,
1978
+ fieldGrounds,
1798
1979
  available: runtime.available.map(restoreCompiledLook),
1799
1980
  byMode: Object.fromEntries(Object.entries(runtime.byMode).map(([mode, look]) => [mode, restoreCompiledLook(look)]))
1800
1981
  };
@@ -1815,7 +1996,7 @@ function planArrangementContent(blockKind, manifest, content, audience) {
1815
1996
  const { facts } = arrangementContentFacts(content);
1816
1997
  const published = resolvePublishedLook({
1817
1998
  look: selected.look,
1818
- contentFacts: facts,
1999
+ facts,
1819
2000
  audience,
1820
2001
  catalogue: runtime.available.map((entry) => entry.look)
1821
2002
  });
@@ -1827,7 +2008,12 @@ function planArrangementContent(blockKind, manifest, content, audience) {
1827
2008
  });
1828
2009
  const values = Object.fromEntries(Object.entries(knobs).flatMap(([key, knob]) => knob.kind === "kept" ? [] : [[key, knob.value]]));
1829
2010
  const effectiveContent = Object.fromEntries(Object.entries(values).map(([key, value]) => [key, effectiveContentKnobValue(blockKind, key, value)]));
1830
- const activeContent = Object.fromEntries(Object.entries(content).filter(([key]) => knobs[key]?.kind !== "kept"));
2011
+ const lookOwnedPaths = contentPathsOwnedBy(resolveFieldOwnership({
2012
+ blockKind,
2013
+ manifest,
2014
+ arrangementLook: true
2015
+ }), ["look"]);
2016
+ const activeContent = withoutLookOwnedContent(Object.fromEntries(Object.entries(content).filter(([key]) => knobs[key]?.kind !== "kept")), lookOwnedPaths);
1831
2017
  const photoContent = arrangementPhotoContent(activeContent, effectiveContent);
1832
2018
  const visiblePhotos = arrangementContentFacts({
1833
2019
  ...activeContent,
@@ -1840,19 +2026,17 @@ function planArrangementContent(blockKind, manifest, content, audience) {
1840
2026
  ...mode !== null ? { variant: mode } : {},
1841
2027
  ...effectiveContent,
1842
2028
  ...photoContent,
1843
- ...arrangementShapeContent(effective.look.id, {
1844
- ...activeContent,
1845
- ...effectiveContent
1846
- }),
2029
+ ...arrangementShapeContent(knobs),
1847
2030
  ...arrangementPanelContent(activeContent, effective, mode),
1848
2031
  ...arrangementQuoteContent(blockKind, effective, values),
1849
2032
  _arrangementLooks: runtime,
1850
2033
  _effectiveLook: effective,
1851
2034
  _lookHooks: arrangementContentHooks(effective, mode, length, {
1852
- ...facts,
1853
- photo: visiblePhotos.facts.photo
2035
+ ...facts.content,
2036
+ photo: visiblePhotos.facts.content.photo
1854
2037
  }, values, visiblePhotos.photoCount),
1855
2038
  _effectiveKnobs: knobs,
2039
+ _lookOwnedPaths: lookOwnedPaths,
1856
2040
  _lookAudience: audience,
1857
2041
  _lookSlots: arrangementContentSlots(blockKind),
1858
2042
  blockLook: effective.look.id
@@ -1872,10 +2056,11 @@ function arrangementPhotoTreatmentContent(content, look) {
1872
2056
  function arrangementContentSlots(blockKind) {
1873
2057
  return Object.fromEntries(arrangementSlotNames.filter((slot) => (!slot.startsWith("price-") || blockKind === "block.shop") && slot !== "schedule-section" && slot !== "shop-section" && (slot !== "background" || blockKind === "block.hero")).map((slot) => [slot, slot]));
1874
2058
  }
1875
- /** C photo Looks render shape-specific crops without rewriting authored preferences. */
1876
- function arrangementShapeContent(lookId, content) {
1877
- if (lookId !== "intro-photo-beside-text" && lookId !== "media-text-photo-beside-text") return {};
1878
- return content.imageShape === "circle" ? { aspectRatio: "1/1" } : content.imageShape === "arch" ? { aspectRatio: "4/5" } : {};
2059
+ /** Where a Look offers the photo shape, the shape sets the crop, without rewriting authored preferences. */
2060
+ function arrangementShapeContent(knobs) {
2061
+ const shape = knobs.imageShape;
2062
+ if (!shape || shape.kind === "kept") return {};
2063
+ return shape.value === "circle" ? { aspectRatio: "1/1" } : shape.value === "arch" ? { aspectRatio: "4/5" } : {};
1879
2064
  }
1880
2065
  function arrangementQuoteContent(blockKind, effective, values) {
1881
2066
  if (blockKind !== "block.testimonials") return {};
@@ -1906,18 +2091,25 @@ function arrangementPhotoContent(content, knobs) {
1906
2091
  return copy;
1907
2092
  }) };
1908
2093
  }
2094
+ /**
2095
+ * The one owner of the facts `whenMissing` rules read from block content.
2096
+ * Content facts also become `data-has-*` hooks; setting facts never do.
2097
+ */
1909
2098
  function arrangementContentFacts(content) {
1910
2099
  const photoCount = arrangementPhotoCount(content);
1911
2100
  const featured = typeof content.featured === "string" ? content.featured.trim().length > 0 : content.featured !== void 0 && content.featured !== null;
1912
2101
  return {
1913
2102
  photoCount,
1914
2103
  facts: {
1915
- photo: photoCount > 0,
1916
- facts: Array.isArray(content.facts) && content.facts.length > 0,
1917
- featured,
1918
- outcome: typeof content.outcome === "string" && content.outcome.length > 0,
1919
- figure: typeof content.figure === "string" && content.figure.trim().length > 0,
1920
- entrance: isObjectRecord(content.entrancePhoto)
2104
+ content: {
2105
+ photo: photoCount > 0,
2106
+ facts: Array.isArray(content.facts) && content.facts.length > 0,
2107
+ featured,
2108
+ outcome: typeof content.outcome === "string" && content.outcome.length > 0,
2109
+ figure: typeof content.figure === "string" && content.figure.trim().length > 0,
2110
+ entrance: isObjectRecord(content.entrancePhoto)
2111
+ },
2112
+ settings: { "listed-by-week": content.listBy === "week" }
1921
2113
  }
1922
2114
  };
1923
2115
  }
@@ -1927,8 +2119,7 @@ function arrangementPhotoCount(content) {
1927
2119
  if (Array.isArray(content.members)) return content.members.filter((member) => isObjectRecord(member) && isObjectRecord(member.photo)).length;
1928
2120
  if (Array.isArray(content.images)) return content.images.filter((item) => isObjectRecord(item) && isObjectRecord(item.image)).length;
1929
2121
  if (isObjectRecord(content.media) || isObjectRecord(content.entrancePhoto)) return 1;
1930
- const section = isObjectRecord(content._sectionStyles) ? content._sectionStyles : {};
1931
- return isObjectRecord((isObjectRecord(section.background) ? section.background : {}).image) ? 1 : 0;
2122
+ return storedSectionPhoto(content) === null ? 0 : 1;
1932
2123
  }
1933
2124
  function effectiveContentKnobValue(blockKind, key, value) {
1934
2125
  const facet = systemCustomizeFacetDefinitionsForBlock(blockKind).find((entry) => entry.target.kind === "content-field" && entry.target.field === key);
@@ -1952,11 +2143,12 @@ function applyArrangementRhythm(entry, position) {
1952
2143
  if (!runtime || !look) return entry;
1953
2144
  const rhythm = runtime.rhythm.length === 0 ? null : runtime.rhythm[position % runtime.rhythm.length];
1954
2145
  const content = entry.renderableContent;
1955
- const resolved = resolveSectionBackground(parseCanonicalRuntimeBackground(content), null, rhythm, heroPhotoGround(entry));
2146
+ const resolved = resolveSectionBackground(parseCanonicalRuntimeBackground(content), null, rhythm, heroPhotoGround(entry.block.kind, entry.kind === "renderable" ? entry.effectiveArrangementKey ?? void 0 : void 0));
1956
2147
  const updated = applyResolvedArrangementBackground(content, resolved);
1957
2148
  const surface = arrangementGroundToken(resolved);
1958
2149
  const grounded = resolveArrangementRoleSurfaces(look, runtime, resolved);
1959
2150
  const tinted = resolveArrangementTints(updated, grounded, runtime, surface) ?? grounded;
2151
+ const shape = sectionShapeHook(sectionShapeForGround(runtime.fieldGrounds, surface));
1960
2152
  return {
1961
2153
  ...entry,
1962
2154
  styleBackground: arrangementGroundToken(resolveSectionBackground({ kind: "none" }, null, rhythm)),
@@ -1965,7 +2157,8 @@ function applyArrangementRhythm(entry, position) {
1965
2157
  _effectiveLook: tinted,
1966
2158
  _lookHooks: {
1967
2159
  ...isObjectRecord(updated._lookHooks) ? updated._lookHooks : {},
1968
- "data-surface": surface
2160
+ "data-surface": surface,
2161
+ ...shape
1969
2162
  }
1970
2163
  }
1971
2164
  };
@@ -2073,9 +2266,8 @@ function resolveArrangementRoleSurfaces(look, runtime, background) {
2073
2266
  itemSurfaces: resolveLookSlotSurfaces(look, look.itemRoles, roleSurfaces)
2074
2267
  };
2075
2268
  }
2076
- /** The arrangement key is resolved once by planBlock, including pinned Looks. */
2077
- function heroPhotoGround(entry) {
2078
- return entry.kind === "renderable" && entry.block.kind === "block.hero" ? { paintsGround: heroPhotoPaintsGround(entry.effectiveArrangementKey ?? void 0) } : void 0;
2269
+ function heroPhotoGround(blockKind, arrangementKey) {
2270
+ return blockKind === "block.hero" ? { paintsGround: heroPhotoPaintsGround(arrangementKey) } : void 0;
2079
2271
  }
2080
2272
  //#endregion
2081
2273
  //#region ../blocks/src/system/data/utils.ts
@@ -2355,11 +2547,12 @@ function shouldSkipResolvedLoader(input) {
2355
2547
  if (input.loader.requiredParams?.some((param) => !input.params[param]?.trim())) return true;
2356
2548
  return Boolean(input.isValidEndpoint && !input.isValidEndpoint(input.endpoint));
2357
2549
  }
2358
- async function prefetchBlockDataWithFailures$1(page, context, options) {
2550
+ /** Resolve once through the shared bindings owner; request reuse never reuses content provenance. */
2551
+ function planBlockDataRequests(page, context, options = {}) {
2359
2552
  const runtime = admitLoaderDateRuntime(context);
2360
2553
  const blocks = page.blocks.flatMap((block) => block.id ? [planBlockRequests(block, block.id, context, options, runtime)] : []);
2361
2554
  return {
2362
- ...projectLoaderOutcomes(blocks, await Promise.all(blocks.flatMap((block) => block.requests.map((request) => executeLoaderRequest(request, options))))),
2555
+ blocks,
2363
2556
  loaderSnapshot: {
2364
2557
  stage: context.previewStage === "preview" ? "draft" : "published",
2365
2558
  blocks: Object.fromEntries(blocks.map((block) => [block.id, {
@@ -2373,6 +2566,16 @@ async function prefetchBlockDataWithFailures$1(page, context, options) {
2373
2566
  }
2374
2567
  };
2375
2568
  }
2569
+ async function prefetchBlockDataWithFailures$1(page, context, options) {
2570
+ const plan = planBlockDataRequests(page, context, options);
2571
+ return projectBlockDataOutcomes(plan, await Promise.all(plan.blocks.flatMap((block) => block.requests.map((request) => executeBlockDataRequest(request, options)))));
2572
+ }
2573
+ function projectBlockDataOutcomes(plan, outcomes) {
2574
+ return {
2575
+ ...projectLoaderOutcomes(plan.blocks, outcomes),
2576
+ loaderSnapshot: plan.loaderSnapshot
2577
+ };
2578
+ }
2376
2579
  function planBlockRequests(block, id, context, options, runtime) {
2377
2580
  const definition = (options.getBlockDefinition ?? getBlockDefinition)(block.kind);
2378
2581
  const loaders = definition ? normalizeDataLoaders(definition) : customLoaders(block.kind, options);
@@ -2422,7 +2625,7 @@ function planLoaderRequest({ key, loader }, block, blockId, vm, options, runtime
2422
2625
  params
2423
2626
  };
2424
2627
  }
2425
- async function executeLoaderRequest(request, options) {
2628
+ async function executeBlockDataRequest(request, options) {
2426
2629
  try {
2427
2630
  return {
2428
2631
  kind: "loaded",
@@ -4153,4 +4356,4 @@ function sdkCustomLoaders(block) {
4153
4356
  }])) : void 0;
4154
4357
  }
4155
4358
  //#endregion
4156
- export { resolvePageRouteTarget as C, parseStoredVariant as D, toPresentationPage as E, isCanonicalRichTextDoc as O, resolveEntryRouteTarget as S, toEditorPresentationPage as T, buildLinkedContentEditTarget as _, SDK_WORKFLOW_ENDPOINT_PATTERN as a, defaultTransforms as b, navigationLinkInputSchemaOptions as c, resolveSdkFooterMode as d, buildPageRenderPlan as f, retargetJoinsAcrossOmissions as g, renderedJoinLayout as h, collectPortalLinkStats as i, footerModeSchema as l, joinSlotKey as m, prefetchBlockDataWithFailures as n, SDK_WORKFLOW_ID_PATTERN as o, composePageJoins as p, collectCartLinkStats as r, loaderFallbackScalarSchema as s, SUPPORTED_LOADER_ENDPOINTS as t, resolveFooterRenderPlan as u, resolveLinkedEntryInlineFieldEligibility as v, resolveRouteTarget as w, resolveAuthoredLinkHref as x, builtinTransformDefinitions as y };
4359
+ export { resolvePageRouteTarget as C, parseStoredVariant as D, createPresentationPageReader as E, isCanonicalRichTextDoc as O, resolveEntryRouteTarget as S, createEditorPresentationPageReader as T, buildLinkedContentEditTarget as _, SDK_WORKFLOW_ENDPOINT_PATTERN as a, defaultTransforms as b, navigationLinkInputSchemaOptions as c, resolveSdkFooterMode as d, createPageRenderPlanReader as f, retargetJoinsAcrossOmissions as g, renderedJoinLayout as h, collectPortalLinkStats as i, footerModeSchema as l, joinSlotKey as m, prefetchBlockDataWithFailures as n, SDK_WORKFLOW_ID_PATTERN as o, composePageJoins as p, collectCartLinkStats as r, loaderFallbackScalarSchema as s, SUPPORTED_LOADER_ENDPOINTS as t, resolveFooterRenderPlan as u, resolveLinkedEntryInlineFieldEligibility as v, resolveRouteTarget as w, resolveAuthoredLinkHref as x, builtinTransformDefinitions as y };