@riverbankcms/sdk 0.170.0 → 0.171.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 (219) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/_dts/{BlocksIslandsHydrator-B2i5CY_X.d.ts → BlocksIslandsHydrator-xuFmD41p.d.ts} +1 -1
  3. package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4fzXy8H9.d.ts} +13 -11
  4. package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-BlHgMsc8.d.ts} +4 -3
  5. package/dist/_dts/{client-x82SZgwK.d.ts → client-BPoU758C.d.ts} +32 -1
  6. package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-TnkhoSls.d.ts} +3 -3
  7. package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-7wrMA79U.d.ts} +5 -3
  8. package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-DaOsPQ_Q.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-D9aDEzKK.d.ts} +2 -2
  10. package/dist/_dts/{index-BisbMZTW.d.ts → index-585vn6qb.d.ts} +72 -36
  11. package/dist/_dts/{index-B7Mq5M6P.d.ts → index-CZKSUcDs.d.ts} +4 -4
  12. package/dist/_dts/{index-B82pqQAC.d.ts → index-Cbw0IiY7.d.ts} +2 -2
  13. package/dist/_dts/{index-DXc_ewhR.d.ts → index-ChNbrcgD.d.ts} +1 -1
  14. package/dist/_dts/{index-C3rMEJ5a.d.ts → index-DDKJfaLY.d.ts} +2 -2
  15. package/dist/_dts/{index-CCugONHM.d.ts → index-DNCDENic.d.ts} +1 -1
  16. package/dist/_dts/{index-CstY6ZMa.d.ts → index-W9R3Bnf2.d.ts} +3 -3
  17. package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-DPyNAJym.d.ts} +7 -7
  18. package/dist/_dts/{request-CJ_ClHLv.d.ts → request-jXTRN1Y4.d.ts} +3554 -1370
  19. package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-BbvE-gsZ.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-D-WvpC_d.d.ts → resolvePageContent-BBgih00D.d.ts} +2 -2
  21. package/dist/_dts/{runtime-BY8DQBbT.d.ts → runtime-BEoNgYbd.d.ts} +2 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +7 -7
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  29. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  30. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  35. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +4 -4
  38. package/dist/_dts/sdk/src/portal/client.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 +3 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  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 +4740 -3
  55. package/dist/_dts/{types-CbjK5ZLy.d.ts → types-BXuVxDYo.d.ts} +2 -2
  56. package/dist/_dts/{types-CpuxuS40.d.ts → types-DEAKoDNi.d.ts} +3 -3
  57. package/dist/_dts/{types-990t4t99.d.ts → types-kWvBwYK6.d.ts} +7 -7
  58. package/dist/_dts/{validation-BN95LiS0.d.ts → validation-BAO0_ntM.d.ts} +17 -17
  59. package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.mjs → BlocksIslandsHydrator-DfMsMIej.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-aaSicywS.mjs} +7 -7
  61. package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-OgftZ9QC.mjs} +16 -4
  62. package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
  63. package/dist/client/{CalendarNavigationChevron-CH7z2m47.mjs → CalendarNavigationChevron-iMWrY6Hz.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-BCumOTLY.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-LXUHJEi7.mjs → EventCalendar.client-kh7mkYnW.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-DXD5i0Ar.mjs} +8 -8
  68. package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
  69. package/dist/client/{EventItem-gFuZn-dE.mjs → EventItem-BnwcoFQN.mjs} +10 -7
  70. package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DuG6z02f.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-18yfHrcr.mjs} +3 -3
  72. package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BM7rTVSL.mjs} +42 -396
  73. package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-D5J3DR0x.mjs} +13 -13
  74. package/dist/client/{LocationMapActions-BFp2uQQQ.mjs → LocationMapActions-QahdLtdE.mjs} +2 -2
  75. package/dist/client/{MapDrawingSvg-DDWfmgpA.mjs → MapDrawingSvg-Dy6UMuIw.mjs} +1 -1
  76. package/dist/client/{Page-PW4Ojv9r.mjs → Page-DH2sm4Cf.mjs} +2696 -2426
  77. package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
  78. package/dist/client/StepIndicator-CsRlU46Y.mjs +894 -0
  79. package/dist/client/{TabBarFragment-DkVKtK5a.mjs → TabBarFragment-CsAufYwT.mjs} +1 -1
  80. package/dist/client/{ThemedButton-BdnEwA38.mjs → ThemedButton-BMDHwnM6.mjs} +1 -1
  81. package/dist/client/{accessibleSurfaces-_7jkuinl.mjs → accessibleSurfaces-Bbn1-jJ8.mjs} +52 -2
  82. package/dist/client/{accordion-DMItWylU.mjs → accordion-DT4MD3Np.mjs} +1 -1
  83. package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DdqNQNCa.mjs} +79 -42
  84. package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-CLN396HU.mjs} +4 -4
  85. package/dist/client/bookings.mjs +6 -6
  86. package/dist/client/boxStyleClassNames-iLF_3KX9.mjs +369 -0
  87. package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DFLomCGm.mjs} +2 -2
  88. package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
  89. package/dist/client/{cart-wlRXnOjO.mjs → cart-BozMM5NK.mjs} +3 -3
  90. package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-CqOOxPbW.mjs} +1 -1
  91. package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-CTWF5nbB.mjs} +3 -3
  92. package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-CpqxN8e0.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-Ccg6yfjq.mjs} +1 -1
  94. package/dist/client/client.mjs +640 -218
  95. package/dist/client/{context-Xhf81Q-c.mjs → context-Dzjv2CpA.mjs} +10 -1
  96. package/dist/client/{creditProducts-CMOmhWm2.mjs → creditProducts-BTRX4edc.mjs} +54 -23
  97. package/dist/client/{cta-CfuyGqXL.mjs → cta-pzQkBLgS.mjs} +2 -2
  98. package/dist/client/{dateFormatting-Bv6kjUW3.mjs → dateFormatting-BfurxGwg.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-DQtwf_s2.mjs → demoPortalMagicLink-D0dcPsRE.mjs} +1 -1
  100. package/dist/client/{display-DDNmyb0z.mjs → display-Cl6mgSJa.mjs} +3186 -81
  101. package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-CJCl0HJC.mjs} +4 -4
  102. package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-Pn9Kxh3I.mjs} +3 -2
  103. package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BAmBdWXE.mjs} +48 -34
  104. package/dist/client/{eventCalendar-B4VbblGN.mjs → eventCalendar-C5Bh2L8L.mjs} +4 -4
  105. package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-dELKxxIe.mjs} +4 -4
  106. package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Do9D_fJ_.mjs} +2 -2
  107. package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-B2HTUWLq.mjs} +4 -4
  108. package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-ByOJnqGc.mjs} +4 -4
  109. package/dist/client/{form-Cfl8d6qc.mjs → form-DX70QG-J.mjs} +3 -3
  110. package/dist/client/{form.client-D3_RF29v.mjs → form.client-CJoqBrS6.mjs} +5 -5
  111. package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DTof9pL3.mjs} +3 -3
  112. package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
  113. package/dist/client/gifting/client.mjs +3 -3
  114. package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJuPX_1K.mjs} +2 -2
  115. package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-CqzNjOft.mjs} +6 -6
  116. package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DjJsFms2.mjs} +2 -2
  117. package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-D1MHoPbh.mjs} +3 -3
  118. package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
  119. package/dist/client/portal/client.mjs +294 -48
  120. package/dist/client/{product-detail.client-BXeLqkCE.mjs → product-detail.client-DOQ7El1d.mjs} +1 -1
  121. package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-CmxOZbzL.mjs} +1 -1
  122. package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-BN3zv5sa.mjs} +3 -3
  123. package/dist/client/{productList-BNZAsfaP.mjs → productList-GN_Id4bF.mjs} +3 -3
  124. package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-BdmzM3D5.mjs} +8 -4
  125. package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-BOyra8CA.mjs} +1015 -926
  126. package/dist/client/rendering/client.mjs +57 -32
  127. package/dist/client/rendering/islands.mjs +1 -1
  128. package/dist/client/rendering.mjs +1956 -191
  129. package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
  130. package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-DnaJ8PQc.mjs} +1 -1
  131. package/dist/client/{runtimeResponse-D2LT--Gj.mjs → runtimeResponse-B1-cyLXt.mjs} +1 -1
  132. package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-BN8PoIVp.mjs} +1 -1
  133. package/dist/client/{shop-PgmiVKSV.mjs → shop-LjBLDBqF.mjs} +3 -3
  134. package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce-B8aZTdRJ.mjs} +13 -13
  135. package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-C1FtHYl7.mjs} +1 -1
  136. package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-D0qZ3KZp.mjs} +13 -13
  137. package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-DAKyWK1B.mjs} +89 -19
  138. package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-CztcSe9i.mjs} +2 -2
  139. package/dist/client/spam-protection.mjs +1 -1
  140. package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-D1jDTbms.mjs} +11 -11
  141. package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
  142. package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
  143. package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-CHGYDxdM.mjs} +2 -2
  144. package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-Dew9UAEy.mjs} +1 -1
  145. package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination-BpC7-ksE.mjs} +7 -7
  146. package/dist/client/{view-oToSpu1N.mjs → view-BxeiAL3c.mjs} +121 -28
  147. package/dist/client/{view-CgComegl.mjs → view-ShYH3WXh.mjs} +3 -3
  148. package/dist/preview-next/before-render.mjs +33 -13
  149. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
  150. package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-lW2aLGWd.mjs} +1 -1
  151. package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-C9InQJpd.mjs} +2 -2
  152. package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-DsSqwrMS.mjs} +392 -11
  153. package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-BEEWzXnU.mjs} +3264 -3199
  154. package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-C86Out4V.mjs} +5 -6
  155. package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-CBWYjBvQ.mjs} +20 -10
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-o-mVqWLx.mjs} +88 -394
  157. package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-H_ciMNHA.mjs} +1155 -330
  158. package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
  159. package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-DygTyy7K.mjs} +1 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-CuOcsG_N.mjs} +3558 -2230
  161. package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-DPeV7KaP.mjs} +1 -1
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-zTTFZ4MM.mjs} +2 -2
  164. package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-DNA1Q4L1.mjs} +2 -2
  165. package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BdnMlHC6.mjs} +28 -3
  166. package/dist/preview-next/container-responsive.css +43 -0
  167. package/dist/preview-next/keepAlive.mjs +1 -1
  168. package/dist/preview-next/middleware.mjs +1 -1
  169. package/dist/preview-next/{route-contract-BLYaenrK.mjs → route-contract-CtSgU8UZ.mjs} +547 -188
  170. package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-ifgaBglp.mjs} +4 -4
  171. package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-DGDOH6OU.mjs} +3 -3
  172. package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BuPNCWAK.mjs} +52 -2
  173. package/dist/server/bindings-CiYpie1M.mjs +1802 -0
  174. package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
  175. package/dist/server/{client-Djjv-NuA.mjs → client-ngWuFsmN.mjs} +638 -216
  176. package/dist/server/config-template-validation.mjs +30 -4
  177. package/dist/server/config-validation.mjs +1 -1
  178. package/dist/server/config.mjs +3 -34
  179. package/dist/server/data/resolveBlockData.mjs +1 -1
  180. package/dist/server/index.mjs +3 -3
  181. package/dist/server/loadContent-DeLQeJAZ.mjs +2310 -0
  182. package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-D4J747FQ.mjs} +2 -2
  183. package/dist/server/manifest.mjs +1 -1
  184. package/dist/server/next.mjs +8 -6
  185. package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-ukEz1BaM.mjs} +2 -2
  186. package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-DSuVkpqm.mjs} +3 -2
  187. package/dist/server/page-converter.mjs +3 -3
  188. package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
  189. package/dist/server/{pageRenderPlan-Bv6NbFeM.mjs → pageRenderPlan-DFv3h4Ib.mjs} +306 -287
  190. package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-yHaRNWMj.mjs} +48 -35
  191. package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-CAZD0LcY.mjs} +848 -315
  192. package/dist/server/parseThemeForPersistence-Dl7LIBJq.mjs +52 -0
  193. package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-BKOCND3b.mjs} +1 -1
  194. package/dist/server/prebuild.mjs +1 -1
  195. package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-GIoExi8A.mjs} +4 -3
  196. package/dist/server/{registry-Djrj9gWy.mjs → registry-BogXzcOD.mjs} +4000 -1989
  197. package/dist/server/rendering/components/pageShared.mjs +1 -1
  198. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  199. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  200. package/dist/server/rendering/server.mjs +3 -3
  201. package/dist/server/rendering.mjs +7 -7
  202. package/dist/server/{resolveBlockData-CyeIjmqx.mjs → resolveBlockData-CT4YSBve.mjs} +4 -3
  203. package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-DVISOQD9.mjs} +2 -0
  204. package/dist/server/rich-text-CRcONdyM.mjs +33 -0
  205. package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
  206. package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-C92Q8y0-.mjs} +463 -53
  207. package/dist/server/server.mjs +3 -3
  208. package/dist/server/theme-bridge.mjs +2 -2
  209. package/dist/server/theme.mjs +2 -1
  210. package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
  211. package/dist/server/{validation-Dh8htd6l.mjs → validation-vSBCWU3w.mjs} +9 -9
  212. package/dist/server/{version-LMwnoksN.mjs → version-Cw5vFmUY.mjs} +1 -1
  213. package/dist/styles/index.css +408 -10
  214. package/package.json +1 -1
  215. package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
  216. package/dist/preview-next/client/useOpenBlockForSetup-CipKCK2O.mjs +0 -28
  217. package/dist/server/bindings-C1-MNwwS.mjs +0 -257
  218. package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
  219. package/dist/server/loadContent-DhraQ_Fi.mjs +0 -578
