@riverbankcms/sdk 0.171.0 → 0.172.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 (210) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-xuFmD41p.d.ts → BlocksIslandsHydrator-DtrzTJ77.d.ts} +1 -1
  2. package/dist/_dts/{Page-4fzXy8H9.d.ts → Page-DViYbakk.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-BlHgMsc8.d.ts → SdkPreviewMode-D-5OeDbT.d.ts} +2 -2
  4. package/dist/_dts/{client-BPoU758C.d.ts → client-DZBOzd3U.d.ts} +1 -2
  5. package/dist/_dts/{content-types-TnkhoSls.d.ts → content-types-DS3DrYn_.d.ts} +3 -3
  6. package/dist/_dts/{contracts-7wrMA79U.d.ts → contracts-C3QGPCUf.d.ts} +3 -3
  7. package/dist/_dts/{footerPageOutline-DaOsPQ_Q.d.ts → footerPageOutline-D9Q7VIul.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-D9aDEzKK.d.ts → generatePageMetadata-R7NeFT1u.d.ts} +2 -2
  9. package/dist/_dts/{index-DDKJfaLY.d.ts → index-BnMavhoh.d.ts} +2 -2
  10. package/dist/_dts/{index-585vn6qb.d.ts → index-C0zjLMAW.d.ts} +49 -38
  11. package/dist/_dts/{index-W9R3Bnf2.d.ts → index-CpOkfBt1.d.ts} +3 -3
  12. package/dist/_dts/{index-Cbw0IiY7.d.ts → index-Da4UMgbs.d.ts} +2 -2
  13. package/dist/_dts/{index-DNCDENic.d.ts → index-DkFV_1Bc.d.ts} +1 -1
  14. package/dist/_dts/{index-ChNbrcgD.d.ts → index-Dns7OHyl.d.ts} +1 -1
  15. package/dist/_dts/{index-CZKSUcDs.d.ts → index-MuMYjetm.d.ts} +4 -4
  16. package/dist/_dts/{loadContent-DPyNAJym.d.ts → loadContent-DJmXHzfi.d.ts} +7 -7
  17. package/dist/_dts/{request-jXTRN1Y4.d.ts → request-wQ28JWbr.d.ts} +66983 -65876
  18. package/dist/_dts/{resolveBlockData-BbvE-gsZ.d.ts → resolveBlockData-C-IP53u9.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-BBgih00D.d.ts → resolvePageContent-Cc4zqaEC.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/index.d.ts +8 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +18 -1
  53. package/dist/_dts/{types-kWvBwYK6.d.ts → types-CpjyP5I4.d.ts} +7 -7
  54. package/dist/_dts/{types-DEAKoDNi.d.ts → types-DrinAfeW.d.ts} +3 -3
  55. package/dist/_dts/{types-BXuVxDYo.d.ts → types-ZuZoGsZV.d.ts} +2 -2
  56. package/dist/_dts/{validation-BAO0_ntM.d.ts → validation-CIZ_fP5l.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-DfMsMIej.mjs → BlocksIslandsHydrator-UFmQB1BE.mjs} +17 -17
  58. package/dist/client/{BookingMailingListNote-aaSicywS.mjs → BookingMailingListNote-VjRYhx1c.mjs} +6 -6
  59. package/dist/client/{BookingPanelArrangement-OgftZ9QC.mjs → BookingPanelArrangement-DpqnRo-t.mjs} +1 -1
  60. package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-CzOT8ZWo.mjs} +4 -4
  61. package/dist/client/{CalendarNavigationChevron-iMWrY6Hz.mjs → CalendarNavigationChevron-CNckKZct.mjs} +7 -7
  62. package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
  63. package/dist/client/{DemoBookingPortalAccess-BCumOTLY.mjs → DemoBookingPortalAccess-CmZLVXOy.mjs} +6 -6
  64. package/dist/client/{EventCalendar.client-kh7mkYnW.mjs → EventCalendar.client-BU-SxLCn.mjs} +9 -9
  65. package/dist/client/{EventCombined.client-DXD5i0Ar.mjs → EventCombined.client-f28VltfY.mjs} +8 -8
  66. package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
  67. package/dist/client/{EventItem-BnwcoFQN.mjs → EventItem-sKBofjiW.mjs} +40 -14
  68. package/dist/client/{EventListWeekNavigation-DuG6z02f.mjs → EventListWeekNavigation-IAcax47T.mjs} +1 -1
  69. package/dist/client/{EventListing.client-18yfHrcr.mjs → EventListing.client-BEtnRvZr.mjs} +3 -3
  70. package/dist/client/{EventListing.view-BM7rTVSL.mjs → EventListing.view-BZ4l_rmT.mjs} +189 -73
  71. package/dist/client/{EventRegistrationPayment-D5J3DR0x.mjs → EventRegistrationPayment-BWb295cD.mjs} +9 -9
  72. package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-Hsj2HC_1.mjs} +2 -2
  73. package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-C7E7Lyfa.mjs} +1 -1
  74. package/dist/client/{Page-DH2sm4Cf.mjs → Page-Ds1s3DuC.mjs} +1425 -490
  75. package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
  76. package/dist/client/{StepIndicator-CsRlU46Y.mjs → StepIndicator-CSCyAaKY.mjs} +6 -6
  77. package/dist/client/{TabBarFragment-CsAufYwT.mjs → TabBarFragment-BqfRLojo.mjs} +1 -1
  78. package/dist/client/{ThemedButton-BMDHwnM6.mjs → ThemedButton-DuaYtnvG.mjs} +1 -1
  79. package/dist/client/{accessibleSurfaces-Bbn1-jJ8.mjs → accessibleSurfaces-OsAseM7H.mjs} +57 -42
  80. package/dist/client/{accordion-DT4MD3Np.mjs → accordion-DgwFZJSx.mjs} +1 -1
  81. package/dist/client/{booking-form.client-DdqNQNCa.mjs → booking-form.client-CKY9oksp.mjs} +33 -29
  82. package/dist/client/{bookingForm-CLN396HU.mjs → bookingForm-CsHhcdSF.mjs} +4 -4
  83. package/dist/client/bookings.mjs +5 -5
  84. package/dist/client/{boxStyleClassNames-iLF_3KX9.mjs → boxStyleClassNames-B1Z_TGAe.mjs} +1 -1
  85. package/dist/client/{carousel-DFLomCGm.mjs → carousel-0sw2Kc3a.mjs} +2 -2
  86. package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
  87. package/dist/client/{cart-BozMM5NK.mjs → cart-CPfvMDGJ.mjs} +3 -3
  88. package/dist/client/{cart.client-CqOOxPbW.mjs → cart.client-BJBPUTmg.mjs} +1 -1
  89. package/dist/client/{checkout-CTWF5nbB.mjs → checkout-DU4JFjGT.mjs} +3 -3
  90. package/dist/client/{checkout.client-CpqxN8e0.mjs → checkout.client-BbNCO4xa.mjs} +1 -1
  91. package/dist/client/{checkoutUrls-Ccg6yfjq.mjs → checkoutUrls-BQ3OlWlM.mjs} +1 -1
  92. package/dist/client/client.mjs +151 -6
  93. package/dist/client/{context-Dzjv2CpA.mjs → context-xNC1Cyjw.mjs} +14 -1
  94. package/dist/client/{cta-pzQkBLgS.mjs → cta-CNVQHLKs.mjs} +53 -11
  95. package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-B6ea-egy.mjs} +1 -1
  96. package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-BhjGxhX3.mjs} +1 -1
  97. package/dist/client/{display-Cl6mgSJa.mjs → display-B5DfNb6A.mjs} +1869 -333
  98. package/dist/client/{enhanceHeaderSection-CJCl0HJC.mjs → enhanceHeaderSection-BFcHLuqk.mjs} +139 -16
  99. package/dist/client/{event-details.client-Pn9Kxh3I.mjs → event-details.client-WHT5GLn2.mjs} +1 -1
  100. package/dist/client/{event-registration.client-BAmBdWXE.mjs → event-registration.client-CmnRKELC.mjs} +11 -11
  101. package/dist/client/{eventCalendar-C5Bh2L8L.mjs → eventCalendar-2NbdCyov.mjs} +4 -4
  102. package/dist/client/{eventCombined-dELKxxIe.mjs → eventCombined-D1lH1n2T.mjs} +4 -4
  103. package/dist/client/{eventDetails-Do9D_fJ_.mjs → eventDetails-BHvnF2Tw.mjs} +2 -2
  104. package/dist/client/{eventListing-B2HTUWLq.mjs → eventListing-EhSDk4UL.mjs} +4 -4
  105. package/dist/client/{eventRegistration-ByOJnqGc.mjs → eventRegistration-z_0jN_KS.mjs} +4 -4
  106. package/dist/client/{form-DX70QG-J.mjs → form-BfChzSkS.mjs} +3 -3
  107. package/dist/client/{form.client-CJoqBrS6.mjs → form.client-D1zehtPk.mjs} +4 -4
  108. package/dist/client/{form.parts-DTof9pL3.mjs → form.parts-rMDlUQIv.mjs} +3 -3
  109. package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-ymSVT9Y5.mjs} +1 -1
  110. package/dist/client/gifting/client.mjs +3 -3
  111. package/dist/client/{headerSection-CJuPX_1K.mjs → headerSection-BX9bQ84k.mjs} +2 -2
  112. package/dist/client/{newsletter-form.client-CqzNjOft.mjs → newsletter-form.client-DMbuJCtJ.mjs} +5 -5
  113. package/dist/client/{newsletter-form.parts-DjJsFms2.mjs → newsletter-form.parts-BxrVsoI0.mjs} +2 -2
  114. package/dist/client/{newsletterForm-D1MHoPbh.mjs → newsletterForm-B_I3FJFS.mjs} +3 -3
  115. package/dist/client/{noop-poI1m2yW.mjs → noop-CamIX2yK.mjs} +17 -1
  116. package/dist/client/portal/client.mjs +231 -117
  117. package/dist/client/{product-detail.client-DOQ7El1d.mjs → product-detail.client-qxuiYCof.mjs} +1 -1
  118. package/dist/client/{product-list.client-CmxOZbzL.mjs → product-list.client-CDL-jihv.mjs} +1 -1
  119. package/dist/client/{productDetail-BN3zv5sa.mjs → productDetail-B97m0uZy.mjs} +3 -3
  120. package/dist/client/{productList-GN_Id4bF.mjs → productList-DE4vSSG_.mjs} +3 -3
  121. package/dist/client/{propsDecoder-BdmzM3D5.mjs → propsDecoder-BTde6Syh.mjs} +3 -3
  122. package/dist/client/{registry.server-BOyra8CA.mjs → registry.server-Cn8XjRte.mjs} +1464 -1183
  123. package/dist/client/rendering/client.mjs +27 -27
  124. package/dist/client/rendering/islands.mjs +1 -1
  125. package/dist/client/rendering.mjs +22 -16
  126. package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-Bcl3vTb4.mjs} +1 -1
  127. package/dist/client/{routeIslandApiConfig-DnaJ8PQc.mjs → routeIslandApiConfig-BjRoLoMD.mjs} +1 -1
  128. package/dist/client/{runtimeResponse-BN8PoIVp.mjs → runtimeResponse-B-lrAGhX.mjs} +1 -1
  129. package/dist/client/{runtimeResponse-B1-cyLXt.mjs → runtimeResponse-CPcA8xSm.mjs} +1 -1
  130. package/dist/client/{shop-LjBLDBqF.mjs → shop-BC4H0oYT.mjs} +3 -3
  131. package/dist/client/{shop-commerce-B8aZTdRJ.mjs → shop-commerce-BsY7a71m.mjs} +12 -12
  132. package/dist/client/{shop-commerce-store-C1FtHYl7.mjs → shop-commerce-store-BZ5j90HD.mjs} +1 -1
  133. package/dist/client/{shop.client-D0qZ3KZp.mjs → shop.client-WgGVGelc.mjs} +12 -12
  134. package/dist/client/{shop.interactive-DAKyWK1B.mjs → shop.interactive-Bb67gPLL.mjs} +187 -81
  135. package/dist/client/{shopShared-CztcSe9i.mjs → shopShared-BE6TEk2A.mjs} +2 -2
  136. package/dist/client/spam-protection.mjs +1 -1
  137. package/dist/client/{timetableModel-D1jDTbms.mjs → timetableModel-Bbz_ECL5.mjs} +10 -10
  138. package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
  139. package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-CdP14E_b.mjs} +2 -2
  140. package/dist/client/{useDiscountApply-CHGYDxdM.mjs → useDiscountApply-DvOSso2l.mjs} +1 -1
  141. package/dist/client/{useDiscountCodeUi-Dew9UAEy.mjs → useDiscountCodeUi-B4fRd2jy.mjs} +1 -1
  142. package/dist/client/{useEventPagination-BpC7-ksE.mjs → useEventPagination-M3jC8lgP.mjs} +6 -6
  143. package/dist/client/{view-BxeiAL3c.mjs → view-B0TFnP4y.mjs} +198 -60
  144. package/dist/client/{view-ShYH3WXh.mjs → view-DNNNbnNj.mjs} +3 -3
  145. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
  146. package/dist/preview-next/client/{LocationPickerEnvironment-lW2aLGWd.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
  147. package/dist/preview-next/client/{MapLibreEditMap-C9InQJpd.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
  148. package/dist/preview-next/client/{PageSectionToolbar-DsSqwrMS.mjs → PageSectionToolbar-D59tHj_L.mjs} +320 -395
  149. package/dist/preview-next/client/{PreviewEditorSidebar-BEEWzXnU.mjs → PreviewEditorSidebar-CjOIZlUk.mjs} +761 -416
  150. package/dist/preview-next/client/{PreviewEditorUI-C86Out4V.mjs → PreviewEditorUI--kS9Cwsc.mjs} +126 -137
  151. package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
  152. package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
  153. package/dist/preview-next/client/{PreviewShell-CBWYjBvQ.mjs → PreviewShell-Bi8-rclb.mjs} +312 -63
  154. package/dist/preview-next/client/{SdkPreviewModeRuntime-o-mVqWLx.mjs → SdkPreviewModeRuntime-CWTUw-3L.mjs} +308 -135
  155. package/dist/preview-next/client/{SiteChromeCustomizeButton-H_ciMNHA.mjs → SiteChromeCustomizeButton-CrgS3I8d.mjs} +1936 -320
  156. package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
  157. package/dist/preview-next/client/{lucide-react-DygTyy7K.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
  158. package/dist/preview-next/client/{previewAssistantSlot-CuOcsG_N.mjs → previewAssistantSlot-Caofnr1Z.mjs} +23441 -21340
  159. package/dist/preview-next/client/{previewChromeRoot-DPeV7KaP.mjs → previewChromeRoot-CbAI_jSH.mjs} +1 -1
  160. package/dist/preview-next/client/runtime.mjs +5 -4
  161. package/dist/preview-next/client/sdk-runtime-DY65_hLk.mjs +6 -0
  162. package/dist/preview-next/client/{useAutosaveStatus-DNA1Q4L1.mjs → useAutosaveStatus-CakNU3lp.mjs} +2 -2
  163. package/dist/preview-next/client/{useOpenBlockForSetup-BdnMlHC6.mjs → useOpenBlockForSetup-CCEMkosU.mjs} +126 -11
  164. package/dist/preview-next/container-responsive.css +215 -4
  165. package/dist/preview-next/editor-base.css +14 -4
  166. package/dist/preview-next/keepAlive.mjs +1 -1
  167. package/dist/preview-next/middleware.mjs +1 -1
  168. package/dist/preview-next/{route-contract-CtSgU8UZ.mjs → route-contract-DsKDQoVW.mjs} +147 -2
  169. package/dist/server/{Block.shared-ifgaBglp.mjs → Block.shared-D7Qy9F4a.mjs} +4 -4
  170. package/dist/server/{ThemeScopeCore-DGDOH6OU.mjs → ThemeScopeCore-D1NTXZdX.mjs} +15 -10
  171. package/dist/server/{accessibleSurfaces-BuPNCWAK.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
  172. package/dist/server/{bindings-CiYpie1M.mjs → bindings-Bp6OnR3n.mjs} +109 -20
  173. package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
  174. package/dist/server/{client-ngWuFsmN.mjs → client-dROAfMRa.mjs} +149 -4
  175. package/dist/server/config-template-validation.mjs +3 -0
  176. package/dist/server/config-validation.mjs +1 -1
  177. package/dist/server/config.mjs +2 -2
  178. package/dist/server/data/resolveBlockData.mjs +1 -1
  179. package/dist/server/index.mjs +3 -3
  180. package/dist/server/{loadContent-DeLQeJAZ.mjs → loadContent-zOIrtqz-.mjs} +19 -14
  181. package/dist/server/{loadPage-D4J747FQ.mjs → loadPage-vwFiq1Rk.mjs} +2 -2
  182. package/dist/server/next.mjs +6 -6
  183. package/dist/server/{opaqueSurface-ukEz1BaM.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
  184. package/dist/server/{overrideResolution-DSuVkpqm.mjs → overrideResolution-DjboggbB.mjs} +1 -1
  185. package/dist/server/page-converter.mjs +1 -1
  186. package/dist/server/{pageRenderPlan-DFv3h4Ib.mjs → pageRenderPlan-BR4t1rOw.mjs} +954 -337
  187. package/dist/server/{pageRuntimeSupport-yHaRNWMj.mjs → pageRuntimeSupport-BKo6XVK-.mjs} +3 -2
  188. package/dist/server/{pageShared-CAZD0LcY.mjs → pageShared-BJjptSGp.mjs} +1039 -853
  189. package/dist/server/{parseThemeForPersistence-Dl7LIBJq.mjs → parseThemeForPersistence-B18KDEue.mjs} +2 -2
  190. package/dist/server/{prebuild-BKOCND3b.mjs → prebuild-CntSkZQI.mjs} +1 -1
  191. package/dist/server/prebuild.mjs +1 -1
  192. package/dist/server/{prefetchBlockData-GIoExi8A.mjs → prefetchBlockData-BM9Ds0OQ.mjs} +2 -2
  193. package/dist/server/{registry-BogXzcOD.mjs → registry-wYH0LH5f.mjs} +7269 -4975
  194. package/dist/server/rendering/components/pageShared.mjs +1 -1
  195. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  196. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  197. package/dist/server/rendering/server.mjs +3 -3
  198. package/dist/server/rendering.mjs +7 -7
  199. package/dist/server/{resolveBlockData-CT4YSBve.mjs → resolveBlockData-Bu_p4HxZ.mjs} +2 -2
  200. package/dist/server/{resolveButtonColourStates-DVISOQD9.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +53 -33
  201. package/dist/server/{schema-C92Q8y0-.mjs → schema-BFOqYIMQ.mjs} +2 -1
  202. package/dist/server/server.mjs +3 -3
  203. package/dist/server/theme-bridge.mjs +2 -2
  204. package/dist/server/theme.mjs +2 -2
  205. package/dist/server/{validation-vSBCWU3w.mjs → validation-DAQdPDku.mjs} +4 -4
  206. package/dist/server/{version-Cw5vFmUY.mjs → version-DAB0O3yx.mjs} +1 -1
  207. package/dist/styles/index.css +1260 -15
  208. package/package.json +1 -1
  209. package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
  210. package/dist/preview-next/client/sdk-runtime-zTTFZ4MM.mjs +0 -5
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { n as __exportAll } from "./rolldown-runtime-CE6sIgz8.mjs";
3
- import { $_ as generateUuidV4, $d as inlineTextToPlainText, $h as findButtonStyleRecipe, $t as useEditorUiStore, A as usePreviewRenderReadiness, A_ as PUBLIC_FILE_FIELD_KINDS, Aa as resolveImageSourceSetWithContext, Ah as buttonVariants, Ai as EVENT_SELECTION_TYPE_OPTIONS, Am as DialogClose, An as getFieldDefault, Ap as resolveRepeaterGridAcceptedSpans, At as deleteSlotBlock, Av as syncStateOf, Bd as getBlockIconSemanticId, Bh as isEdited, Bm as DialogDescription, Bn as imagePoolForOverride, Bt as getDashboardUrl, Bv as formatDateTime, Ch as useControllableState, Cn as deriveEditorValuePublicationState, Cp as planRepeaterGridSpanChange, Ct as getWidgetKey, Cy as parseSiteId, Dh as Primitive, Dn as createManifestFormAdapter, Dp as isRepeaterGridLayoutInvalid, Dt as createBlock, Dv as displayedValues, Ea as computeMediaTransformStyle, Eh as composeEventHandlers, Em as FIELD_SURFACE_CLASS, En as initialBlockDraftValues, Ep as flowRepeaterGridItems, Et as partitionFieldsByIntent, Fi as writeEventSelectionChips, Fm as DialogTitle$1, Fn as readSliderFieldUiConfig, Ft as reorderSlotBlocks, Fv as editorBlockCollectionOwnerKey, G_ as authoredValuesEqual, Gd as parseGeneratedIconSetId, Gf as getHeaderStyle, Gn as rankBackgroundImagePoolItems, Hd as parseBlockIconValue, Hf as GRADIENT_PRESETS, Hh as readLinkedEntryLease, Hn as parseBackgroundOverrideFromContent, I as selectedLookTile, Ia as resolveMediaSlotContract, Id as isRichTextDoc, If as offeredSiteStyles, Ih as useComposedRefs, Im as DialogTrigger, It as withSlotCompositionHash, Iv as editorBlockCollectionOwnersEqual, J as runHeldLifecycle, Jd as coerceInlineTextWithFallback, Jh as resolveRepeaterGridRowFieldId, Jl as parseFeatureCardGeneratedIconSizePx, Jm as usePortalContainer, Jt as routeLifecycleContext, Kd as parseSiteIconStyleGuideVersionId, Kf as findCuratedPalette, Kh as isAcceptedRepeaterGridSpan, Kl as createFeatureCardIconKey, Kn as resolveBackgroundCapability, L_ as asAppearancePresetId, La as buildResolveImageUrlContext, Lf as palettesForSiteStyle, Lh as cn, Ln as canCycleBackgroundOverrideValue, Lt as blocksKeys, Lv as unsafeAsEditorBlockId, M_ as asRecord, Mh as cva, Mi as chooseScheduleScope, Mm as DialogDescription$1, Mn as normalizeFieldForCanonicalValidation, Mp as resolveRepeaterGridColumnsForBreakpoint, Mt as listEntryPageContentSlots, Mv as createEditorInsertBlockCommand, N as lookTilePosition, N_ as getFontWidthRange, Nd as admitLayoutGridForPlan, Nh as createSlot, Ni as readEventSelectionChips, Nm as DialogFooter, Nn as getGroupChildFields, Nr as getBlockDefinition, Nt as listPageSurfaceContentSlots, Nv as createEditorRemoveBlockCommand, O as usePreviewJoinOutcome, On as createManifestValidation, Op as normalizeRepeaterGridSpan, Ot as createSlotBlock, Ou as buildFormInteractiveIslandProps, Ov as knownRevision, P as lookTilesFor, Pd as deriveFieldValidationPlan, Pf as getCuratedSiteStyle, Pi as toggleEventType, Pm as DialogHeader, Pn as readNumberFieldUiConfig, Pr as listBlockDescriptors, Pt as reorderBlocks, Pv as createEditorReorderBlocksCommand, Qh as buttonStyleSelectionParameterValue, Ql as toFeatureCardIconSuggestionInputs, Qt as planLeaseNotice, Qv as parseBookingLocalDate, Rd as sanitizeHref, Rh as useShallow, Rt as normalizeApiError, Rv as unsafeAsEditorBlockValues, S as setPageDesignBlockBackground, S_ as getDirectImageUrlForMediaAsset, Sh as createCollection, Sm as FieldTrigger, Sn as withoutServerVersions, Sp as buildRepeaterGridDropTargets, St as getFieldIntent, T_ as runtimeMediaSchema, Tf as concretePaletteToTheme, Th as createContextScope, Tm as FIELD_FOCUS_WITHIN_CLASS, Tp as findFirstAvailableRepeaterGridPlacement, Tt as isNonEmptyValue, Ty as expectParsedBrandedId, Uf as getGradientPreset, Uh as canEditorWrite, Um as DialogTitle, V as usePreviewAuth, Vd as getGeneratedBlockIconStyleState, Vf as gradientToCss, Vh as canWriteLinkedEntry, Vr as buildNewsletterFormInteractiveIslandProps, W as useEntryController, Wd as parseGeneratedIconAssetId, Wf as getHeaderLayout, Wl as FEATURE_CARD_GENERATED_ICON_SIZE_PX, Wn as planBackgroundTransition, Wp as editorAdmissionIsOpen, Wt as ApiRequestError, X as useServerRefresh, Xh as siteOptionSources, Xt as resolvePageRouteSlug, Yf as findFooterLook, Yh as resolveRepeaterGridSpanFieldId, Yl as resolveFeatureCardGeneratedIconSizePx, Ym as ReactRemoveScroll, Yp as OPERATION_ID_HEADER, Yt as deriveRouteMetadataPresentation, Z as useSessionJournal, Zh as buttonStyleHoverPreferenceValue, Zl as suggestSemanticIconForFeatureCard, Zt as resolveContentTitle, __ as isRotationDimensionSwap, _h as FocusScope, _m as usePrevious$1, _t as collectVisibleWhenWatchPaths, _v as knownSocialPlatforms, ad as BLOCK_BUTTON_ROLE_OPTIONS, an as unfinishedBlockCopy, ap as sectionTransitionFamilyForBoundaryOptionId, ar as siblingPath$2, av as resolveMailingListDefaultDestination, b_ as parseAspectRatioValue, bm as CalloutDescription, bn as useStore, bp as planLayoutGridColumnEdit, bt as evaluateVisibleWhenPredicate, bv as publishedContactDetails, cf as parseFieldDefinition, ch as Presence, cm as journalTargetKey, ct as LeaseNoticeButtons, d as cycleSiteChromeSelectionId, dh as Arrow$1, dm as Select$1, dn as journalNoticeMessage, do as normalizeOfferingsPreviewGroupOrder, dt as JournalWriteRefused, eg as resolveButtonStyleSelection, en as useEditorUiStoreInstance, ev as slugify$1, ey as resolveBookingBusinessTimeZone, fh as Content, fm as SelectContent, fn as lifecycleOutcomeMessage, fp as appearancePresets, fv as parseBrevoListId, gf as sectionPhotoPresence, gh as useId$1, go as resolveOfferingsPreviewGroupOrderEntries, gt as derivePromotedFieldPlan, gv as knownSocialPlatformLabels, gy as assertNever$1, hh as useSize, hm as SelectValue, ht as publishContentEntry, hv as parseNewsletterListId, i as usePreviewSidebarNavigation, if as plainTextToInlineText, ih as hideOthers, im as unwrapResponse, ip as sectionTransitionFamilies, ir as getAtPath, iv as assessMailingListTargeting, iy as toUtcIsoDateTimeString, j_ as mediaIdentifierSchema, ja as resolveImageUrlWithContext, jf as defaultPolicyPageFlowPresetId, ji as chooseAllEvents, jm as DialogContent, jn as getRepeaterItemDefault, jp as resolveRepeaterGridBreakpointForWidth, jt as isSurfaceSlotBlockTarget, jv as valueStatus, kh as Button$1, ki as EVENT_SELECTION_SCOPE_OPTIONS, km as Dialog, kn as manifestFieldSectionOptions, kp as planRepeaterGridStartNewRow, kt as deleteBlock, kv as pristineValueSync, lh as Portal$1, lm as journalTrustAt, lo as inferLegacyOfferingsPreviewGroupOrder, lv as DEFAULT_MAILING_LIST_TARGETING, mh as createPopperScope, mm as SelectTrigger, mo as planOfferingPreviewCardSelection, mt as missingReceiptError, mv as parseMailchimpInterestId, n as usePreviewAssistantSlot, ng as updateButtonStyleSelectionChoice, nn as useSidebarView, o as usePreviewPageDesignEditorState, od as isBlockButtonRole, om as sidebarReturnView, op as sectionTransitionVariantForBoundaryOptionId, or as withValueAtPath, ov as mailingListProviderName, pf as resolveVisiblePromotedFieldPathsForEditorBlock, ph as Root2$1, pm as SelectItem, pt as sendPageCommand, pv as parseMailchimpAudienceId, q as DONE, qh as resolveRepeaterGridColumnFieldId, ql as getFeatureCardIconCompletion, qp as editorAdmissionSession, r_ as paletteValueKey, rg as buttonStyleSelectionKey, rm as extractApiEnvelopeErrorDetails, rn as recoveryConflictCopy, rp as defaultSectionTransitionVariantForFamily, ry as parseUtcIsoDateTimeString, s as usePreviewPageDesignRenderState, sm as journalLabels, st as LeaseDiscardedNoticeView, sv as parseMailingListPlacementTargeting, tg as updateButtonStyleHoverPreference, ty as resolveBookingTimeZoneId, u as useSiteChromeCustomizeOptional, uh as Anchor, un as selectJournalWriteState, uo as isOfferingsPreviewSourceKey, uv as mailingListTargetingChoiceIds, v as buildPageDesignEditorReadModelForBlocks, vh as useFocusGuards, vm as clamp, vt as evaluateVisibility, vv as parsePublicProfile, w_ as mediaSchema, wf as concretePaletteFromTheme, wp as projectRepeaterGridLayout, wt as hasVisibilityConditions, wy as unsafeAsSiteId, x as pageDesignLookTiles, x_ as resolveMediaTransformForAspect, xh as useDirection, xm as CalloutTitle, xn as toEditorBlockItem, xt as getVisibleWhenPredicates, yh as DismissableLayer, ym as Callout, yp as isInternalResolvedLinkValue, yt as evaluateVisibleWhen, yv as publicProfileWeekdays, yy as parseMediaAssetId, zn as enabledBackgroundModes, zp as resolveBlockTitle, zv as formatDate } from "./previewAssistantSlot-CuOcsG_N.mjs";
4
- import { B as Image, C as PanelBottom, Ct as ArrowDown, H as ImagePlus, J as FileText, Jt as ok, K as GripVertical, L as Link2, N as LoaderCircle, S as PanelTop, St as ArrowUpRight, U as ImageOff, V as ImageUp, _t as Calendar$1, at as Clock, b as Plus, c as Trash2, d as Sparkles, dt as CircleAlert, et as EyeOff, g as Rows3, gt as Check, ht as ChevronDown, i as Video, it as Copy, j as Lock, k as Maximize2, m as Settings, mt as ChevronLeft, n as X$1, ot as Clock3, p as SlidersHorizontal, pt as ChevronRight, qt as err, rt as Crop, s as TriangleAlert, t as lucide_react_exports, tt as EllipsisVertical, v as RotateCcw, w as Palette, x as Pencil, xt as ArrowUp, yt as Box$1 } from "./lucide-react-DygTyy7K.mjs";
5
- import { $ as useMediaEditor, $t as TabsList, B as buildFooterRuntimeViewModel, C as isHeaderMenuSurfaceState, F as siteColourCss, G as getFooterComposition, Gt as DEFAULT_THEME_RESPONSIVE_MODE, Ht as buildThemeRuntime, I as locationWidgetOverrides, J as updateFooterComposition, Jt as Textarea, K as getFooterEngagementAuthoringOptions, Qt as TabsContent, R as useSiteEditorAdmission, S as HeaderMenuControls, U as SiteOptionWidgetProvider, Ut as escapeStyleContent, V as resolveFooterLayoutHints, Vt as themeRuntimeScopeProps, W as useSiteOptionWidgetContext, X as updatePublicProfile, Xt as Input, Y as updateFooterCredit, Yt as SearchInput, Z as footerCreditLine, Zt as Tabs, _ as resolvePreviewEditorGuidanceModel, _n as upsertFooterEngagementSection, _t as FieldLabelText, an as Content$1, bn as planFooterArrangement, bt as revealEditorElement, ct as BlockApiProvider, dn as normalizeLegacyFooterContentToV1, dt as SelectField, en as TabsTrigger, f as canInspectSiteStyle, fn as parseFooterEngagementSection, ft as hasEmptyOption, gn as setFooterSectionSelected, gt as FieldFrame, h as resolvePreviewDashboardSetupHandoff, hn as resolveFooterSections, ht as unmapValueFromSelect, in as Trigger$2, it as NewsletterFormClient, ln as classifyKnownMimeType, lt as BlockContextProvider, m as buildPreviewDashboardSetupUrl, mn as removeFooterEngagementSection, mt as mapOptionValueForSelect, n as SiteChromeSurfaceControls, nn as List, on as Root$2, ot as useImageResolveContextOptional, pt as mapCurrentValueForSelect, q as getPublicProfile, rn as Root2$2, sn as Trigger$1, st as FormNodeClient, tn as Content$2, u as CustomizeBackgroundControlRows, un as deriveFooterEditorOverview, ut as useBlockContext, vn as validateFooterComposition, vt as useField, x as useSiteFontStorageUrl, xt as ThemeScopeCore, y as resolvePreviewSidebarChromeModel, yn as footerArrangementPolicy, yt as useLinkedInlineTextField, zt as buildThemeDataAttrs } from "./SiteChromeCustomizeButton-H_ciMNHA.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-CKYjeU_M.mjs";
7
- import { A as ScrollableDialogContent, C as EMPTY_DOC, D as resolveSdkFooterMode, M as emitMediaCropDebug, N as resolveVideoSelectionIntentForMediaField, O as Switch, P as isSvgMimeType, S as useRichTextEditor, T as InlineTextEditor, _ as MediaPickerMiniDialog, a as ArrangementOptionsBody, b as getRichTextImagePositionFromTarget, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as MediaEditor, h as getUnresolvedRichTextImageWarnings, i as ArrangementLookNote, j as ScrollableDialogShell, k as Badge, l as BackgroundPreviewSwatch, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, o as lookIsAutomatic, p as useSiteColourVariables, s as useArrangementToolbar, u as formatTokenLabel, v as MediaPickerMini, x as insertOrReplaceRichTextImage, y as RichTextEditorSurface } from "./PageSectionToolbar-DsSqwrMS.mjs";
3
+ import { $_ as authoredValuesEqual, $d as deriveFieldValidationPlan, $h as isAcceptedRepeaterGridSpan, $l as suggestSemanticIconForFeatureCard, $n as getAtPath, $t as useSidebarView, A as usePreviewRenderReadiness, A_ as getDirectImageUrlForMediaAsset, Ah as useControllableState, Ai as chooseScheduleScope, An as getGroupChildFields, At as listPageSurfaceContentSlots, Ay as parseSiteId, B_ as asRecord, Bh as createSlot, Bm as DialogHeader, Br as buildNewsletterFormInteractiveIslandProps, Bv as createEditorRemoveBlockCommand, Ca as resolveMediaSlotContract, Cf as plainTextToInlineText, Ch as useId$1, Cm as unwrapResponse, Cn as initialBlockDraftValues, Cp as sectionTransitionFamilies, Ct as partitionFieldsByIntent, Cv as knownSocialPlatformLabels, Cy as assertNever$1, Df as parseFieldDefinition, Di as EVENT_SELECTION_SCOPE_OPTIONS, Dm as journalTargetKey, Dn as getFieldDefault, Dt as deleteSlotBlock, Dv as publishedContactDetails, Eh as DismissableLayer, Em as journalLabels, En as manifestFieldSectionOptions, Et as deleteBlock, Ev as publicProfileWeekdays, Ey as parseMediaAssetId, Ff as sectionPhotoPresence, Fm as Dialog, Ft as normalizeApiError, Fv as knownRevision, G_ as asAppearancePresetId, Gf as concretePaletteFromTheme, Gh as useShallow, Gp as flowRepeaterGridItems, Gt as routeLifecycleContext, Gv as unsafeAsEditorBlockValues, Hm as DialogTrigger, Hn as rankBackgroundImagePoolItems, Hp as planRepeaterGridSpanChange, Hv as editorBlockCollectionOwnerKey, I as selectedLookTile, Ih as Button$1, Im as DialogClose, In as enabledBackgroundModes, Iv as pristineValueSync, J as runHeldLifecycle, Jh as canWriteLinkedEntry, Jl as createFeatureCardIconKey, Jp as planRepeaterGridStartNewRow, Jt as resolveContentTitle, Kf as concretePaletteToTheme, Kl as FEATURE_CARD_GENERATED_ICON_SIZE_PX, Kp as isRepeaterGridLayoutInvalid, Kt as deriveRouteMetadataPresentation, Kv as formatDate, Lh as buttonVariants, Lm as DialogContent, Ln as imagePoolForOverride, Lt as getDashboardUrl, Lv as syncStateOf, M_ as mediaSchema, Mh as createContextScope, Mi as toggleEventType, Mm as Callout, Mn as readSliderFieldUiConfig, Mr as getBlockDefinition, Mt as reorderSlotBlocks, My as expectParsedBrandedId, N as lookTilePosition, N_ as runtimeMediaSchema, Nh as composeEventHandlers, Ni as writeEventSelectionChips, Nm as CalloutDescription, Nr as listBlockDescriptors, Nt as withSlotCompositionHash, O as usePreviewJoinOutcome, O_ as parseAspectRatioValue, Oh as useDirection, Oi as EVENT_SELECTION_TYPE_OPTIONS, Om as journalTrustAt, On as getRepeaterItemDefault, Ot as isSurfaceSlotBlockTarget, P as lookTilesFor, Ph as Primitive, Pm as CalloutTitle, Pn as canCycleBackgroundOverrideValue, Pt as blocksKeys, Pv as displayedValues, Qd as admitLayoutGridForPlan, Qf as defaultPolicyPageFlowPresetId, R_ as PUBLIC_FILE_FIELD_KINDS, Rm as DialogDescription$1, Rp as isInternalResolvedLinkValue, Rv as valueStatus, S as setPageDesignBlockBackground, Sh as useSize, Sm as extractApiEnvelopeErrorDetails, So as planOfferingPreviewCardSelection, Sp as defaultSectionTransitionVariantForFamily, St as isNonEmptyValue, Sv as parseNewsletterListId, T_ as isRotationDimensionSwap, Td as isBlockButtonRole, Th as useFocusGuards, Tm as sidebarReturnView, Tn as createManifestValidation, Tp as sectionTransitionVariantForBoundaryOptionId, Tt as createSlotBlock, Tv as parsePublicProfile, Uf as getHeaderLayout, Uh as useComposedRefs, Un as resolveBackgroundCapability, Up as projectRepeaterGridLayout, Uv as editorBlockCollectionOwnersEqual, V as usePreviewAuth, V_ as getFontWidthRange, Vm as DialogTitle$1, Vn as planBackgroundTransition, Vp as buildRepeaterGridDropTargets, Vt as ApiRequestError, Vv as createEditorReorderBlocksCommand, W as useEntryController, Wf as getHeaderStyle, Wh as cn, Wp as findFirstAvailableRepeaterGridPlacement, Wv as unsafeAsEditorBlockId, X as useServerRefresh, Xh as canEditorWrite, Xl as parseFeatureCardGeneratedIconSizePx, Xm as DialogTitle, Xp as resolveRepeaterGridBreakpointForWidth, Xt as useEditorUiStore, Yh as readLinkedEntryLease, Yl as getFeatureCardIconCompletion, Yp as resolveRepeaterGridAcceptedSpans, Yt as planLeaseNotice, Z as useSessionJournal, Zl as resolveFeatureCardGeneratedIconSizePx, Zp as resolveRepeaterGridColumnsForBreakpoint, Zt as useEditorUiStoreInstance, _a as resolveImageSourceSetWithContext, _h as Anchor, _n as useStore, _o as isOfferingsPreviewSourceKey, _t as collectVisibleWhenWatchPaths, _v as mailingListTargetingChoiceIds, af as getBlockIconSemanticId, ag as buttonStyleSelectionParameterValue, ay as parseBookingLocalDate, bh as Root2$1, bn as deriveEditorValuePublicationState, bt as getWidgetKey, bv as parseMailchimpAudienceId, cg as updateButtonStyleHoverPreference, cn as journalNoticeMessage, cp as gradientToCss, ct as LeaseNoticeButtons, cy as resolveBookingTimeZoneId, d as cycleSiteChromeSelectionId, d_ as paletteValueKey, df as parseSiteIconStyleGuideVersionId, dh as hideOthers, dp as findCuratedPalette, dt as JournalWriteRefused, dv as assessMailingListTargeting, dy as toUtcIsoDateTimeString, eg as resolveRepeaterGridColumnFieldId, en as recoveryConflictCopy, er as siblingPath$2, eu as toFeatureCardIconSuggestionInputs, fm as editorAdmissionSession, fv as resolveMailingListDefaultDestination, gh as Portal$1, go as inferLegacyOfferingsPreviewGroupOrder, gt as derivePromotedFieldPlan, gv as DEFAULT_MAILING_LIST_TARGETING, hh as Presence, ht as publishContentEntry, i as usePreviewSidebarNavigation, ig as buttonStyleHoverPreferenceValue, im as resolveBlockTitle, ip as palettesForSiteStyle, jf as resolveVisiblePromotedFieldPathsForEditorBlock, ji as readEventSelectionChips, jn as readNumberFieldUiConfig, jp as appearancePresets, jt as reorderBlocks, ju as buildFormInteractiveIslandProps, jy as unsafeAsSiteId, k_ as resolveMediaTransformForAspect, kh as createCollection, ki as chooseAllEvents, kn as normalizeFieldForCanonicalValidation, kt as listEntryPageContentSlots, lf as parseGeneratedIconAssetId, lg as updateButtonStyleSelectionChoice, lm as editorAdmissionIsOpen, ln as lifecycleOutcomeMessage, lp as GRADIENT_PRESETS, mm as OPERATION_ID_HEADER, mp as findFooterLook, mt as missingReceiptError, mv as parseMailingListPlacementTargeting, n as usePreviewAssistantSlot, ng as resolveRepeaterGridSpanFieldId, nh as ReactRemoveScroll, nn as unfinishedBlockCopy, o as usePreviewPageDesignEditorState, of as getGeneratedBlockIconStyleState, og as findButtonStyleRecipe, ov as generateUuidV4, pa as computeMediaTransformStyle, pf as coerceInlineTextWithFallback, pt as sendPageCommand, pv as mailingListProviderName, q as DONE, qh as isEdited, qm as DialogDescription, qp as normalizeRepeaterGridSpan, qt as resolvePageRouteSlug, qv as formatDateTime, rf as sanitizeHref, rg as siteOptionSources, rp as offeredSiteStyles, s as usePreviewPageDesignRenderState, sf as parseBlockIconValue, sg as resolveButtonStyleSelection, sn as selectJournalWriteState, st as LeaseDiscardedNoticeView, sv as slugify$1, sy as resolveBookingBusinessTimeZone, tf as isRichTextDoc, tg as resolveRepeaterGridRowFieldId, th as usePortalContainer, tp as getCuratedSiteStyle, tr as withValueAtPath, u as useSiteChromeCustomizeOptional, uf as parseGeneratedIconSetId, ug as buttonStyleSelectionKey, up as getGradientPreset, uy as parseUtcIsoDateTimeString, v as buildPageDesignEditorReadModelForBlocks, va as resolveImageUrlWithContext, vf as inlineTextToPlainText, vh as Arrow$1, vn as toEditorBlockItem, vo as normalizeOfferingsPreviewGroupOrder, vt as evaluateVisibility, wa as buildResolveImageUrlContext, wd as BLOCK_BUTTON_ROLE_OPTIONS, wh as FocusScope, wn as createManifestFormAdapter, wo as resolveOfferingsPreviewGroupOrderEntries, wp as sectionTransitionFamilyForBoundaryOptionId, wt as createBlock, wv as knownSocialPlatforms, x as pageDesignLookTiles, xh as createPopperScope, xt as hasVisibilityConditions, xv as parseMailchimpInterestId, yh as Content, yn as withoutServerVersions, yt as getFieldIntent, yv as parseBrevoListId, z_ as mediaIdentifierSchema, zh as cva, zm as DialogFooter, zn as parseBackgroundOverrideFromContent, zp as planLayoutGridColumnEdit, zv as createEditorInsertBlockCommand } from "./previewAssistantSlot-Caofnr1Z.mjs";
4
+ import { $ as EllipsisVertical, A as LoaderCircle, B as ImageOff, E as Maximize2, G as FileText, Gt as err, Kt as ok, L as Image, O as Lock, P as Link2, R as ImageUp, S as Palette, U as GripVertical, Z as EyeOff, _t as Box$1, b as PanelTop, bt as ArrowUpRight, c as Trash2, d as SlidersHorizontal, dt as ChevronRight, f as Settings, ft as ChevronLeft, g as RotateCcw, ht as Calendar$1, i as Video, it as Clock3, lt as CircleAlert, m as Rows3, mt as Check, n as X$1, nt as Copy, pt as ChevronDown, rt as Clock, s as TriangleAlert, t as lucide_react_exports, tt as Crop, u as Sparkles, v as Plus, x as PanelBottom, xt as ArrowDown, y as Pencil, yt as ArrowUp, z as ImagePlus } from "./lucide-react-BCNn8dEQ.mjs";
5
+ import { $t as Textarea, An as removeFooterEngagementSection, C as HeaderMenuControls, Cn as Trigger$1, Dn as normalizeLegacyFooterContentToV1, En as deriveFooterEditorOverview, Fn as footerArrangementPolicy, G as useSiteOptionWidgetContext, Gt as buildThemeRuntime, H as resolveFooterLayoutHints, Ht as buildThemeDataAttrs, I as siteColourCss, In as planFooterArrangement, J as getPublicProfile, Jt as DEFAULT_THEME_RESPONSIVE_MODE, K as getFooterComposition, Kt as escapeStyleContent, L as locationWidgetOverrides, Mn as setFooterSectionSelected, Nn as upsertFooterEngagementSection, On as parseFooterEngagementSection, Pn as validateFooterComposition, Q as footerCreditLine, S as useSiteFontStorageUrl, Sn as Root$2, St as ThemeScopeCore, Tn as classifyKnownMimeType, V as buildFooterRuntimeViewModel, W as SiteOptionWidgetProvider, Wt as themeRuntimeScopeProps, X as updateFooterCredit, Xt as CHOSEN_OPTION_CLASS, Y as updateFooterComposition, Z as updatePublicProfile, Zt as ChoiceTileGroup, _n as Content$2, _t as FieldFrame, an as usePrevious$1, at as NewsletterFormClient, b as resolvePreviewSidebarChromeModel, bn as Trigger$2, bt as useLinkedInlineTextField, cn as FieldTrigger, ct as FormNodeClient, d as CustomizeBackgroundControlRows, dn as FIELD_SURFACE_CLASS, dt as useBlockContext, en as Select$1, et as useMediaEditor, ft as SelectField, g as resolvePreviewDashboardSetupHandoff, gn as TabsTrigger, gt as unmapValueFromSelect, h as buildPreviewDashboardSetupUrl, hn as TabsList, ht as mapOptionValueForSelect, in as SelectValue, jn as resolveFooterSections, ln as Input, lt as BlockApiProvider, mn as TabsContent, mt as mapCurrentValueForSelect, n as SiteChromeSurfaceControls, nn as SelectItem, on as clamp, p as canInspectSiteStyle, pn as Tabs, pt as hasEmptyOption, q as getFooterEngagementAuthoringOptions, r as dashboardLogoSettingsHref, rn as SelectTrigger, sn as SearchInput, st as useImageResolveContextOptional, tn as SelectContent, un as FIELD_FOCUS_WITHIN_CLASS, ut as BlockContextProvider, v as resolvePreviewEditorGuidanceModel, vn as List, vt as FieldLabelText, w as isHeaderMenuSurfaceState, xn as Content$1, xt as revealEditorElement, yn as Root2$2, yt as useField, z as useSiteEditorAdmission } from "./SiteChromeCustomizeButton-CrgS3I8d.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-CVYz7h68.mjs";
7
+ import { A as ScrollableDialogContent, C as EMPTY_DOC, D as resolveSdkFooterMode, F as resolveVideoSelectionIntentForMediaField, I as isSvgMimeType, M as Surface, N as surfaceVariants, P as emitMediaCropDebug, S as useRichTextEditor, T as InlineTextEditor, _ as MediaPickerMiniDialog, a as ArrangementOptionsBody, b as getRichTextImagePositionFromTarget, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as MediaEditor, h as getUnresolvedRichTextImageWarnings, i as ArrangementLookNote, j as ScrollableDialogShell, k as Switch, l as BackgroundPreviewSwatch, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, o as lookIsAutomatic, p as useSiteColourVariables, s as useArrangementToolbar, u as formatTokenLabel, v as MediaPickerMini, x as insertOrReplaceRichTextImage, y as RichTextEditorSurface } from "./PageSectionToolbar-D59tHj_L.mjs";
8
8
  import { n as TZDate } from "./src-DzXUmsyK.mjs";
9
- import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-lW2aLGWd.mjs";
10
- import { a as publicationLabel, o as Spinner, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-DNA1Q4L1.mjs";
11
- import { A as TooltipProvider, C as hideThemeV2RawStyleFields, D as mergeBlockDescriptors, E as getBlockManifestFromSdkConfig, F as DropdownMenuSeparator, I as DropdownMenuTrigger, M as DropdownMenu, N as DropdownMenuContent, O as Tooltip, P as DropdownMenuItem, S as lookNotShownFieldIds, T as showRawStyleFields, _ as useSdkConfig, b as arrangementVisibilityValues, c as useBlockNeedsSetup, d as arrangementLookNameFor, f as createStoreBackend, g as SdkConfigProvider, h as createFieldObservation, i as NEEDS_SETUP_LABEL, j as TooltipTrigger, k as TooltipContent, m as isRecord$1, n as resolveBlockManifest, o as needsSetupMessage, p as isObjectRecord, r as useBlockCustomizeControls, s as needsSetupOf, u as arrangementBlockControlsFor, v as arrangementLookResolution, w as prepareBlockEditorManifest, x as blockLookOwnedFieldPaths, y as arrangementOwnedFieldIds } from "./useOpenBlockForSetup-BdnMlHC6.mjs";
9
+ import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-D4F_5rnr.mjs";
10
+ import { a as publicationLabel, o as Spinner, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-CakNU3lp.mjs";
11
+ import { A as Tooltip, C as blockLookOwnedFieldPaths, D as showRawStyleFields, E as prepareBlockEditorManifest, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, O as getBlockManifestFromSdkConfig, P as Badge, S as arrangementVisibilityValues, T as hideThemeV2RawStyleFields, V as DropdownMenuSeparator, _ as createFieldObservation, b as arrangementLookResolution, f as arrangementBlockControlsFor, g as isRecord$1, h as isObjectRecord, i as NEEDS_SETUP_LABEL, j as TooltipContent, k as mergeBlockDescriptors, l as needsSetupOf, m as createStoreBackend, n as resolveBlockManifest, o as blockNoticeLabel, p as arrangementLookNameFor, r as useBlockCustomizeControls, s as blockNoticeMessage, u as useBlockNotice, v as SdkConfigProvider, w as lookNotShownFieldIds, x as arrangementOwnedFieldIds, y as useSdkConfig } from "./useOpenBlockForSetup-CCEMkosU.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";
@@ -61,53 +61,6 @@ function CopyButton({ value, label, className, size = "sm", withText = false, on
61
61
  });
62
62
  }
63
63
  //#endregion
64
- //#region ../ui/src/surface.tsx
65
- const surfaceVariants = cva("text-card-foreground", {
66
- variants: {
67
- variant: {
68
- default: "bg-muted",
69
- background: "bg-background",
70
- /**
71
- * The dark band (Macadamia's ink). `surface-inverse` remaps the
72
- * button, focus and muted-text tokens inside it, so shared controls
73
- * read light-on-dark without per-use overrides. Don't nest light
74
- * surfaces inside it: they'd inherit the remapped tokens.
75
- */
76
- inverse: "surface-inverse bg-inverse text-inverse-foreground"
77
- },
78
- radius: {
79
- sm: "rounded-sm",
80
- xl: "rounded-xl",
81
- lg: "rounded-lg",
82
- md: "rounded-md",
83
- none: "rounded-none",
84
- flushMobile: "rounded-none md:rounded-xl"
85
- },
86
- padding: {
87
- none: "",
88
- sm: "p-3",
89
- md: "p-4",
90
- lg: "p-6"
91
- }
92
- },
93
- defaultVariants: {
94
- variant: "default",
95
- radius: "xl",
96
- padding: "none"
97
- }
98
- });
99
- function Surface({ className, variant, radius, padding, ...props }) {
100
- return /* @__PURE__ */ jsx("div", {
101
- "data-slot": "surface",
102
- className: cn(surfaceVariants({
103
- variant,
104
- radius,
105
- padding
106
- }), className),
107
- ...props
108
- });
109
- }
110
- //#endregion
111
64
  //#region ../ui/src/card.tsx
112
65
  const cardLayoutVariants = cva("flex flex-col", {
113
66
  variants: { size: {
@@ -125,7 +78,7 @@ function Card({ className, variant = "default", size = "default", radius = "xl",
125
78
  variant,
126
79
  radius,
127
80
  padding: "none"
128
- }), variant === "default" ? "bg-[var(--card-surface,#ffffff)] border-0 shadow-[var(--card-shadow,var(--card-glow-shadow))]" : null, cardLayoutVariants({ size }), className),
81
+ }), variant === "default" ? "bg-[var(--card-surface,#ffffff)] border-0 shadow-[var(--card-shadow,var(--card-glow-shadow))]" : null, cardLayoutVariants({ size }), "has-[>[data-slot=card-footer][data-variant=bar]:last-child]:pb-0", className),
129
82
  ...props
130
83
  });
131
84
  }
@@ -136,6 +89,13 @@ function CardContent({ className, ...props }) {
136
89
  ...props
137
90
  });
138
91
  }
92
+ cva("flex items-center px-6", {
93
+ variants: { variant: {
94
+ default: "[.border-t]:pt-6",
95
+ bar: "flex-wrap-reverse gap-2.5 rounded-b-[inherit] border-t border-border/60 bg-muted/50 py-3"
96
+ } },
97
+ defaultVariants: { variant: "default" }
98
+ });
139
99
  //#endregion
140
100
  //#region ../ui/src/collapsible.tsx
141
101
  const Collapsible = Root$2;
@@ -152,169 +112,14 @@ const CollapsibleContent = React$1.forwardRef(({ className, ...props }, ref) =>
152
112
  }));
