@riverbankcms/sdk 0.182.0 → 0.184.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 (231) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +83 -4
  3. package/dist/_dts/{BlocksIslandsHydrator-Bvw2bUif.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
  4. package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
  5. package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
  6. package/dist/_dts/{client-D6T430bk.d.ts → client-DgTRRtl_.d.ts} +14 -1
  7. package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-DZQJp_ak.d.ts} +9 -16
  8. package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
  9. package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
  10. package/dist/_dts/{index-CciRW_w1.d.ts → index-BECaUNYs.d.ts} +2 -2
  11. package/dist/_dts/{index-CEyYMhLJ.d.ts → index-Cc85KVLW.d.ts} +3 -3
  12. package/dist/_dts/{index-CQrb3Ccc.d.ts → index-Cni4jykw.d.ts} +4 -4
  13. package/dist/_dts/{index-DIU-wL1M.d.ts → index-DxxTQ_0V.d.ts} +2 -2
  14. package/dist/_dts/{index-Cqxis-nv.d.ts → index-W9-7djG3.d.ts} +1 -1
  15. package/dist/_dts/{index-DqPKdeTk.d.ts → index-ukS-Ffem.d.ts} +1 -1
  16. package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
  17. package/dist/_dts/{request-DEwxUSw8.d.ts → request-CZz2BoXJ.d.ts} +89478 -88093
  18. package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-DTwklC_v.d.ts → resolvePageContent-BteMsSGP.d.ts} +1 -1
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  38. package/dist/_dts/sdk/src/portal/index.d.ts +10 -2
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +126 -2
  55. package/dist/_dts/{serviceBookingOutline-DtQuFlID.d.ts → serviceBookingOutline-aTlOvO3U.d.ts} +16 -8
  56. package/dist/_dts/{types-B3RjeBLV.d.ts → types-Bi7R07RX.d.ts} +45 -4
  57. package/dist/_dts/{types-BvUSGQrw.d.ts → types-CCcQlRBi.d.ts} +22 -12
  58. package/dist/_dts/{types-CkRFtBqd.d.ts → types-Du4aMnWC.d.ts} +13 -15
  59. package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-CjCWVmwe.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +22 -18
  61. package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-C4LcfwyA.mjs} +8 -8
  62. package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +2 -2
  63. package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
  64. package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +25 -8
  65. package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
  66. package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
  67. package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-Ct1B3xI4.mjs} +10 -10
  68. package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DgfNtcgW.mjs} +9 -9
  69. package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
  70. package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-KGKkK19N.mjs} +29 -14
  71. package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
  72. package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
  73. package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
  74. package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-Dth9L00x.mjs} +118 -76
  75. package/dist/client/{Page-sV6BJkXX.mjs → Page-DB5KODiu.mjs} +4491 -1398
  76. package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
  77. package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +3 -3
  78. package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
  79. package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DRyZ8igu.mjs} +7 -7
  80. package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-C4rCsPCt.mjs} +52 -10
  81. package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-CqroimVQ.mjs} +1024 -619
  82. package/dist/client/{accordion-6cuswD_s.mjs → accordion-BQYRP5xV.mjs} +1 -1
  83. package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-B7ckDuOC.mjs} +191 -71
  84. package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-BeD4650p.mjs} +7 -6
  85. package/dist/client/bookings.mjs +5 -5
  86. package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
  87. package/dist/client/buttonParts-C39GC0kz.mjs +1518 -0
  88. package/dist/client/{carousel-CGyQVV1M.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
  89. package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
  90. package/dist/client/{cart-BYOe7MCh.mjs → cart-DdCenbTy.mjs} +3 -3
  91. package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-BQm06qNw.mjs} +1 -1
  92. package/dist/client/{checkout-Dwd7Di77.mjs → checkout-45wPQULN.mjs} +3 -3
  93. package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
  94. package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
  95. package/dist/client/client.mjs +460 -119
  96. package/dist/client/{constants-DdxFG3Ic.mjs → constants-DXV4KR7l.mjs} +1 -1
  97. package/dist/client/{context-Hi1RuYEM.mjs → context-lCPfX-xe.mjs} +15 -5
  98. package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
  101. package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DlPfn4YG.mjs} +52 -29
  102. package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-CioAdryV.mjs} +4 -4
  103. package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
  104. package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-B3H9ifOC.mjs} +4 -4
  105. package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
  106. package/dist/client/{form-DWnlEVSK.mjs → form-CsqzgC6v.mjs} +3 -3
  107. package/dist/client/{form.client-D7zmeqNI.mjs → form.client-DVDB7hY6.mjs} +5 -5
  108. package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-1q2rzSYt.mjs} +3 -3
  109. package/dist/client/gifting/client.mjs +16 -9
  110. package/dist/client/{gifting-Cn0jidP5.mjs → gifting-BrXQGX-k.mjs} +4 -4
  111. package/dist/client/{gifting.client-DVo1YFLs.mjs → gifting.client--zAjnY5N.mjs} +155 -85
  112. package/dist/client/gifting.interactive-CrwHpUJG.mjs +207 -0
  113. package/dist/client/gifting.parts-CcKdDaQq.mjs +124 -0
  114. package/dist/client/{headerSection-DjQuj_6v.mjs → headerSection-DlcDH4bi.mjs} +2 -2
  115. package/dist/client/{noop-jesvJXEE.mjs → islands-dMh0Oxli.mjs} +16103 -7965
  116. package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-BxA1PsdS.mjs} +6 -6
  117. package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +229 -197
  118. package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
  119. package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
  120. package/dist/client/portal/client.mjs +51 -35
  121. package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
  122. package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DiGibcZI.mjs} +31 -9
  123. package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
  124. package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
  125. package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
  126. package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-D9-fCY6c.mjs} +3 -3
  127. package/dist/client/{productList-BuLemmod.mjs → productList-PJyxXSac.mjs} +3 -3
  128. package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-B8lrKGPw.mjs} +4 -2
  129. package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-CI63JVHW.mjs} +2444 -1078
  130. package/dist/client/rendering/client.mjs +32 -28
  131. package/dist/client/rendering/islands.mjs +1 -1
  132. package/dist/client/rendering.mjs +5 -5
  133. package/dist/client/{richText-coerce-Bnng7JFA.mjs → richText-coerce-Jt9hDHdh.mjs} +2 -2
  134. package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
  135. package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
  136. package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
  137. package/dist/client/{shop-GuMqnDL-.mjs → shop-CbdJlWOw.mjs} +3 -3
  138. package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-BqLbzUUn.mjs} +47 -28
  139. package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
  140. package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +2 -2
  141. package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-0cNErhJT.mjs} +54 -24
  142. package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
  143. package/dist/client/spam-protection.mjs +1 -1
  144. package/dist/client/{src-CmXh3JWs.mjs → src-Do_s2lqH.mjs} +11 -18
  145. package/dist/client/{timetableModel-GA-hn1qM.mjs → timetableModel-DqI6U1BS.mjs} +11 -8
  146. package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
  147. package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-B0mjVhZr.mjs} +2 -2
  148. package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
  149. package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Ct4A6iR1.mjs} +14 -16
  150. package/dist/client/{view-DOyZc-DF.mjs → view-Cj151w4m.mjs} +24 -9
  151. package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-B3gsXNnb.mjs} +283 -222
  152. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
  153. package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
  154. package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
  155. package/dist/preview-next/client/{PageSectionToolbar-BI3UCdpu.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +952 -138
  156. package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +4774 -2040
  157. package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-BnJ1ughv.mjs} +71 -47
  158. package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-C7qWzAe4.mjs} +72 -40
  159. package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +135 -30
  160. package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-CRgbU75r.mjs} +799 -17
  161. package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-B4c6U3ZU.mjs} +11 -1
  162. package/dist/preview-next/client/{previewAssistantSlot-BgiYk3PB.mjs → previewAssistantSlot-DrUoRNu9.mjs} +24203 -9291
  163. package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-CEYp90mM.mjs} +3 -90
  164. package/dist/preview-next/client/runtime.mjs +3 -3
  165. package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
  166. package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-B3PwHw2z.mjs} +46 -11
  167. package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-DrdQ4ier.mjs} +49 -3
  168. package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +2008 -448
  169. package/dist/preview-next/container-responsive.css +469 -2
  170. package/dist/preview-next/editor-chrome.css +23 -2
  171. package/dist/preview-next/keepAlive.mjs +1 -1
  172. package/dist/preview-next/middleware.mjs +1 -1
  173. package/dist/preview-next/{route-contract-BHTBA48n.mjs → route-contract-CwrXkLT3.mjs} +177 -43
  174. package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
  175. package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DvbqYXdK.mjs} +46 -10
  176. package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-CAcf1lHT.mjs} +732 -176
  177. package/dist/server/{accordions-By_0Ykks.mjs → accordions-DjcsqjCK.mjs} +1 -1
  178. package/dist/server/{bindings-DMJH4bvo.mjs → bindings-CFw4M-gZ.mjs} +69 -248
  179. package/dist/server/{client-DrwlRNAH.mjs → client-D0XCgITW.mjs} +488 -119
  180. package/dist/server/config-validation.mjs +1 -1
  181. package/dist/server/config.mjs +2 -2
  182. package/dist/server/{constants-CeMywaiD.mjs → constants-BZduY8jG.mjs} +31 -8
  183. package/dist/server/data/resolveBlockData.mjs +1 -1
  184. package/dist/server/index.mjs +4 -4
  185. package/dist/server/{loadContent-D0prFflT.mjs → loadContent-C-qyB8Tq.mjs} +11 -10
  186. package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-BpKKmi8E.mjs} +3 -3
  187. package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
  188. package/dist/server/manifest.mjs +2 -2
  189. package/dist/server/{navigation-wrcuWmgp.mjs → navigation-DYkuiNXa.mjs} +1 -1
  190. package/dist/server/navigation.mjs +1 -1
  191. package/dist/server/next.mjs +9 -9
  192. package/dist/server/{overrideResolution-DUgCEH8z.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
  193. package/dist/server/page-converter.mjs +18 -5
  194. package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-DRB7cUZ0.mjs} +674 -298
  195. package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +13 -6
  196. package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-BdQF875z.mjs} +911 -516
  197. package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
  198. package/dist/server/{portal-pG_uhsI2.mjs → portal-BQ8qiQnk.mjs} +22 -2
  199. package/dist/server/portal.mjs +3 -3
  200. package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-B51QZVNe.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-CppDAfJW.mjs} +4 -4
  203. package/dist/server/{registry-Cc88-23f.mjs → registry-Bf4W8Qa7.mjs} +7585 -24378
  204. package/dist/server/rendering/components/pageShared.mjs +1 -1
  205. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  206. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  207. package/dist/server/rendering/server.mjs +4 -4
  208. package/dist/server/rendering.mjs +10 -10
  209. package/dist/server/{resolveBlockData-OG3KOkig.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
  210. package/dist/server/{expandPalette-ehuW8r2g.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1670 -1346
  211. package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
  212. package/dist/server/{schema-CwfxQjc4.mjs → schema-DGaihVwp.mjs} +300 -29
  213. package/dist/server/server.mjs +3 -3
  214. package/dist/server/{servicePageContent-BcFuhhD7.mjs → servicePageContent-CRvmreX7.mjs} +40 -16
  215. package/dist/server/theme-bridge.mjs +5 -4
  216. package/dist/server/theme.mjs +2 -2
  217. package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-mcy2E1Yd.mjs} +2 -2
  218. package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-B2qFOUwZ.mjs} +4 -5
  219. package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
  220. package/dist/server/{types-BKaBZFjD.mjs → types-C_S0pWbR.mjs} +487 -9
  221. package/dist/server/{validation-BovmbS8N.mjs → validation-CUtNT_EZ.mjs} +14 -10
  222. package/dist/server/{version-hws4hgyX.mjs → version-DebJQ4zn.mjs} +1 -1
  223. package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
  224. package/dist/styles/index.css +2987 -168
  225. package/package.json +1 -1
  226. package/dist/client/gifting.parts-Bak93gD2.mjs +0 -86
  227. package/dist/client/runtimeResponse-nXT8VAMl.mjs +0 -3
  228. package/dist/client/types-BEaKfam_.mjs +0 -778
  229. package/dist/server/customCss-C9kgPHvr.mjs +0 -247
  230. package/dist/server/lookMediaFrame-H0fi4bJk.mjs +0 -2701
  231. package/dist/server/media-gvfIw3z8.mjs +0 -216
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { Ec as PortalContainerProvider, gl as cn, ln as SURFACE_DOCUMENT_DATA_ATTRIBUTE, un as resolveSurfaceDocumentAttributes } from "./previewAssistantSlot-BgiYk3PB.mjs";
3
- import { createContext, useContext, useEffect, useMemo, useReducer, useRef, useState } from "react";
2
+ import { cn as resolveSurfaceDocumentAttributes, fl as PortalContainerProvider, nu as cn, sn as SURFACE_DOCUMENT_DATA_ATTRIBUTE } from "./previewAssistantSlot-DrUoRNu9.mjs";
3
+ import { createContext, useContext, useEffect, useMemo, useRef, useState } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../ui/src/fixed-bottom-surface.tsx
6
6
  const SURFACE_CLASS_BY_VARIANT = {
@@ -44,93 +44,6 @@ function FixedBottomSurface({ children, className, contentClassName, variant = "
44
44
  });
45
45
  }
