@riverbankcms/sdk 0.182.0 → 0.183.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +49 -3
  3. package/dist/_dts/{BlocksIslandsHydrator-Bvw2bUif.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
  4. package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-CEqZJZEE.d.ts} +7 -7
  5. package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
  6. package/dist/_dts/{client-D6T430bk.d.ts → client-B_B_amKD.d.ts} +2 -1
  7. package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
  8. package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
  9. package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
  10. package/dist/_dts/{index-CEyYMhLJ.d.ts → index-BOpUh8kO.d.ts} +1 -1
  11. package/dist/_dts/{index-DIU-wL1M.d.ts → index-Bizdaxji.d.ts} +2 -2
  12. package/dist/_dts/{index-Cqxis-nv.d.ts → index-BxCmCit0.d.ts} +1 -1
  13. package/dist/_dts/{index-CQrb3Ccc.d.ts → index-CjAkEWAp.d.ts} +4 -4
  14. package/dist/_dts/{index-DqPKdeTk.d.ts → index-iuFrbIjt.d.ts} +1 -1
  15. package/dist/_dts/{index-CciRW_w1.d.ts → index-liuhlOX7.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
  17. package/dist/_dts/{request-DEwxUSw8.d.ts → request-Gn0O1blj.d.ts} +24912 -23733
  18. package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-DTwklC_v.d.ts → resolvePageContent-xzJ3c9Na.d.ts} +1 -1
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  38. package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +91 -2
  55. package/dist/_dts/{serviceBookingOutline-DtQuFlID.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
  56. package/dist/_dts/{types-B3RjeBLV.d.ts → types-BoITy0rA.d.ts} +41 -4
  57. package/dist/_dts/{types-BvUSGQrw.d.ts → types-DBNuMtSk.d.ts} +16 -5
  58. package/dist/_dts/{types-CkRFtBqd.d.ts → types-DHMcuoeQ.d.ts} +7 -7
  59. package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-BIPO-XlE.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
  61. package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
  62. package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
  63. package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
  64. package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +25 -8
  65. package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
  66. package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
  67. package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
  68. package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
  69. package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
  70. package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-Fr2qi2C2.mjs} +29 -14
  71. package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
  72. package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
  73. package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-COuEJzbO.mjs} +6 -6
  74. package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +21 -42
  75. package/dist/client/{Page-sV6BJkXX.mjs → Page-CgbQZP5g.mjs} +2786 -927
  76. package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
  77. package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
  78. package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
  79. package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DyXoI3ob.mjs} +7 -7
  80. package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
  81. package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-wj4Rloo5.mjs} +336 -119
  82. package/dist/client/{accordion-6cuswD_s.mjs → accordion-BVXfjnh-.mjs} +1 -1
  83. package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-DycPGtke.mjs} +191 -71
  84. package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
  85. package/dist/client/bookings.mjs +5 -5
  86. package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
  87. package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
  88. package/dist/client/{carousel-CGyQVV1M.mjs → carousel-DyCLMP8s.mjs} +2 -2
  89. package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DffP_Nv0.mjs} +1 -1
  90. package/dist/client/{cart-BYOe7MCh.mjs → cart-BuEp_cj4.mjs} +3 -3
  91. package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-CAO39uDG.mjs} +1 -1
  92. package/dist/client/{checkout-Dwd7Di77.mjs → checkout-BoxzT64s.mjs} +3 -3
  93. package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
  94. package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
  95. package/dist/client/client.mjs +446 -93
  96. package/dist/client/{constants-DdxFG3Ic.mjs → constants-C_8AxMdm.mjs} +1 -1
  97. package/dist/client/{context-Hi1RuYEM.mjs → context-D1L0pe__.mjs} +2 -2
  98. package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
  101. package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
  102. package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
  103. package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
  104. package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-aTLifOX7.mjs} +4 -4
  105. package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
  106. package/dist/client/{form-DWnlEVSK.mjs → form-Dikmc2AO.mjs} +3 -3
  107. package/dist/client/{form.client-D7zmeqNI.mjs → form.client-zHaQK5I9.mjs} +5 -5
  108. package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-BLl9n8TH.mjs} +3 -3
  109. package/dist/client/gifting/client.mjs +16 -9
  110. package/dist/client/{gifting-Cn0jidP5.mjs → gifting-CufPM38H.mjs} +4 -4
  111. package/dist/client/{gifting.client-DVo1YFLs.mjs → gifting.client--N1GaSY8.mjs} +155 -84
  112. package/dist/client/gifting.interactive-D9MK4HkV.mjs +157 -0
  113. package/dist/client/gifting.parts-CRtiRzo-.mjs +119 -0
  114. package/dist/client/{headerSection-DjQuj_6v.mjs → headerSection-BIaBpmk3.mjs} +2 -2
  115. package/dist/client/{noop-jesvJXEE.mjs → islands-DJDLGQEm.mjs} +14007 -6685
  116. package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
  117. package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +226 -195
  118. package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
  119. package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
  120. package/dist/client/portal/client.mjs +31 -27
  121. package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
  122. package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DTHlWg_F.mjs} +22 -7
  123. package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
  124. package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
  125. package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-DhZAwo60.mjs} +3 -3
  126. package/dist/client/{productList-BuLemmod.mjs → productList-BiVpbZK2.mjs} +3 -3
  127. package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
  128. package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-C3OBRg7x.mjs} +2027 -781
  129. package/dist/client/rendering/client.mjs +29 -26
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +5 -5
  132. package/dist/client/{richText-coerce-Bnng7JFA.mjs → richText-coerce-ms477Z08.mjs} +2 -2
  133. package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
  135. package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
  136. package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
  137. package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
  138. package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
  139. package/dist/client/{shop-GuMqnDL-.mjs → shop-xt4dQ3HH.mjs} +3 -3
  140. package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
  141. package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-DS8t6749.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/{src-CmXh3JWs.mjs → src-Do_s2lqH.mjs} +11 -18
  144. package/dist/client/{timetableModel-GA-hn1qM.mjs → timetableModel-Dy3nNfTG.mjs} +11 -8
  145. package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
  146. package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
  147. package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
  148. package/dist/client/{view-DOyZc-DF.mjs → view-4gnPcpWJ.mjs} +24 -9
  149. package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-DDvL3iza.mjs} +76 -159
  150. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CLqSRUpt.mjs} +1 -1
  151. package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-CIdAg-Tm.mjs} +1 -1
  152. package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-Bm85jX35.mjs} +2 -2
  153. package/dist/preview-next/client/{PageSectionToolbar-BI3UCdpu.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
  154. package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3864 -1943
  155. package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
  156. package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
  157. package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +12 -8
  158. package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-ORNN4x-3.mjs} +782 -16
  159. package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-eAi3tDAr.mjs} +11 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-BgiYk3PB.mjs → previewAssistantSlot-CqH91EwA.mjs} +17988 -6757
  161. package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
  164. package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
  165. package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
  166. package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.mjs → useOpenBlockForSetup-BaWUF9D7.mjs} +2007 -448
  167. package/dist/preview-next/container-responsive.css +320 -0
  168. package/dist/preview-next/editor-chrome.css +23 -2
  169. package/dist/preview-next/keepAlive.mjs +1 -1
  170. package/dist/preview-next/middleware.mjs +1 -1
  171. package/dist/preview-next/{route-contract-BHTBA48n.mjs → route-contract-Ch0X99vE.mjs} +163 -17
  172. package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-B2FmczLO.mjs} +5 -5
  173. package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DtAyv9qA.mjs} +17 -7
  174. package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-BtPqb76u.mjs} +418 -31
  175. package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
  176. package/dist/server/{bindings-DMJH4bvo.mjs → bindings-B_9JuU66.mjs} +7 -7
  177. package/dist/server/{client-DrwlRNAH.mjs → client-DC7cjiSw.mjs} +469 -92
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +2 -2
  180. package/dist/server/{constants-CeMywaiD.mjs → constants-d6nPNJpe.mjs} +22 -6
  181. package/dist/server/{customCss-C9kgPHvr.mjs → customCss-rtIfEYwQ.mjs} +1 -18
  182. package/dist/server/data/resolveBlockData.mjs +1 -1
  183. package/dist/server/{expandPalette-ehuW8r2g.mjs → expandPalette-DxPrNOAB.mjs} +182 -90
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-D0prFflT.mjs → loadContent-hb27HYic.mjs} +11 -10
  186. package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-JToD8wDD.mjs} +3 -3
  187. package/dist/server/{lookMediaFrame-H0fi4bJk.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
  188. package/dist/server/manifest.mjs +2 -2
  189. package/dist/server/{navigation-wrcuWmgp.mjs → navigation-B2WhGofA.mjs} +1 -1
  190. package/dist/server/navigation.mjs +1 -1
  191. package/dist/server/next.mjs +8 -8
  192. package/dist/server/{overrideResolution-DUgCEH8z.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
  193. package/dist/server/page-converter.mjs +3 -3
  194. package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +86 -97
  195. package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
  196. package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-m80Xu2pd.mjs} +429 -247
  197. package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
  198. package/dist/server/{portal-pG_uhsI2.mjs → portal-B2wCQno_.mjs} +1 -1
  199. package/dist/server/portal.mjs +2 -2
  200. package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-BWIkFaXq.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
  203. package/dist/server/{registry-Cc88-23f.mjs → registry-KtsOsAzY.mjs} +20113 -9774
  204. package/dist/server/rendering/components/pageShared.mjs +1 -1
  205. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  206. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  207. package/dist/server/rendering/server.mjs +4 -4
  208. package/dist/server/rendering.mjs +9 -9
  209. package/dist/server/{resolveBlockData-OG3KOkig.mjs → resolveBlockData-sjIDJYl7.mjs} +1 -1
  210. package/dist/server/{schema-CwfxQjc4.mjs → schema-BBEqquBM.mjs} +44 -28
  211. package/dist/server/server.mjs +3 -3
  212. package/dist/server/{servicePageContent-BcFuhhD7.mjs → servicePageContent-ChEZDRwU.mjs} +37 -14
  213. package/dist/server/theme-bridge.mjs +3 -3
  214. package/dist/server/theme.mjs +2 -2
  215. package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-DKCIBeb1.mjs} +2 -2
  216. package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-DybHErxH.mjs} +4 -4
  217. package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
  218. package/dist/server/{types-BKaBZFjD.mjs → types-vyz09w64.mjs} +479 -8
  219. package/dist/server/{validation-BovmbS8N.mjs → validation-Cvi-1TZZ.mjs} +13 -9
  220. package/dist/server/{version-hws4hgyX.mjs → version-B-icAIV1.mjs} +1 -1
  221. package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
  222. package/dist/styles/index.css +2482 -108
  223. package/package.json +1 -1
  224. package/dist/client/gifting.parts-Bak93gD2.mjs +0 -86
  225. package/dist/client/runtimeResponse-nXT8VAMl.mjs +0 -3
  226. package/dist/client/types-BEaKfam_.mjs +0 -778