153
113
  CollapsibleContent.displayName = Content$1.displayName;
154
114
  //#endregion
155
- //#region ../ui/src/editor-item-card.tsx
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 }) {
186
- const generatedContentId = React$1.useId();
187
- const hasContent = children !== void 0 && children !== null && children !== false;
188
- const disclosure = hasContent ? requestedDisclosure : { kind: "static" };
189
- const contentId = disclosure.kind === "collapsible" ? disclosure.contentId ?? generatedContentId : void 0;
190
- const phoneRow = React$1.useContext(EditorItemListContext);
191
- return /* @__PURE__ */ jsx(Card, {
192
- ...rootProps,
193
- size: "none",
194
- "data-editor-item-card": "",
195
- "data-phone-row": phoneRow ? "" : void 0,
196
- "data-error": state === "error" ? "true" : void 0,
197
- "data-editor-block-highlight": state === "highlighted" ? "true" : void 0,
198
- className: editorItemCardClassName({
199
- state,
200
- phoneRow,
201
- disclosure,
202
- className
203
- }),
204
- children: /* @__PURE__ */ jsx(EditorItemCardBody, {
205
- disclosure,
206
- contentId,
207
- header: /* @__PURE__ */ jsx(EditorItemCardHeader, {
208
- title,
209
- subtitle,
210
- icon,
211
- titleAdornment,
212
- disclosure,
213
- contentId,
214
- affordances,
215
- interactive,
216
- testIdPrefix
217
- }),
218
- children: hasContent ? children : null
219
- })
220
- });
221
- }
222
- function EditorItemCardBody({ disclosure, contentId, 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] });
231
- return /* @__PURE__ */ jsxs(Collapsible, {
232
- open: disclosure.open,
233
- onOpenChange: disclosure.onOpenChange,
234
- children: [header, content ? /* @__PURE__ */ jsx(CollapsibleContent, {
235
- id: contentId,
236
- children: content
237
- }) : null]
238
- });
239
- }
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 }) {
250
- const subtitleId = React$1.useId();
251
- const adornmentId = React$1.useId();
252
- const describedBy = [subtitle ? subtitleId : null, titleAdornment ? adornmentId : null].filter(Boolean).join(" ") || void 0;
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
- ] });
279
- return /* @__PURE__ */ jsx("fieldset", {
280
- className: "contents",
281
- disabled: !interactive,
282
- children: /* @__PURE__ */ jsxs("div", {
283
- "data-slot": "editor-item-card-header",
284
- "data-testid": `${testIdPrefix}-header`,
285
- className: "flex flex-wrap items-start gap-1 px-2 py-2",
286
- children: [/* @__PURE__ */ jsxs("div", {
287
- className: "flex min-w-0 flex-1 items-center gap-2",
288
- children: [affordances.kind === "full" ? affordances.dragHandle : null, disclosure.kind === "collapsible" ? /* @__PURE__ */ jsxs("button", {
289
- type: "button",
290
- className: "flex min-w-0 flex-1 items-center gap-2 rounded-md text-left outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-wait disabled:opacity-60",
291
- "aria-expanded": disclosure.open,
292
- "aria-controls": contentId,
293
- "aria-label": `${disclosure.open ? "Collapse" : "Expand"} ${title}`,
294
- "aria-describedby": describedBy,
295
- onClick: () => disclosure.onOpenChange(!disclosure.open),
296
- children: [/* @__PURE__ */ jsx(ChevronRight, {
297
- "aria-hidden": "true",
298
- className: cn("h-4 w-4 shrink-0 transition", disclosure.open && "rotate-90")
299
- }), titleBlock]
300
- }) : /* @__PURE__ */ jsx("div", {
301
- className: "flex min-w-0 flex-1 items-center gap-2 px-1",
302
- children: titleBlock
303
- })]
304
- }), affordances.kind === "full" && affordances.actions ? /* @__PURE__ */ jsx(EditorItemCardActions, {
305
- testId: `${testIdPrefix}-actions`,
306
- ...affordances.actions
307
- }) : null]
308
- })
309
- });
310
- }
115
+ //#region ../ui/src/editor-item-card-actions.tsx
311
116
  /**
312
117
  * The action row, usable on its own by item presentations that aren't a
313
118
  * header card (for example a thumbnail tile).
314
119
  */