@@ -1,8 +1,317 @@
1
- import { A as expandPalette, Dt as themeColorTokenSchema, St as paletteColorsFromEntries, Tt as parseColorTokenParts, b as buttonSystemSchema, h as createStandardButtonSurfacePolicy, n as compileButtonColourStates, vt as hexColorSchema, xt as paletteColorEntries, yt as isThemeColorToken } from "./resolveButtonColourStates-Cn6j8Ee0.mjs";
2
- import { A as tileTreatmentValues, C as accordionIconSetValues, D as headingDecorationColorTokenValues, E as eyebrowTreatmentValues, O as headingDecorationOverrideValues, R as asSiteStyleId, S as accordionIconMotionValues, T as eventListTreatmentValues, b as siteChromeBackgroundOverrideOwner, c as cardRoleSchema, i as boxBackgroundSchema, j as visibleHeadingDecorationFamilyValues, n as headerVariantWithLegacyAliasSchema, o as tokenOrCssColorValueSchema, u as cardSystemSchema, x as accordionIconColorTokenValues } from "./headerVariant-8O5MvxIU.mjs";
3
- import { i as mediaSchema } from "./media-Brn9FW5s.mjs";
1
+ import { Dt as themeColorTokenSchema, St as paletteColorsFromEntries, Tt as parseColorTokenParts, b as buttonSystemSchema, vt as hexColorSchema, xt as paletteColorEntries, yt as isThemeColorToken } from "./resolveButtonColourStates-DVISOQD9.mjs";
2
+ import { i as mediaSchema, n as externalMediaSchema, r as imageMediaSchema, s as videoMediaSchema, t as assetMediaSchema } from "./media-Brn9FW5s.mjs";
4
3
  import { a as declarationValueSchema, i as customCssRulesSchema, n as blockCustomCssRulesSchema, o as declarationsSchema, s as selectorSchema } from "./customCss-QymcmOZ-.mjs";
