@riverbankcms/sdk 0.165.0 → 0.166.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 (241) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CdsSMQEv.d.ts → BlocksIslandsHydrator-CPvN6RBW.d.ts} +1 -1
  2. package/dist/_dts/{Page-D6gp2Ipb.d.ts → Page-rW0xgQCA.d.ts} +18 -256
  3. package/dist/_dts/{SdkPreviewMode-DNXAvnet.d.ts → SdkPreviewMode-BWZh2WCk.d.ts} +26 -3
  4. package/dist/_dts/{client-BkkExozE.d.ts → client-D4BXQEZc.d.ts} +5 -1
  5. package/dist/_dts/{content-types-CXNAD7ef.d.ts → content-types-MUzta0l9.d.ts} +3 -3
  6. package/dist/_dts/{contracts-XRXhbLWP.d.ts → contracts-Cl9Xh1DO.d.ts} +4 -4
  7. package/dist/_dts/{footerPageOutline-BP2bJYdY.d.ts → footerPageOutline-4BgLKehl.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-DcMtbztV.d.ts → generatePageMetadata-BsmJ0qKh.d.ts} +2 -2
  9. package/dist/_dts/{index-RXkE3a7M.d.ts → index--qflsCiy.d.ts} +4 -3
  10. package/dist/_dts/{index-C_3kdrUb.d.ts → index-BgJ2aU5c.d.ts} +2 -2
  11. package/dist/_dts/{index-CQfJhOEA.d.ts → index-Bmboeb49.d.ts} +1 -1
  12. package/dist/_dts/{index-CRRiddNp.d.ts → index-DdcwPqQN.d.ts} +4 -4
  13. package/dist/_dts/{index-DKNEgSOS.d.ts → index-ahxQCUc7.d.ts} +2 -2
  14. package/dist/_dts/{index-BdkHhyf8.d.ts → index-kQ5xkM6X.d.ts} +1 -1
  15. package/dist/_dts/{index-DAPTSmBM.d.ts → index-mMMvLLAJ.d.ts} +2596 -2511
  16. package/dist/_dts/{index-B4ozSzFP.d.ts → index-wbBZ0awa.d.ts} +9248 -8251
  17. package/dist/_dts/{loadContent-B9vJMq3s.d.ts → loadContent-BG5IAV-V.d.ts} +9 -6
  18. package/dist/_dts/resolveBlockData-Cmcle_zV.d.ts +136 -0
  19. package/dist/_dts/{resolvePageContent-DIQyYUi-.d.ts → resolvePageContent-BRJUTFoH.d.ts} +3 -2
  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 +9 -6
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  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 +20 -0
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +2 -0
  28. package/dist/_dts/sdk/src/data/types.d.ts +54 -0
  29. package/dist/_dts/sdk/src/index.d.ts +8 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +9 -8
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +36 -48
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +3 -0
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +257 -0
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +8 -7
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
  48. package/dist/_dts/{themeAdmission-D_qtGYAT.d.ts → sdk/src/rendering/themeAdmission.d.ts} +3 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +7 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{types-Cl0nP6al.d.ts → types-BX3Y-EW3.d.ts} +3 -3
  54. package/dist/_dts/{types-mstFvhK4.d.ts → types-DF54stxv.d.ts} +8 -7
  55. package/dist/_dts/{types-BDF73NzM.d.ts → types-DuiHLiPo.d.ts} +2 -2
  56. package/dist/_dts/{validation-DVWqSvjK.d.ts → validation-Bxi0f81D.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-CzKpH9Pm.mjs → BlocksIslandsHydrator-DwiRGtgh.mjs} +31 -24
  58. package/dist/client/{BookingMailingListNote-rUqsBN7L.mjs → BookingMailingListNote-DOWOZYlK.mjs} +2 -2
  59. package/dist/client/{CalendarNavigationChevron-YGzw2IPB.mjs → CalendarNavigationChevron-5a0x0vcC.mjs} +7 -7
  60. package/dist/client/{CheckboxChoice-DlTC4J2a.mjs → CheckboxChoice-CZ-anOqV.mjs} +1 -1
  61. package/dist/client/{DemoBookingPortalAccess-D2LyS_Bi.mjs → DemoBookingPortalAccess-B2qLkPRB.mjs} +6 -6
  62. package/dist/client/{DemoPortalSignInLink-BaFg2Uit.mjs → DemoPortalSignInLink-B9YrzZt2.mjs} +1 -1
  63. package/dist/client/{EventCalendar.client-tRrhPscX.mjs → EventCalendar.client-BhADnDCg.mjs} +9 -9
  64. package/dist/client/{EventCombined.client-6cfAVtnZ.mjs → EventCombined.client-jik34zTb.mjs} +8 -8
  65. package/dist/client/{EventEmbeddedCheckoutStep-CDNUpI0S.mjs → EventEmbeddedCheckoutStep-D_14yqAU.mjs} +27 -2
  66. package/dist/client/{EventItem-dILw2PN_.mjs → EventItem-CMKrtkT7.mjs} +26 -11
  67. package/dist/client/{EventListWeekNavigation-ClgLtjNY.mjs → EventListWeekNavigation-AGHjxy6C.mjs} +1 -1
  68. package/dist/client/{EventListing.client-BNueAHmU.mjs → EventListing.client-DZeDM0Qt.mjs} +3 -3
  69. package/dist/client/{EventListing.view-DtVbKVkt.mjs → EventListing.view-3BBRdNVa.mjs} +31 -20
  70. package/dist/client/{EventRegistrationPayment-CzkG0NSJ.mjs → EventRegistrationPayment-CpNcpga4.mjs} +108 -11
  71. package/dist/client/{LocationMapActions-zWQsJhE5.mjs → LocationMapActions-D5-H9ooQ.mjs} +2 -2
  72. package/dist/client/{MapDrawingSvg-D1AO_o4h.mjs → MapDrawingSvg-C30geMl-.mjs} +1 -1
  73. package/dist/client/{Page-DUr2YhFR.mjs → Page-DNDZLRlB.mjs} +1894 -11322
  74. package/dist/client/{ProtectedSubmitButton-2fJqT_NR.mjs → ProtectedSubmitButton-8DuDw2ag.mjs} +1 -1
  75. package/dist/client/{StepIndicator-udNHcpOT.mjs → StepIndicator-Bin7YR0A.mjs} +3 -3
  76. package/dist/client/{TabBarFragment-C_kt-PXh.mjs → TabBarFragment-_IAthZVM.mjs} +1 -1
  77. package/dist/client/{ThemedButton-Cfbo1bfh.mjs → ThemedButton-8jUc02mZ.mjs} +64 -2
  78. package/dist/client/{accordion-3CYNWzTS.mjs → accordion-uVqNowRX.mjs} +1 -1
  79. package/dist/client/{booking-form.client-BSbWgLyx.mjs → booking-form.client-w-PvyWBv.mjs} +19 -14
  80. package/dist/client/{bookingForm-2MoFBWSt.mjs → bookingForm-DNMojb6A.mjs} +4 -4
  81. package/dist/client/bookings.mjs +6 -6
  82. package/dist/client/{carousel-Cu5mcpO-.mjs → carousel-C8kxI3Dm.mjs} +2 -2
  83. package/dist/client/{carousel.client-CQLV8_Al.mjs → carousel.client-BO7sCEpH.mjs} +1 -1
  84. package/dist/client/{cart-CDc6x9cR.mjs → cart-DCxjE3Is.mjs} +3 -3
  85. package/dist/client/{cart.client-BWS2r5Ef.mjs → cart.client-Ceeng8fB.mjs} +1 -1
  86. package/dist/client/{checkout-CkxPqSwD.mjs → checkout-B0EKbeVv.mjs} +3 -3
  87. package/dist/client/{checkout.client-DJfomKQc.mjs → checkout.client-DtPj3fYk.mjs} +1 -1
  88. package/dist/client/client.mjs +9465 -15
  89. package/dist/client/{context-CBV21-9L.mjs → context-n6IZigd3.mjs} +8 -6
  90. package/dist/client/{cta-Bw-al3cs.mjs → cta-CDeAwYoN.mjs} +45 -28
  91. package/dist/client/{dateFormatting-CFIUJ4Uf.mjs → dateFormatting-BWPzdeZE.mjs} +1 -1
  92. package/dist/client/{demoPortalMagicLink-D0veHJyi.mjs → demoPortalMagicLink-BdXu0fj-.mjs} +1 -1
  93. package/dist/client/{enhanceHeaderSection-CEqqq92r.mjs → enhanceHeaderSection-VHfv8M6-.mjs} +3 -3
  94. package/dist/client/{event-details.client-Bk2kQ7ax.mjs → event-details.client-Cfr1_Cj4.mjs} +2 -2
  95. package/dist/client/{event-registration.client-QMqtIywj.mjs → event-registration.client-BhygihpQ.mjs} +33 -16
  96. package/dist/client/{eventCalendar-BTDTMosr.mjs → eventCalendar-B4XCL9u6.mjs} +4 -4
  97. package/dist/client/{eventCombined-BC7a709c.mjs → eventCombined-DVjz4wdf.mjs} +4 -4
  98. package/dist/client/{eventDetails-DL08GpUc.mjs → eventDetails-B0DA1Nw1.mjs} +2 -2
  99. package/dist/client/{eventListing-BfzuEQp_.mjs → eventListing-2-xjn2nz.mjs} +4 -4
  100. package/dist/client/{eventRegistration-Lfyzh1Ab.mjs → eventRegistration-ng4iGo9O.mjs} +4 -4
  101. package/dist/client/{form-L-xZOBUS.mjs → form-BeNQiZ2V.mjs} +3 -3
  102. package/dist/client/{form.client-BtpK3TZW.mjs → form.client-BFdCKlp7.mjs} +5 -5
  103. package/dist/client/{form.parts-Djos5Un4.mjs → form.parts-C7gLK3jh.mjs} +3 -3
  104. package/dist/client/{formatDate-DGmrm7YB.mjs → formatDate-CWfelfMt.mjs} +1 -1
  105. package/dist/client/gifting/client.mjs +3 -4
  106. package/dist/client/{headerSection-f16OGkz-.mjs → headerSection-CalNAShx.mjs} +2 -2
  107. package/dist/client/{mediaAssets-DHAmrVIi.mjs → mediaAssets-DpPauppt.mjs} +1 -1
  108. package/dist/client/{mediaContext-CwT6ZOm7.mjs → mediaContext-BLo4NtjP.mjs} +25 -19
  109. package/dist/client/{newsletter-form.client-DpHNZc7k.mjs → newsletter-form.client-Dq7GHGXU.mjs} +6 -6
  110. package/dist/client/{newsletter-form.parts-CLGH20PL.mjs → newsletter-form.parts-BSMDYQiS.mjs} +2 -2
  111. package/dist/client/{newsletterForm-BEU0Ocu9.mjs → newsletterForm-snzZ4L6i.mjs} +3 -3
  112. package/dist/client/{noop-CQU7tiMg.mjs → noop-D-RG9eR3.mjs} +394 -168
  113. package/dist/client/portal/client.mjs +13 -14
  114. package/dist/client/{product-detail.client-Be-om1BT.mjs → product-detail.client-Gu0INDb7.mjs} +1 -1
  115. package/dist/client/{product-list.client-DR7hD5Vs.mjs → product-list.client-BmH40fNf.mjs} +1 -1
  116. package/dist/client/{productDetail-BD42UOmG.mjs → productDetail-DsPUmJ0z.mjs} +3 -3
  117. package/dist/client/{productList-CSk8sXCl.mjs → productList-DjGrjOwD.mjs} +3 -3
  118. package/dist/client/{propsDecoder-C_Y6VYnF.mjs → propsDecoder-kTVPMnfD.mjs} +4 -4
  119. package/dist/client/{registry.server-CIKtTsCl.mjs → registry.server-CKK_RXZo.mjs} +213 -314
  120. package/dist/client/rendering/client.mjs +29 -28
  121. package/dist/client/rendering/islands.mjs +1 -1
  122. package/dist/client/rendering.mjs +70 -8
  123. package/dist/client/{richText-coerce-spWtx86G.mjs → richText-coerce-BcjTX-7h.mjs} +1 -1
  124. package/dist/client/{routeIslandApiConfig-CROHPlYS.mjs → routeIslandApiConfig-CaXesATK.mjs} +1 -1
  125. package/dist/client/{shop-DscvMz86.mjs → shop-DLufMauE.mjs} +3 -3
  126. package/dist/client/{shop-commerce-CDUohm_2.mjs → shop-commerce-BxYYXLNK.mjs} +12 -12
  127. package/dist/client/{shop-commerce-store-B9nw4lRP.mjs → shop-commerce-store-Dp3Nl5YK.mjs} +1 -1
  128. package/dist/client/{shop.client-M3kNsVPi.mjs → shop.client-CBy9_alG.mjs} +13 -13
  129. package/dist/client/{shop.interactive-BGmkdIAZ.mjs → shop.interactive-BM0NRsFQ.mjs} +48 -34
  130. package/dist/client/{shopShared-BdWp6LHa.mjs → shopShared-lS23OQE-.mjs} +2 -2
  131. package/dist/client/site-styles-D8jEPGxA.mjs +3 -0
  132. package/dist/{preview-next/client/ThemedButton-Dc6aJ34Z.mjs → client/site-styles-DELkUk9s.mjs} +25468 -17264
  133. package/dist/client/spam-protection.mjs +1 -1
  134. package/dist/client/src-DjnxOjXG.mjs +217 -0
  135. package/dist/client/surfaceTransportMarker-BXepAVF6.mjs +152 -0
  136. package/dist/client/{timetableModel-Dynh5-j4.mjs → timetableModel-DzRWikCU.mjs} +157 -139
  137. package/dist/client/types-sF-IrGQr.mjs +633 -0
  138. package/dist/client/{useAvailableSlots-Cw9paRPY.mjs → useAvailableSlots-C3LphWDX.mjs} +8 -5
  139. package/dist/client/{useBookingNowIso-C9SF2rC6.mjs → useBookingNowIso-Da-f9iHw.mjs} +1 -1
  140. package/dist/client/{useDiscountApply-B-QJfBg0.mjs → useDiscountApply-SLoWhcen.mjs} +3 -3
  141. package/dist/client/{useDiscountCodeUi-Uvum8q9d.mjs → useDiscountCodeUi-D6a2BJij.mjs} +1 -1
  142. package/dist/client/{useEventPagination-BfM3xk6j.mjs → useEventPagination-Ccr4TZlm.mjs} +9 -9
  143. package/dist/client/{view-DXOuduIr.mjs → view-8w4GA8rf.mjs} +4 -4
  144. package/dist/client/{view-DlkCDfuN.mjs → view-DAVEoe8A.mjs} +277 -227
  145. package/dist/client/{wizardSteps-DManVJpc.mjs → wizardSteps-DNpajrAH.mjs} +453 -141
  146. package/dist/preview-next/before-render.mjs +3 -140
  147. package/dist/preview-next/client/ArrangementLookControls-DY5TzhEa.mjs +31197 -0
  148. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-Die6Y25O.mjs → EventEmbeddedCheckoutStep-C_h1cMYm.mjs} +33 -4
  149. package/dist/preview-next/client/{LocationPickerEnvironment-Bp4BHLCL.mjs → LocationPickerEnvironment-D56RD3e_.mjs} +1 -1
  150. package/dist/preview-next/client/{MapLibreEditMap-Cb0JhM9p.mjs → MapLibreEditMap-DFnyCckr.mjs} +2 -2
  151. package/dist/preview-next/client/PreviewEditorSidebar-DdnhmdFO.mjs +37049 -0
  152. package/dist/preview-next/client/{PreviewEditorUI-CxwlLBGw.mjs → PreviewEditorUI-C7ZmYE33.mjs} +45 -17
  153. package/dist/preview-next/client/PreviewShell-DnO38NaL.mjs +4707 -0
  154. package/dist/preview-next/client/SdkPreviewModeRuntime-D2OtoRMB.mjs +4258 -0
  155. package/dist/preview-next/client/SiteChromeCustomizeButton-eIu2RejJ.mjs +71144 -0
  156. package/dist/preview-next/client/ThemedButton-C0dgGJ5k.mjs +2006 -0
  157. package/dist/preview-next/client/{lucide-react-CqxuVAyz.mjs → lucide-react-CPBCf6QT.mjs} +15 -2
  158. package/dist/preview-next/client/previewAssistantSlot-Bp1AlAxx.mjs +110560 -0
  159. package/dist/preview-next/client/{previewChromeSurface-yuwnDP3B.mjs → previewChromeSurface-D2cREDJ5.mjs} +90 -28
  160. package/dist/preview-next/client/runtime.mjs +3 -3
  161. package/dist/preview-next/client/sdk-runtime-DK0PUhLL.mjs +5 -0
  162. package/dist/preview-next/client/{editorStatusDecision-DR4BBKhy.mjs → useAutosaveStatus--Pw8vnef.mjs} +40 -3
  163. package/dist/preview-next/client/useBlockCustomizeControls-C1Rl73N4.mjs +2724 -0
  164. package/dist/preview-next/client/useOpenBlockForSetup-CL3842FM.mjs +28 -0
  165. package/dist/preview-next/keepAlive.mjs +25 -2
  166. package/dist/preview-next/middleware.mjs +1 -1
  167. package/dist/preview-next/{route-contract-BBAJjFIz.mjs → route-contract-Bq7SUX3K.mjs} +132 -118
  168. package/dist/server/{Block.shared-ClFI3qpX.mjs → Block.shared-wXr7Iwhs.mjs} +7 -4
  169. package/dist/server/{src-DsYPhTbs.mjs → ThemeScopeCore-BI2mld9R.mjs} +178 -2532
  170. package/dist/server/accessibleSurfaces-CuN8U_iU.mjs +2102 -0
  171. package/dist/server/{bindings-Bi8EoRZD.mjs → bindings-DjdUq9FR.mjs} +2 -3
  172. package/dist/server/{publicProducts-Bz8loTRn.mjs → client-07UeMDzA.mjs} +2483 -351
  173. package/dist/server/config-validation.mjs +1 -1
  174. package/dist/server/config.mjs +33 -2
  175. package/dist/server/data/dataLoaderContext.mjs +2 -0
  176. package/dist/server/data/resolveBlockData.mjs +2 -0
  177. package/dist/server/data/types.mjs +1 -0
  178. package/dist/server/dataLoaderContext-B3fXA54R.mjs +47 -0
  179. package/dist/server/identity-Bn9OQiT1.mjs +6 -0
  180. package/dist/server/index.mjs +3 -3
  181. package/dist/server/{loadContent-dEEhQxL7.mjs → loadContent-ClpaSlBb.mjs} +6 -5
  182. package/dist/server/{loadPage-DBFBad8A.mjs → loadPage-BwtVqpaA.mjs} +4 -2
  183. package/dist/server/manifest.mjs +1 -1
  184. package/dist/server/media-DnlczCMA.mjs +231 -0
  185. package/dist/server/mode-Cv_TG9gP.mjs +63 -0
  186. package/dist/server/next.mjs +11 -11
  187. package/dist/server/opaqueSurface-3YSDPtDe.mjs +54 -0
  188. package/dist/server/{overrideResolution-BIJbiXYc.mjs → overrideResolution-Du_w3LY4.mjs} +2 -1
  189. package/dist/server/overrides-CD4d-1w7.mjs +177 -0
  190. package/dist/server/page-converter.mjs +243 -91
  191. package/dist/server/pageRenderPlan-BShULdc2.mjs +4055 -0
  192. package/dist/server/{themeAdmission-CSknYpxk.mjs → pageRuntimeSupport-C4Dh5-mB.mjs} +13 -28
  193. package/dist/server/{overrides-DhF87Vsd.mjs → pageShared-HdKFBpaX.mjs} +3472 -1795
  194. package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +52 -0
  195. package/dist/server/{prebuild-DaemmWQL.mjs → prebuild-Cl-bkaMA.mjs} +1 -1
  196. package/dist/server/prebuild.mjs +1 -1
  197. package/dist/server/prefetchBlockData-C4yUmz-r.mjs +786 -0
  198. package/dist/server/publicProducts-W9hDRwjz.mjs +64 -0
  199. package/dist/server/{registry-Cdvz1OtL.mjs → registry-TFPJdGQi.mjs} +20624 -640
  200. package/dist/server/rendering/components/pageShared.mjs +2 -0
  201. package/dist/server/rendering/helpers/loadPage.mjs +2 -0
  202. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -0
  203. package/dist/server/rendering/server.mjs +5 -4
  204. package/dist/server/rendering/themeAdmission.mjs +2 -0
  205. package/dist/server/rendering.mjs +11 -10
  206. package/dist/server/repeaterFields-MIz7r1ez.mjs +9 -0
  207. package/dist/server/{resolveBlockData-CLpAJWWf.mjs → resolveBlockData-OHlOXlOE.mjs} +6 -48
  208. package/dist/server/resolveButtonColourStates-lry2ORwX.mjs +2672 -0
  209. package/dist/server/{richTextSchema-YYc85FX4.mjs → richTextSchema-Euhuj-7V.mjs} +26 -1
  210. package/dist/server/routing.mjs +1 -1
  211. package/dist/server/schema-C2PqHrMo.mjs +2523 -0
  212. package/dist/server/server.mjs +3 -3
  213. package/dist/server/theme-bridge.mjs +1031 -1
  214. package/dist/server/theme.mjs +2 -1
  215. package/dist/server/themeAdmission-DGSAlFUK.mjs +18 -0
  216. package/dist/server/{three-pass-converter-Chnb1XD-.mjs → three-pass-converter-_j2UE2tR.mjs} +1 -1
  217. package/dist/server/validation-CDd6m8Ry.mjs +140 -0
  218. package/dist/server/{validation-DYxhLzqQ.mjs → validation-DIBFZeMB.mjs} +419 -3
  219. package/dist/server/{version-Beu4q-Gv.mjs → version-DZWZM1H6.mjs} +1 -1
  220. package/dist/styles/index.css +14 -4
  221. package/package.json +39 -1
  222. package/dist/client/purchase-BV5xfaZH.mjs +0 -894
  223. package/dist/client/schema-BdSglH2X.mjs +0 -16084
  224. package/dist/client/site-styles-CWHmlVT5.mjs +0 -14503
  225. package/dist/client/src-VIsPY-kw.mjs +0 -62
  226. package/dist/preview-next/client/PreviewEditorSidebar-DEP3xD9K.mjs +0 -5810
  227. package/dist/preview-next/client/SdkPreviewModeRuntime-Cpe-XP8e.mjs +0 -3
  228. package/dist/preview-next/client/SdkPreviewModeRuntime-QDkMPASV.mjs +0 -8059
  229. package/dist/preview-next/client/SiteChromeCustomizeButton-1JaoGOKX.mjs +0 -9367
  230. package/dist/preview-next/client/previewSidebarNavigation-AXUj9-qQ.mjs +0 -224683
  231. package/dist/preview-next/client/result-BjJUoxUF.mjs +0 -16
  232. package/dist/preview-next/client/sdk-runtime-O-eA9-rV.mjs +0 -4
  233. package/dist/preview-next/refresh-contract-uQ6BXgLJ.mjs +0 -25
  234. package/dist/server/bindings-Dgt_0goJ.mjs +0 -17
  235. package/dist/server/client-DfMDbZ41.mjs +0 -2330
  236. package/dist/server/effectiveNavLinkStyle-BHIYPVG1.mjs +0 -13713
  237. package/dist/server/loadPage-CnVB-aeL.mjs +0 -2
  238. package/dist/server/prefetchBlockData-FwcsT5H2.mjs +0 -4359
  239. package/dist/server/schema-uSA_x1Zh.mjs +0 -16311
  240. package/dist/server/site-styles-CntHn2KI.mjs +0 -793
  241. package/dist/server/siteChromeOverlayClearance-DqP40Ka0.mjs +0 -802