315
120
  function EditorItemCardActions({ move, slot, inline, menu, className, testId }) {
316
121
  return /* @__PURE__ */ jsxs("div", {
317
- className: cn("ml-auto flex shrink-0 flex-wrap items-center justify-end gap-1 self-start", className),
122
+ className: cn("ml-auto flex shrink-0 flex-wrap items-center justify-end gap-1", className),
318
123
  "data-testid": testId,
319
124
  onClick: (event) => event.stopPropagation(),
320
125
  children: [
@@ -330,32 +135,35 @@ function EditorItemCardActions({ move, slot, inline, menu, className, testId })
330
135
  control: action,
331
136
  icon: action.icon
332
137
  }, action.key)),
333
- menu ? /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
334
- asChild: true,
335
- children: /* @__PURE__ */ jsx(Button$1, {
336
- ref: menu.ref,
337
- type: "button",
338
- variant: "ghost",
339
- size: "icon",
340
- disabled: menu.disabled,
341
- "aria-label": menu.label,
342
- title: "More actions",
343
- children: /* @__PURE__ */ jsx(EllipsisVertical, { className: "h-4 w-4" })
344
- })
345
- }), /* @__PURE__ */ jsx(DropdownMenuContent, {
346
- align: "end",
347
- className: "w-44",
348
- onCloseAutoFocus: menu.onCloseAutoFocus,
349
- children: menu.groups.filter((group) => group.items.length > 0).map((group, index) => /* @__PURE__ */ jsxs(React$1.Fragment, { children: [index > 0 ? /* @__PURE__ */ jsx(DropdownMenuSeparator, {}) : null, group.items.map((item) => /* @__PURE__ */ jsxs(DropdownMenuItem, {
350
- disabled: item.disabled,
351
- tone: item.tone ?? "default",
352
- onSelect: item.onSelect,
353
- children: [item.icon, item.label]
354
- }, item.key))] }, group.key))
355
- })] }) : null
138
+ menu ? /* @__PURE__ */ jsx(EditorItemCardMenuButton, { menu }) : null
356
139
  ]