5
4
  import { z } from "zod";
5
+ //#region ../site-contracts/src/identity/designIds.ts
6
+ function asDesignBlockId(value) {
7
+ return brandNonEmptyString(value, "DesignBlockId");
8
+ }
9
+ function asDesignBoundaryId(value) {
10
+ const boundaryId = brandNonEmptyString(value, "DesignBoundaryId");
11
+ if (!boundaryId.startsWith("boundary:")) throw new Error(`DesignBoundaryId must start with "boundary:". Received: ${value}`);
12
+ return boundaryId;
13
+ }
14
+ function asLayoutVariantKey(value) {
15
+ return brandNonEmptyString(value, "LayoutVariantKey");
16
+ }
17
+ function asAppearancePresetId(value) {
18
+ return brandNonEmptyString(value, "AppearancePresetId");
19
+ }
20
+ function asBoundaryOptionId(value) {
21
+ return brandNonEmptyString(value, "BoundaryOptionId");
22
+ }
23
+ function asPageFlowPresetId(value) {
24
+ return brandNonEmptyString(value, "PageFlowPresetId");
25
+ }
26
+ function asSiteStyleId(value) {
27
+ const siteStyleId = brandNonEmptyString(value, "SiteStyleId");
28
+ if (!siteStyleId.startsWith("site-style:")) throw new Error(`SiteStyleId must start with "site-style:". Received: ${value}`);
29
+ return siteStyleId;
30
+ }
31
+ function asDesignSystemTemplateId(value) {
32
+ return brandNonEmptyString(value, "DesignSystemTemplateId");
33
+ }
34
+ function makeBoundaryId(previousBlockId, nextBlockId) {
35
+ return asDesignBoundaryId(`boundary:${encodeURIComponent(previousBlockId)}:${encodeURIComponent(nextBlockId)}`);
36
+ }
37
+ function brandNonEmptyString(value, label) {
38
+ if (value.length === 0) throw new Error(`${label} must be a non-empty string.`);
39
+ return value;
40
+ }
41
+ //#endregion
42
+ //#region ../site-contracts/src/identity/presentationVocabulary.ts
43
+ const arrangementModes = [
44
+ "list",
45
+ "calendar",
46
+ "week",
47
+ "combined"
48
+ ];
49
+ function isArrangementMode(value) {
50
+ return value === "list" || value === "calendar" || value === "week" || value === "combined";
51
+ }
52
+ const tileTreatmentValues = [
53
+ "default",
54
+ "quiet",
55
+ "brand-depth"
56
+ ];
57
+ const eventListTreatmentValues = [
58
+ "plain",
59
+ "lined-panel",
60
+ "ruled-register",
61
+ "editorial-register",
62
+ "dense-index"
63
+ ];
64
+ const eyebrowTreatmentValues = [
65
+ "plain",
66
+ "accent",
67
+ "pill",
68
+ "accent-pill",
69
+ "pill-bounce",
70
+ "accent-pill-bounce"
71
+ ];
72
+ const visibleHeadingDecorationFamilyValues = ["organic-squiggle", "short-center-rule"];
73
+ const headingDecorationOverrideValues = ["site-default", "off"];
74
+ const headingDecorationColorTokenValues = [
75
+ "text",
76
+ "primary",
77
+ "secondary",
78
+ "accent",
79
+ "border",
80
+ "muted"
81
+ ];
82
+ const accordionIconSetValues = [
83
+ "plus",
84
+ "chevron",
85
+ "caret",
86
+ "minimal-cross"
87
+ ];
88
+ const accordionIconColorTokenValues = [
89
+ "text",
90
+ "muted",
91
+ "primary",
92
+ "secondary",
93
+ "accent",
94
+ "current"
95
+ ];
96
+ const accordionIconMotionValues = [
97
+ "none",
98
+ "rotate",
99
+ "swap"
100
+ ];
101
+ //#endregion
102
+ //#region ../site-contracts/src/identity/siteStyleLooks.ts
103
+ /** Deterministic fallback order; Fulcrum is the default. */
104
+ const bookingPageLookIdValues = [
105
+ "site-style:fulcrum",
106
+ "site-style:folio",
107
+ "site-style:measure",
108
+ "site-style:lantern",
109
+ "site-style:poster",
110
+ "site-style:loom",
111
+ "site-style:brook",
112
+ "site-style:poise"
113
+ ];
114
+ function asFooterLookId(value) {
115
+ return value;
116
+ }
117
+ function asHeaderLayoutId(value) {
118
+ return value;
119
+ }
120
+ function asHeaderStyleId(value) {
121
+ return value;
122
+ }
123
+ const pageDesignEditorBackgroundOverrideOwner = "page-design-editor";
124
+ const siteChromeBackgroundOverrideOwner = "site-chrome-editor";
125
+ //#endregion
126
+ //#region ../site-contracts/src/theme/cards.ts
127
+ /** Arrangement Looks can request only these shared item roles. */
128
+ const itemRoleValues = [
129
+ "card",
130
+ "statement",
131
+ "highlight"
132
+ ];
133
+ const cardVariantRoleValues = ["default", "alternative"];
134
+ const boxlessCardVariantValue = "none";
135
+ const openCardRoleValue = "open";
136
+ /**
137
+ * The roles a site style implements with an actual card variant. `none` is
138
+ * deliberately absent: it is a role value only, never a variant.
139
+ */
140
+ const surfaceCardRoleValues = [...cardVariantRoleValues, openCardRoleValue];
141
+ /**
142
+ * The closed role vocabulary Looks and blocks use for surfaced and boxless
143
+ * card choices.
144
+ *
145
+ * - `none` — no site-style card surface; the block's own composition and
146
+ * the author's own card fields govern the item. This is *not*
147
+ * a promise of visible boxlessness: a block whose base class
148
+ * draws a border still draws one. It says the Look is not
149
+ * asking the site style for a card.
150
+ * - `open` — boxless but marked (a rule or accent edge, no enclosing box)
151
+ * - `default` — the site's quiet everyday card
152
+ * - `alternative` — the statement card carrying the site's personality
153
+ */
154
+ const cardRoleValues = [...surfaceCardRoleValues, boxlessCardVariantValue];
155
+ const cardSpacingSchema = z.enum([
156
+ "none",
157
+ "compact",
158
+ "cozy",
159
+ "medium",
160
+ "comfortable",
161
+ "spacious"
162
+ ]);
163
+ /** Per-axis padding, for boxless cards whose inline padding differs from block. */
164
+ const cardSpacingAxesSchema = z.object({
165
+ block: cardSpacingSchema,
166
+ inline: cardSpacingSchema
167
+ });
168
+ /**
169
+ * A card's content padding: one value for both axes, or one per axis. Two
170
+ * fields would let a variant say both and leave the reader to guess, so this is
171
+ * a union.
172
+ */
173
+ const cardSpacingValueSchema = z.union([cardSpacingSchema, cardSpacingAxesSchema]);
174
+ const gradientDirectionSchema = z.enum([
175
+ "to-r",
176
+ "to-l",
177
+ "to-t",
178
+ "to-b",
179
+ "to-tr",
180
+ "to-tl",
181
+ "to-br",
182
+ "to-bl"
183
+ ]);
184
+ const surfaceCardRoleSchema = z.enum(surfaceCardRoleValues);
185
+ const cardRoleSchema = z.enum(cardRoleValues);
186
+ const cardBackgroundSchema = z.discriminatedUnion("type", [
187
+ z.object({
188
+ type: z.literal("solid"),
189
+ colorToken: themeColorTokenSchema
190
+ }),
191
+ z.object({
192
+ type: z.literal("gradient"),
193
+ fromToken: themeColorTokenSchema,
194
+ toToken: themeColorTokenSchema,
195
+ direction: gradientDirectionSchema
196
+ }),
197
+ z.object({ type: z.literal("transparent") })
198
+ ]);
199
+ const cardBorderSchema = z.object({
200
+ widthClass: z.string(),
201
+ colorToken: themeColorTokenSchema
202
+ });
203
+ /** Per-corner radius value. `expressive` is a large block-radius multiple. */
204
+ const cardCornerValueSchema = z.enum([
205
+ "square",
206
+ "soft",
207
+ "rounded",
208
+ "pill",
209
+ "expressive"
210
+ ]);
211
+ const cardEdgeSchema = z.enum([
212
+ "left",
213
+ "top",
214
+ "right",
215
+ "bottom"
216
+ ]);
217
+ /** `hairline` (1px) is the widening the boxless `open` role needs. */
218
+ const cardEdgeRuleWidthSchema = z.enum([
219
+ "hairline",
220
+ "thin",
221
+ "medium",
222
+ "thick",
223
+ "heavy"
224
+ ]);
225
+ const cardEdgeRuleLengthSchema = z.enum(["full", "short"]);
226
+ const cardEdgeRuleAlignSchema = z.enum([
227
+ "start",
228
+ "center",
229
+ "end"
230
+ ]);
231
+ /**
232
+ * Decorations are edge rules today. The alias exists so the list can grow into
233
+ * a discriminated union without every call site changing.
234
+ */
235
+ const cardDecorationSchema = z.object({
236
+ edge: cardEdgeSchema,
237
+ colorToken: themeColorTokenSchema,
238
+ width: cardEdgeRuleWidthSchema,
239
+ /** Defaults to `full`. */
240
+ length: cardEdgeRuleLengthSchema.optional(),
241
+ /** Where a `short` rule sits along its edge. Defaults to `start`. */
242
+ align: cardEdgeRuleAlignSchema.optional(),
243
+ /** Opacity applied to `colorToken`, 0–1. Scoped here, not on the token. */
244
+ alpha: z.number().min(0).max(1).optional()
245
+ });
246
+ const cardDecorationsSchema = z.array(cardDecorationSchema).max(2);
247
+ const cardCornerRadiiSchema = z.object({
248
+ topLeft: cardCornerValueSchema.optional(),
249
+ topRight: cardCornerValueSchema.optional(),
250
+ bottomLeft: cardCornerValueSchema.optional(),
251
+ bottomRight: cardCornerValueSchema.optional()
252
+ });
253
+ const cardVariantSchema = z.strictObject({
254
+ id: z.string(),
255
+ name: z.string().min(1).max(20),
256
+ enabled: z.boolean(),
257
+ priority: z.union([
258
+ z.literal(1),
259
+ z.literal(2),
260
+ z.literal(3)
261
+ ]),
262
+ role: surfaceCardRoleSchema,
263
+ background: cardBackgroundSchema,
264
+ spacing: cardSpacingValueSchema,
265
+ foregroundToken: themeColorTokenSchema.optional(),
266
+ shadow: z.object({
267
+ elevation: z.enum([
268
+ "none",
269
+ "low",
270
+ "medium",
271
+ "high"
272
+ ]),
273
+ softness: z.enum([
274
+ "crisp",
275
+ "soft",
276
+ "hard"
277
+ ]).nullable(),
278
+ position: z.enum(["bottom", "bottom-right"]).default("bottom")
279
+ }).optional(),
280
+ corners: z.enum([
281
+ "square",
282
+ "soft",
283
+ "rounded",
284
+ "pill"
285
+ ]).optional(),
286
+ cornerRadii: cardCornerRadiiSchema.optional(),
287
+ border: cardBorderSchema.optional(),
288
+ decorations: cardDecorationsSchema.optional()
289
+ });
290
+ /**
291
+ * A site style saying "these two
292
+ * variants are both the default card" is an authoring error worth rejecting.
293
+ */
294
+ function validateUniqueCardVariantRoles(system, ctx) {
295
+ const declared = /* @__PURE__ */ new Set();
296
+ system.variants.forEach((variant, index) => {
297
+ const role = variant.role;
298
+ if (declared.has(role)) {
299
+ ctx.addIssue({
300
+ code: "custom",
301
+ path: [
302
+ "variants",
303
+ index,
304
+ "role"
305
+ ],
306
+ message: `Card role "${role}" is already implemented by another variant.`
307
+ });
308
+ return;
309
+ }
310
+ declared.add(role);
311
+ });
312
+ }
313
+ const cardSystemSchema = z.object({ variants: z.array(cardVariantSchema).min(1).max(3) }).superRefine(validateUniqueCardVariantRoles);
314
+ //#endregion
6
315
  //#region ../site-contracts/src/theme/accordions.ts