46
46
  //#endregion
47
- //#region ../editor/src/EditorProvider.tsx
48
- const EditorContext = createContext(void 0);
49
- const useEditor = () => {
50
- const context = useContext(EditorContext);
51
- if (!context) throw new Error("useEditor must be used within an EditorProvider");
52
- return context;
53
- };
54
- const emptySelection = {
55
- editingElement: null,
56
- currentBlockId: void 0,
57
- drawerFocus: null
58
- };
59
- function changeMode(state, requestedEditingMode) {
60
- return {
61
- ...state,
62
- requestedEditingMode,
63
- ...requestedEditingMode ? {} : emptySelection
64
- };
65
- }
66
- function editorReducer(state, event) {
67
- switch (event.kind) {
68
- case "toggle": return changeMode(state, !state.requestedEditingMode);
69
- case "mode": return changeMode(state, event.value);
70
- case "availability": return state.availability === event.value ? state : {
71
- ...state,
72
- availability: event.value
73
- };
74
- case "element": return {
75
- ...state,
76
- editingElement: event.value
77
- };
78
- case "block": return {
79
- ...state,
80
- currentBlockId: event.value
81
- };
82
- case "focus": return {
83
- ...state,
84
- drawerFocus: event.value,
85
- currentBlockId: event.value?.blockId || state.currentBlockId
86
- };
87
- }
88
- }
89
- const EditorProvider = ({ children, initialEditingMode = false, initialEditingAllowed = true }) => {
90
- const [state, dispatch] = useReducer(editorReducer, {
91
- requestedEditingMode: initialEditingMode,
92
- availability: initialEditingAllowed ? "ready" : "blocked",
93
- ...emptySelection
94
- });
95
- const actions = useMemo(() => ({
96
- toggleEditingMode: () => dispatch({ kind: "toggle" }),
97
- setEditingMode: (value) => dispatch({
98
- kind: "mode",
99
- value
100
- }),
101
- setEditingAvailability: (value) => dispatch({
102
- kind: "availability",
103
- value
104
- }),
105
- setEditingElement: (value) => dispatch({
106
- kind: "element",
107
- value
108
- }),
109
- setCurrentBlock: (value) => dispatch({
110
- kind: "block",
111
- value
112
- }),
113
- setDrawerFocus: (value) => dispatch({
114
- kind: "focus",
115
- value
116
- }),
117
- clearDrawerFocus: () => dispatch({
118
- kind: "focus",
119
- value: null
120
- })
121
- }), []);
122
- const contextValue = useMemo(() => ({
123
- ...state,
124
- ...actions,
125
- isEditingMode: state.requestedEditingMode && state.availability === "ready",
126
- isEditingPending: state.requestedEditingMode && state.availability === "pending"
127
- }), [state, actions]);
128
- return /* @__PURE__ */ jsx(EditorContext.Provider, {
129
- value: contextValue,
130
- children
131
- });
132
- };
133
- //#endregion
134
47
  //#region ../preview-next/src/constants.ts