357
140
  });
358
141
  }
142
+ function EditorItemCardMenuButton({ menu }) {
143
+ return /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
144
+ asChild: true,
145
+ children: /* @__PURE__ */ jsx(Button$1, {
146
+ ref: menu.ref,
147
+ type: "button",
148
+ variant: "ghost",
149
+ size: "icon",
150
+ disabled: menu.disabled,
151
+ "aria-label": menu.label,
152
+ title: "More actions",
153
+ children: /* @__PURE__ */ jsx(EllipsisVertical, { className: "h-4 w-4" })
154
+ })
155
+ }), /* @__PURE__ */ jsx(DropdownMenuContent, {
156
+ align: "end",
157
+ className: "w-44",
158
+ onCloseAutoFocus: menu.onCloseAutoFocus,
159
+ children: menu.groups.filter((group) => group.items.length > 0).map((group, index) => /* @__PURE__ */ jsxs(React$1.Fragment, { children: [index > 0 ? /* @__PURE__ */ jsx(DropdownMenuSeparator, {}) : null, group.items.map((item) => /* @__PURE__ */ jsxs(DropdownMenuItem, {
160
+ disabled: item.disabled,
161
+ tone: item.tone ?? "default",
162
+ onSelect: item.onSelect,
163
+ children: [item.icon, item.label]
164
+ }, item.key))] }, group.key))
165
+ })] });
166
+ }
359
167
  function EditorItemCardIconButton({ control, icon }) {
360
168
  return /* @__PURE__ */ jsx(Button$1, {
361
169
  ref: control.ref,
@@ -377,23 +185,283 @@ const EditorItemCardDragHandle = React$1.forwardRef(function EditorItemCardDragH
377
185
  "aria-label": ariaLabel,
378
186
  title,
379
187
  disabled: concealed || disabled,
380
- className: cn("shrink-0 rounded p-1 transition-opacity focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", concealed ? "pointer-events-none cursor-not-allowed opacity-0" : "cursor-grab text-muted-foreground opacity-100 hover:text-foreground active:cursor-grabbing", className),
188
+ className: cn("shrink-0 rounded p-1 transition-opacity focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", concealed ? "pointer-events-none cursor-not-allowed opacity-0" : "cursor-grab text-muted-foreground/60 opacity-100 hover:text-foreground active:cursor-grabbing", className),
381
189
  children: /* @__PURE__ */ jsx(GripVertical, { className: "h-4 w-4" })
382
190
  });
383
191
  });