7
316
  /**
8
317
  * Accordion icon styles for expand/collapse indicators
@@ -649,6 +958,108 @@ const componentShadowSchema = z.object({ elevation: z.enum([
649
958
  "2xl"
650
959
  ]).default("sm") });
651
960
  //#endregion
961
+ //#region ../site-contracts/src/theme/tokenOrColor.ts
962
+ /**
963
+ * Runtime color-reference fields intentionally accept any string, including
964
+ * the legacy empty-string "no color" sentinel. Semantic validation needs
965
+ * palette context and happens in `parseThemeColorReference`.
966
+ */
967
+ const tokenOrCssColorValueSchema = z.string();
968
+ //#endregion
969
+ //#region ../site-contracts/src/theme/backgrounds.ts
970
+ const boxBackgroundOverlaySchema = z.preprocess(normalizeAuthoringOpacity, z.discriminatedUnion("type", [
971
+ z.object({ type: z.literal("none") }),
972
+ z.object({
973
+ type: z.literal("color"),
974
+ color: tokenOrCssColorValueSchema.nullable().optional(),
975
+ opacity: z.number().min(0).max(1).nullable().optional()
976
+ }),
977
+ z.object({
978
+ type: z.literal("gradient"),
979
+ gradient: z.string().nullable().optional(),
980
+ opacity: z.number().min(0).max(1).nullable().optional()
981
+ })
982
+ ]));
983
+ const commonSchema = z.object({
984
+ contentOwner: z.literal(pageDesignEditorBackgroundOverrideOwner).optional(),
985
+ textColor: tokenOrCssColorValueSchema.nullable().optional(),
986
+ headingColor: tokenOrCssColorValueSchema.nullable().optional(),
987
+ linkColor: tokenOrCssColorValueSchema.nullable().optional(),
988
+ supportingColor: tokenOrCssColorValueSchema.nullable().optional()
989
+ });
990
+ const mediaPresentationSchema = commonSchema.extend({
991
+ opacity: z.preprocess(normalizeOpacity, z.number().min(0).max(1).nullable()).optional(),
992
+ objectFit: z.enum([
993
+ "fill",
994
+ "fit",
995
+ "original",
996
+ "custom"
997
+ ]).nullable().optional(),
998
+ scale: z.string().nullable().optional(),
999
+ position: z.string().nullable().optional(),
1000
+ motion: z.enum(["static", "fixed-frame"]).nullable().optional(),
1001
+ overflow: z.boolean().nullable().optional(),
1002
+ overlay: boxBackgroundOverlaySchema.nullable().optional()
1003
+ });
1004
+ const boxBackgroundSchema = z.discriminatedUnion("type", [
1005
+ commonSchema.extend({
1006
+ type: z.literal("color"),
1007
+ color: tokenOrCssColorValueSchema.nullable().optional(),
1008
+ /**
1009
+ * Compiler-owned. The scrim a site-style colour surface lays over media
1010
+ * that replaces it (a Look's band meeting an authored photo), sized so the
1011
+ * surface's foreground stays legible over any pixel. A colour background
1012
+ * never draws it itself; `resolveSectionBackground` moves it onto the
1013
+ * merged media background as its overlay.
1014
+ */
1015
+ mediaScrim: boxBackgroundOverlaySchema.nullable().optional()
1016
+ }),
1017
+ commonSchema.extend({
1018
+ type: z.literal("gradient"),
1019
+ gradient: z.string().nullable().optional(),
1020
+ gradientPresetId: z.string().min(1).nullable().optional(),
1021
+ /** Compiler-owned; see the colour branch. */
1022
+ mediaScrim: boxBackgroundOverlaySchema.nullable().optional()
1023
+ }),
1024
+ mediaPresentationSchema.extend({
1025
+ type: z.literal("image"),
1026
+ image: imageMediaSchema.nullable().optional()
1027
+ }),
1028
+ mediaPresentationSchema.extend({
1029
+ type: z.literal("video"),
1030
+ image: videoMediaSchema.nullable().optional(),
1031
+ showVideoOnMobile: z.boolean().nullable().optional()
1032
+ })
1033
+ ]);
1034
+ /** Application rendering sources are admitted separately from saved references. */
1035
+ const runtimeBoxBackgroundSchema = z.discriminatedUnion("type", [
1036
+ boxBackgroundSchema.options[0],
1037
+ boxBackgroundSchema.options[1],
1038
+ boxBackgroundSchema.options[2].extend({ image: z.union([
1039
+ imageMediaSchema,
1040
+ externalMediaSchema.extend({ type: z.literal("image") }),
1041
+ assetMediaSchema.extend({ type: z.literal("image") })
1042
+ ]).nullable().optional() }),
1043
+ boxBackgroundSchema.options[3].extend({ image: z.union([
1044
+ videoMediaSchema,
1045
+ externalMediaSchema.extend({ type: z.literal("video") }),
1046
+ assetMediaSchema.extend({ type: z.literal("video") })
1047
+ ]).nullable().optional() })
1048
+ ]);
1049
+ function normalizeAuthoringOpacity(value) {
1050
+ if (!isRecord(value)) return value;
1051
+ return {
1052
+ ...value,
1053
+ opacity: normalizeOpacity(value.opacity)
1054
+ };
1055
+ }
1056
+ function normalizeOpacity(value) {
1057
+ return typeof value === "number" && value > 1 && value <= 100 ? value / 100 : value;
1058
+ }
1059
+ function isRecord(value) {
1060
+ return typeof value === "object" && value !== null && !Array.isArray(value);
1061
+ }
1062
+ //#endregion
652
1063
  //#region ../site-contracts/src/theme/customCssAtRules.ts