@@ -1,2 +1,2 @@
1
- import { n as toPageHydrationBootstrapConfig, t as PageContent } from "../../pageShared-CG8O31Eo.mjs";
1
+ import { n as toPageHydrationBootstrapConfig, t as PageContent } from "../../pageShared-m80Xu2pd.mjs";
2
2
  export { PageContent, toPageHydrationBootstrapConfig };
@@ -1,2 +1,2 @@
1
- import { n as loadPageWithDeps, t as loadPage } from "../../loadPage-CBLke9pJ.mjs";
1
+ import { n as loadPageWithDeps, t as loadPage } from "../../loadPage-JToD8wDD.mjs";
2
2
  export { loadPage, loadPageWithDeps };
@@ -1,2 +1,2 @@
1
- import { a as invalidRenderableBlock, c as readSdkPreviewPublishedPlacement, d as siteBlockRenderContext, i as collectMediaAssetSidecar, l as resolveSdkBlockManifest, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, t as buildPageOutline, u as sanitizeSdkRuntimeBlockContent } from "../../pageRuntimeSupport-D2-YMRei.mjs";
1
+ import { a as invalidRenderableBlock, c as readSdkPreviewPublishedPlacement, d as siteBlockRenderContext, i as collectMediaAssetSidecar, l as resolveSdkBlockManifest, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, t as buildPageOutline, u as sanitizeSdkRuntimeBlockContent } from "../../pageRuntimeSupport-CAhr4oOf.mjs";
2
2
  export { buildPageOutline, buildRenderablePageOutline, buildSiteRenderSupport, collectMediaAssetSidecar, invalidRenderableBlock, projectRenderablePageOutline, readInvalidBlockAdmission, readSdkPreviewPublishedPlacement, resolveSdkBlockManifest, sanitizeSdkRuntimeBlockContent, siteBlockRenderContext };
@@ -1,9 +1,9 @@
1
- import { d as MissingBlockOverrideError } from "../pageShared-CG8O31Eo.mjs";
2
- import { a as bookingDetailEvents, c as buildBookingPageOutline, d as buildCodeOwnedPageBlocks, f as createPublicBlockContentContractResolver, g as bookingSectionBlocks, h as bookingPageDesign, i as BOOKING_PAGE_BLOCK_IDS, l as bookingPageIdentity, m as bookingHero, n as SERVICE_BOOKING_BLOCK_IDS, o as bookingPageFacts, p as bookingDescription, r as buildServiceBookingOutline, s as bookingPageSeedData, t as parseServicePageContent, u as plainTextDoc } from "../servicePageContent-BcFuhhD7.mjs";
1
+ import { d as MissingBlockOverrideError } from "../pageShared-m80Xu2pd.mjs";
2
+ import { a as bookingDetailEvents, c as buildBookingPageOutline, d as buildCodeOwnedPageBlocks, f as createPublicBlockContentContractResolver, g as bookingSectionBlocks, h as bookingPageDesign, i as BOOKING_PAGE_BLOCK_IDS, l as bookingPageIdentity, m as bookingHero, n as SERVICE_BOOKING_BLOCK_IDS, o as bookingPageFacts, p as bookingDescription, r as buildServiceBookingOutline, s as bookingPageSeedData, t as parseServicePageContent, u as plainTextDoc } from "../servicePageContent-ChEZDRwU.mjs";
3
3
  import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE } from "../themeAdmission-DGSAlFUK.mjs";
4
4
  import { n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations } from "../overrides-CD4d-1w7.mjs";