192
+ //#endregion
193
+ //#region ../ui/src/editor-item-nesting.tsx
194
+ /**
195
+ * How editor items nest, so an editor never shows cards inside cards. An item
196
+ * straight on the page is a card. Lists inside it are rows in a tinted well,
197
+ * opening in place. A list one level deeper shows as a single summary row,
198
+ * and opens by swapping the outer card's contents for it, with a path back.
199
+ */
200
+ const EditorItemDepthContext = React$1.createContext(0);
201
+ const EditorItemRowsContext = React$1.createContext(false);
202
+ const EditorItemPathContext = React$1.createContext([]);
203
+ const EditorItemDrillContext = React$1.createContext(null);
204
+ /**
205
+ * The list an editor's item cards sit in, with any insert dividers between
206
+ * them. Straight on the page its items are cards. Inside a card they're rows
207
+ * in a tinted well, split by hairlines.
208
+ */
209
+ function EditorItemList({ className, children, ...props }) {
210
+ if (React$1.useContext(EditorItemDepthContext) >= 1) return /* @__PURE__ */ jsx(EditorItemRowList, {
211
+ className,
212
+ ...props,
213
+ children
214
+ });
215
+ return /* @__PURE__ */ jsx(EditorItemRowsContext.Provider, {
216
+ value: false,
217
+ children: /* @__PURE__ */ jsx("div", {
218
+ ...props,
219
+ "data-slot": "editor-item-list",
220
+ className: cn("flex flex-col", className),
221
+ children
222
+ })
223
+ });
224
+ }
225
+ function EditorItemRowList({ className, children, ...props }) {
226
+ return /* @__PURE__ */ jsx(EditorItemRowsContext.Provider, {
227
+ value: true,
228
+ children: /* @__PURE__ */ jsx("div", {
229
+ ...props,
230
+ "data-slot": "editor-item-list",
231
+ "data-rows": "",
232
+ className: cn("flex flex-col overflow-hidden rounded-[14px] bg-muted px-1 pb-1", className, "gap-0"),
233
+ children
234
+ })
235
+ });
236
+ }
237
+ function drillSummaryText(itemCount) {
238
+ if (itemCount === void 0) return "Open";
239
+ return itemCount === 1 ? "1 item" : `${itemCount} items`;
240
+ }
241
+ /**
242
+ * A list editor inside an item. Two levels in, it shows as one summary row
243
+ * and opens on its own in place of the outer card's contents, everything in
244
+ * it together, so nothing it needs is left behind. Nearer the top it simply
245
+ * draws in place.
246
+ */
247
+ function EditorItemNestedList(props) {
248
+ const depth = React$1.useContext(EditorItemDepthContext);
249
+ const drill = React$1.useContext(EditorItemDrillContext);
250
+ if (depth >= 2 && drill) return /* @__PURE__ */ jsx(EditorItemDrillList, {
251
+ drill,
252
+ ...props
253
+ });
254
+ return /* @__PURE__ */ jsx(Fragment$1, { children: props.children });
255
+ }
256
+ function EditorItemDrillList({ drill, label = "Items", itemCount, summary, revealed = false, children }) {
257
+ const key = React$1.useId();
258
+ const path = React$1.useContext(EditorItemPathContext);
259
+ const summaryRef = React$1.useRef(null);
260
+ const position = drill.stack.findIndex((entry) => entry.key === key);
261
+ const { open, close } = drill;
262
+ const fullPath = React$1.useMemo(() => [...path, label], [path, label]);
263
+ const openHere = React$1.useCallback(() => open({
264
+ key,
265
+ path: fullPath,
266
+ returnFocus: () => summaryRef.current?.focus()
267
+ }), [
268
+ open,
269
+ key,
270
+ fullPath
271
+ ]);
272
+ React$1.useEffect(() => {
273
+ if (revealed) openHere();
274
+ }, [revealed, openHere]);
275
+ React$1.useEffect(() => () => close(key), [close, key]);
276
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(EditorItemDrillSummary, {
277
+ ref: summaryRef,
278
+ label,
279
+ onOpen: openHere,
280
+ children: summary ?? drillSummaryText(itemCount)
281
+ }), position >= 0 && drill.slot ? createPortal(/* @__PURE__ */ jsx("div", {
282
+ hidden: position !== drill.stack.length - 1,
283
+ children: /* @__PURE__ */ jsx(EditorItemPathContext.Provider, {
284
+ value: fullPath,
285
+ children: /* @__PURE__ */ jsx(EditorItemDepthContext.Provider, {
286
+ value: 1,
287
+ children
288
+ })
289
+ })
290
+ }), drill.slot) : null] });
291
+ }
292
+ function EditorItemDrillSummary({ ref, label, onOpen, children }) {
293
+ const summaryId = React$1.useId();
294
+ return /* @__PURE__ */ jsxs("button", {
295
+ ref,
296
+ type: "button",
297
+ "data-slot": "editor-item-drill-summary",
298
+ className: "flex w-full items-center gap-2.5 rounded-[10px] border border-border bg-card px-3 py-2.5 text-left text-sm outline-none transition-colors hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring",
299
+ "aria-label": `Edit ${label}`,
300
+ "aria-describedby": summaryId,
301
+ onClick: onOpen,
302
+ children: [
303
+ /* @__PURE__ */ jsx("span", {
304
+ id: summaryId,
305
+ className: "min-w-0 flex-1 truncate",
306
+ children
307
+ }),
308
+ /* @__PURE__ */ jsx("span", {
309
+ className: "shrink-0 font-medium text-primary",
310
+ children: "Edit"
311
+ }),
312
+ /* @__PURE__ */ jsx(ChevronRight, {
313
+ "aria-hidden": "true",
314
+ className: "h-4 w-4 shrink-0 text-primary"
315
+ })
316
+ ]
317
+ });
318
+ }
319
+ /**
320
+ * The outer card's drill-in: which deep lists are open, and where they draw.
321
+ * Closing the card unmounts its body, and each open list closes itself as it
322
+ * goes, so the stack needs no resetting of its own.
323
+ */
324
+ function useEditorItemDrillHost() {
325
+ const [stack, setStack] = React$1.useState([]);
326
+ const [slot, setSlot] = React$1.useState(null);
327
+ const open = React$1.useCallback((entry) => {
328
+ setStack((previous) => [...previous.filter((candidate) => candidate.key !== entry.key), entry]);
329
+ }, []);
330
+ const close = React$1.useCallback((key) => {
331
+ setStack((previous) => previous.some((entry) => entry.key === key) ? previous.filter((entry) => entry.key !== key) : previous);
332
+ }, []);
333
+ const back = React$1.useCallback(() => {
334
+ const top = stack[stack.length - 1];
335
+ if (!top) return;
336
+ close(top.key);
337
+ window.requestAnimationFrame(top.returnFocus);
338
+ }, [close, stack]);
339
+ return React$1.useMemo(() => ({
340
+ stack,
341
+ slot,
342
+ open,
343
+ close,
344
+ back,
345
+ setSlot
346
+ }), [
347
+ stack,
348
+ slot,
349
+ open,
350
+ close,
351
+ back
352
+ ]);
353
+ }
354
+ /** Where a card sits. */
355
+ function useEditorItemPlacement() {
356
+ return {
357
+ outer: React$1.useContext(EditorItemDepthContext) === 0,
358
+ row: React$1.useContext(EditorItemRowsContext)
359
+ };
360
+ }
361
+ /** A card's body, one level deeper than the card. The list the card sits in doesn't reach into it. */
362
+ function EditorItemNestedBody({ title, host, children }) {
363
+ const depth = React$1.useContext(EditorItemDepthContext);
364
+ const path = React$1.useContext(EditorItemPathContext);
365
+ const parentDrill = React$1.useContext(EditorItemDrillContext);
366
+ const childPath = React$1.useMemo(() => [...path, title], [path, title]);
367
+ return /* @__PURE__ */ jsx(EditorItemRowsContext.Provider, {
368
+ value: false,
369
+ children: /* @__PURE__ */ jsx(EditorItemDepthContext.Provider, {
370
+ value: depth + 1,
371
+ children: /* @__PURE__ */ jsx(EditorItemPathContext.Provider, {
372
+ value: childPath,
373
+ children: /* @__PURE__ */ jsx(EditorItemDrillContext.Provider, {
374
+ value: host ?? parentDrill,
375
+ children
376
+ })
377
+ })
378
+ })
379
+ });
380
+ }
381
+ /** Stands in for the outer card's header while a deep list is open: where you are, and the way back. */
382
+ function EditorItemDrillPath({ drill, testIdPrefix }) {
383
+ const top = drill.stack[drill.stack.length - 1];
384
+ const backRef = React$1.useRef(null);
385
+ const key = top?.key;
386
+ React$1.useEffect(() => {
387
+ if (key) backRef.current?.focus();
388
+ }, [key]);
389
+ if (!top) return /* @__PURE__ */ jsx(Fragment$1, {});
390
+ const previous = drill.stack[drill.stack.length - 2];
391
+ const backTo = previous?.path[previous.path.length - 1] ?? top.path[0] ?? "";
392
+ const [, ...rest] = top.path;
393
+ return /* @__PURE__ */ jsxs("nav", {
394
+ "aria-label": "Where you are",
395
+ "data-slot": "editor-item-drill-path",
396
+ "data-testid": `${testIdPrefix}-drill-path`,
397
+ className: "flex min-w-0 items-center gap-1.5 rounded-t-[16px] border-b border-border/70 bg-muted/50 py-2 pl-1.5 pr-3",
398
+ children: [/* @__PURE__ */ jsxs(Button$1, {
399
+ ref: backRef,
400
+ type: "button",
401
+ variant: "ghost",
402
+ size: "sm",
403
+ className: "shrink-0 px-1.5 text-primary",
404
+ onClick: drill.back,
405
+ "aria-label": `Back to ${backTo}`,
406
+ children: [/* @__PURE__ */ jsx(ChevronLeft, { "aria-hidden": "true" }), backTo]
407
+ }), rest.map((part, index) => /* @__PURE__ */ jsxs(React$1.Fragment, { children: [/* @__PURE__ */ jsx("span", {
408
+ "aria-hidden": "true",
409
+ className: "text-muted-foreground/60",
410
+ children: "/"
411
+ }), /* @__PURE__ */ jsx("span", {
412
+ className: cn("truncate text-sm", index === rest.length - 1 ? "font-semibold" : "text-muted-foreground"),
413
+ children: part
414
+ })] }, `${index}-${part}`))]
415
+ });
416
+ }
417
+ /** Where a deep list draws inside its outer card. */
418
+ function EditorItemDrillSlot({ host }) {
419
+ return /* @__PURE__ */ jsx("div", {
420
+ ref: host.setSlot,
421
+ hidden: host.stack.length === 0,
422
+ "data-slot": "editor-item-drill",
423
+ className: "p-3"
424
+ });
425
+ }
426
+ /**
427
+ * Escape goes back from an open deep list. The list draws through a portal,
428
+ * so its key events reach the outer card through React rather than the DOM;
429
+ * the card handles them, for its own path bar and slot only, and leaves
430
+ * Escape to any control inside that took it first.
431
+ */
432
+ function handleEditorItemDrillEscape(event, host) {
433
+ if (event.key !== "Escape" || event.defaultPrevented || host.stack.length === 0) return;
434
+ const target = event.target;
435
+ if (!(target instanceof Element) || !event.currentTarget.contains(target)) return;
436
+ if (!target.closest("[data-slot=\"editor-item-drill\"], [data-slot=\"editor-item-drill-path\"]")) return;
437
+ event.preventDefault();
438
+ event.stopPropagation();
439
+ host.back();
440
+ }
441
+ /**
442
+ * The parts of the page an editor's form draws into: its own element and,
443
+ * while a list inside it is open on its own, the outer card's slot for that
444
+ * list. For an editor that tracks focus or finds fields by looking in the DOM.
445
+ */
446
+ function editorItemFormSurfaces(root) {
447
+ const slot = root.closest("[data-editor-item-card]")?.querySelector("[data-slot=\"editor-item-drill\"]");
448
+ return slot && !root.contains(slot) ? [root, slot] : [root];
449
+ }
384
450
  /**
385
451
  * The gap between two items in an editor. Its insert actions appear when the
386
452
  * gap is hovered or when keyboard focus reaches it. Touch screens can't
387
453
  * 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.
454
+ * Between rows in a well there's no gap: the divider sits on the hairline
455
+ * and its button floats over it. Touch screens skip it there, and the list's
456
+ * own add button does the inserting.
390
457
  */
391
458
  function EditorItemInsertDivider({ actions, touch = "label" }) {
392
- const inList = React$1.useContext(EditorItemListContext);
459
+ const inRows = React$1.useContext(EditorItemRowsContext);
393
460
  const iconOnlyOnTouch = touch === "icon" && actions.length === 1;
461
+ if (inRows) return /* @__PURE__ */ jsx(EditorItemRowInsertDivider, { actions });
394
462
  return /* @__PURE__ */ jsxs("div", {
395
463
  "data-slot": "editor-item-insert-divider",
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"),
464
+ className: "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",
397
465
  children: [/* @__PURE__ */ jsx("div", { className: "w-full border-b" }), /* @__PURE__ */ jsx("div", {
398
466
  className: "pointer-events-none absolute inset-0 flex flex-wrap items-center justify-center gap-2",
399
467
  children: actions.map((action) => /* @__PURE__ */ jsxs(Button$1, {
@@ -413,6 +481,244 @@ function EditorItemInsertDivider({ actions, touch = "label" }) {
413
481
  })]
414
482
  });
415
483
  }
484
+ function EditorItemRowInsertDivider({ actions }) {
485
+ return /* @__PURE__ */ jsx("div", {
486
+ "data-slot": "editor-item-insert-divider",
487
+ className: "relative z-10 h-0 pointer-coarse:hidden",
488
+ children: /* @__PURE__ */ jsx("div", {
489
+ className: "absolute inset-x-0 -top-2 flex h-4 items-center justify-center gap-2 opacity-0 transition-opacity focus-within:opacity-100 hover:opacity-100",
490
+ children: actions.map((action) => /* @__PURE__ */ jsxs(Button$1, {
491
+ type: "button",
492
+ size: "sm",
493
+ variant: "secondary",
494
+ className: "h-6 px-2 text-xs shadow-sm",
495
+ onClick: action.onSelect,
496
+ children: [/* @__PURE__ */ jsx(Plus, {
497
+ className: "mr-1 h-3.5 w-3.5",
498
+ "aria-hidden": "true"
499
+ }), action.label]
500
+ }, action.label))
501
+ })
502
+ });
503
+ }
504
+ //#endregion
505
+ //#region ../ui/src/editor-item-card.tsx
506
+ const ROW = "rounded-none bg-transparent [--card-shadow:0_-1px_0_0_var(--color-border)]";
507
+ function editorItemCardClassName(input) {
508
+ return cn("w-full p-0 transition-colors", input.row ? ROW : "rounded-[16px]", input.state === "error" && "ring-2 ring-destructive", input.row && input.state === "error" && "ring-inset", input.className);
509
+ }
510
+ function editorItemCardData(state, row) {
511
+ return {
512
+ "data-editor-item-card": "",
513
+ "data-row": row ? "" : void 0,
514
+ "data-error": state === "error" ? "true" : void 0,
515
+ "data-editor-block-highlight": state === "highlighted" ? "true" : void 0
516
+ };
517
+ }
518
+ function isOpen(disclosure) {
519
+ return disclosure.kind === "static" || disclosure.open;
520
+ }
521
+ function hasNode(children) {
522
+ return children !== void 0 && children !== null && children !== false;
523
+ }
524
+ /** With nothing to disclose, an expand button would toggle nothing. */
525
+ function effectiveDisclosure(requested, hasContent, generatedId) {
526
+ if (!hasContent || requested.kind === "static") return {
527
+ disclosure: { kind: "static" },
528
+ contentId: void 0
529
+ };
530
+ return {
531
+ disclosure: requested,
532
+ contentId: requested.contentId ?? generatedId
533
+ };
534
+ }
535
+ /** An outer card hosts the deep lists inside it; a row draws inside the one it sits in. */
536
+ function EditorItemCard(props) {
537
+ const placement = useEditorItemPlacement();
538
+ if (placement.outer) return /* @__PURE__ */ jsx(OuterEditorItemCard, { ...props });
539
+ return /* @__PURE__ */ jsx(EditorItemCardView, {
540
+ ...props,
541
+ row: placement.row,
542
+ host: null
543
+ });
544
+ }
545
+ function OuterEditorItemCard({ onKeyDown, ...props }) {
546
+ const host = useEditorItemDrillHost();
547
+ return /* @__PURE__ */ jsx(EditorItemCardView, {
548
+ ...props,
549
+ row: false,
550
+ host,
551
+ onKeyDown: (event) => {
552
+ onKeyDown?.(event);
553
+ handleEditorItemDrillEscape(event, host);
554
+ }
555
+ });
556
+ }
557
+ function EditorItemCardView({ title, subtitle, icon, titleAdornment, state = "default", disclosure: requestedDisclosure, affordances, interactive = true, testIdPrefix = "editor-item-card", children, className, row, host, ...rootProps }) {
558
+ const generatedContentId = React$1.useId();
559
+ const hasContent = hasNode(children);
560
+ const { disclosure, contentId } = effectiveDisclosure(requestedDisclosure, hasContent, generatedContentId);
561
+ const header = host && host.stack.length > 0 ? /* @__PURE__ */ jsx(EditorItemDrillPath, {
562
+ drill: host,
563
+ testIdPrefix
564
+ }) : /* @__PURE__ */ jsx(EditorItemCardHeader, {
565
+ title,
566
+ subtitle,
567
+ icon,
568
+ titleAdornment,
569
+ disclosure,
570
+ contentId,
571
+ affordances,
572
+ interactive,
573
+ testIdPrefix,
574
+ row,
575
+ showsBody: hasContent && isOpen(disclosure)
576
+ });
577
+ return /* @__PURE__ */ jsx(Card, {
578
+ ...rootProps,
579
+ size: "none",
580
+ ...editorItemCardData(state, row),
581
+ className: editorItemCardClassName({
582
+ state,
583
+ row,
584
+ className
585
+ }),
586
+ children: /* @__PURE__ */ jsx(EditorItemCardBody, {
587
+ disclosure,
588
+ contentId,
589
+ header,
590
+ host,
591
+ children: hasContent ? /* @__PURE__ */ jsx(EditorItemNestedBody, {
592
+ title,
593
+ host,
594
+ children
595
+ }) : null
596
+ })
597
+ });
598
+ }
599
+ /**
600
+ * The card's content, and the slot a deep list draws into. While one is open
601
+ * the usual content stays mounted but hidden, because the open list is part
602
+ * of it and draws through a portal.
603
+ */
604
+ function EditorItemCardBody({ disclosure, contentId, header, host, children }) {
605
+ const content = children ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
606
+ hidden: host !== null && host.stack.length > 0,
607
+ children
608
+ }), host ? /* @__PURE__ */ jsx(EditorItemDrillSlot, { host }) : null] }) : null;
609
+ if (disclosure.kind === "static") return /* @__PURE__ */ jsxs(Fragment$1, { children: [header, content] });
610
+ return /* @__PURE__ */ jsxs(Collapsible, {
611
+ open: disclosure.open,
612
+ onOpenChange: disclosure.onOpenChange,
613
+ children: [header, content ? /* @__PURE__ */ jsx(CollapsibleContent, {
614
+ id: contentId,
615
+ children: content
616
+ }) : null]
617
+ });
618
+ }
619
+ function EditorItemCardIcon({ icon, row, testIdPrefix }) {
620
+ if (!icon) return null;
621
+ return /* @__PURE__ */ jsx("span", {
622
+ "aria-hidden": "true",
623
+ className: cn("shrink-0", row ? "text-muted-foreground" : "inline-flex size-8 items-center justify-center rounded-[9px] bg-primary/10 text-primary"),
624
+ "data-testid": `${testIdPrefix}-icon`,
625
+ children: icon
626
+ });
627
+ }
628
+ function EditorItemCardTitle({ title, subtitle, subtitleId, row, open, testIdPrefix }) {
629
+ return /* @__PURE__ */ jsxs("span", {
630
+ className: "block min-w-0 flex-1 overflow-hidden",
631
+ "data-testid": `${testIdPrefix}-title-shell`,
632
+ children: [/* @__PURE__ */ jsx("span", {
633
+ "data-slot": "card-title",
634
+ className: cn("line-clamp-2 break-words leading-tight", row ? "text-sm" : "text-[15px]", row && !open ? "font-medium" : "font-semibold"),
635
+ "data-testid": `${testIdPrefix}-title`,
636
+ children: title
637
+ }), subtitle ? /* @__PURE__ */ jsx("span", {
638
+ id: subtitleId,
639
+ className: cn("mt-0.5 block truncate text-muted-foreground", row ? "text-xs" : "text-[13px]"),
640
+ "data-testid": `${testIdPrefix}-subtitle`,
641
+ children: subtitle
642
+ }) : null]
643
+ });
644
+ }
645
+ function headerClassName(row, showsBody) {
646
+ return cn("flex flex-wrap items-center gap-1", row ? "py-1.5 pl-0.5 pr-1" : "py-2.5 pl-1.5 pr-2", !row && showsBody && "border-b border-border/70");
647
+ }
648
+ function EditorItemCardHeader(props) {
649
+ const { affordances, row, testIdPrefix } = props;
650
+ const full = affordances.kind === "full" ? affordances : null;
651
+ return /* @__PURE__ */ jsx("fieldset", {
652
+ className: "contents",
653
+ disabled: !props.interactive,
654
+ children: /* @__PURE__ */ jsxs("div", {
655
+ "data-slot": "editor-item-card-header",
656
+ "data-testid": `${testIdPrefix}-header`,
657
+ className: headerClassName(row, props.showsBody),
658
+ children: [/* @__PURE__ */ jsxs("div", {
659
+ className: cn("flex min-w-0 flex-1 items-center", row ? "gap-1.5" : "gap-2"),
660
+ children: [full?.dragHandle, /* @__PURE__ */ jsx(EditorItemCardTrigger, { ...props })]
661
+ }), full?.actions ? /* @__PURE__ */ jsx(EditorItemCardActions, {
662
+ testId: `${testIdPrefix}-actions`,
663
+ ...full.actions
664
+ }) : null]
665
+ })
666
+ });
667
+ }
668
+ /** The ids of the parts that are shown, or undefined when none are. */
669
+ function describedByIds(parts) {
670
+ const ids = parts.filter(([shown]) => Boolean(shown)).map(([, id]) => id);
671
+ return ids.length > 0 ? ids.join(" ") : void 0;
672
+ }
673
+ /**
674
+ * The title block, as the disclosure's trigger when the card opens. The
675
+ * trigger wraps only the title and chevron. The drag handle and actions are
676
+ * siblings, so using them can never toggle the card.
677
+ */
678
+ function EditorItemCardTrigger(props) {
679
+ const { title, subtitle, titleAdornment, disclosure, row, testIdPrefix } = props;
680
+ const subtitleId = React$1.useId();
681
+ const adornmentId = React$1.useId();
682
+ const open = disclosure.kind === "collapsible" && disclosure.open;
683
+ const titleBlock = /* @__PURE__ */ jsxs(Fragment$1, { children: [
684
+ /* @__PURE__ */ jsx(EditorItemCardIcon, {
685
+ icon: props.icon,
686
+ row,
687
+ testIdPrefix
688
+ }),
689
+ /* @__PURE__ */ jsx(EditorItemCardTitle, {
690
+ title,
691
+ subtitle,
692
+ subtitleId,
693
+ row,
694
+ open,
695
+ testIdPrefix
696
+ }),
697
+ titleAdornment ? /* @__PURE__ */ jsx("span", {
698
+ id: adornmentId,
699
+ className: "shrink-0",
700
+ children: titleAdornment
701
+ }) : null
702
+ ] });
703
+ if (disclosure.kind === "static") return /* @__PURE__ */ jsx("div", {
704
+ className: cn("flex min-w-0 flex-1 items-center px-1 py-1", row ? "gap-2" : "gap-2.5"),
705
+ children: titleBlock
706
+ });
707
+ const describedBy = describedByIds([[subtitle, subtitleId], [titleAdornment, adornmentId]]);
708
+ return /* @__PURE__ */ jsxs("button", {
709
+ type: "button",
710
+ className: cn("flex min-w-0 flex-1 items-center rounded-md py-1 text-left outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-wait disabled:opacity-60", row ? "gap-2" : "gap-2.5"),
711
+ "aria-expanded": disclosure.open,
712
+ "aria-controls": props.contentId,
713
+ "aria-label": `${disclosure.open ? "Collapse" : "Expand"} ${title}`,
714
+ "aria-describedby": describedBy,
715
+ onClick: () => disclosure.onOpenChange(!disclosure.open),
716
+ children: [titleBlock, /* @__PURE__ */ jsx(ChevronDown, {
717
+ "aria-hidden": "true",
718
+ className: cn("h-4 w-4 shrink-0 text-muted-foreground transition", disclosure.open && "rotate-180")
719
+ })]
720
+ });
721
+ }
416
722
  //#endregion