653
1064
  /** Valid keyframe offset values - requires % for numeric values */
654
1065
  const KEYFRAME_OFFSET_PATTERN = /^(from|to|\d{1,3}%)$/i;
@@ -806,6 +1217,54 @@ const headerScrollTreatmentSchema = z.discriminatedUnion("kind", [z.object({
806
1217
  backgroundTone: z.enum(["light", "dark"])
807
1218
  })]).optional();
808
1219
  //#endregion
1220
+ //#region ../site-contracts/src/theme/headerVariant.ts
1221
+ /**
1222
+ * The header variants the system actually renders.
1223
+ *
1224
+ * Each one has a layout row in the site-header block and a paint target in
1225
+ * `paintTargets.ts`. This is the canonical list: the block transform's variant
1226
+ * class allowlist and the AI theme generator's enum both derive from it, so
1227
+ * they cannot drift.
1228
+ */
1229
+ const headerVariantValues = [
1230
+ "classic",
1231
+ "centered",
1232
+ "floating"
1233
+ ];
1234
+ z.enum(headerVariantValues);
1235
+ /**
1236
+ * Header variant spellings that were once authorable but no longer name a
1237
+ * layout of their own, and the variant they read as now.
1238
+ *
1239
+ * `transparent` was an overlay header with no CSS of its own: everything it
1240
+ * did (transparent root background, overlay content flow) is what `floating`
1241
+ * already does, and it had zero persisted usage in production or locally when
1242
+ * it was retired. It survives here as a one-boundary alias so a theme authored
1243
+ * against the old vocabulary still parses.
1244
+ *
1245
+ * This matters because the theme schema is strict and has no per-field
1246
+ * `.catch()`: an out-of-enum variant fails `themeSchema.safeParse` for the
1247
+ * *whole* theme, which silently swaps the site's theme for
1248
+ * `modernMinimalTheme`. Aliasing here keeps that from happening.
1249
+ */
1250
+ const legacyHeaderVariants = { transparent: "floating" };
1251
+ const legacyHeaderVariantValues = Object.keys(legacyHeaderVariants);
1252
+ /**
1253
+ * The header variant boundary for themes that go through `themeSchema`:
1254
+ * canonical variants pass through, legacy spellings normalize to the variant
1255
+ * they meant, everything else fails the parse.
1256
+ *
1257
+ * Deliberately an enum plus a transform rather than a `z.preprocess`, so the
1258
+ * schema's *input* type stays an accurate union (the legacy spelling is still
1259
+ * accepted on the wire) instead of widening to `unknown`. `SdkThemeWire` in
1260
+ * `@riverbankcms/api` is `z.input<typeof themeSchema>`, so a widened input here
1261
+ * would leak straight into a public type.
1262
+ *
1263
+ * Persisted runtime themes are admitted through `parseThemeForPersistence`
1264
+ * before reaching consumers, so legacy spellings normalize at that boundary.
1265
+ */
1266
+ const headerVariantWithLegacyAliasSchema = z.enum([...headerVariantValues, ...legacyHeaderVariantValues]).transform((value) => value in legacyHeaderVariants ? legacyHeaderVariants[value] : value);
1267
+ //#endregion
809
1268
  //#region ../site-contracts/src/theme/logoFacts.ts