135
48
  const PREVIEW_THEME_COOKIE_NAME = "preview_theme_id";
136
49
  const PREVIEW_KEEP_ALIVE_INTERVAL_MS = 600 * 1e3;
@@ -225,4 +138,4 @@ function mountPreviewChromeRoot() {
225
138
  };
226
139
  }
227
140
  //#endregion
228
- export { resolvePreviewChromeSurface as a, writePreviewThemeCookie as c, EditorProvider as d, useEditor as f, getPreviewChromeSurfaceDataProps as i, PREVIEW_KEEP_ALIVE_INTERVAL_MS as l, usePreviewChromeRoot as n, readPreviewThemeCookie as o, FixedBottomSurface as p, PREVIEW_CHROME_THEME_CLASS_NAME as r, subscribePreviewThemeCookie as s, PreviewChromeRootProvider as t, PREVIEW_KEEP_ALIVE_JITTER_RATIO as u };
141
+ export { resolvePreviewChromeSurface as a, writePreviewThemeCookie as c, FixedBottomSurface as d, getPreviewChromeSurfaceDataProps as i, PREVIEW_KEEP_ALIVE_INTERVAL_MS as l, usePreviewChromeRoot as n, readPreviewThemeCookie as o, PREVIEW_CHROME_THEME_CLASS_NAME as r, subscribePreviewThemeCookie as s, PreviewChromeRootProvider as t, PREVIEW_KEEP_ALIVE_JITTER_RATIO as u };
@@ -6,13 +6,13 @@ import React from "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  //#region src/preview-next/client/runtime.tsx
8
8
  const LazySdkPreviewMode = React.lazy(async () => {
9
- return { default: (await import("./SdkPreviewModeRuntime-0UVB-39f.mjs")).SdkPreviewModeRuntime };
9
+ return { default: (await import("./SdkPreviewModeRuntime-CYi4UHtG.mjs")).SdkPreviewModeRuntime };
10
10
  });