417
723
  //#region ../ui/src/editor-outline-row.tsx
418
724
  function EditorOutlineRow({ title, subtitle, icon, badge, attention, selected = false, dragHandle, menu, onSelect, selectLabel, selectRef, testIdPrefix = "editor-outline-row", className, ...props }) {
@@ -2609,7 +2915,7 @@ var Root$1 = Label$1;
2609
2915
  function Label({ className, ...props }) {
2610
2916
  return /* @__PURE__ */ jsx(Root$1, {
2611
2917
  "data-slot": "label",
2612
- className: cn("flex items-center gap-2 leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className),
2918
+ className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className),
2613
2919
  ...props
2614
2920
  });
2615
2921
  }
@@ -4598,7 +4904,7 @@ function EditorNavRow({ icon, title, description, onSelect, testId }) {
4598
4904
  type: "button",
4599
4905
  onClick: onSelect,
4600
4906
  "data-testid": testId,
4601
- className: "flex w-full items-center gap-3 rounded-2xl border bg-card px-3.5 py-3 text-left transition-colors hover:border-foreground/25 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&>svg:first-child]:h-[18px] [&>svg:first-child]:w-[18px]",
4907
+ className: "flex w-full items-center gap-3 rounded-xl border bg-card px-3.5 py-3 text-left transition-colors hover:border-foreground/25 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&>svg:first-child]:h-[18px] [&>svg:first-child]:w-[18px]",
4602
4908
  children: [
4603
4909
  icon,
4604
4910
  /* @__PURE__ */ jsxs("span", {
@@ -9457,35 +9763,37 @@ function BlockSourceLine({ source, siteId, dashboardBaseUrl = "", getValue = ()
9457
9763
  });
9458
9764
  }
9459
9765
  //#endregion
9766
+ //#region ../block-form/src/utils/visibilityValues.ts
9767
+ /** Effective presentation values override stored values for visibility only. */
9768
+ const VisibilityValuesContext = createContext({});
9769
+ function withVisibilityValues(reader, values) {
9770
+ return { getValue: (path) => Object.prototype.hasOwnProperty.call(values, path) ? values[path] : reader.getValue(path) };
9771
+ }
9772
+ function useVisibilityValueReader(reader) {
9773
+ const values = useContext(VisibilityValuesContext);
9774
+ return useMemo(() => withVisibilityValues(reader, values), [reader, values]);
9775
+ }
9776
+ //#endregion
9460
9777
  //#region ../block-form/src/widgets/LookField.tsx
9461
9778
  function LookField({ config, path, backend }) {
9462
9779
  const { value, setValue, error } = useField(path, backend);
9780
+ const current = value ?? config.defaultValue;
9463
9781
  return /* @__PURE__ */ jsx(FieldFrame, {
9464
9782
  label: config.label,
9465
9783
  description: config.description,
9466
9784
  required: config.required,
9467
9785
  error: error?.message,
9468
- children: ({ id, messageId }) => /* @__PURE__ */ jsx("div", {
9786
+ children: ({ id, describedBy }) => /* @__PURE__ */ jsx(ChoiceTileGroup, {
9469
9787
  id,
9470
- role: "radiogroup",
9471
- "aria-label": config.label,
9472
- "aria-describedby": messageId,
9473
- className: "grid grid-cols-2 gap-2",
9788
+ label: config.label,
9789
+ describedBy,
9474
9790
  "data-field-path": path,
9475
- children: config.options.map((option) => /* @__PURE__ */ jsx("button", {
9476
- type: "button",
9477
- role: "radio",
9478
- "aria-checked": (value ?? config.defaultValue) === option.value,
9479
- className: lookOptionClass((value ?? config.defaultValue) === option.value),
9480
- onClick: () => setValue(option.value),
9481
- children: option.label
9482
- }, option.value))
9791
+ options: config.options,
9792
+ value: typeof current === "string" ? current : null,
9793
+ onValueChange: setValue
9483
9794
  })
9484
9795
  });
9485
9796
  }
9486
- function lookOptionClass(selected) {
9487
- return ["min-h-10 rounded-md border px-2.5 py-2 text-left text-xs font-medium leading-4 text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", selected ? "border-foreground ring-1 ring-foreground" : "border-border bg-background hover:bg-muted"].join(" ");
9488
- }
9489
9797
  //#endregion
9490
9798
  //#region ../block-form/src/widgets/RepeaterField/components/layoutGridDomain.ts
9491
9799
  const MIN_GRID_UNIT = 1;
@@ -10904,39 +11212,9 @@ function useRepeaterHostActions(path) {
10904
11212
  }
10905
11213
  //#endregion
10906
11214
  //#region ../block-form/src/widgets/RepeaterField/hooks/useRepeaterVisibility.ts
10907
- /**
10908
- * Hook to handle repeater field visibility based on visibleWhen conditions
10909
- */
10910
11215
  function useRepeaterVisibility(field, backend, path) {
10911
- const pathSegments = useMemo(() => path.length ? path.split(".") : [], [path]);
10912
- const parentSegments = useMemo(() => pathSegments.length > 0 ? pathSegments.slice(0, -1) : [], [pathSegments]);
10913
- const visibleWhen = field.ui?.visibleWhen;
10914
- const conditions = useMemo(() => visibleWhen ? getVisibleWhenPredicates(visibleWhen) : [], [visibleWhen]);
10915
- const watchedValues = useMemo(() => {
10916
- if (conditions.length === 0) return [];
10917
- return conditions.map((condition) => {
10918
- const segments = condition.field.split(".");
10919
- const absolute = [...parentSegments, ...segments].filter((s) => s.length > 0).join(".");
10920
- return backend.getValue(absolute);
10921
- });
10922
- }, [
10923
- conditions,
10924
- parentSegments,
10925
- backend
10926
- ]);
10927
- const isHidden = Boolean(field.ui?.hidden);
10928
- const satisfiesCondition = useMemo(() => {
10929
- if (!visibleWhen) return true;
10930
- if (conditions.length === 0) return true;
10931
- return evaluateVisibleWhen(visibleWhen, (condition) => {
10932
- return evaluateVisibleWhenPredicate(condition, watchedValues[conditions.indexOf(condition)]);
10933
- });
10934
- }, [
10935
- visibleWhen,
10936
- conditions,
10937
- watchedValues
10938
- ]);
10939
- return !isHidden && satisfiesCondition;
11216
+ useBackendWatch(backend, collectVisibleWhenWatchPaths(field, path));
11217
+ return evaluateVisibility(field, useVisibilityValueReader(backend), path);
10940
11218
  }
10941
11219
  //#endregion
10942
11220
  //#region ../block-form/src/widgets/RepeaterField/hooks/useRepeaterRowErrors.ts
@@ -12890,7 +13168,7 @@ function getLayoutGridItemFields(config, backend, rowPath) {
12890
13168
  function getGridGapClassName(density) {
12891
13169
  return density === "compact" ? "gap-3" : "gap-4";
12892
13170
  }
12893
- function RepeaterLayoutGrid({ config, backend, basePath, items, minItems, onMove, onRemove, renderChild, presentation, onCapacityContextChange }) {
13171
+ function RepeaterLayoutGrid({ config, backend, basePath, items, minItems, onMove, onRemove, renderChild, presentation, onCapacityContextChange, mediaPickerAutoOpenRequest, onMediaPickerAutoOpenHandled }) {
12894
13172
  const { containerRef, containerWidth, breakpoint, canUsePointerDrag: canDrag } = useRepeaterPointerDragCapability(items.length);
12895
13173
  const hiddenDetailFieldIds = useMemo(() => /* @__PURE__ */ new Set([presentation.rowField, presentation.columnField]), [presentation.columnField, presentation.rowField]);
12896
13174
  const values = backend.getValues();
@@ -12998,7 +13276,7 @@ function RepeaterLayoutGrid({ config, backend, basePath, items, minItems, onMove
12998
13276
  onMove
12999
13277
  ]);
13000
13278
  const removeGridItem = (index) => {
13001
- if (layout.placementPolicy === "flow" && !invalidLayout) {
13279
+ if (layout.placementPolicy === "flow") {
13002
13280
  const [first, ...rest] = flowRepeaterGridItems(layoutItems.filter((item) => item.id !== items[index]?.id), layout.columns);
13003
13281
  if (first) applyGridMove({
13004
13282
  kind: "move",
@@ -13161,7 +13439,9 @@ function RepeaterLayoutGrid({ config, backend, basePath, items, minItems, onMove
13161
13439
  onMoveUp: () => moveItemToAdjacentVisualSlot(placement.id, -1),
13162
13440
  onMoveDown: () => moveItemToAdjacentVisualSlot(placement.id, 1),
13163
13441
  disableMoveUp: !moveAvailability?.canMoveEarlier,
13164
- disableMoveDown: !moveAvailability?.canMoveLater
13442
+ disableMoveDown: !moveAvailability?.canMoveLater,
13443
+ mediaPickerAutoOpenRequest: mediaPickerAutoOpenRequest?.targetIndex === index ? { requestId: mediaPickerAutoOpenRequest.requestId } : null,
13444
+ onMediaPickerAutoOpenHandled
13165
13445
  })
13166
13446
  })
13167
13447
  }, placement.id);
@@ -13295,6 +13575,7 @@ function RepeaterField({ path, backend, config, renderChild }) {
13295
13575
  const registeredHostActions = useRepeaterHostActions(path);
13296
13576
  const fieldState = backend.getFieldState(path);
13297
13577
  const isVisible = useRepeaterVisibility(config, backend, path);
13578
+ const focusPath = useFormFocusPath();
13298
13579
  const presentation = resolveRepeaterPresentation(config);
13299
13580
  const polymorphicWarnOnceRef = useRef(false);
13300
13581
  const labelFieldWarnOnceRef = useRef(false);
@@ -13361,6 +13642,9 @@ function RepeaterField({ path, backend, config, renderChild }) {
13361
13642
  index: nextIndex
13362
13643
  };
13363
13644
  };
13645
+ const handleMediaPickerAutoOpenHandled = (requestId) => {
13646
+ setMediaPickerAutoOpenRequest((current) => current?.requestId === requestId ? null : current);
13647
+ };
13364
13648
  const handleMove = (from, to) => {
13365
13649
  if (to < 0 || to >= repeaterOps.items.length) return;
13366
13650
  repeaterOps.move(from, to);
@@ -13371,73 +13655,77 @@ function RepeaterField({ path, backend, config, renderChild }) {
13371
13655
  if (!isVisible || !renderChild) return null;
13372
13656
  return /* @__PURE__ */ jsxs("div", {
13373
13657
  "data-field-path": path,
13374
- children: [
13375
- /* @__PURE__ */ jsx(RepeaterHeader, {
13376
- label: shownLabel(config),
13377
- description: config.description,
13378
- required: config.required
13379
- }),
13380
- useLayoutGrid ? /* @__PURE__ */ jsx(RepeaterLayoutGrid, {
13381
- config,
13382
- backend,
13383
- basePath: path,
13384
- items: repeaterOps.items,
13385
- minItems,
13386
- onMove: handleMove,
13387
- onRemove: handleRemove,
13388
- renderChild,
13389
- presentation,
13390
- onCapacityContextChange: onLayoutGridCapacityContextChange
13391
- }) : useThumbnailGrid ? /* @__PURE__ */ jsx(RepeaterThumbnailGrid, {
13392
- config,
13393
- backend,
13394
- basePath: path,
13395
- items: repeaterOps.items,
13396
- minItems,
13397
- onAdd: () => handleAdd(void 0, { kind: "open-thumbnail-media-picker" }),
13398
- mediaPickerAutoOpenRequest,
13399
- onMediaPickerAutoOpenHandled: (requestId) => {
13400
- setMediaPickerAutoOpenRequest((current) => current?.requestId === requestId ? null : current);
13401
- },
13402
- onMove: handleMove,
13403
- onRemove: handleRemove,
13404
- renderChild,
13405
- presentation
13406
- }) : showHostEmptyState ? /* @__PURE__ */ jsx("div", {
13407
- ref: emptyStateRef,
13408
- children: hostActions.emptyState
13409
- }) : /* @__PURE__ */ jsx(RepeaterList, {
13410
- config,
13411
- backend,
13412
- basePath: path,
13413
- items: repeaterOps.items,
13414
- minItems,
13415
- maxItems,
13416
- onMove: handleMove,
13417
- onRemove: handleRemove,
13418
- renderChild,
13419
- focusFallbackRef: addButtonRef,
13420
- hostActions
13421
- }),
13422
- showAddControls ? /* @__PURE__ */ jsx(RepeaterAddControls, {
13423
- buttonRef: addButtonRef,
13424
- disabled: addDisabled,
13425
- config,
13426
- hostActions,
13427
- canAddType: (typeKey) => !useLayoutGrid || Boolean(polymorphicTypeCanAdd.get(typeKey)),
13428
- onAdd: (typeKey) => {
13429
- if (!typeKey && hostActions.requestAdd) {
13430
- hostActions.requestAdd(repeaterOps.items.length);
13431
- return;
13658
+ children: [/* @__PURE__ */ jsx(RepeaterHeader, {
13659
+ label: shownLabel(config),
13660
+ description: config.description,
13661
+ required: config.required
13662
+ }), /* @__PURE__ */ jsxs(EditorItemNestedList, {
13663
+ label: config.label,
13664
+ itemCount: repeaterOps.items.length,
13665
+ revealed: focusPathIsWithin(focusPath, path),
13666
+ children: [
13667
+ useLayoutGrid ? /* @__PURE__ */ jsx(RepeaterLayoutGrid, {
13668
+ config,
13669
+ backend,
13670
+ basePath: path,
13671
+ items: repeaterOps.items,
13672
+ minItems,
13673
+ onMove: handleMove,
13674
+ onRemove: handleRemove,
13675
+ renderChild,
13676
+ presentation,
13677
+ onCapacityContextChange: onLayoutGridCapacityContextChange,
13678
+ mediaPickerAutoOpenRequest,
13679
+ onMediaPickerAutoOpenHandled: handleMediaPickerAutoOpenHandled
13680
+ }) : useThumbnailGrid ? /* @__PURE__ */ jsx(RepeaterThumbnailGrid, {
13681
+ config,
13682
+ backend,
13683
+ basePath: path,
13684
+ items: repeaterOps.items,
13685
+ minItems,
13686
+ onAdd: () => handleAdd(void 0, { kind: "open-thumbnail-media-picker" }),
13687
+ mediaPickerAutoOpenRequest,
13688
+ onMediaPickerAutoOpenHandled: handleMediaPickerAutoOpenHandled,
13689
+ onMove: handleMove,
13690
+ onRemove: handleRemove,
13691
+ renderChild,
13692
+ presentation
13693
+ }) : showHostEmptyState ? /* @__PURE__ */ jsx("div", {
13694
+ ref: emptyStateRef,
13695
+ children: hostActions.emptyState
13696
+ }) : /* @__PURE__ */ jsx(RepeaterList, {
13697
+ config,
13698
+ backend,
13699
+ basePath: path,
13700
+ items: repeaterOps.items,
13701
+ minItems,
13702
+ maxItems,
13703
+ onMove: handleMove,
13704
+ onRemove: handleRemove,
13705
+ renderChild,
13706
+ focusFallbackRef: addButtonRef,
13707
+ hostActions
13708
+ }),
13709
+ showAddControls ? /* @__PURE__ */ jsx(RepeaterAddControls, {
13710
+ buttonRef: addButtonRef,
13711
+ disabled: addDisabled,
13712
+ config,
13713
+ hostActions,
13714
+ canAddType: (typeKey) => !useLayoutGrid || Boolean(polymorphicTypeCanAdd.get(typeKey)),
13715
+ onAdd: (typeKey) => {
13716
+ if (!typeKey && hostActions.requestAdd) {
13717
+ hostActions.requestAdd(repeaterOps.items.length);
13718
+ return;
13719
+ }
13720
+ handleAdd(typeKey, useLayoutGrid ? { kind: "open-thumbnail-media-picker" } : noAddFollowUp);
13432
13721
  }
13433
- handleAdd(typeKey);
13434
- }
13435
- }) : null,
13436
- /* @__PURE__ */ jsx(RepeaterError, {
13437
- error: fieldState.error,
13438
- fieldPath: path
13439
- })
13440
- ]
13722
+ }) : null,
13723
+ /* @__PURE__ */ jsx(RepeaterError, {
13724
+ error: fieldState.error,
13725
+ fieldPath: path
13726
+ })
13727
+ ]
13728
+ })]
13441
13729
  });
13442
13730
  }
13443
13731
  /** Host actions apply to plain stacked lists of one item type only. */
@@ -21610,11 +21898,11 @@ const WIDGET_COMPONENTS = {
21610
21898
  * 3. Shows/hides field accordingly
21611
21899
  */
21612
21900
  function VisibilityWrapper({ field, path, backend, children }) {
21613
- if (field.ui?.hidden) return null;
21901
+ const reader = useVisibilityValueReader(backend);
21614
21902
  const watchedPaths = useMemo(() => collectVisibleWhenWatchPaths(field, path), [field, path]);
21615
- return useMemo(() => evaluateVisibility(field, backend, path), [
21903
+ return useMemo(() => evaluateVisibility(field, reader, path), [
21616
21904
  field,
21617
- backend,
21905
+ reader,
21618
21906
  path,
21619
21907
  useBackendWatch(backend, watchedPaths.length ? watchedPaths : path)
21620
21908
  ]) ? children : null;
@@ -21685,10 +21973,18 @@ function PromotedFieldSection({ items, renderField, backend }) {
21685
21973
  */
21686
21974
  function FormRenderer(props) {
21687
21975
  useBackendWatch(props.backend, props.fields.map((field) => field.id));
21688
- const plan = props.sectionPlan ?? derivePromotedFieldPlan(props.fields, props.promotedFields, (path) => path === "blockLook" && props.visibilityValues ? props.visibilityValues.lookId : path === props.visibilityValues?.arrangementField ? props.visibilityValues.arrangement : props.backend.getValue(path) ?? props.fields.find((field) => field.id === path)?.defaultValue, props.sectionOptions);
21689
- return /* @__PURE__ */ jsx(FormRendererContent, {
21690
- ...props,
21691
- promotedPlan: plan
21976
+ const values = useMemo(() => props.visibilityValues ? {
21977
+ blockLook: props.visibilityValues.lookId,
21978
+ [props.visibilityValues.arrangementField]: props.visibilityValues.arrangement
21979
+ } : {}, [props.visibilityValues]);
21980
+ const reader = withVisibilityValues(props.backend, values);
21981
+ const plan = props.sectionPlan ?? derivePromotedFieldPlan(props.fields, props.promotedFields, (path) => reader.getValue(path) ?? props.fields.find((field) => field.id === path)?.defaultValue, props.sectionOptions);
21982
+ return /* @__PURE__ */ jsx(VisibilityValuesContext.Provider, {
21983
+ value: values,
21984
+ children: /* @__PURE__ */ jsx(FormRendererContent, {
21985
+ ...props,
21986
+ promotedPlan: plan
21987
+ })
21692
21988
  });
21693
21989
  }
21694
21990
  /** Widget dispatch and recursion share the same backend, overrides and wrapping policy. */
@@ -22218,7 +22514,7 @@ function BackgroundGradientWidget({ label, value, onChange, description, error,
22218
22514
  "aria-label": `${preset.name}, ${kindLabel} gradient`,
22219
22515
  "aria-pressed": isSelected,
22220
22516
  onClick: () => handleSelectPreset(preset.id),
22221
- className: cn("group flex flex-col gap-2 rounded-md border p-2 text-left transition", isSelected ? "border-foreground bg-accent/30" : "border-muted-foreground/30 bg-background hover:bg-muted/40"),
22517
+ className: cn("group flex flex-col gap-2 rounded-md border p-2 text-left transition", isSelected ? CHOSEN_OPTION_CLASS : "border-muted-foreground/30 bg-background hover:bg-muted/40"),
22222
22518
  children: [/* @__PURE__ */ jsx("span", {
22223
22519
  "aria-hidden": "true",
22224
22520
  className: "h-16 w-full rounded-sm",
@@ -22425,7 +22721,7 @@ function BlockForm({ siteId, block, manifest, uiStore, hasRecoveryConflict = fal
22425
22721
  onBlurCapture: (event) => {
22426
22722
  const root = formRootRef.current;
22427
22723
  const nextTarget = event.relatedTarget;
22428
- if (!root || !(nextTarget instanceof HTMLElement) || !root.contains(nextTarget)) {
22724
+ if (!root || !(nextTarget instanceof HTMLElement) || !formContains(root, nextTarget)) {
22429
22725
  uiStore.getState().setActivePreviewField(null);
22430
22726
  return;
22431
22727
  }
@@ -22483,7 +22779,7 @@ function useBlockFormFocus({ enabled, focusSignal, formRootRef, onFocusHandled }
22483
22779
  const timer = window.setTimeout(() => {
22484
22780
  const root = formRootRef.current;
22485
22781
  if (!root) return onFocusHandled?.(focusSignal.requestId);
22486
- const target = path ? root.querySelector(`[data-field-path="${path}"]`) ?? root : root;
22782
+ const target = path ? findInForm(root, `[data-field-path="${path}"]`) ?? root : root;
22487
22783
  const disclosure = target.closest("details");
22488
22784
  if (disclosure) disclosure.open = true;
22489
22785
  try {
@@ -22507,6 +22803,16 @@ function useBlockFormFocus({ enabled, focusSignal, formRootRef, onFocusHandled }
22507
22803
  onFocusHandled
22508
22804
  ]);
22509
22805
  }
22806
+ function formContains(root, node) {
22807
+ return editorItemFormSurfaces(root).some((surface) => surface.contains(node));
22808
+ }
22809
+ function findInForm(root, selector) {
22810
+ for (const surface of editorItemFormSurfaces(root)) {
22811
+ const found = surface.querySelector(selector);
22812
+ if (found) return found;
22813
+ }
22814
+ return null;
22815
+ }
22510
22816
  function normalizeFocusPath(path) {
22511
22817
  if (!path) return null;
22512
22818
  return (path.startsWith("content.") ? path.slice(8) : path).replace(/\[(\d+)\]/g, ".$1");
@@ -22514,7 +22820,7 @@ function normalizeFocusPath(path) {
22514
22820
  function resolvePreviewFieldPathForTarget(target, root) {
22515
22821
  if (!(target instanceof HTMLElement)) return null;
22516
22822
  const fieldElement = target.closest("[data-field-path]");
22517
- if (!fieldElement || !root.contains(fieldElement)) return null;
22823
+ if (!fieldElement || !formContains(root, fieldElement)) return null;
22518
22824
  const fieldPath = fieldElement.dataset.fieldPath;
22519
22825
  if (!fieldPath) return null;
22520
22826
  const normalizedPath = normalizeFocusPath(fieldPath);
@@ -23314,7 +23620,7 @@ function FeatureCardIconsPanel({ block, uiStore, currentStyleGuideVersionId, ico
23314
23620
  //#region ../editor-blocks/src/block-editor/BlockCardBody.tsx
23315
23621
  function BlockCardBody({ siteId, renderPreviewLink, block, manifest, uiStore, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, hideThemeV2RawStyleFields = false, pageDesignBlock = null, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet }) {
23316
23622
  return /* @__PURE__ */ jsxs(CardContent, {
23317
- className: "space-y-4 pb-6 max-sm:px-3 max-sm:pb-3",
23623
+ className: "space-y-4 pb-6 pt-5 max-sm:px-3 max-sm:pb-3 max-sm:pt-4",
23318
23624
  children: [/* @__PURE__ */ jsx(FeatureCardIconsPanel, {
23319
23625
  block,
23320
23626
  uiStore,
@@ -28432,6 +28738,10 @@ function sourceAvailability(input) {
28432
28738
  hasEngagementSource: input.hasEngagementSource ?? false
28433
28739
  };
28434
28740
  }
28741
+ function missingSourceStatus(section) {
28742
+ if (section.kind === "supporting-text" || section.kind === "legal") return "Add text to show this section on the public site.";
28743
+ return section.kind === "legal-navigation" ? "Shows on the public site once you add a legal link." : "Hidden on the public site until its details are added.";
28744
+ }
28435
28745
  function sectionPlan(section, selected, missingSource, canEdit) {
28436
28746
  const actions = canEdit ? [
28437
28747
  "edit",
@@ -28445,7 +28755,7 @@ function sectionPlan(section, selected, missingSource, canEdit) {
28445
28755
  selected,
28446
28756
  source: sourceFor(section),
28447
28757
  availability: missingSource ? "missing-source" : "ready",
28448
- status: missingSource ? section.kind === "supporting-text" || section.kind === "legal" ? "Add text to show this section on the public site." : "Hidden on the public site until its details are added." : null,
28758
+ status: missingSource ? missingSourceStatus(section) : null,
28449
28759
  actions
28450
28760
  };
28451
28761
  }
@@ -32761,7 +33071,7 @@ function LookChoiceTile({ tile, colours, onChoose, defaultBadge = "Default" }) {
32761
33071
  "aria-pressed": tile.selected,
32762
33072
  onClick: () => onChoose(tile.pin),
32763
33073
  "aria-description": tile.isDefault && tile.key !== "style-default" ? defaultBadge : void 0,
32764
- className: cn("relative flex min-w-0 flex-col gap-1.5 rounded-[14px] border bg-card p-1.5 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", tile.selected ? "border-primary shadow-[0_0_0_2px_var(--primary)]" : "border-border hover:border-foreground/30"),
33074
+ className: cn("relative flex min-w-0 flex-col gap-1.5 rounded-[14px] border bg-card p-1.5 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", tile.selected ? CHOSEN_OPTION_CLASS : "border-border hover:border-foreground/30"),
32765
33075
  children: [
32766
33076
  tile.thumbnail ? /* @__PURE__ */ jsx(LookThumbnailView, {
32767
33077
  thumbnail: tile.thumbnail,
@@ -33523,7 +33833,7 @@ function ButtonHoverRoleEditor({ id, role, groupName, control, current, preferen
33523
33833
  }
33524
33834
  function HoverChoice({ role, groupName, parameter, value, label, checked, current, onPreview }) {
33525
33835
  return /* @__PURE__ */ jsxs("label", {
33526
- className: cn("flex cursor-pointer items-center gap-2 rounded-md border px-2 py-2 text-xs has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-ring", checked ? "border-foreground bg-accent/30" : "border-border"),
33836
+ className: cn("flex cursor-pointer items-center gap-2 rounded-md border px-2 py-2 text-xs has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-ring", checked ? CHOSEN_OPTION_CLASS : "border-border"),
33527
33837
  children: [/* @__PURE__ */ jsx("input", {
33528
33838
  type: "radio",
33529
33839
  "data-testid": `button-hover-choice-${role}-${value ?? "recommended"}`,
@@ -33582,7 +33892,7 @@ function ButtonStylePicker({ selections, current, previewTheme, onPreview, disab
33582
33892
  const optionRecipe = findButtonStyleRecipe(selection.styleId);
33583
33893
  const selected = selection.styleId === current.styleId;
33584
33894
  return /* @__PURE__ */ jsxs("label", {
33585
- className: cn("relative block cursor-pointer rounded-md border p-2 transition has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-ring has-[:focus-visible]:ring-offset-2", selected ? "border-foreground bg-accent/40 shadow-sm" : "border-border bg-background hover:border-foreground/40 hover:bg-accent/20", disabled && "cursor-not-allowed opacity-60"),
33895
+ className: cn("relative block cursor-pointer rounded-md border p-2 transition has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-ring has-[:focus-visible]:ring-offset-2", selected ? CHOSEN_OPTION_CLASS : "border-border bg-background hover:border-foreground/40 hover:bg-accent/20", disabled && "cursor-not-allowed opacity-60"),
33586
33896
  children: [
33587
33897
  /* @__PURE__ */ jsx("input", {
33588
33898
  type: "radio",
@@ -33634,7 +33944,7 @@ function ButtonStyleChoiceControl({ control, current, onPreview, disabled }) {
33634
33944
  }), /* @__PURE__ */ jsx("div", {
33635
33945
  className: "grid grid-cols-2 gap-2",
33636
33946
  children: control.options.map((option) => /* @__PURE__ */ jsxs("label", {
33637
- className: cn("relative cursor-pointer rounded-md border px-2 py-1.5 text-center text-xs has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-ring has-[:focus-visible]:ring-offset-2", currentValue === option.value ? "border-foreground bg-accent/40" : "border-border hover:border-foreground/40"),
33947
+ className: cn("relative cursor-pointer rounded-md border px-2 py-1.5 text-center text-xs has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-ring has-[:focus-visible]:ring-offset-2", currentValue === option.value ? CHOSEN_OPTION_CLASS : "border-border hover:border-foreground/40"),
33638
33948
  children: [/* @__PURE__ */ jsx("input", {
33639
33949
  type: "radio",
33640
33950
  name: `button-style-${current.styleId}-${control.parameter}`,
@@ -33787,7 +34097,7 @@ function PickerOption({ selected, label, description, swatch, onSelect, disabled
33787
34097
  "aria-checked": selected,
33788
34098
  onClick: onSelect,
33789
34099
  disabled,
33790
- className: cn("flex w-full items-center gap-3 rounded-md border px-3 py-2 text-left transition", selected ? "border-foreground bg-accent/40 shadow-sm" : "border-transparent bg-background hover:border-foreground/40 hover:bg-accent/20", disabled && "cursor-not-allowed opacity-60"),
34100
+ className: cn("flex w-full items-center gap-3 rounded-md border px-3 py-2 text-left transition", selected ? CHOSEN_OPTION_CLASS : "border-transparent bg-background hover:border-foreground/40 hover:bg-accent/20", disabled && "cursor-not-allowed opacity-60"),
33791
34101
  children: [swatch ? /* @__PURE__ */ jsx("span", {
33792
34102
  className: "h-5 w-5 shrink-0 rounded-full border border-black/10",
33793
34103
  style: { backgroundColor: swatch },
@@ -34072,6 +34382,24 @@ const typographyFontCategories = [
34072
34382
  label: "Mono"
34073
34383
  }
34074
34384
  ];
34385
+ /**
34386
+ * Display and handwriting faces are drawn for a few large words. Set as
34387
+ * paragraphs and navigation they're hard to read, so the body slot doesn't
34388
+ * offer them. A site's own uploaded fonts stay on offer, because someone chose
34389
+ * those on purpose, and so do fonts Google hasn't given a category.
34390
+ */
34391
+ const headingOnlyCategories = /* @__PURE__ */ new Set(["display", "handwriting"]);
34392
+ /** The category filters a slot shows: the body slot leaves out the ones it doesn't offer. */
34393
+ function typographyFontCategoriesForSlot(slot) {
34394
+ return slot === "body" ? typographyFontCategories.filter((option) => !headingOnlyCategories.has(option.value)) : typographyFontCategories;
34395
+ }
34396
+ function fontOptionSuitsSlot(option, slot) {
34397
+ return slot === "heading" || option.source === "site" || option.category === null || !headingOnlyCategories.has(option.category);
34398
+ }
34399
+ /** The Google families a slot can offer, before any search or category. */
34400
+ function googleFontsForSlot(googleFonts, slot) {
34401
+ return googleFonts.filter((font) => !/^material (?:icons|symbols)(?:\s|$)/iu.test(font.family.trim())).filter((font) => fontOptionSuitsSlot(googleFontOption(font), slot));
34402
+ }
34075
34403
  /** The name a category goes by, on its filter and beside a font in the list. */
34076
34404
  function typographyFontCategoryLabel(category) {
34077
34405
  return typographyFontCategories.find((option) => option.value === category)?.label ?? category;
@@ -34082,7 +34410,7 @@ function buildTypographyFontCatalog(input) {
34082
34410
  const siteFamilies = new Set(input.siteFonts.map((font) => familyKey(font.familyName)));
34083
34411
  return {
34084
34412
  site,
34085
- google: input.googleFonts.filter((font) => !/^material (?:icons|symbols)(?:\s|$)/iu.test(font.family.trim())).map(googleFontOption).filter((option) => !siteFamilies.has(familyKey(option.family))).filter((option) => fontOptionMatches(option, normalizedQuery, input.category)).sort(compareGoogleOptions)
34413
+ google: googleFontsForSlot(input.googleFonts, input.slot).map(googleFontOption).filter((option) => !siteFamilies.has(familyKey(option.family))).filter((option) => fontOptionMatches(option, normalizedQuery, input.category)).sort(compareGoogleOptions)
34086
34414
  };
34087
34415
  }
34088
34416
  /**
@@ -34658,18 +34986,12 @@ function TypographyColorTokenControl({ value, onChange, disabled }) {
34658
34986
  " (outside quick choices)"
34659
34987
  ]
34660
34988
  }) : null
34661
- ] }), /* @__PURE__ */ jsx("div", {
34662
- className: "grid grid-cols-2 gap-1",
34663
- children: headingColorTokenOptions.map((option) => /* @__PURE__ */ jsx(Button$1, {
34664
- type: "button",
34665
- size: "sm",
34666
- variant: value.kind === "curated" && value.value === option.value ? "secondary" : "outline",
34667
- className: "justify-start text-xs",
34668
- "aria-pressed": value.kind === "curated" && value.value === option.value,
34669
- onClick: () => onChange(option.value),
34670
- disabled,
34671
- children: option.label
34672
- }, option.value))
34989
+ ] }), /* @__PURE__ */ jsx(ChoiceTileGroup, {
34990
+ label: "Default heading color",
34991
+ options: headingColorTokenOptions,
34992
+ value: value.kind === "curated" ? value.value : null,
34993
+ onValueChange: onChange,
34994
+ disabled
34673
34995
  })]
34674
34996
  });
34675
34997
  }
@@ -34869,6 +35191,7 @@ function buildFontPickerView(input) {
34869
35191
  const options = splitSuggestedFontOptions(buildTypographyFontCatalog({
34870
35192
  googleFonts: input.catalog.google.value,
34871
35193
  siteFonts: input.catalog.site.value,
35194
+ slot: input.slot,
34872
35195
  query: input.query,
34873
35196
  category: input.category
34874
35197
  }), input.suggested?.families ?? []);
@@ -34900,7 +35223,7 @@ function buildFontPickerView(input) {
34900
35223
  searching,
34901
35224
  shown,
34902
35225
  available: shown + held,
34903
- total: input.catalog.google.value.length + input.catalog.site.value.length,
35226
+ total: googleFontsForSlot(input.catalog.google.value, input.slot).length + input.catalog.site.value.length,
34904
35227
  loaded: input.catalog.google.kind === "loaded" && input.catalog.site.kind === "loaded"
34905
35228
  })
34906
35229
  };
@@ -34912,11 +35235,13 @@ function buildFontPickerView(input) {
34912
35235
  */
34913
35236
  function useFontPicker({ slot, value, catalog, suggested }) {
34914
35237
  const [query, setQuery] = useState("");
34915
- const [category, setCategory] = useState("all");
35238
+ const [chosenCategory, setCategory] = useState("all");
35239
+ const category = typographyFontCategoriesForSlot(slot).some((option) => option.value === chosenCategory) ? chosenCategory : "all";
34916
35240
  const [googleLimit, setGoogleLimit] = useState(24);
34917
35241
  const selectedFamily = primaryFontFamily(value);
34918
35242
  const view = useMemo(() => buildFontPickerView({
34919
35243
  catalog,
35244
+ slot,
34920
35245
  query,
34921
35246
  category,
34922
35247
  selectedFamily,
@@ -34928,6 +35253,7 @@ function useFontPicker({ slot, value, catalog, suggested }) {
34928
35253
  googleLimit,
34929
35254
  query,
34930
35255
  selectedFamily,
35256
+ slot,
34931
35257
  suggested
34932
35258
  ]);
34933
35259
  const listRef = useRef(null);
@@ -34992,6 +35318,7 @@ function TypographyFontPickerTakeover(props) {
34992
35318
  }),
34993
35319
  /* @__PURE__ */ jsx(FontCategoryFilter, {
34994
35320
  layout,
35321
+ slot,
34995
35322
  value: picker.category,
34996
35323
  onChange: picker.setCategory,
34997
35324
  disabled
@@ -35086,12 +35413,12 @@ function FontPickerTitleBar({ title, selectedFamily, onBack }) {
35086
35413
  });
35087
35414
  }
35088
35415
  /** The categories as pills that wrap; the chosen one is filled. */
35089
- function FontCategoryFilter({ layout, value, onChange, disabled }) {
35416
+ function FontCategoryFilter({ layout, slot, value, onChange, disabled }) {
35090
35417
  return /* @__PURE__ */ jsx("div", {
35091
35418
  role: "group",
35092
35419
  "aria-label": fontPickerCopy.categoryGroup,
35093
35420
  className: cn("flex flex-wrap gap-[6px]", layout === "inline" && "mt-[10px]"),
35094
- children: typographyFontCategories.map((option) => /* @__PURE__ */ jsx("button", {
35421
+ children: typographyFontCategoriesForSlot(slot).map((option) => /* @__PURE__ */ jsx("button", {
35095
35422
  type: "button",
35096
35423
  "aria-pressed": value === option.value,
35097
35424
  className: cn("rounded-full border border-transparent px-[12px] py-[5px] text-[0.84rem] leading-[1.2] transition disabled:cursor-not-allowed disabled:opacity-50", fontPickerFocus, value === option.value ? cn("font-medium", fontPickerInk, fontPickerField) : cn(fontPickerMuted, "hover:text-foreground")),
@@ -35645,7 +35972,7 @@ function CuratedPaletteGroup({ label, items, selectedValueKey, offset, optionPro
35645
35972
  type: "button",
35646
35973
  "aria-label": `${item.name}. ${item.description}`,
35647
35974
  disabled,
35648
- className: cn("relative h-10 overflow-hidden rounded-md border p-0.5 outline-none transition focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", item.valueKey === selectedValueKey ? "border-foreground ring-1 ring-foreground" : "border-border hover:border-foreground/60"),
35975
+ className: cn("relative h-10 overflow-hidden rounded-md border p-0.5 outline-none transition focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", item.valueKey === selectedValueKey ? CHOSEN_OPTION_CLASS : "border-border hover:border-foreground/60"),
35649
35976
  children: [/* @__PURE__ */ jsx("span", {
35650
35977
  className: "grid h-full grid-cols-5 overflow-hidden rounded-[3px]",
35651
35978
  "aria-hidden": "true",
@@ -35862,7 +36189,7 @@ function SelectedBlockModeControl(props) {
35862
36189
  role: "radio",
35863
36190
  "aria-checked": mode.current === option.mode,
35864
36191
  onClick: () => toolbar.chooseMode(option.mode),
35865
- className: `flex-1 truncate rounded-full px-2 py-1.5 text-[13px] font-semibold focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${mode.current === option.mode ? "bg-foreground text-background" : "text-foreground hover:bg-background/70"}`,
36192
+ className: `flex-1 truncate rounded-full px-2 py-1.5 text-[13px] font-semibold focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${mode.current === option.mode ? "bg-primary text-primary-foreground" : "text-foreground hover:bg-background/70"}`,
35866
36193
  children: option.label
35867
36194
  }, option.mode))
35868
36195
  })]
@@ -36173,7 +36500,7 @@ function Choice({ label, chosen, chip = false, onChoose }) {
36173
36500
  role: "radio",
36174
36501
  "aria-checked": chosen,
36175
36502
  onClick: onChoose,
36176
- className: cn("truncate rounded-full text-[13px] font-semibold focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", chip ? "border px-2.5 py-1" : "flex-1 px-2 py-1.5", chosen ? "border-foreground bg-foreground text-background" : chip ? "border-border hover:bg-muted" : "text-foreground hover:bg-background/70"),
36503
+ className: cn("truncate rounded-full text-[13px] font-semibold focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", chip ? "border px-2.5 py-1" : "flex-1 px-2 py-1.5", chosen ? chip ? CHOSEN_OPTION_CLASS : "bg-primary text-primary-foreground" : chip ? "border-border hover:bg-muted" : "text-foreground hover:bg-background/70"),
36177
36504
  children: label
36178
36505
  });
36179
36506
  }
@@ -36255,7 +36582,7 @@ function SelectedBlockCustomizeFields({ block, blockId, uiStoreForBlockEditor, t
36255
36582
  designBlock
36256
36583
  });
36257
36584
  const showsLook = customizeControls.lookSource.kind !== "sdk" && designBlock !== null;
36258
- const needs = useBlockNeedsSetup(String(blockId));
36585
+ const notice = useBlockNotice(String(blockId));
36259
36586
  const lookFooter = useSectionBreakFooter(String(blockId), sdkConfig);
36260
36587
  const focusSignal = useUISelector(uiStoreForBlockEditor, (state) => state.focusRequest?.blockId === blockId ? state.focusRequest : null);
36261
36588
  const onFocusHandled = useCallback((requestId) => {
@@ -36288,7 +36615,7 @@ function SelectedBlockCustomizeFields({ block, blockId, uiStoreForBlockEditor, t
36288
36615
  }) : void 0,
36289
36616
  lookOptions: showsLook ? /* @__PURE__ */ jsx(SelectedBlockLookOptions, { look }) : void 0,
36290
36617
  lookFooter,
36291
- whatItShowsLead: whatItShowsLead(needs, !showsLook || !offersModeChoice(designBlock, blockContent) ? null : /* @__PURE__ */ jsx(SelectedBlockModeControl, {
36618
+ whatItShowsLead: whatItShowsLead(notice, !showsLook || !offersModeChoice(designBlock, blockContent) ? null : /* @__PURE__ */ jsx(SelectedBlockModeControl, {
36292
36619
  blockId,
36293
36620
  blockKind: block.kind,
36294
36621
  content: blockContent,
@@ -36311,17 +36638,28 @@ function useBlockCurrentValues(store, blockId, fallback) {
36311
36638
  function readBlockCurrentValues(store, blockId, fallback) {
36312
36639
  return store.getState().drafts.getCurrentValues(blockId) ?? fallback;
36313
36640
  }
36314
- /** What it shows opens with what's missing, if anything, then the block's choice of view. */
36315
- function whatItShowsLead(needs, mode) {
36316
- if (!needs && !mode) return void 0;
36317
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [needs ? /* @__PURE__ */ jsxs("p", {
36318
- role: "note",
36319
- className: "flex gap-2 rounded-lg border border-amber-300 bg-amber-50 px-3 py-2.5 text-[13px] leading-snug text-amber-950",
36320
- children: [/* @__PURE__ */ jsx(TriangleAlert, {
36321
- className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-amber-600",
36322
- "aria-hidden": "true"
36323
- }), needsSetupMessage(needs)]
36324
- }) : null, mode] });
36641
+ /** What it shows opens with why visitors can't see it, if they can't, then the block's choice of view. */
36642
+ function whatItShowsLead(notice, mode) {
36643
+ if (!notice && !mode) return void 0;
36644
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
36645
+ notice?.kind === "NeedsSetup" ? /* @__PURE__ */ jsxs("p", {
36646
+ role: "note",
36647
+ className: "flex gap-2 rounded-lg border border-amber-300 bg-amber-50 px-3 py-2.5 text-[13px] leading-snug text-amber-950",
36648
+ children: [/* @__PURE__ */ jsx(TriangleAlert, {
36649
+ className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-amber-600",
36650
+ "aria-hidden": "true"
36651
+ }), blockNoticeMessage(notice)]
36652
+ }) : null,
36653
+ notice?.kind === "Hidden" ? /* @__PURE__ */ jsxs("p", {
36654
+ role: "note",
36655
+ className: "flex gap-2 rounded-lg border px-3 py-2.5 text-[13px] leading-snug text-muted-foreground",
36656
+ children: [/* @__PURE__ */ jsx(EyeOff, {
36657
+ className: "mt-0.5 h-3.5 w-3.5 shrink-0",
36658
+ "aria-hidden": "true"
36659
+ }), blockNoticeMessage(notice)]
36660
+ }) : null,
36661
+ mode
36662
+ ] });
36325
36663
  }
36326
36664
  /** Only blocks whose Looks come in more than one mode (List, Month, Week) get a mode choice. */
36327
36665
  function offersModeChoice(designBlock, content) {
@@ -36769,7 +37107,7 @@ function useBlockHeader(blockId, sdkConfig) {
36769
37107
  const store = useEditorUiStoreInstance();
36770
37108
  const block = blockId ? blocks.list.find((candidate) => candidate.id === blockId) ?? null : null;
36771
37109
  const content = useUISelector(store, (state) => blockId ? state.drafts.getCurrentValues(blockId) : null);
36772
- const needs = useBlockNeedsSetup(blockId);
37110
+ const notice = useBlockNotice(blockId);
36773
37111
  if (!block) return null;
36774
37112
  const manifest = resolveBlockManifest(block.kind, sdkConfig);
36775
37113
  const { displayTitle, showSubtitle } = resolveBlockTitle(manifest, content ?? block.content, block.kind);
@@ -36777,16 +37115,20 @@ function useBlockHeader(blockId, sdkConfig) {
36777
37115
  return {
36778
37116
  icon: /* @__PURE__ */ jsx(BlockKindIcon, { iconName: manifest?.icon }),
36779
37117
  title: displayTitle,
36780
- subtitle: needs ? /* @__PURE__ */ jsxs(Fragment$1, { children: [kind ? `${kind} · ` : null, /* @__PURE__ */ jsx(NeedsSetupChip, {})] }) : kind
37118
+ subtitle: notice ? /* @__PURE__ */ jsxs(Fragment$1, { children: [kind ? `${kind} · ` : null, /* @__PURE__ */ jsx(BlockNoticeChip, { notice })] }) : kind
36781
37119
  };
36782
37120
  }
36783
- function NeedsSetupChip() {
37121
+ function BlockNoticeChip({ notice }) {
37122
+ if (notice.kind === "Hidden") return /* @__PURE__ */ jsx("span", {
37123
+ className: "text-muted-foreground",
37124
+ children: blockNoticeLabel(notice)
37125
+ });
36784
37126
  return /* @__PURE__ */ jsxs("span", {
36785
37127
  className: "inline-flex items-center gap-1 font-semibold text-amber-700",
36786
37128
  children: [/* @__PURE__ */ jsx("span", {
36787
37129
  className: "h-1.5 w-1.5 rounded-full bg-warning",
36788
37130
  "aria-hidden": "true"
36789
- }), NEEDS_SETUP_LABEL]
37131
+ }), blockNoticeLabel(notice)]
36790
37132
  });
36791
37133
  }
36792
37134
  /** Where a new block will go, e.g. After “This week at Lotus”. */
@@ -37135,7 +37477,10 @@ function SidebarTaskView({ props, view, requestId, uiStoreForBlockEditor, linked
37135
37477
  props,
37136
37478
  controller
37137
37479
  });
37138
- case "chrome": return view.target === "header" ? /* @__PURE__ */ jsx(SiteChromeSurfaceControls, { surface: "header" }) : /* @__PURE__ */ jsx(PreviewFooterEditorPanel, {
37480
+ case "chrome": return view.target === "header" ? /* @__PURE__ */ jsx(SiteChromeSurfaceControls, {
37481
+ surface: "header",
37482
+ logoSettingsHref: dashboardLogoSettingsHref(props.dashboardBaseUrl, props.siteId)
37483
+ }) : /* @__PURE__ */ jsx(PreviewFooterEditorPanel, {
37139
37484
  ...props,
37140
37485
  dashboardBaseUrl: props.dashboardBaseUrl ?? null,
37141
37486
  theme: props.theme ?? null,