@@ -1,793 +0,0 @@
1
- import { $ as logoSizePolicyValues, Bt as asDesignPageId, Ft as asBlockContentVersionId, Gt as assertNever, Ht as asLayoutVariantKey, It as asBlockOrderIndex, K as cardRoleSchema, Kn as surfaceToneFromForegroundToken, Mr as parseThemeColorToken, Nn as gradientScrimSamples, Nr as themeColorShadeSteps, Pn as scrimTone, Q as brandDisplayModeValues, Rt as asDesignBlockId, Ut as asPageFlowPresetId, Wt as asSiteStyleId, X as headerInteractionPaletteValues, _t as runtimeBoxBackgroundSchema, mn as parseEditorSessionGeneration, n as headerPositioningValues, nr as resolveConcreteColorHex, on as plainFrame, qn as resolveSurfaceForeground } from "./schema-uSA_x1Zh.mjs";
2
- import { A as generatedDesignOptionCatalog, C as curatedSiteStyleIdValues, F as bookingPageLookIdValues, G as softBoundaryOption, I as parseBookingPageLookId, K as spaciousBoundaryOption, L as pageDesignDecisionsV2Schema, U as boundaryRuntimeMetricsForDecorativeTransition, V as sectionShapeFromContent, W as noneBoundaryOption, c as headerNavFontSizePreferenceValues, f as arrangementAppearancePresets, l as headerNavTypographyPreferenceValues, s as defaultHeaderNavPreferences, w as offeredSiteStyles } from "./effectiveNavLinkStyle-BHIYPVG1.mjs";
3
- import { z } from "zod";
4
- //#region ../theme-core/src/site-styles/blockFlow.ts
5
- function defineBlockDesignMetadata(input) {
6
- const layoutProfiles = (input.layoutProfiles ?? []).map((profile) => ({
7
- ...profile,
8
- variantKey: asLayoutVariantKey(profile.variantKey)
9
- }));
10
- assertUniqueLayoutProfileKeys(layoutProfiles);
11
- return {
12
- flow: input.flow,
13
- layoutProfiles
14
- };
15
- }
16
- function assertUniqueLayoutProfileKeys(profiles) {
17
- const seen = /* @__PURE__ */ new Set();
18
- const duplicates = profiles.flatMap((profile) => {
19
- if (seen.has(profile.variantKey)) return [profile.variantKey];
20
- seen.add(profile.variantKey);
21
- return [];
22
- });
23
- if (duplicates.length > 0) throw new Error(`Duplicate block layout design profiles: ${duplicates.join(", ")}`);
24
- }
25
- //#endregion
26
- //#region ../theme-core/src/site-styles/backgroundAppearance.ts
27
- const backgroundAppearanceQuickColorTokenNames = [
28
- "background",
29
- "surface",
30
- "muted",
31
- "primary",
32
- "secondary",
33
- "accent"
34
- ];
35
- const backgroundAppearanceBaseColorTokenNames = [
36
- "background",
37
- "surface",
38
- "surfaceAlt",
39
- "muted",
40
- "primary",
41
- "secondary",
42
- "accent",
43
- "neutral"
44
- ];
45
- const backgroundAppearanceShadeableColorTokenNames = [
46
- "primary",
47
- "secondary",
48
- "accent",
49
- "neutral"
50
- ];
51
- const backgroundAppearanceColorTokenNames = uniqueStrings([...backgroundAppearanceBaseColorTokenNames, ...backgroundAppearanceShadeableColorTokenNames.flatMap((name) => themeColorShadeSteps.map((shade) => `${name}-${shade}`))]);
52
- backgroundAppearanceColorTokenNames.filter((tokenName) => !backgroundAppearanceQuickColorTokenNames.includes(tokenName));
53
- const backgroundAppearanceColorTokenNameSet = new Set(backgroundAppearanceColorTokenNames);
54
- function parseBackgroundAppearanceColorToken(value) {
55
- if (typeof value !== "string") return null;
56
- const normalized = value.trim();
57
- if (!backgroundAppearanceColorTokenNameSet.has(normalized)) return null;
58
- return parseThemeColorToken(normalized);
59
- }
60
- function uniqueStrings(values) {
61
- return Array.from(new Set(values));
62
- }
63
- //#endregion
64
- //#region ../theme-core/src/site-styles/runtimeBackgroundResolution.ts
65
- function parseCanonicalRuntimeBackground(content) {
66
- const background = readRecord$1(readRecord$1(content._sectionStyles)?.background);
67
- if (!background) return { kind: "none" };
68
- const parsed = runtimeBoxBackgroundSchema.safeParse(background);
69
- if (!parsed.success) return { kind: "none" };
70
- return parsed.data.contentOwner === "page-design-editor" ? {
71
- kind: "page-design-override",
72
- background: parsed.data
73
- } : {
74
- kind: "block-authored",
75
- background: parsed.data
76
- };
77
- }
78
- /** The Look owns shading and ink together; authored image/crop stay intact. */
79
- function applyLookPhotoTreatment(background, treatment) {
80
- if (background.type !== "image" || treatment !== "text-overlay") return background;
81
- return {
82
- ...background,
83
- overlay: {
84
- type: "gradient",
85
- opacity: 1,
86
- gradient: "var(--rb-opening-photo-shade, linear-gradient(transparent, transparent)), linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.76) 25%, rgba(0,0,0,0.4) 46%, transparent 72%)"
87
- },
88
- textColor: "neutral-50",
89
- headingColor: "neutral-50",
90
- linkColor: "neutral-50",
91
- supportingColor: "neutral-50"
92
- };
93
- }
94
- function resolveSectionBackground(source, lookDefault, rhythm, arrangementHeroPhoto) {
95
- if (heroPhotoIsContent(source, arrangementHeroPhoto, rhythm !== void 0)) {
96
- if (rhythm !== void 0) return rhythmBackground(rhythm);
97
- return {
98
- kind: "content-media",
99
- background: source.background,
100
- ground: {
101
- type: "color",
102
- color: arrangementHeroPhoto?.fallbackToken ?? "background",
103
- textColor: source.background.textColor,
104
- headingColor: source.background.headingColor,
105
- linkColor: source.background.linkColor,
106
- supportingColor: source.background.supportingColor
107
- }
108
- };
109
- }
110
- if (source.kind === "page-design-override") return {
111
- kind: "override",
112
- background: source.background
113
- };
114
- if (isAuthoredMedia(source)) return {
115
- kind: "authored-media",
116
- background: lookDefault ? mergeLookForegroundWithAuthoredMedia(lookDefault, source.background) : source.background
117
- };
118
- if (lookDefault) return {
119
- kind: "look-surface",
120
- background: lookDefault
121
- };
122
- if (source.kind === "block-authored") return {
123
- kind: "authored-colour",
124
- background: source.background
125
- };
126
- return rhythmBackground(rhythm);
127
- }
128
- function resolveSectionForeground(background, palette) {
129
- return resolveSurfaceForeground(sectionForegroundBackground(background, palette), palette, {}, { compositeBase: "background" });
130
- }
131
- /** Legacy detached photos keep already-legible authored ink and its exact CSS treatment. */
132
- function sectionForegroundBackground(resolved, palette) {
133
- if (resolved.kind === "base") return null;
134
- if (resolved.kind !== "content-media") return resolved.background;
135
- const original = resolveSurfaceForeground(resolved.background, palette);
136
- const measured = resolveSurfaceForeground(resolved.ground, palette);
137
- if (original.kind !== "known" || measured.kind !== "known") return resolved.background;
138
- return [
139
- "text",
140
- "heading",
141
- "link",
142
- "supporting"
143
- ].every((role) => original.roles[role] === measured.roles[role]) ? resolved.background : resolved.ground;
144
- }
145
- function mergeLookForegroundWithAuthoredMedia(lookDefault, authored) {
146
- const paintsBand = lookDefault.type === "color" || lookDefault.type === "gradient";
147
- const lookScrim = paintsBand ? lookDefault.mediaScrim : void 0;
148
- if (paintsBand && !lookScrim) return authored;
149
- const merged = runtimeBoxBackgroundSchema.safeParse({
150
- ...lookDefault,
151
- type: authored.type,
152
- image: authored.image,
153
- objectFit: authored.objectFit,
154
- scale: authored.scale,
155
- position: authored.position,
156
- ...lookScrim ? { overlay: lookScrim } : {}
157
- });
158
- return merged.success ? merged.data : authored;
159
- }
160
- function readRecord$1(value) {
161
- return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
162
- }
163
- function heroPhotoIsContent(source, photo, hasArrangementGround) {
164
- return photo !== void 0 && !photo.paintsGround && source.kind === "block-authored" && source.background.type === "image" && (hasArrangementGround || !source.background.overlay);
165
- }
166
- function isAuthoredMedia(source) {
167
- return source.kind === "block-authored" && (source.background.type === "image" || source.background.type === "video");
168
- }
169
- function rhythmBackground(background) {
170
- return background ? {
171
- kind: "rhythm",
172
- background
173
- } : { kind: "base" };
174
- }
175
- /**
176
- * Semantic section grounds: background/base -> light; muted/surface bands ->
177
- * band; primary/secondary/accent (including pop) -> brand; text/inverse and
178
- * numbered deep shades -> deep. Media and gradients use the existing resolved
179
- * scrim foreground/tone contract: light ink over a dark veil -> deep, dark ink
180
- * over a light veil -> light. Unclassified/no veil defaults to light.
181
- * Background ownership (override, authored, Look or rhythm) never changes tone.
182
- */
183
- const solidGrounds = {
184
- background: "light",
185
- muted: "band",
186
- surface: "band",
187
- primary: "brand",
188
- secondary: "brand",
189
- accent: "brand",
190
- text: "deep"
191
- };
192
- function deriveSectionGround(resolved, palette) {
193
- if (resolved.kind === "base") return "light";
194
- const background = resolved.kind === "content-media" ? resolved.ground : resolved.background;
195
- const solid = solidSectionGround(background);
196
- if (solid) return solid;
197
- return (scrimTone(sectionScrimSamples(background, palette)) ?? sectionForegroundTone(resolved, palette)) === "dark" ? "deep" : "light";
198
- }
199
- function solidSectionGround(background) {
200
- if (background.type !== "color") return null;
201
- const color = background.color ?? "background";
202
- return solidGrounds[color] ?? (/-(?:[7-9]00|950)$/.test(color) ? "deep" : null);
203
- }
204
- function sectionForegroundTone(resolved, palette) {
205
- const foreground = resolveSectionForeground(resolved, palette);
206
- return foreground.kind === "known" ? surfaceToneFromForegroundToken(palette, foreground.roles.text) : "unknown";
207
- }
208
- function sectionVeil(background) {
209
- switch (background.type) {
210
- case "color": return null;
211
- case "image":
212
- case "video": return background.overlay;
213
- case "gradient": return {
214
- type: "gradient",
215
- gradient: background.gradient,
216
- opacity: 1
217
- };
218
- }
219
- }
220
- function sectionScrimSamples(background, palette) {
221
- const overlay = sectionVeil(background);
222
- if (overlay?.type === "gradient") return gradientScrimSamples(overlay.gradient ?? "", overlay.opacity ?? 1, palette);
223
- if (overlay?.type !== "color") return [];
224
- const hex = resolveConcreteColorHex(overlay.color ?? "", palette);
225
- return hex ? [{
226
- hex,
227
- alpha: overlay.opacity ?? 1
228
- }] : [];
229
- }
230
- //#endregion
231
- //#region ../theme-core/src/site-styles/sectionBoundaryComposition.ts
232
- const backgroundToken = requireThemeColorToken("background");
233
- /**
234
- * Classifies a section from its final render content. `_sectionStyles`
235
- * already holds the effective background (Look default, page-design override
236
- * and block-authored media merged by `resolveSectionBackground`), so this only
237
- * reads it and never re-decides precedence. A missing or unparseable
238
- * background is the page background, as it is for the renderer.
239
- */
240
- function boundaryEndpointForSectionContent(content) {
241
- const background = parseCanonicalRuntimeBackground(content);
242
- if (background.kind === "none") return {
243
- kind: "paint",
244
- token: backgroundToken
245
- };
246
- const effective = background.background;
247
- switch (effective.type) {
248
- case "color": {
249
- if (effective.color === null || effective.color === void 0) return {
250
- kind: "paint",
251
- token: backgroundToken
252
- };
253
- const token = parseThemeColorToken(effective.color);
254
- return token ? {
255
- kind: "paint",
256
- token
257
- } : {
258
- kind: "unpainted",
259
- reason: "literal-color"
260
- };
261
- }
262
- case "gradient": return {
263
- kind: "unpainted",
264
- reason: "gradient"
265
- };
266
- case "image":
267
- case "video": return {
268
- kind: "unpainted",
269
- reason: "media"
270
- };
271
- default: return assertNever(effective, "Unhandled section background type");
272
- }
273
- }
274
- /**
275
- * Reads every fact from final render content in one place. `_frameStyles` is
276
- * the compiled frame; content without one (no page design, an SDK block)
277
- * draws a plain frame.
278
- */
279
- function sectionFactsForContent(content) {
280
- return {
281
- endpoint: boundaryEndpointForSectionContent(content),
282
- frame: frameKindForContent(content),
283
- shape: sectionShapeFromContent(content)
284
- };
285
- }
286
- function frameKindForContent(content) {
287
- const frameStyles = content._frameStyles;
288
- const kind = typeof frameStyles === "object" && frameStyles !== null && "kind" in frameStyles ? frameStyles.kind : null;
289
- return kind === "panel" || kind === "flush-panel" ? kind : "plain";
290
- }
291
- /**
292
- * The frame rule: a flush panel owns the edge it runs to, so no break is
293
- * drawn next to one. The single home for this rule; the generated
294
- * pipeline's budget and the site-style lab ask it with their plan frames.
295
- */
296
- function frameNotShownReason(previous, next) {
297
- return previous === "flush-panel" || next === "flush-panel" ? "flush-panel" : null;
298
- }
299
- /**
300
- * A field sits in from the page edge with page ground around it, so a break
301
- * drawn across its edge would have nothing to join (issue 1659).
302
- */
303
- function shapeNotShownReason(previous, next) {
304
- return previous === "field" || next === "field" ? "field" : null;
305
- }
306
- /**
307
- * Decides whether and how a join draws. The frame and shape rules win before
308
- * paint is considered; two unpainted sides show nothing.
309
- */
310
- function composeBoundary(previous, next) {
311
- const frameReason = frameNotShownReason(previous.frame, next.frame) ?? shapeNotShownReason(previous.shape, next.shape);
312
- if (frameReason) return {
313
- kind: "not-shown",
314
- reason: frameReason
315
- };
316
- const from = previous.endpoint;
317
- const to = next.endpoint;
318
- if (from.kind === "paint") return {
319
- kind: "shown",
320
- composition: to.kind === "paint" ? {
321
- kind: "paint-to-paint",
322
- from: from.token,
323
- to: to.token
324
- } : {
325
- kind: "paint-to-unpainted",
326
- from: from.token
327
- }
328
- };
329
- return to.kind === "paint" ? {
330
- kind: "shown",
331
- composition: {
332
- kind: "unpainted-to-paint",
333
- to: to.token
334
- }
335
- } : {
336
- kind: "not-shown",
337
- reason: "both-unpainted"
338
- };
339
- }
340
- /**
341
- * Placement, reserves and paint for a shown boundary, derived from the
342
- * composition and the catalogue's metrics for the treatment.
343
- */
344
- function boundaryLayout(intent, composition) {
345
- const metrics = boundaryRuntimeMetricsForDecorativeTransition(intent);
346
- switch (composition.kind) {
347
- case "paint-to-paint": return {
348
- placement: "centred",
349
- reserves: {
350
- before: metrics.reserveCss,
351
- after: metrics.reserveCss
352
- },
353
- paint: {
354
- band: composition.from,
355
- shape: composition.to
356
- }
357
- };
358
- case "unpainted-to-paint": return {
359
- placement: "previous",
360
- reserves: {
361
- before: metrics.heightCss,
362
- after: null
363
- },
364
- paint: {
365
- band: null,
366
- shape: composition.to
367
- }
368
- };
369
- case "paint-to-unpainted": return {
370
- placement: "next",
371
- reserves: {
372
- before: null,
373
- after: metrics.heightCss
374
- },
375
- paint: {
376
- band: null,
377
- shape: composition.from
378
- }
379
- };
380
- default: return assertNever(composition, "Unhandled boundary composition");
381
- }
382
- }
383
- function requireThemeColorToken(value) {
384
- const token = parseThemeColorToken(value);
385
- if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
386
- return token;
387
- }
388
- //#endregion
389
- //#region ../theme-core/src/site-styles/siteChromeBackgrounds.ts
390
- const siteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceColorTokenNames);
391
- const quickSiteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceQuickColorTokenNames);
392
- siteChromeBackgroundColorTokens.filter((token) => !quickSiteChromeBackgroundColorTokens.includes(token));
393
- function parseSiteChromeBackgroundColorToken(value) {
394
- const token = parseBackgroundAppearanceColorToken(value);
395
- return token ? token : null;
396
- }
397
- function toSiteChromeBackgroundColorTokens(tokenNames) {
398
- return tokenNames.flatMap((name) => {
399
- const token = parseSiteChromeBackgroundColorToken(name);
400
- return token ? [token] : [];
401
- });
402
- }
403
- const backgroundColorTokenSchema = z.unknown().transform((value, ctx) => {
404
- const token = parseSiteChromeBackgroundColorToken(value);
405
- if (token === null) {
406
- ctx.addIssue({
407
- code: "custom",
408
- message: "Unknown site chrome background colour token"
409
- });
410
- return z.NEVER;
411
- }
412
- return token;
413
- });
414
- const siteChromeBackgroundOverrideSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("default") }).strict(), z.object({
415
- kind: z.literal("color"),
416
- token: backgroundColorTokenSchema
417
- }).strict()]);
418
- z.object({
419
- background: siteChromeBackgroundOverrideSchema,
420
- navigationLayout: z.enum(["inline-wrap", "stack"])
421
- }).strict();
422
- z.object({ background: siteChromeBackgroundOverrideSchema }).strict();
423
- //#endregion
424
- //#region ../theme-core/src/site-styles/compilationPlan.ts
425
- const defaultHeaderBrandPreferences = {
426
- brandDisplay: "auto",
427
- logoSize: "auto"
428
- };
429
- asPageFlowPresetId("flow:quiet"), noneBoundaryOption.id, asPageFlowPresetId("flow:balanced"), softBoundaryOption.id, asPageFlowPresetId("flow:expressive"), spaciousBoundaryOption.id;
430
- //#endregion
431
- //#region ../theme-core/src/site-styles/sectionPhoto.ts
432
- /** The photo a section keeps, wherever its background `type` points. */
433
- function storedSectionPhoto(content) {
434
- return readRecord(readRecord(readRecord(content._sectionStyles)?.background)?.image);
435
- }
436
- function readRecord(value) {
437
- return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
438
- }
439
- //#endregion
440
- //#region ../theme-core/src/site-styles/resolver.ts
441
- const blockDesignFallback = {
442
- sectionSurface: "base",
443
- contentFrame: plainFrame,
444
- sectionHeight: "default",
445
- heroLegibility: "none",
446
- imageSurfaceTreatment: { kind: "none" },
447
- imageSurfaceMotion: "static",
448
- tileTreatment: "default",
449
- eventListTreatment: "plain",
450
- eyebrowTreatment: "plain",
451
- accordionIconTreatment: null,
452
- composition: null
453
- };
454
- blockDesignFallback.sectionSurface, blockDesignFallback.contentFrame, blockDesignFallback.sectionHeight, blockDesignFallback.heroLegibility, blockDesignFallback.imageSurfaceTreatment, blockDesignFallback.imageSurfaceMotion, blockDesignFallback.tileTreatment, blockDesignFallback.eventListTreatment, blockDesignFallback.eyebrowTreatment, blockDesignFallback.accordionIconTreatment, blockDesignFallback.composition;
455
- //#endregion
456
- //#region ../theme-core/src/site-styles/headerBrandPresentation.ts
457
- /**
458
- * Whether the header wears a brand presentation at all (#1318 Phase 4c).
459
- *
460
- * `applyHeaderBrandPresentation` is unconditional today: given a logo context
461
- * it always writes a `logo` object carrying a resolved display, size and
462
- * accommodation. That makes "this header has no brand presentation block" —
463
- * which is what several live sites persist, including one whose site *does*
464
- * have a logo asset — a state the preference record could not express, so a
465
- * recompile would silently give the site a logo treatment it has never
466
- * rendered.
467
- *
468
- * This is the third field in this phase with that shape, after the interaction
469
- * palette and the nav text size: the persisted bytes carry intent the reader
470
- * cannot say, so the recompile "corrects" it. The fix is the same one — widen
471
- * the closed vocabulary with a named member and derive it by baseline
472
- * comparison — and it is a *widening*, not a restyle: `'recommended'` is the
473
- * default and reproduces today's behaviour exactly, so no row whose bytes carry
474
- * a presentation compiles differently for `'plain'` existing.
475
- *
476
- * `'plain'` is deliberately not "preserve whatever bytes are there". It is a
477
- * constructive instruction — *write no presentation block* — so Phase 4e's
478
- * compiler, which builds the header from nothing, can produce it.
479
- */
480
- const headerBrandPresentationValues = ["recommended", "plain"];
481
- defaultHeaderBrandPreferences.brandDisplay, defaultHeaderBrandPreferences.logoSize, defaultHeaderNavPreferences.typography, defaultHeaderNavPreferences.fontSize, defaultHeaderNavPreferences.interactionPalette;
482
- //#endregion
483
- //#region ../theme-core/src/site-styles/generatedSchemas.ts
484
- function uniqueNonEmpty(values) {
485
- const uniqueValues = [...new Set(values)];
486
- const firstValue = uniqueValues[0];
487
- if (!firstValue) throw new Error("Expected at least one generated schema option.");
488
- return [firstValue, ...uniqueValues.slice(1)];
489
- }
490
- const generatedPanelTreatments = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "panel").map((frame) => frame.treatment));
491
- const generatedFlushTreatments = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.treatment));
492
- const generatedFlushBleeds = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.bleed));
493
- const generatedPanelFrameSchema = z.object({
494
- kind: z.literal("panel"),
495
- treatment: z.enum(generatedPanelTreatments)
496
- }).strict();
497
- const generatedFlushPanelFrameSchema = z.object({
498
- kind: z.literal("flush-panel"),
499
- treatment: z.enum(generatedFlushTreatments),
500
- bleed: z.enum(generatedFlushBleeds)
501
- }).strict();
502
- const generatedContentFrameIntentSchema = z.discriminatedUnion("kind", [
503
- z.object({ kind: z.literal("plain") }).strict(),
504
- generatedPanelFrameSchema,
505
- generatedFlushPanelFrameSchema
506
- ]);
507
- const generatedSiteStyleIdSchema = z.enum(curatedSiteStyleIdValues).transform(asSiteStyleId);
508
- function generatedChoiceSchema(valueSchema) {
509
- return z.discriminatedUnion("kind", [z.object({
510
- source: z.literal("generated"),
511
- kind: z.literal("auto")
512
- }).strict(), z.object({
513
- source: z.literal("generated"),
514
- kind: z.literal("explicit"),
515
- value: valueSchema
516
- }).strict()]);
517
- }
518
- const generatedBlockDesignIntentSchema = z.object({
519
- sectionSurface: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.sectionSurfaces)),
520
- contentFrame: generatedChoiceSchema(generatedContentFrameIntentSchema),
521
- cardRole: generatedChoiceSchema(cardRoleSchema),
522
- transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)),
523
- emphasis: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.emphases))
524
- }).strict();
525
- const generatedMediaCompositionIntentSchema = z.enum([
526
- "none",
527
- "supporting",
528
- "dominant"
529
- ]);
530
- const generatedDecorativeCompositionIntentSchema = z.enum(["none", "supporting"]);
531
- const generatedHeroLegibilityStrategySchema = z.enum(["none", "scrim-gradient"]);
532
- const generatedBlockMediaIntentSchema = z.object({
533
- media: generatedMediaCompositionIntentSchema,
534
- decorative: generatedDecorativeCompositionIntentSchema,
535
- heroLegibility: generatedChoiceSchema(generatedHeroLegibilityStrategySchema)
536
- }).strict();
537
- const generatedBoundaryIntentSchema = z.object({ transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)) }).strict();
538
- const generatedPageDesignBlockIntentSchema = z.object({
539
- blockId: z.string().min(1),
540
- blockKind: z.string().min(1),
541
- purpose: z.string().min(1),
542
- design: generatedBlockDesignIntentSchema,
543
- mediaIntent: generatedBlockMediaIntentSchema,
544
- boundaryIntent: generatedBoundaryIntentSchema
545
- }).strict();
546
- z.object({
547
- siteStyleId: generatedSiteStyleIdSchema,
548
- blocks: z.array(generatedPageDesignBlockIntentSchema)
549
- }).strict();
550
- //#endregion
551
- //#region ../theme-core/src/site-styles/headerPreferencesPersistence.ts
552
- const logoTextIntentSchema = z.object({
553
- mobileMaxWidth: z.enum([
554
- "xs",
555
- "sm",
556
- "md"
557
- ]).optional(),
558
- mobileWrapLines: z.union([z.literal(1), z.literal(2)]).optional(),
559
- hideOnShrink: z.boolean().optional()
560
- }).strict();
561
- const structureSchema = z.object({
562
- positioning: z.union([z.literal("inherit"), z.enum(headerPositioningValues)]),
563
- shrinkOnScroll: z.union([z.literal("inherit"), z.boolean()]),
564
- logoText: z.union([
565
- z.literal("inherit"),
566
- z.literal("none"),
567
- logoTextIntentSchema
568
- ])
569
- }).strict();
570
- const headerPreferencesShape = {
571
- brandPresentation: z.enum(headerBrandPresentationValues),
572
- brandDisplay: z.enum(brandDisplayModeValues),
573
- logoSize: z.enum(logoSizePolicyValues),
574
- navFontRole: z.enum(headerNavTypographyPreferenceValues),
575
- navTextSize: z.enum(headerNavFontSizePreferenceValues),
576
- interactionPalette: z.union([z.literal("recommended"), z.enum(headerInteractionPaletteValues)]),
577
- background: siteChromeBackgroundOverrideSchema,
578
- structure: structureSchema
579
- };
580
- z.object(headerPreferencesShape).strict();
581
- z.object(headerPreferencesShape).omit({
582
- brandPresentation: true,
583
- structure: true
584
- }).strict();
585
- z.object(headerPreferencesShape).pick({
586
- brandPresentation: true,
587
- structure: true
588
- }).strict();
589
- //#endregion
590
- //#region ../theme-core/src/site-styles/pageDesignAuthority.ts
591
- const nonEmptyStringSchema = z.string().min(1);
592
- const blockContentVersionIdSchema = nonEmptyStringSchema.transform(asBlockContentVersionId);
593
- const designBlockIdSchema = nonEmptyStringSchema.transform(asDesignBlockId);
594
- const designPageIdSchema = nonEmptyStringSchema.transform(asDesignPageId);
595
- const blockOrderIndexSchema = z.number().int().nonnegative().transform(asBlockOrderIndex);
596
- const publishedPageBlockSnapshotSchema = z.object({
597
- kind: z.literal("published-block-content"),
598
- blockId: designBlockIdSchema,
599
- contentVersionId: blockContentVersionIdSchema,
600
- identifier: z.string().nullable(),
601
- blockKind: nonEmptyStringSchema,
602
- orderIndex: blockOrderIndexSchema
603
- }).strict();
604
- const draftPageBlockSnapshotSchema = z.object({
605
- kind: z.literal("draft-block-content"),
606
- blockId: designBlockIdSchema,
607
- contentVersionId: blockContentVersionIdSchema.nullable(),
608
- identifier: z.string().nullable(),
609
- blockKind: nonEmptyStringSchema,
610
- orderIndex: blockOrderIndexSchema
611
- }).strict();
612
- const missingPageBlockSnapshotSchema = z.object({
613
- kind: z.literal("missing-block-content"),
614
- blockId: designBlockIdSchema,
615
- identifier: z.string().nullable(),
616
- blockKind: nonEmptyStringSchema,
617
- orderIndex: blockOrderIndexSchema,
618
- reason: z.enum([
619
- "new-block",
620
- "deleted-content-version",
621
- "unpublished-block"
622
- ])
623
- }).strict();
624
- const pageBlockSnapshotSchema = z.discriminatedUnion("kind", [
625
- publishedPageBlockSnapshotSchema,
626
- draftPageBlockSnapshotSchema,
627
- missingPageBlockSnapshotSchema
628
- ]);
629
- const publishedPageBlockSequenceSchema = z.array(publishedPageBlockSnapshotSchema).superRefine(validateBlockSequence);
630
- const draftPageBlockSequenceSchema = z.array(pageBlockSnapshotSchema).superRefine(validateBlockSequence);
631
- const publishedPageDesignVersionDataV1Schema = z.object({
632
- schemaVersion: z.literal(1),
633
- stage: z.literal("published"),
634
- pageId: designPageIdSchema,
635
- blockSequence: publishedPageBlockSequenceSchema
636
- }).strict();
637
- const draftPageDesignVersionDataV1Schema = z.object({
638
- schemaVersion: z.literal(1),
639
- stage: z.literal("draft"),
640
- pageId: designPageIdSchema,
641
- blockSequence: draftPageBlockSequenceSchema
642
- }).strict();
643
- z.discriminatedUnion("stage", [publishedPageDesignVersionDataV1Schema, draftPageDesignVersionDataV1Schema]);
644
- function validateBlockSequence(snapshots, ctx) {
645
- collectBlockSequenceIssues(snapshots).forEach((issue) => ctx.addIssue(issue));
646
- }
647
- function collectBlockSequenceIssues(snapshots) {
648
- const indexed = snapshots.map((snapshot, index) => ({
649
- ...snapshot,
650
- index
651
- }));
652
- const firstBlockIndexes = new Map([...indexed].reverse().map((item) => [item.blockId, item.index]));
653
- const firstOrderIndexes = new Map([...indexed].reverse().map((item) => [item.orderIndex, item.index]));
654
- return indexed.flatMap((snapshot, index) => {
655
- const previous = snapshots[index - 1]?.orderIndex;
656
- return [
657
- ...firstBlockIndexes.get(snapshot.blockId) !== index ? [{
658
- code: z.ZodIssueCode.custom,
659
- message: `Duplicate blockId in page design blockSequence: ${snapshot.blockId}`,
660
- path: [index, "blockId"]
661
- }] : [],
662
- ...firstOrderIndexes.get(snapshot.orderIndex) !== index ? [{
663
- code: z.ZodIssueCode.custom,
664
- message: `Duplicate orderIndex in page design blockSequence: ${String(snapshot.orderIndex)}`,
665
- path: [index, "orderIndex"]
666
- }] : [],
667
- ...previous !== void 0 && snapshot.orderIndex <= previous ? [{
668
- code: z.ZodIssueCode.custom,
669
- message: `Expected orderIndex greater than ${String(previous)} for blockSequence position ${String(index)}; received ${String(snapshot.orderIndex)}.`,
670
- path: [index, "orderIndex"]
671
- }] : []
672
- ];
673
- });
674
- }
675
- //#endregion
676
- //#region ../theme-core/src/site-styles/sectionPhotoGround.ts
677
- /**
678
- * How the Looks built on an arrangement use the photo. Looks that share an
679
- * arrangement render the same tree, so they agree (a catalogue test holds
680
- * them to it). Null for keys no arrangement Look uses.
681
- */
682
- function arrangementPhotoUse(blockKind, arrangementKey) {
683
- return arrangementAppearancePresets.find((entry) => entry.blockKinds.some((kind) => kind === blockKind) && Object.values(entry.structure.byMode).includes(arrangementKey))?.structure.photoUse ?? null;
684
- }
685
- /** Older hero layouts no arrangement Look is built on, which show the photo beside the text. */
686
- const recipeOnlyHeroLayoutsWithPhotoBeside = ["splitReverse"];
687
- /** One photo-placement decision for the hero's renderers: does the photo paint the section ground? */
688
- function heroPhotoPaintsGround(variant) {
689
- const key = variant ?? "classic";
690
- const use = arrangementPhotoUse("block.hero", key);
691
- return use === null ? !recipeOnlyHeroLayoutsWithPhotoBeside.includes(key) : use === "behind";
692
- }
693
- //#endregion
694
- //#region ../theme-core/src/site-styles/tokenRecipes.ts
695
- const themeTokenRecipeOptions = {
696
- palette: [
697
- "brand-led",
698
- "warm-neutral",
699
- "high-contrast",
700
- "soft-natural"
701
- ],
702
- contrast: [
703
- "standard",
704
- "strong",
705
- "maximum"
706
- ],
707
- radius: [
708
- "square",
709
- "soft",
710
- "rounded",
711
- "pill"
712
- ],
713
- shadow: [
714
- "none",
715
- "subtle",
716
- "layered"
717
- ],
718
- typography: [
719
- "serif-editorial",
720
- "clean-sans",
721
- "classic-serif",
722
- "friendly-sans"
723
- ],
724
- spacing: [
725
- "compact",
726
- "regular",
727
- "airy"
728
- ],
729
- motion: [
730
- "none",
731
- "subtle",
732
- "expressive"
733
- ]
734
- };
735
- z.object({
736
- palette: z.enum(themeTokenRecipeOptions.palette),
737
- contrast: z.enum(themeTokenRecipeOptions.contrast),
738
- radius: z.enum(themeTokenRecipeOptions.radius),
739
- shadow: z.enum(themeTokenRecipeOptions.shadow),
740
- typography: z.enum(themeTokenRecipeOptions.typography),
741
- spacing: z.enum(themeTokenRecipeOptions.spacing),
742
- motion: z.enum(themeTokenRecipeOptions.motion)
743
- });
744
- z.number().int().nonnegative().brand();
745
- //#endregion
746
- //#region ../theme-core/src/site-styles/pageEditAdmission.ts
747
- const generationSchema = z.string().transform((value, ctx) => {
748
- const result = parseEditorSessionGeneration(value);
749
- if (result.ok) return result.value;
750
- ctx.addIssue({
751
- code: "custom",
752
- message: "Invalid editor session generation"
753
- });
754
- return z.NEVER;
755
- });
756
- z.discriminatedUnion("kind", [z.object({
757
- kind: z.literal("open"),
758
- generation: generationSchema
759
- }).strict(), z.object({
760
- kind: z.literal("paused"),
761
- generation: generationSchema
762
- }).strict()]);
763
- z.union([z.nullish(z.never()).transform(() => ({ kind: "automatic" })), pageDesignDecisionsV2Schema.transform((decisions) => ({
764
- kind: "decisions",
765
- decisions
766
- }))], { error: (issue) => {
767
- const value = issue.input;
768
- return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !== 2 ? "Unsupported page design decisions schemaVersion." : "Invalid page design decisions shape.";
769
- } });
770
- [...[
771
- 165,
772
- 150,
773
- 135,
774
- 120,
775
- 105,
776
- 90,
777
- 75,
778
- 60,
779
- 45,
780
- 30
781
- ].flatMap((o) => [o, -o])];
782
- bookingPageLookIdValues.map((value) => {
783
- const id = parseBookingPageLookId(value);
784
- if (!id) throw new Error(`Invalid booking look catalogue entry: ${value}`);
785
- const style = offeredSiteStyles({ audience: "booking-page" }).find((candidate) => candidate.id === id);
786
- if (!style) throw new Error(`Booking look is not offered: ${value}`);
787
- return {
788
- ...style,
789
- id
790
- };
791
- });
792
- //#endregion
793
- export { sectionFactsForContent as a, parseCanonicalRuntimeBackground as c, defineBlockDesignMetadata as d, composeBoundary as i, resolveSectionBackground as l, storedSectionPhoto as n, applyLookPhotoTreatment as o, boundaryLayout as r, deriveSectionGround as s, heroPhotoPaintsGround as t, sectionForegroundBackground as u };