5
- import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, o as prefetchFooterBlockData, r as Layout, t as BlockContent } from "../Block.shared-hGoyEdjJ.mjs";
6
- import { i as Page, n as collectUsedBlockKindsFromPageOutline, r as resolveBlockOverridesForPage, t as buildPageBlockKindIndex } from "../overrideResolution-DUgCEH8z.mjs";
5
+ import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, o as prefetchFooterBlockData, r as Layout, t as BlockContent } from "../Block.shared-B2FmczLO.mjs";
6
+ import { i as Page, n as collectUsedBlockKindsFromPageOutline, r as resolveBlockOverridesForPage, t as buildPageBlockKindIndex } from "../overrideResolution-vD5KTClL.mjs";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  //#region src/rendering/components/Block.server.tsx
9
9
  /**
@@ -1,15 +1,15 @@
1
- import { x as resolveAuthoredLinkHref } from "./pageRenderPlan-BHrmogsW.mjs";
2
- import { ct as resolveImageUrl$1, lt as resolveImageUrlWithContext$1, ot as computeMediaTransformStyle, pt as buildResolveImageUrlContext, rt as RichText$2, st as resolveImageSourceSetWithContext$1, va as parseFieldDefinition } from "./registry-Cc88-23f.mjs";
3
- import { d as MissingBlockOverrideError, f as PageRenderer, g as buildThemeRuntime, h as toBlocksMediaAssets, l as ThemeScope, m as toBlocksImageResolveContextInput, n as toPageHydrationBootstrapConfig, p as toBlocksPageRendererDataContext, t as PageContent, u as EditorPageRenderer } from "./pageShared-CG8O31Eo.mjs";
4
- import { C as projectRepeaterGridLayout$1, b as admitLayoutGridForPlan, w as projectRepeaterGridLayoutForRendering$1, x as deriveFieldValidationPlan } from "./pageRuntimeSupport-D2-YMRei.mjs";
5
- import { m as sanitizeHref } from "./typeGuards-CTW_9AXq.mjs";
1
+ import { x as resolveAuthoredLinkHref } from "./pageRenderPlan-CdqJ1NQZ.mjs";
2
+ import { ct as resolveImageUrl$1, lt as resolveImageUrlWithContext$1, ot as computeMediaTransformStyle, pt as buildResolveImageUrlContext, rt as RichText$2, st as resolveImageSourceSetWithContext$1, ya as parseFieldDefinition } from "./registry-KtsOsAzY.mjs";
3
+ import { d as MissingBlockOverrideError, f as PageRenderer, g as buildThemeRuntime, h as toBlocksMediaAssets, l as ThemeScope, m as toBlocksImageResolveContextInput, n as toPageHydrationBootstrapConfig, p as toBlocksPageRendererDataContext, t as PageContent, u as EditorPageRenderer } from "./pageShared-m80Xu2pd.mjs";
4
+ import { C as projectRepeaterGridLayout$1, b as admitLayoutGridForPlan, w as projectRepeaterGridLayoutForRendering$1, x as deriveFieldValidationPlan } from "./pageRuntimeSupport-CAhr4oOf.mjs";
5
+ import { l as sanitizeHref } from "./typeGuards-DZOaGTEv.mjs";
6
6
  import { _ as parseMediaIdentifier, a as persistableMediaSchema, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, g as parseCanonicalMediaIdentifier, h as mediaIdentifierSchema, i as mediaSchema, l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-gvfIw3z8.mjs";
7
- import { a as bookingDetailEvents, c as buildBookingPageOutline, d as buildCodeOwnedPageBlocks, f as createPublicBlockContentContractResolver, g as bookingSectionBlocks, h as bookingPageDesign, i as BOOKING_PAGE_BLOCK_IDS, l as bookingPageIdentity, m as bookingHero, n as SERVICE_BOOKING_BLOCK_IDS, o as bookingPageFacts, p as bookingDescription, r as buildServiceBookingOutline, s as bookingPageSeedData, t as parseServicePageContent, u as plainTextDoc } from "./servicePageContent-BcFuhhD7.mjs";
7
+ import { a as bookingDetailEvents, c as buildBookingPageOutline, d as buildCodeOwnedPageBlocks, f as createPublicBlockContentContractResolver, g as bookingSectionBlocks, h as bookingPageDesign, i as BOOKING_PAGE_BLOCK_IDS, l as bookingPageIdentity, m as bookingHero, n as SERVICE_BOOKING_BLOCK_IDS, o as bookingPageFacts, p as bookingDescription, r as buildServiceBookingOutline, s as bookingPageSeedData, t as parseServicePageContent, u as plainTextDoc } from "./servicePageContent-ChEZDRwU.mjs";
8
8
  import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
9
- import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-D0prFflT.mjs";
10
- import { t as loadPage } from "./loadPage-CBLke9pJ.mjs";
9
+ import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-hb27HYic.mjs";
10
+ import { t as loadPage } from "./loadPage-JToD8wDD.mjs";
11
11
  import { n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations } from "./overrides-CD4d-1w7.mjs";
12
- import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, n as toBlockHydrationBootstrapConfig, r as Layout, t as BlockContent } from "./Block.shared-hGoyEdjJ.mjs";
12
+ import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, n as toBlockHydrationBootstrapConfig, r as Layout, t as BlockContent } from "./Block.shared-B2FmczLO.mjs";
13
13
  import "react";
14
14
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
15
  import { BlocksIslandsHydrator } from "#sdk-rendering-client";
@@ -1,6 +1,6 @@
1
1
  import { a as rethrowFrameworkSignal } from "./responseMedia-IfH65QAH.mjs";
2
2
  import { t as allOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
3
- import { n as prefetchBlockDataWithFailures } from "./prefetchBlockData-BxUETRIZ.mjs";
3
+ import { n as prefetchBlockDataWithFailures } from "./prefetchBlockData-D1PHU-K9.mjs";
4
4
  import { c as toEntrySubrouteContext } from "./resolvePageContent-BWKUZUIn.mjs";
5
5
  import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
6
6
  import { a as defineOwnDataProperty, i as resolveDataLoaderBlockContent, n as getDataLoaderOwnerPageId, t as createDataLoaderContext } from "./dataLoaderContext-lMRTfG5Z.mjs";
@@ -1,6 +1,6 @@
1
- import { G as paletteColorsFromEntries, H as isThemeColorToken, J as parseColorTokenParts, V as hexColorSchema, W as paletteColorEntries, X as themeColorTokenSchema, u as buttonSystemSchema } from "./types-BKaBZFjD.mjs";
2
- import { _ as headingDecorationColorTokenValues, b as tileTreatmentValues, c as declarationsSchema, d as accordionIconMotionValues, f as accordionIconSetValues, g as eyebrowTreatmentValues, h as eventListTreatmentValues, i as containsRemoteUrl, k as asSiteStyleId, l as selectorSchema, m as decorativeTransitionIntentValues, n as blockCustomCssRulesSchema, o as customCssRulesSchema, r as containsJavascriptUrl, s as declarationValueSchema, u as accordionIconColorTokenValues, v as headingDecorationOverrideValues, x as visibleHeadingDecorationFamilyValues } from "./customCss-C9kgPHvr.mjs";
3
- import { n as accordionSystemSchema } from "./accordions-By_0Ykks.mjs";
1
+ import { G as hexColorSchema, J as paletteColorEntries, K as isThemeColorToken, Q as parseColorTokenParts, Y as paletteColorsFromEntries, et as themeColorTokenSchema, u as buttonSystemSchema } from "./types-vyz09w64.mjs";
2
+ import { O as asSiteStyleId, _ as headingDecorationOverrideValues, b as visibleHeadingDecorationFamilyValues, c as declarationsSchema, d as accordionIconMotionValues, f as accordionIconSetValues, g as headingDecorationColorTokenValues, h as eyebrowTreatmentValues, i as containsRemoteUrl, l as selectorSchema, m as eventListTreatmentValues, n as blockCustomCssRulesSchema, o as customCssRulesSchema, r as containsJavascriptUrl, s as declarationValueSchema, u as accordionIconColorTokenValues, y as tileTreatmentValues } from "./customCss-rtIfEYwQ.mjs";
3
+ import { n as accordionSystemSchema } from "./accordions-vzdZ2Wt1.mjs";
4
4
  import { i as mediaSchema, n as externalMediaSchema, r as imageMediaSchema, s as videoMediaSchema, t as assetMediaSchema } from "./media-gvfIw3z8.mjs";
5
5
  import { z } from "zod";
6
6
  //#region ../site-contracts/src/identity/siteStyleLooks.ts
@@ -901,24 +901,35 @@ const curatedFontWidths = {
901
901
  "Instrument Sans": {
902
902
  min: 75,
903
903
  max: 100
904
+ },
905
+ "Bricolage Grotesque": {
906
+ min: 75,
907
+ max: 100
904
908
  }
905
909
  };
906
910
  function getFontWidthRange(family) {
907
911
  return curatedFontWidths[(family.split(",")[0] ?? "").trim().replace(/^["']|["']$/g, "")];
908
912
  }
913
+ /** Whether a family's width axis reaches this width. A family without a declared axis reaches none. */
914
+ function fontWidthFits(width, family) {
915
+ const range = getFontWidthRange(family);
916
+ return range !== void 0 && width >= range.min && width <= range.max;
917
+ }
909
918
  new Set(bodyFontFamilies.map((family) => family.toLocaleLowerCase()));
