@riverbankcms/sdk 0.166.0 → 0.168.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +5 -0
  3. package/dist/_dts/{BlocksIslandsHydrator-CPvN6RBW.d.ts → BlocksIslandsHydrator-CiD_VVGM.d.ts} +1 -1
  4. package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bj6VJRS5.d.ts} +9 -8
  5. package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-ChpsnwDX.d.ts} +2 -2
  6. package/dist/_dts/{client-D4BXQEZc.d.ts → client-C8mfUxrJ.d.ts} +73 -35
  7. package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-_vXZyR4H.d.ts} +2 -2
  8. package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-CJFfrVKU.d.ts} +9 -5
  9. package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-CMegb23G.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-D9YdAIMh.d.ts} +2 -2
  11. package/dist/_dts/{index-DdcwPqQN.d.ts → index-BQXaZ7aY.d.ts} +4 -4
  12. package/dist/_dts/{index-ahxQCUc7.d.ts → index-Bpr-wT5k.d.ts} +2 -2
  13. package/dist/_dts/{index--qflsCiy.d.ts → index-C7_Rz8EY.d.ts} +3 -3
  14. package/dist/_dts/{index-kQ5xkM6X.d.ts → index-Cx2BQlHL.d.ts} +3 -3
  15. package/dist/_dts/{index-Bmboeb49.d.ts → index-Dgz6yhsy.d.ts} +1 -1
  16. package/dist/_dts/index-Vh8B9FSa.d.ts +14 -0
  17. package/dist/_dts/{index-BgJ2aU5c.d.ts → index-vR3p9Bu-.d.ts} +2 -2
  18. package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-dhWSgLeS.d.ts} +7 -7
  19. package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
  20. package/dist/_dts/{index-wbBZ0awa.d.ts → request-BrYhNV9Z.d.ts} +81287 -47810
  21. package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-BfSHm8Ms.d.ts} +5 -5
  22. package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-gZJ4i1wN.d.ts} +2 -2
  23. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  25. package/dist/_dts/sdk/src/client.d.ts +7 -7
  26. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  27. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  29. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  30. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  31. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  32. package/dist/_dts/sdk/src/index.d.ts +8 -8
  33. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/metadata/index.d.ts +6 -1
  35. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  36. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  37. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  38. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  39. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  40. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  41. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  43. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  45. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +7 -5
  48. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  49. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  50. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  51. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  52. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  53. package/dist/_dts/sdk/src/server.d.ts +5 -5
  54. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  55. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  56. package/dist/_dts/{types-BX3Y-EW3.d.ts → types-BB33-Spd.d.ts} +3 -3
  57. package/dist/_dts/{types-DF54stxv.d.ts → types-BVFXYtRg.d.ts} +7 -7
  58. package/dist/_dts/{types-DuiHLiPo.d.ts → types-FOsJ-KYb.d.ts} +4 -2
  59. package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-DckTc6TQ.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DcwEaliO.mjs} +21 -21
  61. package/dist/client/BookingMailingListNote-Dsugoe-n.mjs +946 -0
  62. package/dist/client/BookingQuestionFields-Bhh0cvsl.mjs +359 -0
  63. package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-CNe3ZjdC.mjs} +166 -17
  64. package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-BeiZxEUJ.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-BL943-tl.mjs} +11 -30
  67. package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-BFVxECTp.mjs} +137 -61
  68. package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
  69. package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-BIc4gjiD.mjs} +86 -17
  70. package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-a0QEIEf0.mjs} +1 -1
  71. package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-CEFTC3jH.mjs} +3 -3
  72. package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-Bt2sBBms.mjs} +41 -50
  73. package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-D9YBNb_E.mjs} +255 -40
  74. package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-gqzt5gkW.mjs} +2 -2
  75. package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-13JQI7_z.mjs} +22 -2
  76. package/dist/client/{Page-DNDZLRlB.mjs → Page-D_M2Vxz3.mjs} +26063 -22139
  77. package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
  78. package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-CaN8snZ8.mjs} +3 -3
  79. package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-DkVKtK5a.mjs} +19 -19
  80. package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
  81. package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
  82. package/dist/client/{accordion-uVqNowRX.mjs → accordion-DE7OG--d.mjs} +1 -1
  83. package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-CS1PPjw7.mjs} +842 -374
  84. package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-DE2CwIU9.mjs} +5 -4
  85. package/dist/client/{src-DjnxOjXG.mjs → bookingQuestionValues-BjcyCru5.mjs} +88 -1
  86. package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
  87. package/dist/client/bookings.mjs +18 -13
  88. package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-DZyUdnFh.mjs} +3 -3
  89. package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
  90. package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
  91. package/dist/client/{cart-DCxjE3Is.mjs → cart-D7HkkNwe.mjs} +3 -3
  92. package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-H4sv2TpD.mjs} +1 -1
  93. package/dist/client/{checkout-B0EKbeVv.mjs → checkout-2qVyG-Sh.mjs} +3 -3
  94. package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DAjrBZ74.mjs} +1 -1
  95. package/dist/client/client.mjs +325 -65
  96. package/dist/client/{context-n6IZigd3.mjs → context-DXmIbXCK.mjs} +300 -3
  97. package/dist/client/{cta-CDeAwYoN.mjs → cta-DP_IBnq3.mjs} +2 -2
  98. package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-CwrkFZTr.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-DQXK-Fh6.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-DheQj7rg.mjs} +4 -4
  101. package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-C5UufcRp.mjs} +1 -1
  102. package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-CMGg63IU.mjs} +73 -239
  103. package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-DlD0GCEy.mjs} +4 -4
  104. package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-DoSi8p_l.mjs} +4 -4
  105. package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-DzuQYgmO.mjs} +2 -2
  106. package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-CkiMjl0g.mjs} +4 -4
  107. package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-CjS3Zpjp.mjs} +4 -4
  108. package/dist/client/{form-BeNQiZ2V.mjs → form-DgQqm7T2.mjs} +3 -3
  109. package/dist/client/{form.client-BFdCKlp7.mjs → form.client-BI9Dcsq5.mjs} +5 -5
  110. package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-DevF0L_A.mjs} +3 -3
  111. package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DDyURjoe.mjs} +1 -1
  112. package/dist/client/gifting/client.mjs +3 -3
  113. package/dist/client/{headerSection-CalNAShx.mjs → headerSection-DYIG6Pwb.mjs} +2 -2
  114. package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
  115. package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
  116. package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-BWp7Y1e1.mjs} +6 -6
  117. package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-Dg8s9NwJ.mjs} +2 -2
  118. package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-DnPraMzx.mjs} +3 -3
  119. package/dist/client/{noop-D-RG9eR3.mjs → noop-ByFRHYQ2.mjs} +456 -491
  120. package/dist/client/portal/client.mjs +76 -229
  121. package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-BFAgHrdg.mjs} +1 -1
  122. package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DVrs_DyY.mjs} +1 -1
  123. package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-D4rvl6Xg.mjs} +3 -3
  124. package/dist/client/{productList-DjGrjOwD.mjs → productList-B8o5AOMX.mjs} +3 -3
  125. package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-hhotPP6P.mjs} +5 -5
  126. package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-Ch3EpupA.mjs} +2296 -2489
  127. package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
  128. package/dist/client/rendering/client.mjs +30 -30
  129. package/dist/client/rendering/islands.mjs +1 -1
  130. package/dist/client/rendering.mjs +10 -9
  131. package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-C3LabQ1O.mjs} +1 -1
  132. package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-CQGlxId8.mjs} +1 -1
  133. package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
  134. package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
  135. package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-VDbVaKY-.mjs} +12 -12
  136. package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-DqdgJ8Zw.mjs} +1 -1
  137. package/dist/client/{shop-DLufMauE.mjs → shop-rRXplPGZ.mjs} +3 -3
  138. package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-DdwvMvaK.mjs} +13 -13
  139. package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-C8OvFY06.mjs} +167 -68
  140. package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-BeuJiGPU.mjs} +2 -2
  141. package/dist/client/spam-protection.mjs +1 -1
  142. package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
  143. package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-Cko9LRKy.mjs} +13 -158
  144. package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
  145. package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-M6QIEiWf.mjs} +3 -3
  146. package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-BJSnyO0f.mjs} +3 -3
  147. package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-D3XnOSCi.mjs} +1 -1
  148. package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-PhTIoFVX.mjs} +7 -7
  149. package/dist/client/{view-DAVEoe8A.mjs → view-448wvvEY.mjs} +21 -12
  150. package/dist/client/{view-8w4GA8rf.mjs → view-L_mkgtnk.mjs} +4 -4
  151. package/dist/client/{site-styles-DELkUk9s.mjs → wizardSteps-CFulHWnT.mjs} +19371 -17045
  152. package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-BpvnOGlN.mjs} +26 -17
  153. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
  154. package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
  155. package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
  156. package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-C0OtdWu_.mjs} +432 -127
  157. package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-Csc5vH5k.mjs} +6 -6
  158. package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-BOLH_pm-.mjs} +252 -158
  159. package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-CKodLReY.mjs} +31 -32
  160. package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-BeEZpeKn.mjs} +19484 -18082
  161. package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
  162. package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
  163. package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-BBdN5kfY.mjs} +21470 -16697
  164. package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-VZtGwPuH.mjs} +1 -1
  165. package/dist/preview-next/client/runtime.mjs +3 -3
  166. package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-kiZkMcuR.mjs} +2 -2
  167. package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-BiIHEeE0.mjs} +2 -2
  168. package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-BuFLIpmX.mjs} +2 -93
  169. package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-DlxYgmh_.mjs} +1 -1
  170. package/dist/preview-next/keepAlive.mjs +1 -1
  171. package/dist/preview-next/middleware.mjs +1 -1
  172. package/dist/preview-next/{route-contract-Bq7SUX3K.mjs → route-contract-C0sCvCYL.mjs} +248 -0
  173. package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-Dnhc0Wu5.mjs} +5 -5
  174. package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-NAQ_zsFu.mjs} +1173 -148
  175. package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-108nxyGc.mjs} +520 -129
  176. package/dist/server/{bindings-DjdUq9FR.mjs → bindings-DLoZYUxG.mjs} +2 -2
  177. package/dist/server/{client-07UeMDzA.mjs → client-Bc8jI8zN.mjs} +346 -63
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +1 -1
  180. package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
  181. package/dist/server/data/resolveBlockData.mjs +1 -1
  182. package/dist/server/headerVariant-BwR9NV4b.mjs +463 -0
  183. package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-D61gpqHB.mjs} +4 -5
  186. package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-B4ZYpIcd.mjs} +2 -2
  187. package/dist/server/manifest.mjs +1 -1
  188. package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
  189. package/dist/server/metadata.mjs +5 -1
  190. package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
  191. package/dist/server/next/revalidate.mjs +9 -4
  192. package/dist/server/next.mjs +6 -6
  193. package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
  194. package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-CDReKy2P.mjs} +1 -1
  195. package/dist/server/page-converter.mjs +3 -3
  196. package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-ByVTA7-4.mjs} +375 -171
  197. package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-Dzz_Dze6.mjs} +291 -5
  198. package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Dk5Ku6hs.mjs} +12184 -11593
  199. package/dist/server/{schema-C2PqHrMo.mjs → parseThemeForPersistence-pJPGfMrf.mjs} +593 -1591
  200. package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-CW4M0WEZ.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-Bvx0SiIM.mjs} +5 -34
  203. package/dist/server/{registry-TFPJdGQi.mjs → registry-Bh0Y25zH.mjs} +6041 -4562
  204. package/dist/server/rendering/components/pageShared.mjs +1 -1
  205. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  206. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  207. package/dist/server/rendering/server.mjs +3 -3
  208. package/dist/server/rendering.mjs +8 -8
  209. package/dist/server/{resolveBlockData-OHlOXlOE.mjs → resolveBlockData-CnHHst9r.mjs} +1 -1
  210. package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +393 -502
  211. package/dist/server/responseMedia-t6gs0cB7.mjs +115 -0
  212. package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
  213. package/dist/server/server.mjs +3 -3
  214. package/dist/server/theme-bridge.mjs +2 -3
  215. package/dist/server/theme.mjs +1 -2
  216. package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
  217. package/dist/server/{validation-DIBFZeMB.mjs → validation-D2bHWSxJ.mjs} +59 -10
  218. package/dist/server/{version-DZWZM1H6.mjs → version-DkM1eAxG.mjs} +1 -1
  219. package/dist/styles/index.css +991 -48
  220. package/package.json +4 -3
  221. package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
  222. package/dist/_dts/index-mMMvLLAJ.d.ts +0 -31339
  223. package/dist/client/BookingMailingListNote-DOWOZYlK.mjs +0 -331
  224. package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
  225. package/dist/client/events-BmqPeeQm.mjs +0 -20
  226. package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
  227. package/dist/client/useBookingNowIso-Da-f9iHw.mjs +0 -58
  228. package/dist/client/wizardSteps-DNpajrAH.mjs +0 -6926
  229. package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +0 -52
  230. package/dist/server/publicProducts-W9hDRwjz.mjs +0 -64
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { n as __exportAll } from "./rolldown-runtime-CE6sIgz8.mjs";
3
- import { $f as Select$1, $n as siblingPath$2, $p as Root2$1, $t as planLeaseNotice, A as usePreviewRenderReadiness, Af as resolveRepeaterGridSpanFieldId, Am as buttonStyleHoverPreferenceValue, An as manifestFieldSectionOptions, At as deleteSlotBlock, B_ as createEditorReorderBlocksCommand, Bc as parseFeatureCardGeneratedIconSizePx, Bd as findFooterLook, Bn as enabledBackgroundModes, Bt as getDashboardUrl, Bu as inlineTextToPlainText, C_ as knownSocialPlatforms, Cf as normalizeRepeaterGridSpan, Cm as useShallow, Cn as withoutServerVersions, Cp as DialogTitle$1, Ct as getWidgetKey, Cu as isRichTextDoc, Cv as parseMediaAssetId, Df as resolveRepeaterGridColumnFieldId, Dm as readLinkedEntryLease, Dn as initialBlockDraftValues, Dt as createBlock, Du as getBlockIconSemanticId, Dv as parseSiteId, E_ as publishedContactDetails, Ef as resolveRepeaterGridBreakpointForWidth, Eg as getDirectImageUrlForMediaAsset, Em as canWriteLinkedEntry, Et as partitionFieldsByIntent, F_ as pristineValueSync, Fg as asRecord, Fm as updateButtonStyleSelectionChoice, Fn as readNumberFieldUiConfig, Fp as ReactRemoveScroll, Ft as reorderSlotBlocks, Fu as coerceInlineTextWithFallback, G_ as formatDate, Ga as isOfferingsPreviewSourceKey, Gl as isBlockButtonRole, Gn as planBackgroundTransition, Gt as ApiRequestError, Gu as plainTextToInlineText, H_ as editorBlockCollectionOwnersEqual, Hd as getHeaderStyle, I as selectedLookTile, I_ as syncStateOf, Ic as FEATURE_CARD_GENERATED_ICON_SIZE_PX, Id as gradientToCss, If as editorAdmissionIsOpen, Im as buttonStyleSelectionKey, In as readSliderFieldUiConfig, It as withSlotCompositionHash, J as runHeldLifecycle, Jf as sidebarReturnView, Jg as generateFontFaceCss, Jp as Presence, Ka as normalizeOfferingsPreviewGroupOrder, Kf as extractApiEnvelopeErrorDetails, Kg as buildFontPreviewUrl, Kn as rankBackgroundImagePoolItems, L_ as valueStatus, Ld as GRADIENT_PRESETS, Lt as blocksKeys, Md as palettesForSiteStyle, Mm as findButtonStyleRecipe, Mn as getRepeaterItemDefault, Mt as listEntryPageContentSlots, Mu as parseGeneratedIconSetId, N as lookTilePosition, N_ as displayedValues, Nm as resolveButtonStyleSelection, Nn as normalizeFieldForCanonicalValidation, Nt as listPageSurfaceContentSlots, Nu as parseSiteIconStyleGuideVersionId, O as usePreviewJoinOutcome, Of as resolveRepeaterGridColumnsForBreakpoint, Og as mediaSchema, Om as canEditorWrite, On as createManifestFormAdapter, Op as DialogDescription, Ot as createSlotBlock, Ou as getGeneratedBlockIconStyleState, Ov as unsafeAsSiteId, P_ as knownRevision, Pg as mediaIdentifierSchema, Pm as updateButtonStyleHoverPreference, Pn as getGroupChildFields, Pt as reorderBlocks, Qn as getAtPath, Qp as Content, Qt as resolveContentTitle, R_ as createEditorInsertBlockCommand, Rc as createFeatureCardIconKey, Rd as getGradientPreset, Rn as canCycleBackgroundOverrideValue, Rt as normalizeApiError, S as setPageDesignBlockBackground, S_ as knownSocialPlatformLabels, Sf as isRepeaterGridLayoutInvalid, Sm as cn, Sn as toEditorBlockItem, Sp as DialogHeader, St as getFieldIntent, Sv as assertNever$1, T_ as publicProfileWeekdays, Td as defaultPolicyPageFlowPresetId, Tf as resolveRepeaterGridAcceptedSpans, Tg as resolveMediaTransformForAspect, Tm as isEdited, Tr as buildNewsletterFormInteractiveIslandProps, Tt as isNonEmptyValue, Tu as sanitizeHref, U_ as unsafeAsEditorBlockId, Uc as suggestSemanticIconForFeatureCard, Ud as findCuratedPalette, Un as parseBackgroundOverrideFromContent, V as usePreviewAuth, V_ as editorBlockCollectionOwnerKey, Vc as resolveFeatureCardGeneratedIconSizePx, Vd as getHeaderLayout, Vf as OPERATION_ID_HEADER, Vn as imagePoolForOverride, W as useEntryController, W_ as unsafeAsEditorBlockValues, Wa as inferLegacyOfferingsPreviewGroupOrder, Wc as toFeatureCardIconSuggestionInputs, Wl as BLOCK_BUTTON_ROLE_OPTIONS, Wp as hideOthers, X as useServerRefresh, Xf as journalTargetKey, Xg as getSiteFontsStorageUrl, Xp as Anchor, Xt as deriveRouteMetadataPresentation, Xu as parseFieldDefinition, Ya as planOfferingPreviewCardSelection, Yf as journalLabels, Yg as getFontWidthRange, Yp as Portal$1, Yt as routeLifecycleContext, Yu as PUBLIC_FILE_FIELD_KINDS, Z as useSessionJournal, Za as resolveOfferingsPreviewGroupOrderEntries, Zf as journalTrustAt, Zp as Arrow$1, Zt as resolvePageRouteSlug, Zu as siteOptionSources, _f as planRepeaterGridSpanChange, _i as toggleEventType, _m as cva, _p as Dialog, _r as getBlockDefinition, _t as collectVisibleWhenWatchPaths, a_ as generateUuidV4, am as DismissableLayer, ap as usePrevious$1, b_ as parseMailchimpInterestId, bf as flowRepeaterGridItems, bg as paletteValueKey, bp as DialogDescription$1, bt as evaluateVisibleWhenPredicate, bu as admitLayoutGridForPlan, ca as computeMediaTransformStyle, cm as createCollection, cp as CalloutDescription, ct as LeaseNoticeButtons, cv as resolveBookingBusinessTimeZone, d as cycleSiteChromeSelectionId, d_ as resolveMailingListDefaultDestination, dd as concretePaletteToTheme, df as appearancePresets, dm as createContextScope, dn as selectJournalWriteState, dt as JournalWriteRefused, dv as parseUtcIsoDateTimeString, e_ as authoredValuesEqual, ef as defaultSectionTransitionVariantForFamily, em as createPopperScope, en as useEditorUiStore, ep as SelectContent, er as withValueAtPath, f_ as mailingListProviderName, fa as resolveImageSourceSetWithContext, fd as resolveVisiblePromotedFieldPathsForEditorBlock, fi as EVENT_SELECTION_SCOPE_OPTIONS, fm as composeEventHandlers, fn as journalNoticeMessage, fv as toUtcIsoDateTimeString, g_ as mailingListTargetingChoiceIds, gf as buildRepeaterGridDropTargets, gi as readEventSelectionChips, gm as buttonVariants, gt as derivePromotedFieldPlan, h_ as DEFAULT_MAILING_LIST_TARGETING, hd as sectionPhotoPresence, hi as chooseScheduleScope, hl as buildFormInteractiveIslandProps, hm as Button$1, ht as publishContentEntry, i as usePreviewSidebarNavigation, im as useFocusGuards, in as recoveryConflictCopy, jd as offeredSiteStyles, jf as resolveBlockTitle, jm as buttonStyleSelectionParameterValue, jn as getFieldDefault, jp as DialogTitle, jt as isSurfaceSlotBlockTarget, ju as parseGeneratedIconAssetId, kd as getCuratedSiteStyle, kf as resolveRepeaterGridRowFieldId, kg as runtimeMediaSchema, kn as createManifestValidation, kt as deleteBlock, ku as parseBlockIconValue, kv as expectParsedBrandedId, lm as useControllableState, lp as CalloutTitle, lv as resolveBookingTimeZoneId, mf as planLayoutGridColumnEdit, mi as chooseAllEvents, mp as FIELD_SURFACE_CLASS, mt as missingReceiptError, n as usePreviewAssistantSlot, nf as sectionTransitionFamilyForBoundaryOptionId, nm as useId$1, np as SelectTrigger, o as usePreviewPageDesignEditorState, o_ as slugify$1, on as unfinishedBlockCopy, op as clamp, ov as parseBookingLocalDate, p_ as parseMailingListPlacementTargeting, pa as resolveImageUrlWithContext, pf as isInternalResolvedLinkValue, pi as EVENT_SELECTION_TYPE_OPTIONS, pm as Primitive, pn as lifecycleOutcomeMessage, pp as FIELD_FOCUS_WITHIN_CLASS, pt as sendPageCommand, q as DONE, q_ as formatDateTime, qf as unwrapResponse, qg as buildGoogleFontFamilyQuery, qn as resolveBackgroundCapability, rf as sectionTransitionVariantForBoundaryOptionId, rm as FocusScope, rn as useSidebarView, rp as SelectValue, s as usePreviewPageDesignRenderState, sm as useDirection, sp as Callout, st as LeaseDiscardedNoticeView, tf as sectionTransitionFamilies, tm as useSize, tn as useEditorUiStoreInstance, tp as SelectItem, u as useSiteChromeCustomizeOptional, u_ as assessMailingListTargeting, ud as concretePaletteFromTheme, up as FieldTrigger, v as buildPageDesignEditorReadModelForBlocks, v_ as parseBrevoListId, va as resolveMediaSlotContract, vf as projectRepeaterGridLayout, vg as hexColorSchema, vi as writeEventSelectionChips, vm as createSlot, vp as DialogClose, vr as listBlockDescriptors, vt as evaluateVisibility, w_ as parsePublicProfile, wf as planRepeaterGridStartNewRow, wg as parseAspectRatioValue, wn as deriveEditorValuePublicationState, wp as DialogTrigger, wt as hasVisibilityConditions, x as pageDesignLookTiles, x_ as parseNewsletterListId, xf as isAcceptedRepeaterGridSpan, xg as isRotationDimensionSwap, xm as useComposedRefs, xn as useStore, xp as DialogFooter, xt as getVisibleWhenPredicates, xu as deriveFieldValidationPlan, y_ as parseMailchimpAudienceId, ya as buildResolveImageUrlContext, yf as findFirstAvailableRepeaterGridPlacement, yg as paletteColorEntries, yp as DialogContent, yt as evaluateVisibleWhen, z_ as createEditorRemoveBlockCommand, zc as getFeatureCardIconCompletion, zf as editorAdmissionSession } from "./previewAssistantSlot-Bp1AlAxx.mjs";
4
- import { $ as EyeOff, A as Lock, B as ImageUp, C as Palette, G as GripVertical, Gt as ok, H as ImageOff, I as Link2, M as LoaderCircle, O as Maximize2, S as PanelBottom, V as ImagePlus, Wt as err, _ as RotateCcw, at as Clock3, b as Pencil, bt as ArrowUp, c as Trash2, d as Sparkles, et as EllipsisVertical, ft as ChevronRight, gt as Calendar$1, ht as Check, i as Video, it as Clock, m as Settings, mt as ChevronDown, n as X$1, nt as Crop, p as SlidersHorizontal, pt as ChevronLeft, q as FileText, rt as Copy, s as TriangleAlert, t as lucide_react_exports, ut as CircleAlert, vt as Box$1, x as PanelTop, xt as ArrowDown, y as Plus, z as Image } from "./lucide-react-CPBCf6QT.mjs";
5
- import { B as resolveFooterLayoutHints, C as isHeaderMenuSurfaceState, Cn as upsertFooterEngagementSection, En as planFooterArrangement, F as locationWidgetOverrides, G as getFooterComposition, J as updateFooterComposition, Jt as buildThemeDataAttrs, K as getFooterEngagementAuthoringOptions, L as useSiteEditorAdmission, S as HeaderMenuControls, Sn as setFooterSectionSelected, St as escapeStyleContent, Tn as footerArrangementPolicy, U as SiteOptionWidgetProvider, V as withFooterAttribution, W as useSiteOptionWidgetContext, Xt as themeRuntimeScopeProps, Y as updatePublicProfile, Z as useMediaEditor, Zt as DEFAULT_THEME_RESPONSIVE_MODE, _ as resolvePreviewEditorGuidanceModel, _n as normalizeLegacyFooterContentToV1, _t as useLinkedInlineTextField, an as TabsList, at as FormNodeClient, bn as removeFooterEngagementSection, cn as List, ct as useBlockContext, dn as Content$1, dt as mapCurrentValueForSelect, en as Textarea, f as canInspectSiteStyle, fn as Root$2, ft as mapOptionValueForSelect, gn as deriveFooterEditorOverview, gt as useField, h as resolvePreviewDashboardSetupHandoff, hn as classifyKnownMimeType, ht as FieldLabelText, in as TabsContent, it as useImageResolveContextOptional, ln as Root2$2, lt as SelectField, m as buildPreviewDashboardSetupUrl, mt as FieldFrame, n as SiteChromeSurfaceControls, nn as Input, nt as NewsletterFormClient, on as TabsTrigger, ot as BlockApiProvider, pn as Trigger$1, pt as unmapValueFromSelect, q as getPublicProfile, rn as Tabs, sn as Content$2, st as BlockContextProvider, tn as SearchInput, u as CustomizeBackgroundControlRows, un as Trigger$2, ut as hasEmptyOption, vn as parseFooterEngagementSection, vt as revealEditorElement, wn as validateFooterComposition, x as useSiteFontStorageUrl, xn as resolveFooterSections, xt as buildThemeRuntime, y as resolvePreviewSidebarChromeModel, yt as ThemeScopeCore, z as buildFooterRuntimeViewModel } from "./SiteChromeCustomizeButton-eIu2RejJ.mjs";
6
- import { U as paletteTokenNameSchema, c as isKnownIconName, d as resolveIconPickerPreset, i as ThemedButtonSpecimen, j as VARIANT_ROLES, o as getIconComponent, s as getIconPickerOptionsForPreset, u as isIconPickerPreset } from "./ThemedButton-C0dgGJ5k.mjs";
7
- import { C as useRichTextEditor, E as InlineTextEditor, F as ScrollableDialogContent, I as ScrollableDialogShell, L as emitMediaCropDebug, N as Switch, O as resolveSdkFooterMode, P as Badge, R as resolveVideoSelectionIntentForMediaField, S as insertOrReplaceRichTextImage, _ as MediaEditor, b as RichTextEditorSurface, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as getUnresolvedRichTextImageWarnings, h as useRichTextImageProjection, i as ArrangementOptionsBody, l as BackgroundPreviewSwatch, m as useSiteColourVariables, o as lookIsAutomatic, p as siteColourCss, s as useArrangementToolbar, t as ArrangementLookNote, u as formatTokenLabel, v as MediaPickerMiniDialog, w as EMPTY_DOC, x as getRichTextImagePositionFromTarget, y as MediaPickerMini, z as isSvgMimeType } from "./ArrangementLookControls-DY5TzhEa.mjs";
3
+ import { $m as useFocusGuards, $t as planLeaseNotice, $v as unsafeAsSiteId, A as usePreviewRenderReadiness, A_ as generateUuidV4, Ad as parseSiteIconStyleGuideVersionId, Af as findCuratedPalette, Ah as resolveRepeaterGridSpanFieldId, Ai as readEventSelectionChips, Al as createFeatureCardIconKey, Am as ReactRemoveScroll, An as manifestFieldSectionOptions, At as deleteSlotBlock, B_ as DEFAULT_MAILING_LIST_TARGETING, Bn as enabledBackgroundModes, Bt as getDashboardUrl, Ca as computeMediaTransformStyle, Ch as readLinkedEntryLease, Cm as DialogDescription, Cn as withoutServerVersions, Cp as resolveBlockTitle, Ct as getWidgetKey, Da as resolveImageSourceSetWithContext, Df as getGradientPreset, Dh as isAcceptedRepeaterGridSpan, Di as EVENT_SELECTION_TYPE_OPTIONS, Dn as initialBlockDraftValues, Dt as createBlock, Ed as parseBlockIconValue, Ef as GRADIENT_PRESETS, Ei as EVENT_SELECTION_SCOPE_OPTIONS, Em as DialogTitle, Et as partitionFieldsByIntent, F_ as assessMailingListTargeting, Fh as resolveButtonStyleSelection, Fl as suggestSemanticIconForFeatureCard, Fn as readNumberFieldUiConfig, Ft as reorderSlotBlocks, Fv as toUtcIsoDateTimeString, G_ as parseMailchimpInterestId, Gm as Anchor, Gn as planBackgroundTransition, Gp as journalTargetKey, Gt as ApiRequestError, Hd as plainTextToInlineText, Hf as sectionTransitionFamilies, Hp as unwrapResponse, Hu as isBlockButtonRole, I as selectedLookTile, I_ as resolveMailingListDefaultDestination, Ih as updateButtonStyleHoverPreference, Il as toFeatureCardIconSuggestionInputs, In as readSliderFieldUiConfig, It as withSlotCompositionHash, J as runHeldLifecycle, J_ as knownSocialPlatforms, Jm as Root2$1, Jp as Select$1, Jv as parseMediaAssetId, K_ as parseNewsletterListId, Kd as parseFieldDefinition, Km as Arrow$1, Kn as rankBackgroundImagePoolItems, Kp as journalTrustAt, L_ as mailingListProviderName, Ld as inlineTextToPlainText, Lh as updateButtonStyleSelectionChoice, Lt as blocksKeys, Md as coerceInlineTextWithFallback, Mh as buttonStyleHoverPreferenceValue, Mi as writeEventSelectionChips, Ml as parseFeatureCardGeneratedIconSizePx, Mn as getRepeaterItemDefault, Mr as listBlockDescriptors, Mt as listEntryPageContentSlots, Mv as resolveBookingTimeZoneId, N as lookTilePosition, Na as resolveMediaSlotContract, Nf as findFooterLook, Nh as buttonStyleSelectionParameterValue, Nl as resolveFeatureCardGeneratedIconSizePx, Nn as normalizeFieldForCanonicalValidation, Np as OPERATION_ID_HEADER, Nt as listPageSurfaceContentSlots, O as usePreviewJoinOutcome, Oa as resolveImageUrlWithContext, Od as parseGeneratedIconAssetId, Of as getHeaderLayout, Oh as resolveRepeaterGridColumnFieldId, Oi as chooseAllEvents, Ol as FEATURE_CARD_GENERATED_ICON_SIZE_PX, On as createManifestFormAdapter, Op as editorAdmissionIsOpen, Ot as createSlotBlock, Pa as buildResolveImageUrlContext, Ph as findButtonStyleRecipe, Pn as getGroupChildFields, Pt as reorderBlocks, Pv as parseUtcIsoDateTimeString, Qg as isRotationDimensionSwap, Qm as FocusScope, Qp as SelectValue, Qt as resolveContentTitle, Qv as parseSiteId, R_ as parseMailingListPlacementTargeting, Rg as paletteValueKey, Rh as buttonStyleSelectionKey, Rn as canCycleBackgroundOverrideValue, Rt as normalizeApiError, S as setPageDesignBlockBackground, Sd as sanitizeHref, Sh as canWriteLinkedEntry, Sn as toEditorBlockItem, St as getFieldIntent, T_ as authoredValuesEqual, Td as getGeneratedBlockIconStyleState, Tf as gradientToCss, Tt as isNonEmptyValue, U_ as parseBrevoListId, Uf as sectionTransitionFamilyForBoundaryOptionId, Um as Presence, Un as parseBackgroundOverrideFromContent, Up as sidebarReturnView, V as usePreviewAuth, V_ as mailingListTargetingChoiceIds, Vf as defaultSectionTransitionVariantForFamily, Vn as imagePoolForOverride, Vp as extractApiEnvelopeErrorDetails, Vu as BLOCK_BUTTON_ROLE_OPTIONS, W as useEntryController, W_ as parseMailchimpAudienceId, Wf as sectionTransitionVariantForBoundaryOptionId, Wm as Portal$1, Wp as journalLabels, X as useServerRefresh, X_ as publicProfileWeekdays, Xf as appearancePresets, Xm as useSize, Xp as SelectItem, Xt as deriveRouteMetadataPresentation, Y_ as parsePublicProfile, Ym as createPopperScope, Yp as SelectContent, Yt as routeLifecycleContext, Z as useSessionJournal, Z_ as publishedContactDetails, Zd as resolveVisiblePromotedFieldPathsForEditorBlock, Zm as useId$1, Zp as SelectTrigger, Zt as resolvePageRouteSlug, _d as admitLayoutGridForPlan, _h as useComposedRefs, _m as DialogHeader, _t as collectVisibleWhenWatchPaths, _v as formatDateTime, a_ as mediaSchema, am as FieldTrigger, ao as normalizeOfferingsPreviewGroupOrder, ar as getAtPath, av as knownRevision, bd as isRichTextDoc, bf as offeredSiteStyles, bt as evaluateVisibleWhenPredicate, cf as concretePaletteFromTheme, ch as Primitive, cm as FIELD_FOCUS_WITHIN_CLASS, co as planOfferingPreviewCardSelection, cp as projectRepeaterGridLayout, ct as LeaseNoticeButtons, cv as valueStatus, d as cycleSiteChromeSelectionId, d_ as PUBLIC_FILE_FIELD_KINDS, dh as buttonVariants, dn as selectJournalWriteState, dp as isRepeaterGridLayoutInvalid, dt as JournalWriteRefused, dv as createEditorReorderBlocksCommand, ef as sectionPhotoPresence, eh as DismissableLayer, em as usePrevious$1, en as useEditorUiStore, ey as expectParsedBrandedId, f_ as mediaIdentifierSchema, fm as Dialog, fn as journalNoticeMessage, fp as normalizeRepeaterGridSpan, fu as buildFormInteractiveIslandProps, fv as editorBlockCollectionOwnerKey, gm as DialogFooter, gp as resolveRepeaterGridColumnsForBreakpoint, gt as derivePromotedFieldPlan, gv as formatDate, hf as defaultPolicyPageFlowPresetId, hm as DialogDescription$1, hp as resolveRepeaterGridBreakpointForWidth, ht as publishContentEntry, hv as unsafeAsEditorBlockValues, i as usePreviewSidebarNavigation, ih as useControllableState, im as CalloutTitle, in as recoveryConflictCopy, io as isOfferingsPreviewSourceKey, ip as planLayoutGridColumnEdit, iv as displayedValues, j_ as slugify$1, jh as siteOptionSources, ji as toggleEventType, jl as getFeatureCardIconCompletion, jn as getFieldDefault, jp as editorAdmissionSession, jr as getBlockDefinition, jt as isSurfaceSlotBlockTarget, jv as resolveBookingBusinessTimeZone, kd as parseGeneratedIconSetId, kf as getHeaderStyle, kh as resolveRepeaterGridRowFieldId, ki as chooseScheduleScope, kn as createManifestValidation, kt as deleteBlock, kv as parseBookingLocalDate, lf as concretePaletteToTheme, lm as FIELD_SURFACE_CLASS, lp as findFirstAvailableRepeaterGridPlacement, lv as createEditorInsertBlockCommand, m_ as getFontWidthRange, mh as createSlot, mm as DialogContent, mp as resolveRepeaterGridAcceptedSpans, mt as missingReceiptError, mv as unsafeAsEditorBlockId, n as usePreviewAssistantSlot, n_ as resolveMediaTransformForAspect, nh as useDirection, nm as Callout, o as usePreviewPageDesignEditorState, o_ as runtimeMediaSchema, oh as createContextScope, on as unfinishedBlockCopy, op as buildRepeaterGridDropTargets, or as siblingPath$2, ov as pristineValueSync, p_ as asRecord, ph as cva, pm as DialogClose, pn as lifecycleOutcomeMessage, pp as planRepeaterGridStartNewRow, pt as sendPageCommand, pv as editorBlockCollectionOwnersEqual, q as DONE, q_ as knownSocialPlatformLabels, qm as Content, qn as resolveBackgroundCapability, qv as assertNever$1, r_ as getDirectImageUrlForMediaAsset, rh as createCollection, rm as CalloutDescription, rn as useSidebarView, ro as inferLegacyOfferingsPreviewGroupOrder, rp as isInternalResolvedLinkValue, s as usePreviewPageDesignRenderState, sh as composeEventHandlers, sp as planRepeaterGridSpanChange, sr as withValueAtPath, st as LeaseDiscardedNoticeView, sv as syncStateOf, t_ as parseAspectRatioValue, tm as clamp, tn as useEditorUiStoreInstance, u as useSiteChromeCustomizeOptional, uh as Button$1, uo as resolveOfferingsPreviewGroupOrderEntries, up as flowRepeaterGridItems, uv as createEditorRemoveBlockCommand, v as buildPageDesignEditorReadModelForBlocks, vd as deriveFieldValidationPlan, vf as getCuratedSiteStyle, vh as cn, vm as DialogTitle$1, vt as evaluateVisibility, wd as getBlockIconSemanticId, wh as canEditorWrite, wn as deriveEditorValuePublicationState, wt as hasVisibilityConditions, x as pageDesignLookTiles, xf as palettesForSiteStyle, xh as isEdited, xn as useStore, xt as getVisibleWhenPredicates, yh as useShallow, ym as DialogTrigger, yt as evaluateVisibleWhen, zm as hideOthers, zr as buildNewsletterFormInteractiveIslandProps } from "./previewAssistantSlot-BBdN5kfY.mjs";
4
+ import { $ as EyeOff, A as Lock, B as ImageUp, C as Palette, G as GripVertical, Gt as err, H as ImageOff, I as Link2, Kt as ok, M as LoaderCircle, O as Maximize2, S as PanelBottom, V as ImagePlus, _ as RotateCcw, at as Clock3, b as Pencil, bt as ArrowUp, c as Trash2, d as Sparkles, et as EllipsisVertical, ft as ChevronRight, gt as Calendar$1, ht as Check, i as Video, it as Clock, m as Settings, mt as ChevronDown, n as X$1, nt as Crop, p as SlidersHorizontal, pt as ChevronLeft, q as FileText, rt as Copy, s as TriangleAlert, t as lucide_react_exports, ut as CircleAlert, vt as Box$1, x as PanelTop, xt as ArrowDown, y as Plus, z as Image } from "./lucide-react-DkZ8fO-G.mjs";
5
+ import { $t as TabsList, B as resolveFooterLayoutHints, C as isHeaderMenuSurfaceState, F as locationWidgetOverrides, G as getFooterEngagementAuthoringOptions, Gt as DEFAULT_THEME_RESPONSIVE_MODE, H as SiteOptionWidgetProvider, Ht as buildThemeRuntime, J as updateFooterCredit, Jt as Textarea, K as getPublicProfile, L as useSiteEditorAdmission, Q as useMediaEditor, Qt as TabsContent, S as HeaderMenuControls, U as useSiteOptionWidgetContext, Ut as escapeStyleContent, Vt as themeRuntimeScopeProps, W as getFooterComposition, X as footerCreditLine, Xt as Input, Y as updatePublicProfile, Yt as SearchInput, Zt as Tabs, _ as resolvePreviewEditorGuidanceModel, _n as upsertFooterEngagementSection, _t as useField, an as Content$1, at as useImageResolveContextOptional, bn as planFooterArrangement, bt as ThemeScopeCore, ct as BlockContextProvider, dn as normalizeLegacyFooterContentToV1, dt as hasEmptyOption, en as TabsTrigger, f as canInspectSiteStyle, fn as parseFooterEngagementSection, ft as mapCurrentValueForSelect, gn as setFooterSectionSelected, gt as FieldLabelText, h as resolvePreviewDashboardSetupHandoff, hn as resolveFooterSections, ht as FieldFrame, in as Trigger$2, ln as classifyKnownMimeType, lt as useBlockContext, m as buildPreviewDashboardSetupUrl, mn as removeFooterEngagementSection, mt as unmapValueFromSelect, n as SiteChromeSurfaceControls, nn as List, on as Root$2, ot as FormNodeClient, pt as mapOptionValueForSelect, q as updateFooterComposition, rn as Root2$2, rt as NewsletterFormClient, sn as Trigger$1, st as BlockApiProvider, tn as Content$2, u as CustomizeBackgroundControlRows, un as deriveFooterEditorOverview, ut as SelectField, vn as validateFooterComposition, vt as useLinkedInlineTextField, x as useSiteFontStorageUrl, y as resolvePreviewSidebarChromeModel, yn as footerArrangementPolicy, yt as revealEditorElement, z as buildFooterRuntimeViewModel, zt as buildThemeDataAttrs } from "./SiteChromeCustomizeButton-BeEZpeKn.mjs";
6
+ import { J as paletteTokenNameSchema, V as hexColorSchema, W as paletteColorEntries, c as isKnownIconName, i as ThemedButtonSpecimen, l as isIconPickerPreset, o as getIconComponent, s as getIconPickerOptionsForPreset, tt as VARIANT_ROLES, u as resolveIconPickerPreset } from "./ThemedButton-BQU45t-E.mjs";
7
+ import { C as useRichTextEditor, E as InlineTextEditor, F as ScrollableDialogContent, I as ScrollableDialogShell, L as emitMediaCropDebug, N as Switch, O as resolveSdkFooterMode, P as Badge, R as resolveVideoSelectionIntentForMediaField, S as insertOrReplaceRichTextImage, _ as MediaEditor, b as RichTextEditorSurface, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as getUnresolvedRichTextImageWarnings, h as useRichTextImageProjection, i as ArrangementOptionsBody, l as BackgroundPreviewSwatch, m as useSiteColourVariables, o as lookIsAutomatic, p as siteColourCss, s as useArrangementToolbar, t as ArrangementLookNote, u as formatTokenLabel, v as MediaPickerMiniDialog, w as EMPTY_DOC, x as getRichTextImagePositionFromTarget, y as MediaPickerMini, z as isSvgMimeType } from "./ArrangementLookControls-BpvnOGlN.mjs";
8
8
  import { n as TZDate } from "./src-DY8JCJdE.mjs";