11
11
  const LazyPreviewShell = React.lazy(async () => {
12
- return { default: (await import("./sdk-runtime-DXb_Evl0.mjs")).PreviewShell };
12
+ return { default: (await import("./sdk-runtime-DnO2_c0A.mjs")).PreviewShell };
13
13
  });
14
14
  const LazyPreviewShellLayout = React.lazy(async () => {
15
- return { default: (await import("./sdk-runtime-DXb_Evl0.mjs")).PreviewShellLayout };
15
+ return { default: (await import("./sdk-runtime-DnO2_c0A.mjs")).PreviewShellLayout };
16
16
  });
17
17
  function SdkPreviewMode(props) {
18
18
  return /* @__PURE__ */ jsx(React.Suspense, {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import "./PreviewLayoutContext-Dy0LwcHc.mjs";
3
3
  import "./PreviewQueryProvider-BgIucg_5.mjs";
4
- import { n as PreviewShellLayout, t as PreviewShell } from "./PreviewShell-BAxAkuz8.mjs";
5
- import "./SdkPreviewModeRuntime-0UVB-39f.mjs";
4
+ import { n as PreviewShellLayout, t as PreviewShell } from "./PreviewShell-C7qWzAe4.mjs";
5
+ import "./SdkPreviewModeRuntime-CYi4UHtG.mjs";
6
6
  export { PreviewShell, PreviewShellLayout };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { n as useOptionalPreviewLayout } from "./PreviewLayoutContext-Dy0LwcHc.mjs";
3
- import { $c as useCallbackRef, $s as VISUALLY_HIDDEN_STYLES, Ao as DEFAULT_THEME_RESPONSIVE_MODE, Bc as createRovingFocusGroupScope, Bl as rgbColorValue, Bo as restoreCompiledRuntimeFieldsFromContent, Cr as resolveBlockVariantKey, Dc as usePortalContainer, Do as buildThemeRuntime, Fn as remoteDraftValues, Gc as Content$1, Hc as Portal, Hl as mapDrawingStyle, In as renderSourceFor, Jc as useSize, Js as extractApiEnvelopeErrorDetails, K as siteChromeHeaderLogoMayBeHardToSee, Kc as Root2$1, Kl as expandPalette, Lc as hideOthers, Ll as surfaceForegroundInputFromResolved, Lo as applyCompiledRuntimeFieldsToContent, Mr as LocationMapView, No as heroPhotoPaintsGround, Oc as ReactRemoveScroll, Oo as escapeStyleContent, Qc as DismissableLayer, Qo as headerStyleRecipeForTheme, Rc as Item, Rl as surfaceForegroundStyle, Rn as resolveRenderedValues, Ro as compileEditorModelRuntime, Rr as withValueAtPath, Rs as isRecord$1, Sn as useOptionalEditorUiStoreInstance, Uc as Anchor, Ul as parseSurfaceTree, Vc as Presence, Vo as formatSiteChromeBackgroundTokenLabel, Wc as Arrow, Wl as resolveSurfaceForeground, Xc as FocusScope, Xo as designRuntimeRulesForTheme, Yc as useId$1, Yo as componentRuntimeRulesForTheme, Ys as unwrapResponse, Zc as useFocusGuards, _a as siteTopChromeMeasurementTargets$1, _d as unsafeAsPositiveByteCount, ad as unsafeAsEditorBlockId, al as composeEventHandlers, as as generateFontFaceCss, bc as DialogTrigger, c as usePreviewShownTheme, cl as Button, dn as ApiRequestError, do as coerceInlineTextWithFallback, ea as buildThemeDataAttrs, ec as Callout, el as useDirection, fl as createSlot, fo as deriveInlineTextFieldChanges, gl as cn$1, gs as resolveCompiledSectionContextFromContent, gu as authoredValuesEqual, h as composePreviewTheme, ha as measureSiteTopChromeBottomPx, hc as DialogContent, hl as useComposedRefs, ii as getBlockDefinition, il as createContextScope, is as buildGoogleFontFamilyQuery, jo as getResponsiveScopeSpec, mc as DialogClose, md as assertNever, na as themeRuntimeScopeProps, nl as useControllableState, ns as surfaceResolutionContextFromTheme, ol as Primitive, os as getSiteFontsStorageUrl, pc as Dialog, pr as planArrangementContent, pu as asDesignBlockId, qc as createPopperScope, qs as ApiEnvelopeError, rc as Spinner, rl as useLayoutEffect2, s as usePreviewPageDesignRenderState, tl as createCollection, ts as compiledRuntimeStyleFieldNames, u as useSiteChromeCustomizeOptional, ua as SITE_CHROME_VISIBLE_HEADER_SELECTOR, ul as useControlReadiness, uu as getFontWidthRange, vc as DialogPortal, vd as unsafeAsPositiveSeconds, wc as menuItemInteractionClassName, y as applyBindingsToContent, yc as DialogTitle, zc as Root } from "./previewAssistantSlot-BgiYk3PB.mjs";
4
- import { $ as Crosshair, B as House, C as Move, Ct as confirmLocationPair, D as MapPin, Dt as locationDistanceMetres, Et as editLocationValue, F as Info, Kt as err, Lt as parseLocationValue, Mt as formatLocationAddress, Nt as locationAddressSchema, Ot as sameLocationSpatialPair, Pt as locationPinSchema, St as LOCATION_MATCH_THRESHOLDS_METRES, Tt as decideLocationSave, Z as ExternalLink, c as Trash2, dt as ChevronLeft, ft as ChevronDown, g as RotateCcw, h as Route, ht as Building2, it as Circle, jt as decideLocationSourcePermission, kt as sameMeaningfulAddress, l as Store, lt as ChevronUp, n as X, p as Search, pt as Check, qt as ok, r as WifiOff, s as TriangleAlert, st as CircleCheck, ut as ChevronRight, v as Plus, w as Mountain, wt as decideLocationRelationship, y as Pencil } from "./lucide-react-00FF_oar.mjs";
5
- import { a as NO_EDIT_MAP_OVERLAY, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, r as useLocationPickerWidgetContext, t as LocationDashboardLink } from "./LocationPickerEnvironment-BW3dRFIv.mjs";
3
+ import { $c as Dialog, $d as unsafeAsEditorBlockId, Ac as extractApiEnvelopeErrorDetails, Al as Arrow, Bc as Callout, Bl as useDirection, Bo as getResponsiveScopeSpec, Bs as surfaceResolutionContextFromTheme, Bu as expandPalette, Cl as hideOthers, Cn as useOptionalEditorUiStoreInstance, Cr as resolveBlockVariantKey, Cs as resolveCompiledSectionContextFromContent, Dl as Presence, El as createRovingFocusGroupScope, Fl as useId$1, Fo as buildThemeRuntime, G as siteChromeHeaderLogoMayBeHardToSee, Gl as composeEventHandlers, Hl as useControllableState, Il as FocusScope, In as remoteDraftValues, Io as escapeStyleContent, Is as headerStyleRecipeForTheme, Iu as mapDrawingStyle, Jl as Button, Js as getSiteFontsStorageUrl, Kl as Primitive, Ks as buildGoogleFontFamilyQuery, Ll as useFocusGuards, Ln as renderSourceFor, Lu as parseSurfaceTree, Ml as Root2$1, Mu as surfaceForegroundStyle, Nl as createPopperScope, Nr as LocationMapView, Ns as componentRuntimeRulesForTheme, Ol as Portal, Pl as useSize, Ps as designRuntimeRulesForTheme, Pu as rgbColorValue, Ql as createSlot, Rl as DismissableLayer, Ru as resolveSurfaceForeground, Tl as Root, Ts as formatSiteChromeBackgroundTokenLabel, Uc as Spinner, Ul as useLayoutEffect2, Vl as createCollection, Wl as createContextScope, Xl as useControlReadiness, _a as measureSiteTopChromeBottomPx, ai as getBlockDefinition, al as DialogTitle, bo as deriveInlineTextFieldChanges, c as usePreviewShownTheme, el as DialogClose, fa as SITE_CHROME_VISIBLE_HEADER_SELECTOR, fr as planArrangementContent, h as composePreviewTheme, ia as themeRuntimeScopeProps, id as getFontWidthRange, il as DialogPortal, jc as unwrapResponse, jl as Content$1, ju as surfaceForegroundInputFromResolved, kc as ApiEnvelopeError, kl as Anchor, ln as ApiRequestError, mf as unsafeAsPositiveSeconds, ml as ReactRemoveScroll, na as buildThemeDataAttrs, nu as cn$1, ol as DialogTrigger, pf as unsafeAsPositiveByteCount, pl as usePortalContainer, pn as useIsEditingMode, qs as generateFontFaceCss, s as usePreviewPageDesignRenderState, sd as asDesignBlockId, tl as DialogContent, tn as applyBindingsToContent, tu as useComposedRefs, u as useSiteChromeCustomizeOptional, ud as authoredValuesEqual, uf as assertNever, ul as menuItemInteractionClassName, us as heroPhotoPaintsGround, vs as applyCompiledRuntimeFieldsToContent, wl as Item, ws as sectionDecisionFromContent, xs as restoreCompiledRuntimeFieldsFromContent, ya as siteTopChromeMeasurementTargets$1, yc as isRecord$1, yo as coerceInlineTextWithFallback, ys as compileEditorModelRuntime, zc as VISUALLY_HIDDEN_STYLES, zl as useCallbackRef, zn as resolveRenderedValues, zo as DEFAULT_THEME_RESPONSIVE_MODE, zr as withValueAtPath, zs as compiledRuntimeStyleFieldNames } from "./previewAssistantSlot-DrUoRNu9.mjs";
4
+ import { $ as ExternalLink, At as editLocationValue, Dt as confirmLocationPair, E as Mountain, Et as LOCATION_MATCH_THRESHOLDS_METRES, Ft as decideLocationSourcePermission, H as House, It as formatLocationAddress, L as Info, Lt as locationAddressSchema, Mt as sameLocationSpatialPair, Nt as sameMeaningfulAddress, Ot as decideLocationRelationship, Qt as ok, Rt as locationPinSchema, T as Move, Vt as parseLocationValue, Zt as err, _ as RotateCcw, _t as Building2, b as Pencil, c as TriangleAlert, dt as ChevronUp, ft as ChevronRight, g as Route, ht as Check, jt as locationDistanceMetres, k as MapPin, kt as decideLocationSave, l as Trash2, lt as CircleCheck, m as Search, mt as ChevronDown, n as X, ot as Circle, pt as ChevronLeft, r as WifiOff, tt as Crosshair, u as Store, y as Plus } from "./lucide-react-B4c6U3ZU.mjs";
5
+ import { a as NO_EDIT_MAP_OVERLAY, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, r as useLocationPickerWidgetContext, t as LocationDashboardLink } from "./LocationPickerEnvironment-DuRUwUrK.mjs";
6
6
  import * as React$1 from "react";
7
7
  import React, { Suspense, cloneElement, createContext, forwardRef, isValidElement, lazy, useCallback, useContext, useEffect, useEffectEvent, useId, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
8
8
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -3137,6 +3137,29 @@ function EditorSelectionFrame() {
3137
3137
  className: `pointer-events-none absolute inset-0 z-10 border-[3px] border-sky-500 ${WHITE_EDGE_INSIDE}`
3138
3138
  });
3139
3139
  }
3140
+ const PART_TAG_STYLE = {
3141
+ fontSize: 11,
3142
+ lineHeight: "16px",
3143
+ letterSpacing: 0
3144
+ };
3145
+ /**
3146
+ * An outline for one part of a selected item (a heading, a button, a photo),
3147
+ * with the name of the setting it leads to once it's chosen. Lighter than
3148
+ * the selection frame and drawn just outside the part, so it reads as being
3149
+ * inside the selection. Place it inside a positioned element that covers the part.
3150
+ */
3151
+ function EditorPartFrame({ label, state }) {
3152
+ return /* @__PURE__ */ jsx("div", {
3153
+ "aria-hidden": "true",
3154
+ "data-editor-part-frame": state,
3155
+ className: `pointer-events-none absolute -inset-1.5 z-10 rounded-sm border-2 border-sky-500 ${WHITE_EDGE_AROUND} ${state === "hover" ? "border-dashed" : ""}`,
3156
+ children: state === "chosen" ? /* @__PURE__ */ jsx("span", {
3157
+ className: "absolute -top-6 left-[-2px] whitespace-nowrap rounded-t-sm bg-sky-500 px-1.5 py-0.5 font-sans font-medium text-white",
3158
+ style: PART_TAG_STYLE,
3159
+ children: label
3160
+ }) : null
3161
+ });
3162
+ }
3140
3163
  const INSERTION_PILL_STYLE = {
3141
3164
  fontSize: 12.5,
3142
3165
  lineHeight: 1,
@@ -3540,6 +3563,7 @@ function resolveBlockSectionContext(block, theme, audience) {
3540
3563
  /** Apply the render plan's policy/content stage before measuring the opening. */
3541
3564
  function planOpeningForegroundContent(block, audience) {
3542
3565
  if (!block?.content) return { content: null };
3566
+ if (sectionDecisionFromContent(block.content)) return { content: block.content };
3543
3567
  const definition = getBlockDefinition(block.kind);
3544
3568
  if (!definition) return { content: block.content };
3545
3569
  const content = planArrangementContent(block.kind, definition.manifest, block.content, audience);
@@ -6328,7 +6352,7 @@ function usePreviewTheme(siteId, enabled) {
6328
6352
  }
6329
6353
  //#endregion
6330
6354
  //#region ../editor-blocks/src/widgets/location/PickerMapArea.tsx
6331
- const LazyEditMap = lazy(() => import("./MapLibreEditMap-Db9BHyXh.mjs").then((mod) => ({ default: mod.MapLibreEditMap })));
6355
+ const LazyEditMap = lazy(() => import("./MapLibreEditMap-CdSDYBq9.mjs").then((mod) => ({ default: mod.MapLibreEditMap })));
6332
6356
  function EditMap(props) {
6333
6357
  return /* @__PURE__ */ jsx(Suspense, {
6334
6358
  fallback: null,
@@ -9115,7 +9139,13 @@ function HeaderLogoContrastNotice({ logoSettingsHref }) {
9115
9139
  //#region ../preview-next/src/client/preview/SiteChromeCustomizeButton.tsx
9116
9140
  /** Said once under the controls when this person can look but not change the site's chrome. */
9117
9141
  const SITE_CHROME_READ_ONLY_NOTE = "Ask the site's owner to change this.";
9118
- function SiteChromeCustomizeButton({ surface, containerClassName = "pointer-events-auto absolute right-2 top-2 z-50 flex gap-1 opacity-0 transition group-focus-within/site-chrome:opacity-100 group-hover/site-chrome:opacity-100" }) {
9142
+ /** In the editor the chrome's controls belong to editing, so a visitor view hides them. */
9143
+ function SiteChromeCustomizeButton(props) {
9144
+ const store = useOptionalEditorUiStoreInstance();
9145
+ const isEditing = useIsEditingMode();
9146
+ return store && !isEditing ? null : /* @__PURE__ */ jsx(SiteChromeCustomizeControl, { ...props });
9147
+ }
9148
+ function SiteChromeCustomizeControl({ surface, containerClassName = "pointer-events-auto absolute right-2 top-2 z-50 flex gap-1 opacity-0 transition group-focus-within/site-chrome:opacity-100 group-hover/site-chrome:opacity-100" }) {
9119
9149
  const customize = useSiteChromeCustomizeOptional();
9120
9150
  const store = useOptionalEditorUiStoreInstance();
9121
9151
  const popover = useCustomizePopoverController();
@@ -9263,20 +9293,25 @@ function HeaderCycleControls({ state }) {
9263
9293
  onNext: () => owner?.cycleChromeSelection("header", "next")
9264
9294
  })] });
9265
9295
  }
9266
- /** Layout, then the top edge when the style offers one; the edge row is hidden for styles without edges. */
9296
+ /**
9297
+ * Layout, then the top edge when the style offers one; the edge row is hidden for styles without edges.
9298
+ * With only one layout to offer there's nothing to cycle, so the row gives way to the hint.
9299
+ */
9267
9300
  function FooterCycleControls({ state }) {
9268
9301
  const owner = useSiteChromeCustomizeOptional();
9269
9302
  if (!owner) return null;
9270
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(CycleRow, {
9303
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [state.options.length > 1 ? /* @__PURE__ */ jsx(CycleRow, {
9271
9304
  label: "Layout",
9272
9305
  value: state.currentLabel,
9273
9306
  previousLabel: "Previous footer layout",
9274
9307
  nextLabel: "Next footer layout",
9275
- disabled: !state.applyAllowed || state.options.length <= 1,
9276
- hint: state.layoutHint ?? void 0,
9308
+ disabled: !state.applyAllowed,
9277
9309
  onPrevious: () => owner.cycleChromeSelection("footer", "prev"),
9278
9310
  onNext: () => owner.cycleChromeSelection("footer", "next")
9279
- }), owner.footerEdge.available ? /* @__PURE__ */ jsx(CycleRow, {
9311
+ }) : state.layoutHint ? /* @__PURE__ */ jsx("p", {
9312
+ className: "text-xs text-muted-foreground",
9313
+ children: state.layoutHint
9314
+ }) : null, owner.footerEdge.available ? /* @__PURE__ */ jsx(CycleRow, {
9280
9315
  label: "Top edge",
9281
9316
  value: owner.footerEdge.label,
9282
9317
  previousLabel: "Previous top edge",
@@ -9666,4 +9701,4 @@ function canInspectSiteStyle(access) {
9666
9701
  return access.kind === "apply-allowed";
9667
9702
  }
9668
9703
  //#endregion
9669
- export { FieldFrame as $, pageDesignRuntimeProjectionFromSource as A, useFieldDescribedBy as At, useSiteOptionWidgetContext as B, PreviewCompiledThemeProvider as C, clamp as Ct, SiteFontFaceStyles as D, Input as Dt, usePreviewCompiledThemeOptional as E, NativeSelect as Et, mergeResolvedDataContext as F, Content as Ft, TransferError as G, useMediaEditor as H, withRenderedContentEntry as I, List as It, SelectField as J, BlockContextProvider as K, siteColourCss as L, Root2 as Lt, applyPreviewRuntimeContentProjections as M, TabsContent as Mt, entryFieldRebindingProjection as N, TabsList as Nt, SiteFontStorageProvider as O, FIELD_FOCUS_WITHIN_CLASS as Ot, runtimeContentDecorationProjectionFromServerPage as P, TabsTrigger as Pt, unmapValueFromSelect as Q, locationWidgetOverrides as R, Trigger as Rt, planBlockToolbarPlacement as S, usePrevious as St, usePreviewCompiledTheme as T, FieldTrigger as Tt, useMediaEditorOptional as U, MediaEditorContextProvider as V, useApiMediaUploader as W, mapCurrentValueForSelect as X, hasEmptyOption as Y, mapOptionValueForSelect as Z, PreviewChromeFloatingControl as _, Select as _t, sanitizeDashboardPath as a, ThemeScopeCore as at, measureSiteTopChromeClearance as b, SelectTrigger as bt, resolvePreviewSidebarChromeModel as c, EditorCanvasChoiceChip as ct, dashboardLogoSettingsHref as d, EditorInsertionMarker as dt, FieldLabelText as et, HeaderMenuControls as f, EditorSelectionFrame as ft, PreviewChromeFloatingBar as g, Textarea as gt, CustomizeBackgroundColorPicker as h, Toaster as ht, resolvePreviewDashboardSetupHandoff as i, revealEditorElement as it, resolveRuntimePreviewSourceForTheme as j, Tabs as jt, useRememberSiteFonts as k, FIELD_SURFACE_CLASS as kt, SiteChromeCustomizeButton as l, EditorCanvasCycleChip as lt, CustomizeBackgroundControlRows as m, ChoiceTileGroup as mt, resolveSiteStyleAccess as n, useField as nt, resolvePreviewEditorGuidanceModel as o, EditorCanvasChip as ot, isHeaderMenuSurfaceState as p, CHOSEN_OPTION_CLASS as pt, useBlockContext as q, buildPreviewDashboardSetupUrl as r, useLinkedInlineTextField as rt, resolvePreviewSetupBannerModel as s, EditorCanvasChipRow as st, canInspectSiteStyle as t, hintWithCharacterLimit as tt, SiteChromeSurfaceControls as u, EditorCanvasNameChip as ut, PreviewChromeLayerProvider as v, SelectContent as vt, PreviewThemeRenderingProvider as w, SearchInput as wt, PREVIEW_SITE_BANNER_ATTRIBUTE as x, SelectValue as xt, readThemeCustomProperties as y, SelectItem as yt, SiteOptionWidgetProvider as z, classifyKnownMimeType as zt };
9704
+ export { FieldFrame as $, pageDesignRuntimeProjectionFromSource as A, Input as At, useSiteOptionWidgetContext as B, Root2 as Bt, PreviewCompiledThemeProvider as C, SelectTrigger as Ct, SiteFontFaceStyles as D, SearchInput as Dt, usePreviewCompiledThemeOptional as E, clamp as Et, mergeResolvedDataContext as F, TabsContent as Ft, TransferError as G, useMediaEditor as H, classifyKnownMimeType as Ht, withRenderedContentEntry as I, TabsList as It, SelectField as J, BlockContextProvider as K, siteColourCss as L, TabsTrigger as Lt, applyPreviewRuntimeContentProjections as M, FIELD_SURFACE_CLASS as Mt, entryFieldRebindingProjection as N, useFieldDescribedBy as Nt, SiteFontStorageProvider as O, FieldTrigger as Ot, runtimeContentDecorationProjectionFromServerPage as P, Tabs as Pt, unmapValueFromSelect as Q, locationWidgetOverrides as R, Content as Rt, planBlockToolbarPlacement as S, SelectItem as St, usePreviewCompiledTheme as T, usePrevious as Tt, useMediaEditorOptional as U, MediaEditorContextProvider as V, Trigger as Vt, useApiMediaUploader as W, mapCurrentValueForSelect as X, hasEmptyOption as Y, mapOptionValueForSelect as Z, PreviewChromeFloatingControl as _, RadioGroupItem$1 as _t, sanitizeDashboardPath as a, ThemeScopeCore as at, measureSiteTopChromeClearance as b, Select as bt, resolvePreviewSidebarChromeModel as c, EditorCanvasChoiceChip as ct, dashboardLogoSettingsHref as d, EditorInsertionMarker as dt, FieldLabelText as et, HeaderMenuControls as f, EditorPartFrame as ft, PreviewChromeFloatingBar as g, RadioGroup$1 as gt, CustomizeBackgroundColorPicker as h, ChoiceTileGroup as ht, resolvePreviewDashboardSetupHandoff as i, revealEditorElement as it, resolveRuntimePreviewSourceForTheme as j, FIELD_FOCUS_WITHIN_CLASS as jt, useRememberSiteFonts as k, NativeSelect as kt, SiteChromeCustomizeButton as l, EditorCanvasCycleChip as lt, CustomizeBackgroundControlRows as m, CHOSEN_OPTION_CLASS as mt, resolveSiteStyleAccess as n, useField as nt, resolvePreviewEditorGuidanceModel as o, EditorCanvasChip as ot, isHeaderMenuSurfaceState as p, EditorSelectionFrame as pt, useBlockContext as q, buildPreviewDashboardSetupUrl as r, useLinkedInlineTextField as rt, resolvePreviewSetupBannerModel as s, EditorCanvasChipRow as st, canInspectSiteStyle as t, hintWithCharacterLimit as tt, SiteChromeSurfaceControls as u, EditorCanvasNameChip as ut, PreviewChromeLayerProvider as v, Toaster as vt, PreviewThemeRenderingProvider as w, SelectValue as wt, PREVIEW_SITE_BANNER_ATTRIBUTE as x, SelectContent as xt, readThemeCustomProperties as y, Textarea as yt, SiteOptionWidgetProvider as z, List as zt };
@@ -1,7 +1,9 @@
1
1
  "use client";
2
- import { An as selectEditorWriteState, _l as useShallow, bn as useEditorUiStore, gl as cn, kn as selectAutosaveStatus, mt as useSessionJournal, ol as Primitive, zn as useStore } from "./previewAssistantSlot-BgiYk3PB.mjs";
2
+ import { An as selectAutosaveStatus, Bn as useStore, Jl as Button, Kl as Primitive, jn as selectEditorWriteState, nu as cn, pt as useSessionJournal, ru as useShallow, xn as useEditorUiStore } from "./previewAssistantSlot-DrUoRNu9.mjs";
3
+ import { s as Undo2, v as Redo2 } from "./lucide-react-B4c6U3ZU.mjs";
4
+ import { at as Tooltip, ct as TooltipTrigger, ot as TooltipContent } from "./useOpenBlockForSetup-kuGRKaRL.mjs";
3
5
  import * as React$1 from "react";
4
- import { jsx } from "react/jsx-runtime";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
5
7
  //#region ../../node_modules/.pnpm/@radix-ui+react-separator@1.1.10_@types+react-dom@19.3.0_@types+react@19.3.0__@types+re_a0767706651230e21f3454caa0ad586a/node_modules/@radix-ui/react-separator/dist/index.mjs
6
8
  var NAME = "Separator";
7
9
  var DEFAULT_ORIENTATION = "horizontal";
@@ -37,6 +39,50 @@ function Separator({ className, orientation = "horizontal", decorative = true, .
37
39
  });
38
40
  }
39
41
  //#endregion
42
+ //#region ../ui/src/editor-history-buttons.tsx
43
+ const DEFAULT_LABELS = {
44
+ undo: "Undo",
45
+ redo: "Redo"
46
+ };
47
+ function HistoryButton({ label, icon, onClick, disabled }) {
48
+ return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
49
+ asChild: true,
50
+ children: /* @__PURE__ */ jsx(Button, {
51
+ type: "button",
52
+ variant: "ghost",
53
+ size: "icon",
54
+ onClick,
55
+ disabled,
56
+ "aria-label": label,
57
+ children: icon
58
+ })
59
+ }), /* @__PURE__ */ jsx(TooltipContent, { children: label })] });
60
+ }
61
+ /**
62
+ * Undo and Redo as a pair any editor header or bar can hold. The labels say
63
+ * how far they reach where that isn't plain from where they sit: a group's
64
+ * view names them as undoing the page's last change, not the group's.
65
+ * Needs a `TooltipProvider` above it.
66
+ */
67
+ function EditorHistoryButtons({ controls, labels = DEFAULT_LABELS, className }) {
68
+ return /* @__PURE__ */ jsxs("div", {
69
+ className: `items-center ${className ?? "inline-flex"}`,
70
+ role: "toolbar",
71
+ "aria-label": "History controls",
72
+ children: [/* @__PURE__ */ jsx(HistoryButton, {
73
+ label: labels.undo,
74
+ icon: /* @__PURE__ */ jsx(Undo2, {}),
75
+ onClick: controls.onUndo,
76
+ disabled: !controls.canUndo
77
+ }), /* @__PURE__ */ jsx(HistoryButton, {
78
+ label: labels.redo,
79
+ icon: /* @__PURE__ */ jsx(Redo2, {}),
80
+ onClick: controls.onRedo,
81
+ disabled: !controls.canRedo
82
+ })]
83
+ });
84
+ }
85
+ //#endregion
40
86
  //#region ../editor/src/chrome/editorStatusDecision.ts
41
87
  function decideEditorStatus(input) {
42
88
  return {
@@ -108,4 +154,4 @@ function useEditorWriteState() {
108
154
  return useEditorUiStore(useShallow((state) => selectEditorWriteState(state, journalState)));
109
155
  }
110
156
  //#endregion
111
- export { publicationLabel as a, formatEditorStatus as i, useEditorWriteState as n, Separator as o, decideEditorStatus as r, useAutosaveStatus as t };
157
+ export { publicationLabel as a, formatEditorStatus as i, useEditorWriteState as n, EditorHistoryButtons as o, decideEditorStatus as r, Separator as s, useAutosaveStatus as t };