810
1269
  const brandDisplayModeValues = [
811
1270
  "auto",
@@ -1473,53 +1932,4 @@ const themeSchema = z.object({
1473
1932
  styleGroups: z.record(z.string(), z.array(z.string())).optional()
1474
1933
  });
1475
1934
  //#endregion
1476
- //#region ../theme-core/src/buttons/parseThemeForPersistence.ts
1477
- /**
1478
- * Proves that every persisted button variant compiles against the theme's
1479
- * concrete palette. Public rendering may still recover from malformed
1480
- * external/runtime input, but persistence boundaries must reject it.
1481
- */
1482
- function parseThemeForPersistence(value) {
1483
- const parsed = themeSchema.safeParse(value);
1484
- if (!parsed.success) return {
1485
- ok: false,
1486
- error: {
1487
- kind: "invalid-theme-schema",
1488
- issues: parsed.error.issues
1489
- }
1490
- };
1491
- const parsedTheme = parsed.data;
1492
- const theme = parsedTheme.buttons && !parsedTheme.buttons.surfacePolicy ? {
1493
- ...parsedTheme,
1494
- buttons: {
1495
- ...parsedTheme.buttons,
1496
- surfacePolicy: createStandardButtonSurfacePolicy()
1497
- }
1498
- } : parsedTheme;
1499
- if (!theme.buttons) return {
1500
- ok: true,
1501
- value: theme
1502
- };
1503
- const palette = expandPalette(theme.palette);
1504
- for (const variant of theme.buttons.variants) {
1505
- const result = compileButtonColourStates({
1506
- variant,
1507
- global: theme.buttons.global,
1508
- palette
1509
- });
1510
- if (!result.ok) return {
1511
- ok: false,
1512
- error: {
1513
- kind: "invalid-button-colour-contract",
1514
- variantId: variant.id,
1515
- cause: result.error
1516
- }
1517
- };
1518
- }
1519
- return {
1520
- ok: true,
1521
- value: theme
1522
- };
1523
- }
1524
- //#endregion
1525
- export { themeSchema as n, parseThemeForPersistence as t };
1935
+ export { asBoundaryOptionId as A, eventListTreatmentValues as C, tileTreatmentValues as D, isArrangementMode as E, asPageFlowPresetId as F, asSiteStyleId as I, makeBoundaryId as L, asDesignBoundaryId as M, asDesignSystemTemplateId as N, visibleHeadingDecorationFamilyValues as O, asLayoutVariantKey as P, arrangementModes as S, headingDecorationColorTokenValues as T, asHeaderLayoutId as _, headerVariantValues as a, pageDesignEditorBackgroundOverrideOwner as b, runtimeBoxBackgroundSchema as c, cardRoleValues as d, cardVariantRoleValues as f, asFooterLookId as g, surfaceCardRoleValues as h, themeSchema as i, asDesignBlockId as j, asAppearancePresetId as k, boxlessCardVariantValue as l, openCardRoleValue as m, containerStylesOverrideSchema as n, boxBackgroundOverlaySchema as o, itemRoleValues as p, sectionStylesOverrideSchema as r, boxBackgroundSchema as s, cardStylesOverrideSchema as t, cardRoleSchema as u, asHeaderStyleId as v, eyebrowTreatmentValues as w, siteChromeBackgroundOverrideOwner as x, bookingPageLookIdValues as y };
@@ -1,4 +1,4 @@
1
- import { t as createRiverbankClient } from "./client-Djjv-NuA.mjs";
2
- import { t as loadPage } from "./loadPage-QXSdPSYY.mjs";
3
- import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-DhraQ_Fi.mjs";
1
+ import { t as createRiverbankClient } from "./client-ngWuFsmN.mjs";
2
+ import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-DeLQeJAZ.mjs";
3
+ import { t as loadPage } from "./loadPage-D4J747FQ.mjs";
4
4
  export { createRiverbankClient, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage };
@@ -1,5 +1,5 @@
1
- import { M as onColorTokenName, N as getTextColorForBackground, W as hexToRgb, _ as unsafeAsOpaqueButtonColourToken, ht as textColorValue, i as formatButtonColourContractError, j as isOnColorBackgroundCandidateToken, n as compileButtonColourStates, tt as surfaceForegroundDeclarations, x as buttonVariantIdSchema } from "./resolveButtonColourStates-Cn6j8Ee0.mjs";
2
- import { A as cardDecorationPseudoRules, C as generateOpaquePanelCss, D as generateShadowCssVars, E as resolvedButtonFocusDeclarations, O as renderCssDeclarations, S as generateCheckableCss, T as resolvedButtonColourDeclarations, b as INPUT_GROUP_SELECTOR, c as parseCustomCssRules, d as THEME_RADIUS_CSS_VARS, f as generateTypographyCss, k as cardBorderDeclarations, l as generateAllBlockVarsCss, m as generateStatusCss, p as generateProgressCss, r as compileCustomCssRules, t as ThemeScopeCore, v as INPUT_GROUP_ERROR_SELECTOR, w as RESOLVED_BUTTON_DISABLED_DECLARATIONS, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-B0IfeNNZ.mjs";
1
+ import { M as onColorTokenName, N as getTextColorForBackground, W as hexToRgb, _ as unsafeAsOpaqueButtonColourToken, ht as textColorValue, i as formatButtonColourContractError, j as isOnColorBackgroundCandidateToken, n as compileButtonColourStates, tt as surfaceForegroundDeclarations, x as buttonVariantIdSchema } from "./resolveButtonColourStates-DVISOQD9.mjs";
2
+ import { A as cardDecorationPseudoRules, C as generateOpaquePanelCss, D as generateShadowCssVars, E as resolvedButtonFocusDeclarations, O as renderCssDeclarations, S as generateCheckableCss, T as resolvedButtonColourDeclarations, b as INPUT_GROUP_SELECTOR, c as parseCustomCssRules, d as THEME_RADIUS_CSS_VARS, f as generateTypographyCss, k as cardBorderDeclarations, l as generateAllBlockVarsCss, m as generateStatusCss, p as generateProgressCss, r as compileCustomCssRules, t as ThemeScopeCore, v as INPUT_GROUP_ERROR_SELECTOR, w as RESOLVED_BUTTON_DISABLED_DECLARATIONS, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-DGDOH6OU.mjs";
3
3
  import * as React$1 from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { z } from "zod";
@@ -1,4 +1,5 @@
1
- import { n as themeSchema$1, t as parseThemeForPersistence } from "./parseThemeForPersistence-BebSeE17.mjs";
1
+ import { i as themeSchema$1 } from "./schema-C92Q8y0-.mjs";
2
+ import { t as parseThemeForPersistence } from "./parseThemeForPersistence-Dl7LIBJq.mjs";
2
3
  import * as fs from "fs/promises";
3
4
  import * as path from "path";
4
5
  //#region src/theme/loader.ts
@@ -1,4 +1,4 @@
1
- import { n as RichTextDocSchema, t as createRichTextDocFromMarkdown } from "./richTextSchema-DQ2NBP0n.mjs";
1
+ import { n as RichTextDocSchema, t as createRichTextDocFromMarkdown } from "./richTextSchema-QLaQrbII.mjs";
2
2
  import { i as ALLOWED_TRANSFORM_IDS, n as ALLOWED_NODE_TYPES, t as titleSourceValueSchema } from "./titleSourceSchema-DwKJfMYb.mjs";
3
3
  import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
4
4
  import { z } from "zod";
@@ -369,7 +369,7 @@ const llmBaseFieldSchema = z.object({
369
369
  label: z.string().min(1),
370
370
  description: z.string().nullable(),
371
371
  required: z.boolean(),
372
- defaultValue: jsonValueSchema.nullable()
372
+ defaultValue: z.nullable(jsonValueSchema)
373
373
  });
374
374
  /**
375
375
  * Text field schema.
@@ -441,7 +441,7 @@ const llmNestedFieldSchema = z.object({
441
441
  label: z.string(),
442
442
  required: z.boolean().nullable(),
443
443
  multiline: z.boolean().nullable(),
444
- defaultValue: jsonValueSchema.nullable()
444
+ defaultValue: z.nullable(jsonValueSchema)
445
445
  }).passthrough();
446
446
  const llmNestedFieldsSchema = z.array(llmNestedFieldSchema);
447
447
  /**
@@ -521,9 +521,7 @@ function buildLlmNodeSchema(maxDepth) {
521
521
  $repeat: llmRepeatSchema.nullable(),
522
522
  $when: z.object({ condition: z.object({ from: z.string() }) }).nullable()
523
523
  });
524
- let schema = nodeBase.extend({ children: z.null() });
525
- for (let i = 0; i < maxDepth; i++) schema = nodeBase.extend({ children: z.array(schema).nullable() });
526
- return schema;
524
+ return Array.from({ length: Math.max(0, Math.ceil(maxDepth)) }).reduce((schema) => nodeBase.extend({ children: z.array(schema).nullable() }), nodeBase.extend({ children: z.null() }));
527
525
  }
528
526
  const llmNodeSchema = buildLlmNodeSchema(6);
529
527
  /**
@@ -1757,6 +1755,11 @@ Output with repeater:
1757
1755
  //#endregion
1758
1756
  //#region src/manifest/passes/ai-helpers.ts
1759
1757
  /**
1758
+ * AI Helper Functions
1759
+ *
1760
+ * Shared utilities for making structured LLM calls.
1761
+ */
1762
+ /**
1760
1763
  * Custom error class that includes the raw LLM response for debugging.
1761
1764
  */
1762
1765
  var AiValidationError = class extends Error {
@@ -1810,7 +1813,7 @@ async function getJsonFromAiText(ai, config, userMessage, schema) {
1810
1813
  } catch (err) {
1811
1814
  throw new AiValidationError(`NON_JSON_RESPONSE: ${err instanceof Error ? err.message : String(err)}`, rawText, null);
1812
1815
  }
1813
- const result = schema.safeParse(json);
1816
+ const result = z.safeParse(schema, json);
1814
1817
  if (!result.success) throw new AiValidationError(JSON.stringify(result.error.issues, null, 2), rawText, json);
1815
1818
  return {
1816
1819
  data: result.data,
@@ -3120,7 +3123,7 @@ async function convertHtmlToManifest(input, options) {
3120
3123
  * ```
3121
3124
  */
3122
3125
  function validateManifestOutput(data) {
3123
- const parseResult = htmlToManifestOutputSchema.safeParse(data);
3126
+ const parseResult = z.safeParse(htmlToManifestOutputSchema, data);
3124
3127
  if (!parseResult.success) return {
3125
3128
  valid: false,
3126
3129
  errors: parseResult.error.issues.map((i) => `${i.path.join(".")}: ${i.message}`)
@@ -1,12 +1,12 @@
1
- import { u as builtinTransformDefinitions } from "./pageRenderPlan-Bv6NbFeM.mjs";
2
- import { Aa as NodeSchema, Ai as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Fa as builtInBlockKindsSchema, Ia as fieldSchema, La as validateManifestLookField, Na as blockCategoryEnum, Pa as blockSectionDeclarationShape, t as getBlockDefinition, to as parseMailingListProviderScope } from "./registry-Djrj9gWy.mjs";
1
+ import { d as builtinTransformDefinitions } from "./pageRenderPlan-DFv3h4Ib.mjs";
2
+ import { Co as blockCategoryEnum, Do as validateManifestLookField, Eo as fieldSchema, To as builtInBlockKindsSchema, bo as NodeSchema, qo as parseMailingListProviderScope, t as getBlockDefinition, wo as blockSectionDeclarationShape, zi as RESOLVED_INTERNAL_LINK_ENTITY_TYPES } from "./registry-BogXzcOD.mjs";
3
3
  import { a as SUPPORTED_LOADER_ENDPOINTS } from "./responseMedia-t6gs0cB7.mjs";
4
4
  import { r as footerModeSchema } from "./mode-bkFS8glh.mjs";
5
5
  import { a as ALLOWED_TRANSFORM_IDS_SET, r as ALLOWED_NODE_TYPES_SET, t as titleSourceValueSchema } from "./titleSourceSchema-DwKJfMYb.mjs";
6
6
  import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-Cqp13TKc.mjs";
7
- import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-yL2hB2l_.mjs";
7
+ import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-GIoExi8A.mjs";
8
8
  import { n as BINDING_TRANSFORM_VALUES$1 } from "./bindings-DhmIW3Er.mjs";
9
- import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-CdI7NvAW.mjs";
9
+ import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-DkzOr19P.mjs";
10
10
  import { i as safeParseRouteTemplate, t as describeRouteTemplateParseError } from "./routeTemplate-AsKQwa47.mjs";
11
11
  import { z } from "zod";
12
12
  //#region ../site-contracts/src/blocks/sdkDeclaration.ts
@@ -226,14 +226,14 @@ const sdkCustomBlockInputSchema = z.object({
226
226
  category: blockCategoryEnum,
227
227
  icon: z.string().optional(),
228
228
  tags: z.array(z.string()).optional(),
229
- fields: fieldDefinitionInputSchema.array().min(1),
229
+ fields: z.array(fieldDefinitionInputSchema).min(1),
230
230
  dataLoaders: sdkDataLoadersSchema$1,
231
- layout: NodeSchema.optional(),
231
+ layout: z.optional(NodeSchema),
232
232
  ...sdkBlockPresentationShape,
233
233
  ...blockSectionDeclarationShape
234
234
  }).superRefine(validateManifestLookField).superRefine(validateSdkBlockDeclaration);
235
235
  const sdkBlockFieldExtensionInputSchema = z.object({
236
- fields: fieldDefinitionInputSchema.array().min(1),
236
+ fields: z.array(fieldDefinitionInputSchema).min(1),
237
237
  ...blockSectionDeclarationShape
238
238
  }).superRefine(validateManifestLookField);
239
239
  const sdkBlockFieldExtensionsInputSchema = z.record(z.string().min(1), sdkBlockFieldExtensionInputSchema);
@@ -1215,7 +1215,7 @@ const sdkCustomBlockSchema = z.object({
1215
1215
  tags: z.array(z.string()).optional(),
1216
1216
  fields: fieldSchema.array().min(1, "Custom blocks must have at least one field"),
1217
1217
  dataLoaders: sdkDataLoadersSchema,
1218
- layout: NodeSchema.optional(),
1218
+ layout: z.optional(NodeSchema),
1219
1219
  ...sdkBlockPresentationShape,
1220
1220
  ...blockSectionDeclarationShape
1221
1221
  }).superRefine(validateManifestLookField).superRefine(validateSdkBlockDeclaration).superRefine(validateCustomBlockPresentation);
@@ -1292,7 +1292,7 @@ const riverbankSiteConfigSchema = z.object({
1292
1292
  blockFieldOptions: blockFieldOptionsSchema,
1293
1293
  blockFieldExtensions: blockFieldExtensionsSchema,
1294
1294
  workflows: sdkWorkflowsSchema,
1295
- content: contentConfigSchema.optional(),
1295
+ content: z.optional(contentConfigSchema),
1296
1296
  contentDir: z.string().optional(),
1297
1297
  sync: syncConfigSchema,
1298
1298
  deploy: deployConfigSchema,