9
- import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-D56RD3e_.mjs";
10
- import { a as publicationLabel, o as Spinner, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus--Pw8vnef.mjs";
11
- import { A as TooltipTrigger, C as prepareBlockEditorManifest, D as Tooltip, E as mergeBlockDescriptors, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, P as DropdownMenuSeparator, S as hideThemeV2RawStyleFields, T as getBlockManifestFromSdkConfig, _ as arrangementLookResolution, a as needsSetupMessage, b as blockLookOwnedFieldPaths, d as createStoreBackend, f as isObjectRecord, g as useSdkConfig, h as SdkConfigProvider, j as DropdownMenu, k as TooltipProvider, l as arrangementBlockControlsFor, m as createFieldObservation, n as useBlockCustomizeControls, o as needsSetupOf, p as isRecord$1, r as NEEDS_SETUP_LABEL, s as useBlockNeedsSetup, t as resolveBlockManifest, u as arrangementLookNameFor, v as arrangementOwnedFieldIds, w as showRawStyleFields, x as lookNotShownFieldIds, y as arrangementVisibilityValues } from "./useBlockCustomizeControls-C1Rl73N4.mjs";
9
+ import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-CZQ4vkRe.mjs";
10
+ import { a as publicationLabel, o as Spinner, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-BiIHEeE0.mjs";
11
+ import { A as TooltipTrigger, C as prepareBlockEditorManifest, D as Tooltip, E as mergeBlockDescriptors, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, P as DropdownMenuSeparator, S as hideThemeV2RawStyleFields, T as getBlockManifestFromSdkConfig, _ as arrangementLookResolution, a as needsSetupMessage, b as blockLookOwnedFieldPaths, d as createStoreBackend, f as isObjectRecord, g as useSdkConfig, h as SdkConfigProvider, j as DropdownMenu, k as TooltipProvider, l as arrangementBlockControlsFor, m as createFieldObservation, n as useBlockCustomizeControls, o as needsSetupOf, p as isRecord$1, r as NEEDS_SETUP_LABEL, s as useBlockNeedsSetup, t as resolveBlockManifest, u as arrangementLookNameFor, v as arrangementOwnedFieldIds, w as showRawStyleFields, x as lookNotShownFieldIds, y as arrangementVisibilityValues } from "./useBlockCustomizeControls-BuFLIpmX.mjs";
12
12
  import * as React$1 from "react";
13
13
  import React, { Fragment, createContext, forwardRef, memo, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
14
14
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -153,24 +153,61 @@ const CollapsibleContent = React$1.forwardRef(({ className, ...props }, ref) =>
153
153
  CollapsibleContent.displayName = Content$1.displayName;
154
154
  //#endregion
155
155
  //#region ../ui/src/editor-item-card.tsx
156
- function EditorItemCard({ title, subtitle, titleAdornment, state = "default", disclosure: requestedDisclosure, affordances, interactive = true, testIdPrefix = "editor-item-card", children, className, ...rootProps }) {
156
+ const EditorItemContainerContext = React$1.createContext(false);
157
+ const EditorItemListContext = React$1.createContext(false);
158
+ /**
159
+ * The list an editor's item cards sit in, with any insert dividers between
160
+ * them. From 640px up the items are cards. Inside a container below 640px
161
+ * they become rows split by lines that run to the container's edges, and the
162
+ * open row is shaded with an accent line down its left, so a phone never
163
+ * shows a card inside a card. A list straight on the page keeps its cards.
164
+ */
165
+ function EditorItemList({ className, children, ...props }) {
166
+ const rows = React$1.useContext(EditorItemContainerContext);
167
+ return /* @__PURE__ */ jsx(EditorItemListContext.Provider, {
168
+ value: rows,
169
+ children: /* @__PURE__ */ jsx("div", {
170
+ ...props,
171
+ "data-slot": "editor-item-list",
172
+ "data-phone-rows": rows ? "" : void 0,
173
+ className: cn("flex flex-col", className, rows && "max-sm:-mx-3 max-sm:gap-0 max-sm:border-b"),
174
+ children
175
+ })
176
+ });
177
+ }
178
+ const PHONE_ROW = "max-sm:rounded-none max-sm:border-t max-sm:border-border max-sm:shadow-none max-sm:ring-inset";
179
+ const PHONE_ROW_CLOSED = "max-sm:bg-transparent";
180
+ const PHONE_ROW_OPEN = "max-sm:border-l-[3px] max-sm:border-l-primary max-sm:bg-muted/60";
181
+ function editorItemCardClassName(input) {
182
+ const open = input.disclosure.kind === "collapsible" && input.disclosure.open;
183
+ return cn("w-full p-0 transition-colors", input.state === "error" && "ring-2 ring-destructive", input.phoneRow && [PHONE_ROW, open ? PHONE_ROW_OPEN : PHONE_ROW_CLOSED], input.className);
184
+ }
185
+ function EditorItemCard({ title, subtitle, icon, titleAdornment, state = "default", disclosure: requestedDisclosure, affordances, interactive = true, testIdPrefix = "editor-item-card", children, className, ...rootProps }) {
157
186
  const generatedContentId = React$1.useId();
158
187
  const hasContent = children !== void 0 && children !== null && children !== false;
159
188
  const disclosure = hasContent ? requestedDisclosure : { kind: "static" };
160
189
  const contentId = disclosure.kind === "collapsible" ? disclosure.contentId ?? generatedContentId : void 0;
190
+ const phoneRow = React$1.useContext(EditorItemListContext);
161
191
  return /* @__PURE__ */ jsx(Card, {
162
192
  ...rootProps,
163
193
  size: "none",
164
194
  "data-editor-item-card": "",
195
+ "data-phone-row": phoneRow ? "" : void 0,
165
196
  "data-error": state === "error" ? "true" : void 0,
166
197
  "data-editor-block-highlight": state === "highlighted" ? "true" : void 0,
167
- className: cn("w-full p-0 transition-colors", state === "error" && "ring-2 ring-destructive", className),
198
+ className: editorItemCardClassName({
199
+ state,
200
+ phoneRow,
201
+ disclosure,
202
+ className
203
+ }),
168
204
  children: /* @__PURE__ */ jsx(EditorItemCardBody, {
169
205
  disclosure,
170
206
  contentId,
171
207
  header: /* @__PURE__ */ jsx(EditorItemCardHeader, {
172
208
  title,
173
209
  subtitle,
210
+ icon,
174
211
  titleAdornment,
175
212
  disclosure,
176
213
  contentId,
@@ -183,39 +220,62 @@ function EditorItemCard({ title, subtitle, titleAdornment, state = "default", di
183
220
  });
184
221
  }
185
222
  function EditorItemCardBody({ disclosure, contentId, header, children }) {
186
- if (disclosure.kind === "static") return /* @__PURE__ */ jsxs(Fragment$1, { children: [header, children] });
223
+ const content = children ? /* @__PURE__ */ jsx(EditorItemContainerContext.Provider, {
224
+ value: true,
225
+ children: /* @__PURE__ */ jsx(EditorItemListContext.Provider, {
226
+ value: false,
227
+ children
228
+ })
229
+ }) : null;
230
+ if (disclosure.kind === "static") return /* @__PURE__ */ jsxs(Fragment$1, { children: [header, content] });
187
231
  return /* @__PURE__ */ jsxs(Collapsible, {
188
232
  open: disclosure.open,
189
233
  onOpenChange: disclosure.onOpenChange,
190
- children: [header, children ? /* @__PURE__ */ jsx(CollapsibleContent, {
234
+ children: [header, content ? /* @__PURE__ */ jsx(CollapsibleContent, {
191
235
  id: contentId,
192
- children
236
+ children: content
193
237
  }) : null]
194
238
  });
195
239
  }
196
- function EditorItemCardHeader({ title, subtitle, titleAdornment, disclosure, contentId, affordances, interactive, testIdPrefix }) {
240
+ function EditorItemCardIcon({ icon, testIdPrefix }) {
241
+ if (!icon) return null;
242
+ return /* @__PURE__ */ jsx("span", {
243
+ "aria-hidden": "true",
244
+ className: "shrink-0 text-muted-foreground",
245
+ "data-testid": `${testIdPrefix}-icon`,
246
+ children: icon
247
+ });
248
+ }
249
+ function EditorItemCardHeader({ title, subtitle, icon, titleAdornment, disclosure, contentId, affordances, interactive, testIdPrefix }) {
197
250
  const subtitleId = React$1.useId();
198
251
  const adornmentId = React$1.useId();
199
252
  const describedBy = [subtitle ? subtitleId : null, titleAdornment ? adornmentId : null].filter(Boolean).join(" ") || void 0;
200
- const titleBlock = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("span", {
201
- className: "block min-w-0 flex-1 overflow-hidden",
202
- "data-testid": `${testIdPrefix}-title-shell`,
203
- children: [/* @__PURE__ */ jsx("span", {
204
- "data-slot": "card-title",
205
- className: "block truncate text-base font-semibold leading-none",
206
- "data-testid": `${testIdPrefix}-title`,
207
- children: title
208
- }), subtitle ? /* @__PURE__ */ jsx("span", {
209
- id: subtitleId,
210
- className: "block truncate text-xs text-muted-foreground",
211
- "data-testid": `${testIdPrefix}-subtitle`,
212
- children: subtitle
213
- }) : null]
214
- }), titleAdornment ? /* @__PURE__ */ jsx("span", {
215
- id: adornmentId,
216
- className: "shrink-0",
217
- children: titleAdornment
218
- }) : null] });
253
+ const titleBlock = /* @__PURE__ */ jsxs(Fragment$1, { children: [
254
+ /* @__PURE__ */ jsx(EditorItemCardIcon, {
255
+ icon,
256
+ testIdPrefix
257
+ }),
258
+ /* @__PURE__ */ jsxs("span", {
259
+ className: "block min-w-0 flex-1 overflow-hidden",
260
+ "data-testid": `${testIdPrefix}-title-shell`,
261
+ children: [/* @__PURE__ */ jsx("span", {
262
+ "data-slot": "card-title",
263
+ className: "block truncate text-base font-semibold leading-none",
264
+ "data-testid": `${testIdPrefix}-title`,
265
+ children: title
266
+ }), subtitle ? /* @__PURE__ */ jsx("span", {
267
+ id: subtitleId,
268
+ className: "block truncate text-xs text-muted-foreground",
269
+ "data-testid": `${testIdPrefix}-subtitle`,
270
+ children: subtitle
271
+ }) : null]
272
+ }),
273
+ titleAdornment ? /* @__PURE__ */ jsx("span", {
274
+ id: adornmentId,
275
+ className: "shrink-0",
276
+ children: titleAdornment
277
+ }) : null
278
+ ] });
219
279
  return /* @__PURE__ */ jsx("fieldset", {
220
280
  className: "contents",
221
281
  disabled: !interactive,
@@ -322,23 +382,34 @@ const EditorItemCardDragHandle = React$1.forwardRef(function EditorItemCardDragH
322
382
  });
323
383
  });
324
384
  /**
325
- * The gap between two items in an editor list. Its insert action appears
326
- * when the gap is hovered or when keyboard focus reaches it.
385
+ * The gap between two items in an editor. Its insert actions appear when the
386
+ * gap is hovered or when keyboard focus reaches it. Touch screens can't
387
+ * hover, so there they always show.
388
+ * Inside an EditorItemList on a phone the rows sit edge to edge, so there's
389
+ * no gap and the list's own add button does the inserting.
327
390
  */
328
- function EditorItemInsertDivider({ label, onSelect }) {
391
+ function EditorItemInsertDivider({ actions, touch = "label" }) {
392
+ const inList = React$1.useContext(EditorItemListContext);
393
+ const iconOnlyOnTouch = touch === "icon" && actions.length === 1;
329
394
  return /* @__PURE__ */ jsxs("div", {
330
395
  "data-slot": "editor-item-insert-divider",
331
- className: "relative flex h-8 w-full items-center justify-center opacity-0 transition-opacity focus-within:opacity-100 hover:opacity-100",
396
+ className: cn("relative flex h-8 w-full items-center justify-center opacity-0 transition-opacity focus-within:opacity-100 hover:opacity-100 pointer-coarse:opacity-100", inList && "max-sm:hidden"),
332
397
  children: [/* @__PURE__ */ jsx("div", { className: "w-full border-b" }), /* @__PURE__ */ jsx("div", {
333
- className: "pointer-events-none absolute inset-0 flex items-center justify-center",
334
- children: /* @__PURE__ */ jsxs(Button$1, {
398
+ className: "pointer-events-none absolute inset-0 flex flex-wrap items-center justify-center gap-2",
399
+ children: actions.map((action) => /* @__PURE__ */ jsxs(Button$1, {
335
400
  type: "button",
336
401
  size: "sm",
337
402
  variant: "secondary",
338
- className: "pointer-events-auto",
339
- onClick: onSelect,
340
- children: [/* @__PURE__ */ jsx(Plus, { className: "mr-2 h-4 w-4" }), label]
341
- })
403
+ className: cn("pointer-events-auto", iconOnlyOnTouch && "pointer-coarse:size-9 pointer-coarse:rounded-full pointer-coarse:p-0"),
404
+ onClick: action.onSelect,
405
+ children: [/* @__PURE__ */ jsx(Plus, {
406
+ className: cn("mr-2 h-4 w-4", iconOnlyOnTouch && "pointer-coarse:mr-0"),
407
+ "aria-hidden": "true"
408
+ }), /* @__PURE__ */ jsx("span", {
409
+ className: cn(iconOnlyOnTouch && "pointer-coarse:sr-only"),
410
+ children: action.label
411
+ })]
412
+ }, action.label))
342
413
  })]
343
414
  });
344
415
  }
@@ -4591,6 +4662,106 @@ const automaticPageDocumentIntent = {
4591
4662
  boundaryPins: []
4592
4663
  };
4593
4664
  //#endregion
4665
+ //#region ../theme-core/src/fonts/types.ts
4666
+ /**
4667
+ * The Supabase storage bucket name for site fonts
4668
+ */
4669
+ const SITE_FONTS_BUCKET = "site-fonts";
4670
+ /**
4671
+ * Construct the storage base URL for site fonts
4672
+ *
4673
+ * @param supabaseUrl - The Supabase project URL (e.g., https://xxx.supabase.co)
4674
+ * @returns The full storage URL for the site-fonts bucket
4675
+ *
4676
+ * @example
4677
+ * ```ts
4678
+ * const storageUrl = getSiteFontsStorageUrl('https://xxx.supabase.co')
4679
+ * // Returns: 'https://xxx.supabase.co/storage/v1/object/public/site-fonts'
4680
+ * ```
4681
+ */
4682
+ function getSiteFontsStorageUrl(supabaseUrl) {
4683
+ return `${supabaseUrl}/storage/v1/object/public/${SITE_FONTS_BUCKET}`;
4684
+ }
4685
+ /**
4686
+ * Build a lightweight Google Fonts stylesheet URL for a family-name preview.
4687
+ * The text subset keeps catalog rows cheap while still rendering the name in
4688
+ * the typeface being chosen. Pass `text` when the preview draws something
4689
+ * other than the name (a sample heading, "Aa"); its letters are deduplicated.
4690
+ */
4691
+ function buildFontPreviewUrl(family, text = family) {
4692
+ return `https://fonts.googleapis.com/css2?family=${encodeURIComponent(family).replace(/%20/gu, "+")}&display=swap&text=${encodeURIComponent(text === family ? family : [...new Set(text)].join(""))}`;
4693
+ }
4694
+ /**
4695
+ * Escape a string for use in CSS font-family declaration
4696
+ * Escapes quotes, backslashes, and newlines
4697
+ */
4698
+ function escapeCssFontFamily(name) {
4699
+ return name.replace(/\\/g, "\\\\").replace(/'/g, "\\'").replace(/"/g, "\\\"").replace(/\n/g, "\\n").replace(/\r/g, "\\r");
4700
+ }
4701
+ /**
4702
+ * Encode storage path segments for use in URLs
4703
+ * Encodes each path segment individually to handle special characters
4704
+ */
4705
+ function encodeStoragePath(storagePath) {
4706
+ return storagePath.split("/").map((segment) => encodeURIComponent(segment)).join("/");
4707
+ }
4708
+ /**
4709
+ * Generate @font-face CSS for a single font file
4710
+ */
4711
+ function generateFontFaceForFile(familyName, file, storageBaseUrl) {
4712
+ return `@font-face {
4713
+ font-family: '${escapeCssFontFamily(familyName)}';
4714
+ src: url('${`${storageBaseUrl}/${encodeStoragePath(file.storagePath)}`}') format('woff2');
4715
+ font-weight: ${file.weight};
4716
+ font-style: ${file.style};
4717
+ font-display: swap;
4718
+ }`;
4719
+ }
4720
+ /**
4721
+ * Generate @font-face CSS for a variable font
4722
+ */
4723
+ function generateFontFaceForVariableFont(familyName, file, weightMin, weightMax, storageBaseUrl) {
4724
+ return `@font-face {
4725
+ font-family: '${escapeCssFontFamily(familyName)}';
4726
+ src: url('${`${storageBaseUrl}/${encodeStoragePath(file.storagePath)}`}') format('woff2');
4727
+ font-weight: ${weightMin} ${weightMax};
4728
+ font-style: ${file.style};
4729
+ font-display: swap;
4730
+ }`;
4731
+ }
4732
+ /**
4733
+ * Generate all @font-face rules for custom fonts
4734
+ *
4735
+ * @param fonts - Array of custom fonts
4736
+ * @param storageBaseUrl - Base URL for storage (e.g., https://xxx.supabase.co/storage/v1/object/public/site-fonts)
4737
+ * @returns CSS string with all @font-face rules
4738
+ */
4739
+ function generateFontFaceCss(fonts, storageBaseUrl) {
4740
+ const rules = [];
4741
+ const seenFamilies = /* @__PURE__ */ new Set();
4742
+ for (const font of fonts) {
4743
+ if (seenFamilies.has(font.familyName)) continue;
4744
+ seenFamilies.add(font.familyName);
4745
+ if (font.isVariable && font.variableWeightMin && font.variableWeightMax) {
4746
+ const normalFile = font.files.find((f) => f.style === "normal");
4747
+ const italicFile = font.files.find((f) => f.style === "italic");
4748
+ if (normalFile) rules.push(generateFontFaceForVariableFont(font.familyName, normalFile, font.variableWeightMin, font.variableWeightMax, storageBaseUrl));
4749
+ if (italicFile) rules.push(generateFontFaceForVariableFont(font.familyName, italicFile, font.variableWeightMin, font.variableWeightMax, storageBaseUrl));
4750
+ } else for (const file of font.files) rules.push(generateFontFaceForFile(font.familyName, file, storageBaseUrl));
4751
+ }
4752
+ return rules.join("\n\n");
4753
+ }
4754
+ /** CSS2 axis tuples are sorted normal-first, then real italic weights. */
4755
+ function buildGoogleFontFamilyQuery(family, weights, italics = [], widthRange) {
4756
+ const name = encodeURIComponent(family.replace(/\s+/g, "+")).replace(/%2B/g, "+");
4757
+ const normal = [...new Set(weights)].sort((a, b) => a - b);
4758
+ const width = widthRange ? `${widthRange.min}..${widthRange.max},` : "";
4759
+ const axes = widthRange ? "wdth,wght" : "wght";
4760
+ if (italics.length === 0) return `family=${name}:${axes}@${normal.map((weight) => `${width}${weight}`).join(";")}`;
4761
+ const italic = [...new Set(italics)].sort((a, b) => a - b);
4762
+ return `family=${name}:ital,${axes}@${[...normal.map((weight) => `0,${width}${weight}`), ...italic.map((weight) => `1,${width}${weight}`)].join(";")}`;
4763
+ }
4764
+ //#endregion
4594
4765
  //#region ../blocks/src/subroutes/formatDate.ts
4595
4766
  /** Occurrence instants name the occurrence-local day; civil keys preserve their day. */
4596
4767
  function formatOccurrenceDate(iso, context) {
@@ -12292,9 +12463,9 @@ function RepeaterList({ config, backend, basePath, items, minItems, maxItems, on
12292
12463
  } : { kind: "fallback" };
12293
12464
  onRemove(index);
12294
12465
  }, [items, onRemove]);
12295
- return /* @__PURE__ */ jsx("div", {
12466
+ return /* @__PURE__ */ jsx(EditorItemList, {
12296
12467
  ref: linearDnd.containerRef,
12297
- className: requestAdd ? "flex flex-col" : "flex flex-col gap-6",
12468
+ className: requestAdd ? void 0 : "gap-6",
12298
12469
  children: /* @__PURE__ */ jsx(DndContext, {
12299
12470
  sensors: linearDnd.sensors,
12300
12471
  collisionDetection: linearDnd.collisionDetection,
@@ -12303,8 +12474,11 @@ function RepeaterList({ config, backend, basePath, items, minItems, maxItems, on
12303
12474
  items: linearDnd.sortableItemIds,
12304
12475
  strategy: linearDnd.sortingStrategy,
12305
12476
  children: items.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [requestAdd && index > 0 ? /* @__PURE__ */ jsx(EditorItemInsertDivider, {
12306
- label: `Insert ${hostActions?.addLabel ?? "item"}`,
12307
- onSelect: () => requestAdd(index)
12477
+ touch: "icon",
12478
+ actions: [{
12479
+ label: `Insert ${hostActions?.addLabel ?? "item"}`,
12480
+ onSelect: () => requestAdd(index)
12481
+ }]
12308
12482
  }) : null, /* @__PURE__ */ jsx(RepeaterRow, {
12309
12483
  id: item.id,
12310
12484
  index,
@@ -23436,7 +23610,7 @@ function FeatureCardIconsPanel({ block, uiStore, currentStyleGuideVersionId, ico
23436
23610
  //#region ../editor-blocks/src/block-editor/BlockCardBody.tsx
23437
23611
  function BlockCardBody({ siteId, renderPreviewLink, block, manifest, uiStore, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, hideThemeV2RawStyleFields = false, pageDesignBlock = null, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet }) {
23438
23612
  return /* @__PURE__ */ jsxs(CardContent, {
23439
- className: "space-y-4 pb-6",
23613
+ className: "space-y-4 pb-6 max-sm:px-3 max-sm:pb-3",
23440
23614
  children: [/* @__PURE__ */ jsx(FeatureCardIconsPanel, {
23441
23615
  block,
23442
23616
  uiStore,
@@ -24002,8 +24176,11 @@ function BlockListItemBody(props) {
24002
24176
  //#endregion
24003
24177
  //#region ../editor-blocks/src/block-editor/AddBlockDivider.tsx
24004
24178
  const AddBlockDivider = ({ onOpen, position }) => /* @__PURE__ */ jsx(EditorItemInsertDivider, {
24005
- label: "Insert block",
24006
- onSelect: () => onOpen(position)
24179
+ touch: "icon",
24180
+ actions: [{
24181
+ label: "Insert block",
24182
+ onSelect: () => onOpen(position)
24183
+ }]
24007
24184
  });
24008
24185
  //#endregion
24009
24186
  //#region ../editor-blocks/src/block-editor/BlockListLayoutParts.tsx
@@ -28559,7 +28736,6 @@ function planFooterEditorView(input) {
28559
28736
  available: overview.available.map((item) => sectionPlan(item.section, false, false, input.canEdit)),
28560
28737
  arrangement: planFooterArrangement(renderable, footerArrangementPolicy({
28561
28738
  arrangement: input.arrangement,
28562
- legalRegion: input.legalRegion,
28563
28739
  storedNavigationLayout: input.navigationLayout
28564
28740
  }))
28565
28741
  };
@@ -29059,7 +29235,7 @@ function FooterPreviewModule({ module }) {
29059
29235
  children: module.heading ?? previewModuleLabel(module)
29060
29236
  }), /* @__PURE__ */ jsx("div", {
29061
29237
  className: "text-xs text-slate-300",
29062
- children: previewModuleLabel(module)
29238
+ children: module.kind === "copyright" ? "Added automatically, with the current year and your site name" : previewModuleLabel(module)
29063
29239
  })]
29064
29240
  });
29065
29241
  }
@@ -29091,14 +29267,15 @@ function previewModuleLabel(module) {
29091
29267
  case "supporting-text": return "Supporting text";
29092
29268
  case "legal": return "Legal text";
29093
29269
  case "engagement": return engagementLabel(module.engagement);
29094
- case "attribution": return "Macadamia attribution";
29270
+ case "copyright": return "Copyright";
29271
+ case "attribution": return "Macadamia credit";
29095
29272
  default: return assertNever$1(module);
29096
29273
  }
29097
29274
  }
29098
29275
  function engagementLabel(engagement) {
29099
29276
  return engagement.kind === "standard-contact" ? "Contact form" : "Mailing list signup";
29100
29277
  }
29101
- function FooterOverview({ attribution, plan, composition, onTarget, onChange, manageLinksHref, manageSettingsHref, navigationLayout, arrangement, onEngagement, onNavigationLayoutChange, navigationLayoutPending, navigationLayoutDisabled }) {
29278
+ function FooterOverview({ credit, onCreditHiddenChange, plan, composition, onTarget, onChange, manageLinksHref, manageSettingsHref, navigationLayout, arrangement, onEngagement, onNavigationLayoutChange, navigationLayoutPending, navigationLayoutDisabled }) {
29102
29279
  return /* @__PURE__ */ jsxs("div", {
29103
29280
  className: "space-y-5",
29104
29281
  children: [
@@ -29114,7 +29291,8 @@ function FooterOverview({ attribution, plan, composition, onTarget, onChange, ma
29114
29291
  children: "Shown in footer"
29115
29292
  }),
29116
29293
  /* @__PURE__ */ jsx(ShownFooterSections, {
29117
- attribution,
29294
+ credit,
29295
+ onCreditHiddenChange,
29118
29296
  items: plan.shown,
29119
29297
  composition,
29120
29298
  manageLinksHref,
@@ -29124,6 +29302,8 @@ function FooterOverview({ attribution, plan, composition, onTarget, onChange, ma
29124
29302
  onTarget
29125
29303
  }),
29126
29304
  /* @__PURE__ */ jsx(AvailableSections, {
29305
+ credit,
29306
+ onCreditHiddenChange,
29127
29307
  composition,
29128
29308
  items: plan.available,
29129
29309
  onChange
@@ -29141,7 +29321,11 @@ function ShownFooterSections(props) {
29141
29321
  children: [props.items.map((item) => /* @__PURE__ */ jsx(ShownFooterSection, {
29142
29322
  ...props,
29143
29323
  item
29144
- }, item.section.id)), props.attribution ? /* @__PURE__ */ jsx(PlatformAttributionSection, { attribution: props.attribution }) : null]
29324
+ }, item.section.id)), /* @__PURE__ */ jsx(PlatformCreditSection, {
29325
+ place: "shown",
29326
+ credit: props.credit,
29327
+ onHiddenChange: props.onCreditHiddenChange
29328
+ })]
29145
29329
  });
29146
29330
  }
29147
29331
  function AddFooterEngagement({ composition, onEngagement }) {
@@ -29160,38 +29344,91 @@ function AddFooterEngagement({ composition, onEngagement }) {
29160
29344
  });
29161
29345
  }
29162
29346
  /**
29163
- * The plan's attribution line: shown in the footer, but owned by the
29164
- * platform, so it has no edit or hide controls.
29347
+ * The platform credit at the end of the footer. It isn't a composition
29348
+ * section: the plan decides whether it can be hidden, and hiding it is a site
29349
+ * setting saved on its own. A hidden credit sits with the sections available
29350
+ * to add, as a hidden section would.
29165
29351
  */
29166
- function PlatformAttributionSection({ attribution }) {
29167
- return /* @__PURE__ */ jsxs("div", {
29168
- className: "rounded-lg border p-3",
29169
- "data-footer-platform-attribution": true,
29352
+ function PlatformCreditSection({ place, credit, onHiddenChange }) {
29353
+ const [state, setState] = useState("idle");
29354
+ if (credit.kind === "not-shown") return null;
29355
+ const hidden = credit.kind === "optional" && credit.hidden;
29356
+ if (hidden !== (place === "available")) return null;
29357
+ const change = async (nextHidden) => {
29358
+ setState("saving");
29359
+ setState(await onHiddenChange(nextHidden) === "failed" ? "failed" : "idle");
29360
+ };
29361
+ const label = `${credit.line.lead} ${credit.line.link.label}`;
29362
+ const saving = state === "saving";
29363
+ return hidden ? /* @__PURE__ */ jsxs("div", {
29364
+ "data-footer-platform-attribution": "hidden",
29170
29365
  children: [/* @__PURE__ */ jsxs("div", {
29171
- className: "font-medium",
29172
- children: [
29173
- attribution.lead,
29174
- " ",
29175
- attribution.link.label
29176
- ]
29177
- }), /* @__PURE__ */ jsx("div", {
29178
- className: "mt-1 text-xs text-muted-foreground",
29179
- children: "Included with your Macadamia plan."
29180
- })]
29366
+ className: "flex items-center justify-between gap-3 rounded-lg border border-dashed p-3",
29367
+ children: [/* @__PURE__ */ jsx("span", {
29368
+ className: "text-sm",
29369
+ children: label
29370
+ }), /* @__PURE__ */ jsx("button", {
29371
+ type: "button",
29372
+ className: buttonClass$1,
29373
+ disabled: saving,
29374
+ onClick: () => void change(false),
29375
+ children: "Add"
29376
+ })]
29377
+ }), /* @__PURE__ */ jsx(CreditSaveFailure, { state })]
29378
+ }) : /* @__PURE__ */ jsxs("div", {
29379
+ className: "rounded-lg border p-3",
29380
+ "data-footer-platform-attribution": "shown",
29381
+ children: [
29382
+ /* @__PURE__ */ jsx("div", {
29383
+ className: "font-medium",
29384
+ children: label
29385
+ }),
29386
+ /* @__PURE__ */ jsx("div", {
29387
+ className: "mt-1 text-xs text-muted-foreground",
29388
+ children: credit.kind === "optional" ? "Your plan lets you hide this line." : "Included with your Macadamia plan."
29389
+ }),
29390
+ credit.kind === "optional" ? /* @__PURE__ */ jsx("div", {
29391
+ className: "mt-3 flex flex-wrap gap-2",
29392
+ children: /* @__PURE__ */ jsx("button", {
29393
+ className: buttonClass$1,
29394
+ disabled: saving,
29395
+ onClick: () => void change(true),
29396
+ type: "button",
29397
+ children: "Hide"
29398
+ })
29399
+ }) : null,
29400
+ /* @__PURE__ */ jsx(CreditSaveFailure, { state })
29401
+ ]
29181
29402
  });
29182
29403
  }
29183
- function AvailableSections({ composition, items, onChange }) {
29184
- if (items.length === 0) return null;
29404
+ function CreditSaveFailure({ state }) {
29405
+ return state === "failed" ? /* @__PURE__ */ jsx("div", {
29406
+ className: "mt-1 text-xs text-destructive",
29407
+ role: "alert",
29408
+ children: "That didn't save. Please try again."
29409
+ }) : null;
29410
+ }
29411
+ function AvailableSections({ credit, onCreditHiddenChange, composition, items, onChange }) {
29412
+ const creditHidden = credit.kind === "optional" && credit.hidden;
29413
+ if (items.length === 0 && !creditHidden) return null;
29185
29414
  return /* @__PURE__ */ jsxs("div", {
29186
29415
  className: "space-y-2",
29187
- children: [/* @__PURE__ */ jsx("h3", {
29188
- className: "text-sm font-semibold",
29189
- children: "Available to add"
29190
- }), items.map((item) => /* @__PURE__ */ jsx(AvailableSection, {
29191
- composition,
29192
- item,
29193
- onChange
29194
- }, item.section.id))]
29416
+ children: [
29417
+ /* @__PURE__ */ jsx("h3", {
29418
+ className: "text-sm font-semibold",
29419
+ children: "Available to add"
29420
+ }),
29421
+ items.map((item) => /* @__PURE__ */ jsx(AvailableSection, {
29422
+ composition,
29423
+ item,
29424
+ onChange
29425
+ }, item.section.id)),
29426
+ /* @__PURE__ */ jsx(PlatformCreditSection, {
29427
+ place: "available",
29428
+ credit,
29429
+ onHiddenChange: onCreditHiddenChange
29430
+ })
29431
+ ]
29195
29432
  });
29196
29433
  }
29197
29434
  function ShownFooterSection({ composition, item, manageLinksHref, manageSettingsHref, onChange, onEngagement, onTarget }) {
@@ -29385,18 +29622,18 @@ function repairMessage(reason, section, options) {
29385
29622
  //#endregion
29386
29623
  //#region ../content-editor/src/footerPreviewRuntime.ts
29387
29624
  function buildFooterPreviewRuntime(input) {
29388
- return withFooterAttribution(buildFooterRuntimeViewModel({
29625
+ return buildFooterRuntimeViewModel({
29389
29626
  composition: input.composition,
29390
29627
  publicProfile: input.publicProfile,
29391
29628
  businessAddress: input.hasBusinessAddress ? "Business address" : null,
29392
29629
  hasLogo: input.hasLogo,
29393
29630
  hasFooterNavigation: input.hasMainNavigation,
29394
29631
  hasLegalPolicyNavigation: input.hasLegalPolicyNavigation,
29395
- legalRegion: input.legalRegion,
29396
29632
  layoutVariant: input.arrangement,
29397
29633
  navigationLayout: input.navigationLayout,
29398
- engagement: input.engagement
29399
- }), input.attribution);
29634
+ engagement: input.engagement,
29635
+ attribution: input.attribution
29636
+ });
29400
29637
  }
29401
29638
  //#endregion
29402
29639
  //#region ../content-editor/src/session-journal/useJournalTargetRefresh.ts
@@ -29489,10 +29726,19 @@ function useFooterComposerState({ apiClient, canEdit, initialTarget, initialTarg
29489
29726
  setProfileSnapshot: loaded.setProfileSnapshot,
29490
29727
  siteId
29491
29728
  });
29729
+ const saveCreditHidden = useCreditSaver({
29730
+ apiClient,
29731
+ canEdit,
29732
+ credit: loaded.credit,
29733
+ onSaved,
29734
+ setCredit: loaded.setCredit,
29735
+ siteId
29736
+ });
29492
29737
  return {
29493
29738
  ...loaded,
29494
29739
  ...session,
29495
29740
  navigationLayoutControl,
29741
+ saveCreditHidden,
29496
29742
  saveComposition,
29497
29743
  saveProfile,
29498
29744
  siteId,
@@ -29500,6 +29746,31 @@ function useFooterComposerState({ apiClient, canEdit, initialTarget, initialTarg
29500
29746
  setTarget
29501
29747
  };
29502
29748
  }
29749
+ /**
29750
+ * Hiding the platform credit is a site setting, not part of the composition or
29751
+ * its undo history. The line moves once the save lands, so a failure is
29752
+ * reported where the owner clicked.
29753
+ */
29754
+ function useCreditSaver(options) {
29755
+ const { apiClient, canEdit, credit, onSaved, setCredit, siteId } = options;
29756
+ return useCallback(async (hidden) => {
29757
+ if (credit.kind !== "optional" || !footerAuthoringAllowed(canEdit, siteId)) return "failed";
29758
+ try {
29759
+ setCredit(await updateFooterCredit(apiClient, siteId, { hidden }));
29760
+ onSaved?.();
29761
+ return "saved";
29762
+ } catch {
29763
+ return "failed";
29764
+ }
29765
+ }, [
29766
+ apiClient,
29767
+ canEdit,
29768
+ credit,
29769
+ onSaved,
29770
+ setCredit,
29771
+ siteId
29772
+ ]);
29773
+ }
29503
29774
  /** Status and admission are session facts; the only local marker is this mounted visit's start. */
29504
29775
  function useFooterSessionState(siteId, canEdit, includeThemeStatus) {
29505
29776
  const journal = useSessionJournal();
@@ -29553,20 +29824,42 @@ async function readFooterAuthoring(apiClient, rawSiteId, siteId) {
29553
29824
  engagement
29554
29825
  };
29555
29826
  }
29827
+ /**
29828
+ * The platform credit as last confirmed. A reload that started before a credit
29829
+ * save landed must not undo it, so a read applies only if no save came since.
29830
+ */
29831
+ function useCreditState() {
29832
+ const [credit, setCreditState] = useState({ kind: "not-shown" });
29833
+ const writes = useRef(0);
29834
+ return {
29835
+ credit,
29836
+ setCredit: useCallback((next) => {
29837
+ writes.current += 1;
29838
+ setCreditState(next);
29839
+ }, []),
29840
+ readCredit: useCallback(() => {
29841
+ const writesAtStart = writes.current;
29842
+ return (read) => {
29843
+ if (writes.current === writesAtStart) setCreditState(read);
29844
+ };
29845
+ }, [])
29846
+ };
29847
+ }
29556
29848
  function useFooterLoad(apiClient, rawSiteId, siteId) {
29557
29849
  const [compositionSnapshot, setCompositionSnapshot] = useState(null);
29558
29850
  const [profileSnapshot, setProfileSnapshot] = useState(null);
29559
29851
  const [navigationMenus, setNavigationMenus] = useState(null);
29560
29852
  const [engagementOptions, setEngagementOptions] = useState(null);
29561
- const [attribution, setAttribution] = useState(null);
29853
+ const { credit, setCredit, readCredit } = useCreditState();
29562
29854
  const [loadError, setLoadError] = useState(null);
29563
29855
  const baseline = useFooterJournalBaseline(apiClient, rawSiteId, siteId);
29564
29856
  const load = useCallback(async () => {
29565
29857
  setLoadError(null);
29566
29858
  try {
29859
+ const applyCredit = readCredit();
29567
29860
  const { composition, profile, navigation, engagement } = await readFooterAuthoring(apiClient, rawSiteId, siteId);
29568
29861
  setCompositionSnapshot(composition);
29569
- setAttribution(composition.attribution);
29862
+ applyCredit(composition.credit);
29570
29863
  setProfileSnapshot(profile);
29571
29864
  baseline.observe(composition, profile);
29572
29865
  setNavigationMenus(navigation.menus);
@@ -29578,13 +29871,14 @@ function useFooterLoad(apiClient, rawSiteId, siteId) {
29578
29871
  apiClient,
29579
29872
  baseline,
29580
29873
  rawSiteId,
29874
+ readCredit,
29581
29875
  siteId
29582
29876
  ]);
29583
29877
  useEffect(() => {
29584
29878
  load();
29585
29879
  }, [load]);
29586
29880
  return {
29587
- attribution,
29881
+ credit,
29588
29882
  compositionSnapshot,
29589
29883
  engagementOptions,
29590
29884
  load,
@@ -29593,6 +29887,7 @@ function useFooterLoad(apiClient, rawSiteId, siteId) {
29593
29887
  navigationMenus,
29594
29888
  profileSnapshot,
29595
29889
  setCompositionSnapshot,
29890
+ setCredit,
29596
29891
  setProfileSnapshot
29597
29892
  };
29598
29893
  }
@@ -29842,8 +30137,8 @@ function fieldsForModule(module) {
29842
30137
  }];
29843
30138
  return [...moduleFieldCatalog];
29844
30139
  }
29845
- function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, manageLinksHref, manageFormsHref = manageLinksHref.replace(/\/navigation$/u, "/forms"), manageNewsletterHref = manageLinksHref.replace(/\/navigation$/u, "/newsletter"), manageSettingsHref, arrangement, legalRegion = "integrated", navigationLayoutControl: suppliedNavigationControl, initialTarget, initialTargetRequestId, variant = "full", canEdit = true, onSaved, loadingFallback }) {
29846
- const { attribution, authoringAllowed, canEdit: authoringEnabled, compositionSnapshot, engagementOptions, load, loadError, message, navigationLayoutControl, navigationMenus, profileSnapshot, saveComposition, saveProfile, saveState, setCompositionSnapshot, setTarget, siteId, target } = useFooterComposerState({
30140
+ function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, manageLinksHref, manageFormsHref = manageLinksHref.replace(/\/navigation$/u, "/forms"), manageNewsletterHref = manageLinksHref.replace(/\/navigation$/u, "/newsletter"), manageSettingsHref, arrangement, navigationLayoutControl: suppliedNavigationControl, initialTarget, initialTargetRequestId, variant = "full", canEdit = true, onSaved, loadingFallback }) {
30141
+ const { authoringAllowed, canEdit: authoringEnabled, compositionSnapshot, engagementOptions, load, loadError, message, navigationLayoutControl, navigationMenus, profileSnapshot, credit, saveComposition, saveCreditHidden, saveProfile, saveState, setCompositionSnapshot, setTarget, siteId, target } = useFooterComposerState({
29847
30142
  apiClient,
29848
30143
  canEdit,
29849
30144
  initialTarget,
@@ -29874,13 +30169,11 @@ function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, m
29874
30169
  }
29875
30170
  });
29876
30171
  return /* @__PURE__ */ jsx(ReadyFooterComposer, {
29877
- attribution,
29878
30172
  canEdit: authoringEnabled,
29879
30173
  compositionSnapshot,
29880
30174
  customFooterMode,
29881
30175
  engagementOptions,
29882
30176
  arrangement,
29883
- legalRegion,
29884
30177
  manageFormsHref,
29885
30178
  manageLinksHref,
29886
30179
  manageNewsletterHref,
@@ -29889,7 +30182,9 @@ function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, m
29889
30182
  navigationLayoutControl,
29890
30183
  navigationMenus,
29891
30184
  profileSnapshot,
30185
+ credit,
29892
30186
  saveComposition,
30187
+ saveCreditHidden,
29893
30188
  saveProfile,
29894
30189
  saveState,
29895
30190
  setTarget,
@@ -29899,7 +30194,7 @@ function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, m
29899
30194
  }
29900
30195
  function ReadyFooterComposer(props) {
29901
30196
  const [engagementCandidate, setEngagementCandidate] = useState(null);
29902
- const { canEdit, compositionSnapshot, engagementOptions, legalRegion, arrangement, navigationLayoutControl, navigationMenus, profileSnapshot, target } = props;
30197
+ const { canEdit, compositionSnapshot, engagementOptions, arrangement, navigationLayoutControl, navigationMenus, profileSnapshot, target } = props;
29903
30198
  const candidateComposition = engagementCandidate === null ? null : upsertFooterEngagementSection(compositionSnapshot.composition, engagementCandidate);
29904
30199
  const previewComposition = candidateComposition?.ok === true ? candidateComposition.value : compositionSnapshot.composition;
29905
30200
  const candidateError = candidateComposition?.ok === false ? candidateComposition.error.message : null;
@@ -29918,7 +30213,6 @@ function ReadyFooterComposer(props) {
29918
30213
  hasLegalPolicyNavigation,
29919
30214
  hasEngagementSource: resolvedEngagement.kind === "resolved",
29920
30215
  canEdit,
29921
- legalRegion,
29922
30216
  arrangement,
29923
30217
  navigationLayout: navigationLayoutControl.layout
29924
30218
  });
@@ -29929,11 +30223,10 @@ function ReadyFooterComposer(props) {
29929
30223
  hasLogo: profileSnapshot.hasLogo,
29930
30224
  hasMainNavigation,
29931
30225
  hasLegalPolicyNavigation,
29932
- legalRegion,
29933
30226
  arrangement,
29934
30227
  navigationLayout: navigationLayoutControl.layout,
29935
30228
  engagement: resolvedEngagement,
29936
- attribution: props.attribution
30229
+ attribution: footerCreditLine(props.credit)
29937
30230
  });
29938
30231
  const targetModule = target.kind === "module" ? compositionSnapshot.composition.sections.find((section) => section.id === target.moduleId) ?? null : null;
29939
30232
  const editingEngagement = target.kind === "engagement" || targetModule?.kind === "engagement";
@@ -29979,7 +30272,8 @@ function FooterEditorPane(props) {
29979
30272
  children: "← Footer overview"
29980
30273
  }) : null,
29981
30274
  props.target.kind === "overview" ? /* @__PURE__ */ jsx(FooterOverview, {
29982
- attribution: props.attribution,
30275
+ credit: props.credit,
30276
+ onCreditHiddenChange: props.saveCreditHidden,
29983
30277
  composition: props.compositionSnapshot.composition,
29984
30278
  manageLinksHref: props.manageLinksHref,
29985
30279
  manageSettingsHref: props.manageSettingsHref,
@@ -30928,6 +31222,7 @@ function AddressField({ prefix, value, refusal, onChange }) {
30928
31222
  children: [
30929
31223
  /* @__PURE__ */ jsx("span", {
30930
31224
  className: "min-w-0 truncate text-muted-foreground",
31225
+ title: prefix,
30931
31226
  children: prefix.slice(0, -1)
30932
31227
  }),
30933
31228
  /* @__PURE__ */ jsx("span", {
@@ -31966,8 +32261,7 @@ function useSlotBlockSave({ uiStore, queryClient, queryKey, requestServerRefresh
31966
32261
  uiStore
31967
32262
  ]);
31968
32263
  }
31969
- function EntrySlotBlockEditorPanel({ siteId, dashboardBaseUrl, typeKey, entryId, pageSurfaceId, theme = null, apiClient, sdkConfig = null, widgets, visible = true }) {
31970
- const { displayContext } = useEntryController();
32264
+ function EntrySlotBlockEditorPanel({ siteId, dashboardBaseUrl, typeKey, entryId, pageSurfaceId, theme = null, apiClient, sdkConfig = null, widgets, visible = true, displayContext }) {
31971
32265
  const { requestServerRefresh } = useServerRefresh();
31972
32266
  const queryClient = useQueryClient();
31973
32267
  const uiStore = useEditorUiStoreInstance();
@@ -32185,20 +32479,23 @@ function resolveSubrouteNotice(ctx, args) {
32185
32479
  }
32186
32480
  //#endregion
32187
32481
  //#region ../preview-next/src/client/preview/EntryEditorPanel.tsx
32188
- function EntryEditorPanel({ siteId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, theme, apiClient, entrySubrouteContext, widgets }) {
32189
- const [contentOpen, setContentOpen] = useState(true);
32190
- const [templateOpen, setTemplateOpen] = useState(false);
32191
- const contentFormFields = useMemo(() => contentTypeSchema ? mapContentSchemaToFormFields(contentTypeSchema, { referenceContentTypeKeys }) : [], [contentTypeSchema, referenceContentTypeKeys]);
32192
- const contentFormSpec = useMemo(() => ({
32482
+ /** The entry's content fields as a block-form manifest, resolving references against the site's content types. */
32483
+ function entryContentForm(contentTypeSchema, referenceContentTypeKeys) {
32484
+ return {
32193
32485
  variantMeaning: { kind: "arrangement" },
32194
32486
  name: "content-fields",
32195
32487
  version: "1.0",
32196
32488
  title: "Content",
32197
32489
  component: "content-form",
32198
32490
  description: "",
32199
- fields: contentFormFields,
32491
+ fields: contentTypeSchema ? mapContentSchemaToFormFields(contentTypeSchema, { referenceContentTypeKeys }) : [],
32200
32492
  slots: []
32201
- }), [contentFormFields]);
32493
+ };
32494
+ }
32495
+ function EntryEditorPanel({ siteId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, theme, apiClient, entrySubrouteContext, widgets }) {
32496
+ const [contentOpen, setContentOpen] = useState(true);
32497
+ const [templateOpen, setTemplateOpen] = useState(false);
32498
+ const contentFormSpec = useMemo(() => entryContentForm(contentTypeSchema, referenceContentTypeKeys), [contentTypeSchema, referenceContentTypeKeys]);
32202
32499
  const contentInitialValues = useMemo(() => draftContent ?? {}, [draftContent]);
32203
32500
  const subrouteNotice = useMemo(() => resolveSubrouteNotice(entrySubrouteContext ?? null, { siteId }), [entrySubrouteContext, siteId]);
32204
32501
  return /* @__PURE__ */ jsxs("div", {
@@ -32810,6 +33107,7 @@ const NEW_BLOCK_ID = "new-block";
32810
33107
  function newBlockLookTiles(model, blockKind) {
32811
33108
  const content = {};
32812
33109
  const block = buildPageDesignEditorReadModelForBlocks({
33110
+ surfaceResolutionContext: null,
32813
33111
  siteStyleId: model.siteStyleId,
32814
33112
  intent: {
32815
33113
  ...automaticPageDocumentIntent,
@@ -32917,7 +33215,6 @@ const OUTLINE_COPY = {
32917
33215
  };
32918
33216
  /** The page view's outline: the page's blocks between the site header and footer, each opening its own view. */
32919
33217
  function PageBlockEditorPanel(props) {
32920
- const { displayContext } = useEntryController();
32921
33218
  const describeLook = useOutlineLookNames();
32922
33219
  const attentionFor = useOutlineAttention();
32923
33220
  const openBlock = props.uiStoreForBlockEditor.getState().openSidebarBlock;
@@ -32944,7 +33241,7 @@ function PageBlockEditorPanel(props) {
32944
33241
  bookingOfferingPresets: props.bookingOfferingPresets,
32945
33242
  sdkConfig: props.sdkConfig ?? null,
32946
33243
  children: /* @__PURE__ */ jsx(BlockEditor, {
32947
- displayContext,
33244
+ displayContext: props.displayContext,
32948
33245
  ref: props.blockEditorRef,
32949
33246
  siteId: props.siteId,
32950
33247
  dashboardBaseUrl: props.dashboardBaseUrl,
@@ -33058,11 +33355,7 @@ function PreviewFooterEditorPanel({ sdkConfig, apiClient, siteId, dashboardBaseU
33058
33355
  });
33059
33356
  }
33060
33357
  function footerComposerLayoutProps(theme) {
33061
- const hints = resolveFooterLayoutHints(theme);
33062
- return {
33063
- arrangement: hints.layoutVariant,
33064
- legalRegion: hints.legalRegion
33065
- };
33358
+ return { arrangement: resolveFooterLayoutHints(theme).layoutVariant };
33066
33359
  }
33067
33360
  //#endregion
33068
33361
  //#region ../preview-next/src/client/preview/PreviewEditorGuidanceCard.tsx
@@ -35990,6 +36283,8 @@ function sectionBreakSource(boundary) {
35990
36283
  }
35991
36284
  /** Approved copy (issue 1422) for a join the renderer didn't draw. */
35992
36285
  const NOT_SHOWN_COPY = {
36286
+ "same-paint": "This break won't show here, because both sections have the same background color. It'll appear if you give one of them a different background.",
36287
+ "photo-required": "This break won't show here, because the wave with echo is drawn over a photo. It'll appear if the section above it has a photo background.",
35993
36288
  "both-unpainted": "This break won't show here, because both sections have an image or video background. It'll appear if you give one of them a color background.",
35994
36289
  "flush-panel": "This break won't show here, because one of these sections has an image that runs right to its edge. It'll appear if you pick a different look for that section.",
35995
36290
  field: "This break won't show here, because one of these sections is drawn as a rounded panel set in from the page edge. It'll appear if you give that section a different background."
@@ -36069,9 +36364,9 @@ function useBreakAbove(blockId) {
36069
36364
  return boundary && boundary.availableBreaks.length > 1 ? boundary : null;
36070
36365
  }
36071
36366
  function useJoinedSectionNames(aboveId, hereId, sdkConfig) {
36072
- const { blocks } = useEntryController();
36367
+ const blocks = useEditorUiStore((state) => state.structure.getList());
36073
36368
  const nameOf = (id) => {
36074
- const block = id ? blocks.list.find((candidate) => String(candidate.id) === id) : void 0;
36369
+ const block = id ? blocks.find((candidate) => String(candidate.id) === id) : void 0;
36075
36370
  return block ? resolveBlockTitle(resolveBlockManifest(block.kind, sdkConfig), block.content, block.kind).displayTitle : null;
36076
36371
  };
36077
36372
  return {
@@ -36673,6 +36968,9 @@ function PreviewEditorSidebar(props) {
36673
36968
  return /* @__PURE__ */ jsxs("div", {
36674
36969
  className: `flex h-full min-h-0 flex-col overflow-hidden pb-[calc(var(--builder-editor-chrome-offset,0px)+var(--builder-preview-banner-offset,0px))] ${sidebarChrome.rootClassName}`,
36675
36970
  "data-preview-sidebar-tone": sidebarChrome.tone,
36971
+ "data-testid": "preview-sidebar",
36972
+ "data-preview-sidebar-view": view.kind,
36973
+ "data-preview-sidebar-target": view.kind === "chrome" ? view.target : void 0,
36676
36974
  children: [
36677
36975
  /* @__PURE__ */ jsx(SidebarHeaderForView, {
36678
36976
  view,
@@ -36691,6 +36989,7 @@ function PreviewEditorSidebar(props) {
36691
36989
  /* @__PURE__ */ jsxs("div", {
36692
36990
  ref: panelRef,
36693
36991
  tabIndex: -1,
36992
+ "data-testid": "preview-sidebar-panel",
36694
36993
  className: "min-h-0 flex-1 overflow-auto",
36695
36994
  children: [/* @__PURE__ */ jsx(SidebarSlotResource, {
36696
36995
  props,
@@ -36707,18 +37006,23 @@ function PreviewEditorSidebar(props) {
36707
37006
  });
36708
37007
  }
36709
37008
  function SidebarSlotResource({ props, visible }) {
37009
+ const { displayContext } = useEntryController();
36710
37010
  if (!props.entryData?.type) return null;
36711
- return /* @__PURE__ */ jsx(EntrySlotBlockEditorPanel, {
36712
- siteId: props.siteId,
36713
- dashboardBaseUrl: props.dashboardBaseUrl,
36714
- typeKey: props.entryData.type,
36715
- entryId: props.entryData.id,
36716
- pageSurfaceId: props.pageNodeType === "page_surface" ? props.pageId : null,
36717
- theme: props.theme,
36718
- apiClient: props.apiClient,
36719
- sdkConfig: props.sdkConfig,
36720
- widgets: previewWidgetOverrides,
36721
- visible
37011
+ return /* @__PURE__ */ jsx("div", {
37012
+ "data-testid": "preview-sidebar-entry-content",
37013
+ children: /* @__PURE__ */ jsx(EntrySlotBlockEditorPanel, {
37014
+ siteId: props.siteId,
37015
+ displayContext,
37016
+ dashboardBaseUrl: props.dashboardBaseUrl,
37017
+ typeKey: props.entryData.type,
37018
+ entryId: props.entryData.id,
37019
+ pageSurfaceId: props.pageNodeType === "page_surface" ? props.pageId : null,
37020
+ theme: props.theme,
37021
+ apiClient: props.apiClient,
37022
+ sdkConfig: props.sdkConfig,
37023
+ widgets: previewWidgetOverrides,
37024
+ visible
37025
+ })
36722
37026
  });
36723
37027
  }
36724
37028
  function SidebarTaskPanel({ props, view, requestId, uiStoreForBlockEditor, linkedEntry }) {
@@ -36837,6 +37141,7 @@ function SidebarPagePanel({ props, uiStoreForBlockEditor, picking }) {
36837
37141
  if (!props.pageId) return null;
36838
37142
  const outline = /* @__PURE__ */ jsx(PageBlockEditorPanel, {
36839
37143
  ...props,
37144
+ displayContext: controller.displayContext,
36840
37145
  pageId: props.pageId,
36841
37146
  blockItems: controller.blocks.list,
36842
37147
  uiStoreForBlockEditor,