910
919
  //#endregion
911
920
  //#region ../site-contracts/src/theme/typography.ts
921
+ /** The typography weight vocabulary; every role that names a weight uses it (light..bold → 300..700). */
922
+ const typographyWeightSchema = z.enum([
923
+ "light",
924
+ "regular",
925
+ "medium",
926
+ "semibold",
927
+ "bold"
928
+ ]);
912
929
  const typographyStyleSchema = z.object({
913
930
  width: fontWidthSchema.optional(),
914
931
  family: z.string().min(1),
915
- weight: z.enum([
916
- "light",
917
- "regular",
918
- "medium",
919
- "semibold",
920
- "bold"
921
- ]),
932
+ weight: typographyWeightSchema,
922
933
  letterSpacing: z.enum([
923
934
  "tight",
924
935
  "normal",
@@ -945,13 +956,7 @@ const headingSizeSchema = z.enum([
945
956
  ]);
946
957
  const headingTypographyOverridesSchema = z.object({
947
958
  width: fontWidthSchema.nullable().optional(),
948
- weight: z.enum([
949
- "light",
950
- "regular",
951
- "medium",
952
- "semibold",
953
- "bold"
954
- ]).nullable().optional(),
959
+ weight: typographyWeightSchema.nullable().optional(),
955
960
  letterSpacing: z.enum([
956
961
  "tight",
957
962
  "normal",
@@ -1021,13 +1026,7 @@ const eyebrowTypographyStyleSchema = z.object({
1021
1026
  "md",
1022
1027
  "lg"
1023
1028
  ]).optional(),
1024
- weight: z.enum([
1025
- "light",
1026
- "regular",
1027
- "medium",
1028
- "semibold",
1029
- "bold"
1030
- ]).optional(),
1029
+ weight: typographyWeightSchema.optional(),
1031
1030
  letterSpacing: z.enum([
1032
1031
  "tight",
1033
1032
  "normal",
@@ -1097,9 +1096,9 @@ const typographySchema = z.object({
1097
1096
  path: ["eyebrow", "width"]
1098
1097
  }
1099
1098
  ].forEach(({ style, family, path }) => {
1100
- if (style?.width == null) return;
1099
+ if (style?.width == null || fontWidthFits(style.width, family)) return;
1101
1100
  const range = getFontWidthRange(family);
1102
- if (!range || style.width < range.min || style.width > range.max) ctx.addIssue({
1101
+ ctx.addIssue({
1103
1102
  code: "custom",
1104
1103
  path,
1105
1104
  message: range ? `Font width must be between ${range.min}% and ${range.max}% for ${family}.` : `Font width is not declared for ${family}.`
@@ -1148,7 +1147,21 @@ const componentShadowSchema = z.object({ elevation: z.enum([
1148
1147
  ]).default("sm") });
1149
1148
  //#endregion
1150
1149
  //#region ../site-contracts/src/siteStyle/footerPreferences.ts
1151
- const footerEdgeIntentValues = decorativeTransitionIntentValues.filter((id) => id !== "wave-edge-echo");
1150
+ const footerEdgeIntentValues = [
1151
+ "soft-fade-short",
1152
+ "soft-fade-long",
1153
+ "soft-fade-expansive",
1154
+ "wave-edge",
1155
+ "wave-edge-balanced",
1156
+ "wave-edge-gentle",
1157
+ "wave-edge-bold",
1158
+ "wave-edge-drift",
1159
+ "arc-edge-echo",
1160
+ "angle-edge",
1161
+ "angle-edge-subtle",
1162
+ "angle-edge-steep",
1163
+ "torn-edge-holes"
1164
+ ];
1152
1165
  const footerEdgePreferenceSchema = z.discriminatedUnion("kind", [
1153
1166
  z.strictObject({ kind: z.literal("style-default") }),
1154
1167
  z.strictObject({ kind: z.literal("none") }),
@@ -1787,6 +1800,9 @@ const logoStyleSchema = z.object({
1787
1800
  gradient: z.boolean().default(false),
1788
1801
  brandDisplay: z.enum(brandDisplayModeValues).optional(),
1789
1802
  size: z.enum(logoSizePolicyValues).optional(),
1803
+ weight: typographyWeightSchema.optional(),
1804
+ case: z.enum(["uppercase", "normal"]).optional(),
1805
+ width: fontWidthSchema.optional(),
1790
1806
  accommodation: z.enum(logoAccommodationPatternValues).optional()
1791
1807
  }).optional();
1792
1808
  const headerLogoTextSchema = z.object({
@@ -2116,4 +2132,4 @@ const themeSchema = z.object({
2116
2132
  styleGroups: z.record(z.string(), z.array(z.string())).optional()
2117
2133
  });
2118
2134
  //#endregion
2119
- export { asHeaderStyleId as _, headerVariantValues as a, siteChromeBackgroundOverrideOwner as b, runtimeBoxBackgroundSchema as c, cardVariantRoleValues as d, itemRoleValues as f, asHeaderLayoutId as g, asFooterLookId as h, themeSchema as i, boxlessCardVariantValue as l, surfaceCardRoleValues as m, containerStylesOverrideSchema as n, boxBackgroundOverlaySchema as o, openCardRoleValue as p, sectionStylesOverrideSchema as r, boxBackgroundSchema as s, cardStylesOverrideSchema as t, cardRoleSchema as u, bookingPageLookIdValues as v, pageDesignEditorBackgroundOverrideOwner as y };
2135
+ export { asHeaderLayoutId as _, headerVariantValues as a, pageDesignEditorBackgroundOverrideOwner as b, runtimeBoxBackgroundSchema as c, cardRoleSchema as d, cardVariantRoleValues as f, asFooterLookId as g, surfaceCardRoleValues as h, themeSchema as i, fontWidthFits as l, openCardRoleValue as m, containerStylesOverrideSchema as n, boxBackgroundOverlaySchema as o, itemRoleValues as p, sectionStylesOverrideSchema as r, boxBackgroundSchema as s, cardStylesOverrideSchema as t, boxlessCardVariantValue as u, asHeaderStyleId as v, siteChromeBackgroundOverrideOwner as x, bookingPageLookIdValues as y };
@@ -1,4 +1,4 @@
1
- import { t as createRiverbankClient } from "./client-DrwlRNAH.mjs";
2
- import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-D0prFflT.mjs";
3
- import { t as loadPage } from "./loadPage-CBLke9pJ.mjs";
1
+ import { t as createRiverbankClient } from "./client-DC7cjiSw.mjs";
2
+ import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-hb27HYic.mjs";
3
+ import { t as loadPage } from "./loadPage-JToD8wDD.mjs";
4
4
  export { createRiverbankClient, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage };
@@ -1,11 +1,11 @@
1
- import { b as describePublicRefundPolicy, c as createCustomBlockRegistry, nt as arrangementContentFacts, y as PUBLIC_FREE_CANCELLATION } from "./pageRenderPlan-BHrmogsW.mjs";
2
- import { $n as selectionRepresentativeEvent, Fo as pageDesignDecisionsV2Schema, Gn as isOrdinaryPublicEvent, Jn as planWholeSeriesParentBooking, Js as isCanonicalRichTextDoc, Ls as EVENT_PRESET_VALUES, Mo as rebasePageDesignIntentToSiteStyle, Ni as parseBackgroundContent, Sc as unsafeAsContentEntryId, Zn as registrationDataForEventSelection, _s as resolveRepeaterGridSpanFieldId, a as systemBlockDefinitions, bo as stripCompiledRuntimeStyleFields, co as applySiteStyleBlockPoliciesToPageDesignIntent, ei as blockDesignCapabilityMapFromDefinitions, fc as offeringLabelForPageSurfaceSubject, ga as plainTextToInlineText, go as designRuntimeRulesForTheme, gs as resolveRepeaterGridRowFieldId, ha as parseInlineTextFromUnknown, ho as designRuntimeRulesForSiteStyle, hs as resolveRepeaterGridColumnFieldId, jo as parsePageDesignIntent, lo as buildInitialPolicyPageDesignIntent, mo as componentRuntimeRulesForTheme, os as appearancePresets, pa as inlineTextToPlainText, po as componentRuntimeRulesForSiteStyle, so as applyBlockContentVariantPolicy, t as getBlockDefinition, uo as deriveSiteStyleBlockPolicy, va as parseFieldDefinition, vo as requireCuratedSiteStyle, vr as siteHeaderManifest, xo as surfaceResolutionContextFromTheme, za as parseListLook } from "./registry-Cc88-23f.mjs";
3
- import { D as asLayoutVariantKey, S as asAppearancePresetId, w as asDesignBlockId } from "./customCss-C9kgPHvr.mjs";
1
+ import { b as describePublicRefundPolicy, c as createCustomBlockRegistry, tt as arrangementContentFacts, y as PUBLIC_FREE_CANCELLATION } from "./pageRenderPlan-CdqJ1NQZ.mjs";
2
+ import { Ac as unsafeAsContentEntryId, Bs as resolveRepeaterGridColumnFieldId, Fo as parsePageDesignIntent, Gs as EVENT_PRESET_VALUES, Hs as resolveRepeaterGridSpanFieldId, Io as rebasePageDesignIntentToSiteStyle, Kn as isOrdinaryPublicEvent, Pi as parseBackgroundContent, Qn as registrationDataForEventSelection, So as requireCuratedSiteStyle, To as surfaceResolutionContextFromTheme, Va as parseListLook, Vs as resolveRepeaterGridRowFieldId, Yn as planWholeSeriesParentBooking, _a as plainTextToInlineText, _o as componentRuntimeRulesForSiteStyle, a as systemBlockDefinitions, bc as offeringLabelForPageSurfaceSubject, bo as designRuntimeRulesForTheme, do as applyBlockContentVariantPolicy, er as selectionRepresentativeEvent, fo as applySiteStyleBlockPoliciesToPageDesignIntent, ga as parseInlineTextFromUnknown, ma as inlineTextToPlainText, mo as deriveSiteStyleBlockPolicy, nc as isCanonicalRichTextDoc, po as buildInitialPolicyPageDesignIntent, t as getBlockDefinition, ti as blockDesignCapabilityMapFromDefinitions, us as appearancePresets, vo as componentRuntimeRulesForTheme, wo as stripCompiledRuntimeStyleFields, ya as parseFieldDefinition, yo as designRuntimeRulesForSiteStyle, yr as siteHeaderManifest, zo as pageDesignDecisionsV2Schema } from "./registry-KtsOsAzY.mjs";
3
+ import { C as asDesignBlockId, E as asLayoutVariantKey, x as asAppearancePresetId } from "./customCss-rtIfEYwQ.mjs";
4
4
  import { h as unsafeAsEventCategoryId } from "./portalQuestions-oUyohgL9.mjs";
5
- import { D as resolveRepeaterGridAcceptedSpans, E as normalizeRepeaterGridSpan, P as readPublishedBlockPlacement, S as fieldPlanToZod, T as flowRepeaterGridItems, _ as findNonPortableManifestMediaPaths, g as deriveRenderableManifestContent, h as compileManifestContentContract, m as admitTransportedRenderableManifestContent, p as admitStoredManifestContentForRendering, v as registeredManifestContentContract, x as deriveFieldValidationPlan } from "./pageRuntimeSupport-D2-YMRei.mjs";
6
- import { d as createRichTextDoc, h as isRecord, n as isRecord$1, u as buildRichTextSchema } from "./typeGuards-CTW_9AXq.mjs";
5
+ import { D as resolveRepeaterGridAcceptedSpans, E as normalizeRepeaterGridSpan, P as readPublishedBlockPlacement, S as fieldPlanToZod, T as flowRepeaterGridItems, _ as findNonPortableManifestMediaPaths, g as deriveRenderableManifestContent, h as compileManifestContentContract, m as admitTransportedRenderableManifestContent, p as admitStoredManifestContentForRendering, v as registeredManifestContentContract, x as deriveFieldValidationPlan } from "./pageRuntimeSupport-CAhr4oOf.mjs";
6
+ import { a as buildRichTextSchema, h as isRecord, n as isRecord$1, o as createRichTextDoc } from "./typeGuards-DZOaGTEv.mjs";
7
7
  import { i as mediaSchema } from "./media-gvfIw3z8.mjs";
8
- import { a as buildPageDesignBlockBinding, c as compileEditorModelRuntime, i as blockDesignInputsForDefinition, n as isEntryBoundBlockEmpty, o as buildPageDesignEditorReadModel, r as resolveRuntimeJoinFacts, s as applyCompiledRuntimeFieldsToContent, t as applyBindingsToContent } from "./bindings-DMJH4bvo.mjs";
8
+ import { a as buildPageDesignBlockBinding, c as compileEditorModelRuntime, i as blockDesignInputsForDefinition, n as isEntryBoundBlockEmpty, o as buildPageDesignEditorReadModel, r as resolveRuntimeJoinFacts, s as applyCompiledRuntimeFieldsToContent, t as applyBindingsToContent } from "./bindings-B_9JuU66.mjs";
9
9
  import { z } from "zod";
10
10
  //#region ../theme-core/src/site-styles/contentTemplateDesignIntent.ts
11
11
  function asContentTemplateDesignBlockId(value) {
@@ -1338,7 +1338,10 @@ function shouldUseCanonicalSchema(field) {
1338
1338
  }
1339
1339
  //#endregion
1340
1340
  //#region ../block-form/src/manifest/manifestDefaultValues.ts
1341
- /** Construct initial field values through the same field-type default owner on server and client. */
1341
+ /**
1342
+ * Construct initial field values through the same field-type default owner on server and client.
1343
+ * A field `data` names keeps that value; a field it doesn't name takes its default.
1344
+ */
1342
1345
  function createManifestDefaultValues(manifest, data = {}, options = {}) {
1343
1346
  const { fields } = createManifestFormAdapter(manifest, {
1344
1347
  role: options.role,
@@ -1378,6 +1381,31 @@ function ensureRepeaterItem(field, value, ctx) {
1378
1381
  }
1379
1382
  //#endregion
1380
1383
  //#region ../site-renderer/dist/index.mjs
1384
+ /** The slot a template block shows in its place, or `null` when the block isn't a slot reference. */
1385
+ function templateBlockSlotKey(block) {
1386
+ if (block.blockKind !== "system.entry-slot" || block.scope !== "template") return null;
1387
+ const parsed = parseSlotKey(block.content?.slotKey);
1388
+ return parsed.ok ? parsed.value : null;
1389
+ }
1390
+ /** The template a templated page renders: the first its read carries. */
1391
+ function selectRenderedTemplate(templates) {
1392
+ return templates?.[0] ?? null;
1393
+ }
1394
+ /** What a templated page renders, or `null` when it carries no template (and so renders no template content). */
1395
+ function selectTemplateComposition(templates, slots) {
1396
+ const template = selectRenderedTemplate(templates);
1397
+ if (template === null) return null;
1398
+ return {
1399
+ template,
1400
+ slots: [...new Set(template.blocks.flatMap((block) => {
1401
+ const slotKey = templateBlockSlotKey(block);
1402
+ return slotKey === null ? [] : [slotKey];
1403
+ }))].flatMap((slotKey) => {
1404
+ const slot = (slots ?? []).find((candidate) => candidate.slotKey === slotKey);
1405
+ return slot === void 0 ? [] : [slot];
1406
+ })
1407
+ };
1408
+ }
1381
1409
  /** Each adapter maps meaning to manifest fields; layout stays with the block and site style. */
1382
1410
  function sectionBlockContent(label, value) {
1383
1411
  switch (value.kind) {
@@ -1713,7 +1741,7 @@ function prepareTemplatePage({ entry, dateContext, subject, template: sourceTemp
1713
1741
  };
1714
1742
  }
1715
1743
  function buildBlocksFromTemplateBlock({ block, context, entry, template, runtimeFields, resolveEntrySlotBlocks, resolveBlockContentContract }) {
1716
- const slotKey = readEntrySlotKey(block);
1744
+ const slotKey = templateBlockSlotKey(block);
1717
1745
  if (slotKey !== null) return resolveEntrySlotBlocks?.({
1718
1746
  entry,
1719
1747
  template,
@@ -1723,11 +1751,6 @@ function buildBlocksFromTemplateBlock({ block, context, entry, template, runtime
1723
1751
  if (isSystemTemplateBlockKind(block.blockKind)) return [];
1724
1752
  return buildBlockFromTemplate(block, context, runtimeFields, resolveBlockContentContract(block.blockKind));
1725
1753
  }
1726
- function readEntrySlotKey(block) {
1727
- if (block.blockKind !== "system.entry-slot" || block.scope !== "template") return null;
1728
- const parsed = parseSlotKey(block.content?.slotKey);
1729
- return parsed.ok ? parsed.value : null;
1730
- }
1731
1754
  function buildBlockFromTemplate(block, context, runtimeFields, contract) {
1732
1755
  const base = {
1733
1756
  id: block.id,
@@ -2568,4 +2591,4 @@ function parseServicePageContent(source) {
2568
2591
  };
2569
2592
  }
2570
2593
  //#endregion
2571
- export { buildTemplatePageOutline as _, bookingDetailEvents as a, buildBookingPageOutline as c, buildCodeOwnedPageBlocks as d, createPublicBlockContentContractResolver as f, bookingSectionBlocks as g, bookingPageDesign as h, BOOKING_PAGE_BLOCK_IDS as i, bookingPageIdentity as l, bookingHero as m, SERVICE_BOOKING_BLOCK_IDS as n, bookingPageFacts as o, bookingDescription as p, buildServiceBookingOutline as r, bookingPageSeedData as s, parseServicePageContent as t, plainTextDoc as u, readStoredSectionValues as v, selectBlocksForDeclaredEntrySlot as y };
2594
+ export { buildTemplatePageOutline as _, bookingDetailEvents as a, selectBlocksForDeclaredEntrySlot as b, buildBookingPageOutline as c, buildCodeOwnedPageBlocks as d, createPublicBlockContentContractResolver as f, bookingSectionBlocks as g, bookingPageDesign as h, BOOKING_PAGE_BLOCK_IDS as i, bookingPageIdentity as l, bookingHero as m, SERVICE_BOOKING_BLOCK_IDS as n, bookingPageFacts as o, bookingDescription as p, buildServiceBookingOutline as r, bookingPageSeedData as s, parseServicePageContent as t, plainTextDoc as u, selectTemplateComposition as v, readStoredSectionValues as y };
@@ -1,6 +1,6 @@
1
- import { F as textColorValue, d as buttonVariantIdSchema, s as unsafeAsOpaqueButtonColourToken, x as surfaceForegroundDeclarations } from "./types-BKaBZFjD.mjs";
2
- import { A as onColorTokenName, T as paletteInkRoles, U as hexToRgb, i as groundMutedInkTokens, k as isOnColorBackgroundCandidateToken, p as formatButtonColourContractError, u as compileButtonColourStates, w as paletteInkOnSolid } from "./expandPalette-ehuW8r2g.mjs";
3
- import { A as generateShadowCssVars, C as INPUT_ERROR_BORDER_COLOR_VAR, D as RESOLVED_BUTTON_DISABLED_DECLARATIONS, E as generateOpaquePanelCss, M as cardBorderDeclarations, N as cardDecorationPseudoRules, O as resolvedButtonColourDeclarations, S as INPUT_EDGE_COLOR_VAR, T as generateCheckableCss, b as INPUT_GROUP_SELECTOR, f as generateTypographyCss, i as compileCustomCssRules, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as parseCustomCssRules, m as generateStatusCss, n as THEME_RADIUS_CSS_VARS, p as generateProgressCss, t as ThemeScopeCore, u as generateAllBlockVarsCss, v as INPUT_GROUP_ERROR_SELECTOR, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-BfUCTOwj.mjs";
1
+ import { T as surfaceForegroundDeclarations, d as buttonVariantIdSchema, s as unsafeAsOpaqueButtonColourToken, z as textColorValue } from "./types-vyz09w64.mjs";
2
+ import { A as onColorTokenName, T as paletteInkRoles, U as hexToRgb, i as groundMutedInkTokens, k as isOnColorBackgroundCandidateToken, p as formatButtonColourContractError, u as compileButtonColourStates, w as paletteInkOnSolid } from "./expandPalette-DxPrNOAB.mjs";
3
+ import { A as generateShadowCssVars, C as INPUT_ERROR_BORDER_COLOR_VAR, D as RESOLVED_BUTTON_DISABLED_DECLARATIONS, E as generateOpaquePanelCss, M as cardBorderDeclarations, N as cardDecorationPseudoRules, O as resolvedButtonColourDeclarations, S as INPUT_EDGE_COLOR_VAR, T as generateCheckableCss, b as INPUT_GROUP_SELECTOR, f as generateTypographyCss, i as compileCustomCssRules, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as parseCustomCssRules, m as generateStatusCss, n as THEME_RADIUS_CSS_VARS, p as generateProgressCss, t as ThemeScopeCore, u as generateAllBlockVarsCss, v as INPUT_GROUP_ERROR_SELECTOR, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-DtAyv9qA.mjs";
4
4
  import * as React$1 from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
- import { i as themeSchema$1 } from "./schema-CwfxQjc4.mjs";
2
- import { t as parseThemeForPersistence } from "./parseThemeForPersistence-CrPlbJEN.mjs";
1
+ import { i as themeSchema$1 } from "./schema-BBEqquBM.mjs";
2
+ import { t as parseThemeForPersistence } from "./parseThemeForPersistence-CRwOZfpa.mjs";
3
3
  import * as fs from "fs/promises";
4
4
  import * as path from "path";
5
5
  //#region src/theme/loader.ts
@@ -1,5 +1,5 @@
1
- import { c as createRichTextDocFromMarkdown, l as RichTextDocSchema } from "./typeGuards-CTW_9AXq.mjs";
2
- import { a as isCustomBlockClassName, l as ALLOWED_TRANSFORM_IDS, o as LAYOUT_Z_INDEX_RULE, r as customBlockLayoutPropIssues, s as ALLOWED_NODE_TYPES, t as titleSourceValueSchema } from "./titleSourceSchema-NhK6azFS.mjs";
1
+ import { i as RichTextDocSchema, r as createRichTextDocFromMarkdown } from "./typeGuards-DZOaGTEv.mjs";
2
+ import { a as isCustomBlockClassName, l as ALLOWED_TRANSFORM_IDS, o as LAYOUT_Z_INDEX_RULE, r as customBlockLayoutPropIssues, s as ALLOWED_NODE_TYPES, t as titleSourceValueSchema } from "./titleSourceSchema-DybHErxH.mjs";
3
3
  import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
4
4
  import { z } from "zod";
5
5
  //#region src/manifest/prompt/theme-summary.ts
@@ -1,7 +1,7 @@
1
- import { I as CSS_LOADING_FUNCTIONS, L as callsCssLoadingFunction, R as staysInsideDeclaration, g as VARIANT_ROLES, t as DEFAULT_VARIANT_ALIAS_ID } from "./types-BKaBZFjD.mjs";
2
- import { t as accordionIconSchema } from "./accordions-By_0Ykks.mjs";
3
- import { n as isRecord, p as isSafeRichTextHref, s as customLayoutSizeProblem } from "./typeGuards-CTW_9AXq.mjs";
4
- import { a as hasOwn, n as getVideoEmbed, o as nodePropEntries, t as VIDEO_ASPECT_RATIO_PATTERN } from "./video-Cdr3wh-q.mjs";
1
+ import { B as CSS_LOADING_FUNCTIONS, H as staysInsideDeclaration, V as callsCssLoadingFunction, b as VARIANT_ROLES, t as DEFAULT_VARIANT_ALIAS_ID } from "./types-vyz09w64.mjs";
2
+ import { t as accordionIconSchema } from "./accordions-vzdZ2Wt1.mjs";
3
+ import { c as isSafeRichTextHref, m as customLayoutSizeProblem, n as isRecord } from "./typeGuards-DZOaGTEv.mjs";
4
+ import { a as hasOwn, n as getVideoEmbed, o as nodePropEntries, t as VIDEO_ASPECT_RATIO_PATTERN } from "./video-DBaeSawZ.mjs";
5
5
  import { z } from "zod";
6
6
  //#region ../blocks/src/system/node/validation-constants.ts
7
7
  /**
@@ -4,6 +4,131 @@ function isRecord$1(value) {
4
4
  return typeof value === "object" && value !== null && !Array.isArray(value);
5
5
  }
6
6
  //#endregion
7
+ //#region ../site-contracts/src/blocks/nodes.ts
8
+ const transformStepSchema = z.object({
9
+ id: z.string().min(1, "Transform requires an identifier"),
10
+ options: z.record(z.string(), z.unknown()).optional()
11
+ });
12
+ const bindingPathSchema = z.string().min(1, "Binding path is required").regex(/[A-Za-z0-9_\.$\[\]/-]+/, "Binding path contains invalid characters");
13
+ const bindingSchema = z.object({
14
+ from: bindingPathSchema,
15
+ fallback: z.unknown().optional(),
16
+ transforms: transformStepSchema.array().default([]),
17
+ pick: z.enum([
18
+ "value",
19
+ "collection",
20
+ "context"
21
+ ]).default("value"),
22
+ coerce: z.enum([
23
+ "number",
24
+ "boolean",
25
+ "string"
26
+ ]).optional()
27
+ });
28
+ const repeatSchema = z.object({
29
+ collection: bindingSchema,
30
+ itemName: z.string().min(1).default("item"),
31
+ indexName: z.string().min(1).default("index"),
32
+ limit: z.number().int().positive().optional(),
33
+ sortBy: z.object({
34
+ path: bindingPathSchema,
35
+ direction: z.enum(["asc", "desc"]).default("asc")
36
+ }).optional()
37
+ });
38
+ const conditionalAuthoringPresenceSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("visitor-only") }), z.object({
39
+ kind: z.literal("recover-empty-when-active"),
40
+ placeholder: z.string().min(1).optional()
41
+ })]);
42
+ const conditionSchema = z.object({
43
+ when: bindingSchema,
44
+ equals: z.unknown().optional(),
45
+ not: z.boolean().default(false),
46
+ authoringPresence: conditionalAuthoringPresenceSchema.default({ kind: "visitor-only" })
47
+ });
48
+ const dataScopeSchema = z.object({
49
+ name: z.string().min(1),
50
+ from: bindingSchema
51
+ });
52
+ const nodePropsSchema = z.record(z.string(), z.unknown()).default({});
53
+ /**
54
+ * A plain `z.object`, so a key it does not list is stripped from the parsed
55
+ * node. For custom-block layouts that strip is part of the protection (issue
56
+ * 1185): the renderer treats unknown top-level keys as props, and only the
57
+ * parsed value has been through the layout gate. Store and render the parsed
58
+ * value, never the raw manifest.
59
+ */
60
+ const nodeSchema = z.object({
61
+ type: z.string().min(1, "Node type is required"),
62
+ key: z.string().optional(),
63
+ props: nodePropsSchema.optional(),
64
+ children: z.lazy(() => z.array(nodeSchema).default([])).optional(),
65
+ $bind: bindingSchema.optional(),
66
+ $repeat: repeatSchema.optional(),
67
+ $when: conditionSchema.optional(),
68
+ $scopes: dataScopeSchema.array().optional()
69
+ });
70
+ const MAX_CUSTOM_LAYOUT_NODES = 1e3;
71
+ const NODE_KEYS = /* @__PURE__ */ new Set([
72
+ "type",
73
+ "key",
74
+ "props",
75
+ "children",
76
+ "$bind",
77
+ "$repeat",
78
+ "$when",
79
+ "$scopes"
80
+ ]);
81
+ const isRawNode = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
82
+ const rawChildren = (node) => isRawNode(node) && Array.isArray(node.children) ? node.children : [];
83
+ /** Whether the tree nests deeper than `levels`, looking no further down than that. */
84
+ const nestsDeeperThan = (node, levels) => levels === 0 ? isRawNode(node) : rawChildren(node).some((child) => nestsDeeperThan(child, levels - 1));
85
+ /** Nodes in a tree already known to be no deeper than the limit. */
86
+ const countNodes = (node) => rawChildren(node).reduce((total, child) => total + countNodes(child), 1);
87
+ /** Why a custom-block layout is too large to check or render, or null. Safe to call on any value. */
88
+ function customLayoutSizeProblem(layout) {
89
+ if (nestsDeeperThan(layout, 24)) return `The layout nests more than 24 levels deep. Flatten it.`;
90
+ const count = countNodes(layout);
91
+ return count > 1e3 ? `The layout has ${count} nodes, and a custom block takes at most ${MAX_CUSTOM_LAYOUT_NODES}. Use a repeater for repeated items.` : null;
92
+ }
93
+ /** Keys on a node (or any node below it) that `nodeSchema` would strip. */
94
+ function unknownNodeKeys(node, path) {
95
+ if (!isRawNode(node)) return [];
96
+ return [...Object.keys(node).filter((key) => !NODE_KEYS.has(key)).map((key) => ({
97
+ path: [...path, key],
98
+ key
99
+ })), ...rawChildren(node).flatMap((child, index) => unknownNodeKeys(child, [
100
+ ...path,
101
+ "children",
102
+ index
103
+ ]))];
104
+ }
105
+ function reportRawLayoutShape(layout, ctx) {
106
+ const sizeProblem = customLayoutSizeProblem(layout);
107
+ if (sizeProblem !== null) {
108
+ ctx.addIssue({
109
+ code: "custom",
110
+ message: sizeProblem,
111
+ continue: false
112
+ });
113
+ return;
114
+ }
115
+ unknownNodeKeys(layout, []).forEach(({ path, key }) => ctx.addIssue({
116
+ code: "custom",
117
+ path: [...path],
118
+ message: `"${key}" is not part of a node, so it would be dropped. A node has type, key, props, children, $bind, $repeat, $when and $scopes; put "${key}" under props.`
119
+ }));
120
+ }
121
+ /**
122
+ * A custom-block layout as its author wrote it. `nodeSchema` strips keys it
123
+ * does not know, which is safe but silent: an author who writes `style` beside
124
+ * `type` loses it without being told. This reports those keys, and refuses a
125
+ * tree too large to walk, before `nodeSchema` parses it.
126
+ */
127
+ const customBlockLayoutSchema = z.unknown().superRefine(reportRawLayoutShape).pipe(nodeSchema);
128
+ const nodeTreeSchema = z.union([z.array(nodeSchema), nodeSchema]);
129
+ const NodeSchema = nodeSchema;
130
+ const NodeTreeSchema = nodeTreeSchema;
131
+ //#endregion
7
132
  //#region ../core/src/rich-text-href.ts
8
133
  const SAFE_PROTOCOLS = /* @__PURE__ */ new Set([
9
134
  "http:",
@@ -267,131 +392,6 @@ function createRichTextDocFromMarkdown(markdown) {
267
392
  };
268
393
  }
269
394
  //#endregion
270
- //#region ../site-contracts/src/blocks/nodes.ts
271
- const transformStepSchema = z.object({
272
- id: z.string().min(1, "Transform requires an identifier"),
273
- options: z.record(z.string(), z.unknown()).optional()
274
- });
275
- const bindingPathSchema = z.string().min(1, "Binding path is required").regex(/[A-Za-z0-9_\.$\[\]/-]+/, "Binding path contains invalid characters");
276
- const bindingSchema = z.object({
277
- from: bindingPathSchema,
278
- fallback: z.unknown().optional(),
279
- transforms: transformStepSchema.array().default([]),
280
- pick: z.enum([
281
- "value",
282
- "collection",
283
- "context"
284
- ]).default("value"),
285
- coerce: z.enum([
286
- "number",
287
- "boolean",
288
- "string"
289
- ]).optional()
290
- });
291
- const repeatSchema = z.object({
292
- collection: bindingSchema,
293
- itemName: z.string().min(1).default("item"),
294
- indexName: z.string().min(1).default("index"),
295
- limit: z.number().int().positive().optional(),
296
- sortBy: z.object({
297
- path: bindingPathSchema,
298
- direction: z.enum(["asc", "desc"]).default("asc")
299
- }).optional()
300
- });
301
- const conditionalAuthoringPresenceSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("visitor-only") }), z.object({
302
- kind: z.literal("recover-empty-when-active"),
303
- placeholder: z.string().min(1).optional()
304
- })]);
305
- const conditionSchema = z.object({
306
- when: bindingSchema,
307
- equals: z.unknown().optional(),
308
- not: z.boolean().default(false),
309
- authoringPresence: conditionalAuthoringPresenceSchema.default({ kind: "visitor-only" })
310
- });
311
- const dataScopeSchema = z.object({
312
- name: z.string().min(1),
313
- from: bindingSchema
314
- });
315
- const nodePropsSchema = z.record(z.string(), z.unknown()).default({});
316
- /**
317
- * A plain `z.object`, so a key it does not list is stripped from the parsed
318
- * node. For custom-block layouts that strip is part of the protection (issue
319
- * 1185): the renderer treats unknown top-level keys as props, and only the
320
- * parsed value has been through the layout gate. Store and render the parsed
321
- * value, never the raw manifest.
322
- */
323
- const nodeSchema = z.object({
324
- type: z.string().min(1, "Node type is required"),
325
- key: z.string().optional(),
326
- props: nodePropsSchema.optional(),
327
- children: z.lazy(() => z.array(nodeSchema).default([])).optional(),
328
- $bind: bindingSchema.optional(),
329
- $repeat: repeatSchema.optional(),
330
- $when: conditionSchema.optional(),
331
- $scopes: dataScopeSchema.array().optional()
332
- });
333
- const MAX_CUSTOM_LAYOUT_NODES = 1e3;
334
- const NODE_KEYS = /* @__PURE__ */ new Set([
335
- "type",
336
- "key",
337
- "props",
338
- "children",
339
- "$bind",
340
- "$repeat",
341
- "$when",
342
- "$scopes"
343
- ]);
344
- const isRawNode = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
345
- const rawChildren = (node) => isRawNode(node) && Array.isArray(node.children) ? node.children : [];
346
- /** Whether the tree nests deeper than `levels`, looking no further down than that. */
347
- const nestsDeeperThan = (node, levels) => levels === 0 ? isRawNode(node) : rawChildren(node).some((child) => nestsDeeperThan(child, levels - 1));
348
- /** Nodes in a tree already known to be no deeper than the limit. */
349
- const countNodes = (node) => rawChildren(node).reduce((total, child) => total + countNodes(child), 1);
350
- /** Why a custom-block layout is too large to check or render, or null. Safe to call on any value. */
351
- function customLayoutSizeProblem(layout) {
352
- if (nestsDeeperThan(layout, 24)) return `The layout nests more than 24 levels deep. Flatten it.`;
353
- const count = countNodes(layout);
354
- return count > 1e3 ? `The layout has ${count} nodes, and a custom block takes at most ${MAX_CUSTOM_LAYOUT_NODES}. Use a repeater for repeated items.` : null;
355
- }
356
- /** Keys on a node (or any node below it) that `nodeSchema` would strip. */
357
- function unknownNodeKeys(node, path) {
358
- if (!isRawNode(node)) return [];
359
- return [...Object.keys(node).filter((key) => !NODE_KEYS.has(key)).map((key) => ({
360
- path: [...path, key],
361
- key
362
- })), ...rawChildren(node).flatMap((child, index) => unknownNodeKeys(child, [
363
- ...path,
364
- "children",
365
- index
366
- ]))];
367
- }
368
- function reportRawLayoutShape(layout, ctx) {
369
- const sizeProblem = customLayoutSizeProblem(layout);
370
- if (sizeProblem !== null) {
371
- ctx.addIssue({
372
- code: "custom",
373
- message: sizeProblem,
374
- continue: false
375
- });
376
- return;
377
- }
378
- unknownNodeKeys(layout, []).forEach(({ path, key }) => ctx.addIssue({
379
- code: "custom",
380
- path: [...path],
381
- message: `"${key}" is not part of a node, so it would be dropped. A node has type, key, props, children, $bind, $repeat, $when and $scopes; put "${key}" under props.`
382
- }));
383
- }
384
- /**
385
- * A custom-block layout as its author wrote it. `nodeSchema` strips keys it
386
- * does not know, which is safe but silent: an author who writes `style` beside
387
- * `type` loses it without being told. This reports those keys, and refuses a
388
- * tree too large to walk, before `nodeSchema` parses it.
389
- */
390
- const customBlockLayoutSchema = z.unknown().superRefine(reportRawLayoutShape).pipe(nodeSchema);
391
- const nodeTreeSchema = z.union([z.array(nodeSchema), nodeSchema]);
392
- const NodeSchema = nodeSchema;
393
- const NodeTreeSchema = nodeTreeSchema;
394
- //#endregion
395
395
  //#region ../blocks/src/lib/typeGuards.ts
396
396
  /**
397
397
  * Strict record guard: excludes null, primitives, and arrays.
@@ -410,4 +410,4 @@ function isObjectRecord(value) {
410
410
  return typeof value === "object" && value !== null;
411
411
  }
412
412
  //#endregion
413
- export { bindingSchema as a, createRichTextDocFromMarkdown as c, createRichTextDoc as d, isRichTextDoc as f, isRecord$1 as h, NodeTreeSchema as i, RichTextDocSchema as l, sanitizeHref as m, isRecord as n, customBlockLayoutSchema as o, isSafeRichTextHref as p, NodeSchema as r, customLayoutSizeProblem as s, isObjectRecord as t, buildRichTextSchema as u };
413
+ export { buildRichTextSchema as a, isSafeRichTextHref as c, NodeTreeSchema as d, bindingSchema as f, isRecord$1 as h, RichTextDocSchema as i, sanitizeHref as l, customLayoutSizeProblem as m, isRecord as n, createRichTextDoc as o, customBlockLayoutSchema as p, createRichTextDocFromMarkdown as r, isRichTextDoc as s, isObjectRecord as t, NodeSchema as u };