@riverbankcms/sdk 0.182.0 → 0.183.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 (226) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +49 -3
  3. package/dist/_dts/{BlocksIslandsHydrator-Bvw2bUif.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
  4. package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-CEqZJZEE.d.ts} +7 -7
  5. package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
  6. package/dist/_dts/{client-D6T430bk.d.ts → client-B_B_amKD.d.ts} +2 -1
  7. package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
  8. package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
  9. package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
  10. package/dist/_dts/{index-CEyYMhLJ.d.ts → index-BOpUh8kO.d.ts} +1 -1
  11. package/dist/_dts/{index-DIU-wL1M.d.ts → index-Bizdaxji.d.ts} +2 -2
  12. package/dist/_dts/{index-Cqxis-nv.d.ts → index-BxCmCit0.d.ts} +1 -1
  13. package/dist/_dts/{index-CQrb3Ccc.d.ts → index-CjAkEWAp.d.ts} +4 -4
  14. package/dist/_dts/{index-DqPKdeTk.d.ts → index-iuFrbIjt.d.ts} +1 -1
  15. package/dist/_dts/{index-CciRW_w1.d.ts → index-liuhlOX7.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
  17. package/dist/_dts/{request-DEwxUSw8.d.ts → request-Gn0O1blj.d.ts} +24912 -23733
  18. package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-DTwklC_v.d.ts → resolvePageContent-xzJ3c9Na.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 +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +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 +91 -2
  55. package/dist/_dts/{serviceBookingOutline-DtQuFlID.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
  56. package/dist/_dts/{types-B3RjeBLV.d.ts → types-BoITy0rA.d.ts} +41 -4
  57. package/dist/_dts/{types-BvUSGQrw.d.ts → types-DBNuMtSk.d.ts} +16 -5
  58. package/dist/_dts/{types-CkRFtBqd.d.ts → types-DHMcuoeQ.d.ts} +7 -7
  59. package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-BIPO-XlE.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
  61. package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
  62. package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
  63. package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
  64. package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +25 -8
  65. package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
  66. package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
  67. package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
  68. package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
  69. package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
  70. package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-Fr2qi2C2.mjs} +29 -14
  71. package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
  72. package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
  73. package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-COuEJzbO.mjs} +6 -6
  74. package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +21 -42
  75. package/dist/client/{Page-sV6BJkXX.mjs → Page-CgbQZP5g.mjs} +2786 -927
  76. package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
  77. package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
  78. package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
  79. package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DyXoI3ob.mjs} +7 -7
  80. package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
  81. package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-wj4Rloo5.mjs} +336 -119
  82. package/dist/client/{accordion-6cuswD_s.mjs → accordion-BVXfjnh-.mjs} +1 -1
  83. package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-DycPGtke.mjs} +191 -71
  84. package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
  85. package/dist/client/bookings.mjs +5 -5
  86. package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
  87. package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
  88. package/dist/client/{carousel-CGyQVV1M.mjs → carousel-DyCLMP8s.mjs} +2 -2
  89. package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DffP_Nv0.mjs} +1 -1
  90. package/dist/client/{cart-BYOe7MCh.mjs → cart-BuEp_cj4.mjs} +3 -3
  91. package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-CAO39uDG.mjs} +1 -1
  92. package/dist/client/{checkout-Dwd7Di77.mjs → checkout-BoxzT64s.mjs} +3 -3
  93. package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
  94. package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
  95. package/dist/client/client.mjs +446 -93
  96. package/dist/client/{constants-DdxFG3Ic.mjs → constants-C_8AxMdm.mjs} +1 -1
  97. package/dist/client/{context-Hi1RuYEM.mjs → context-D1L0pe__.mjs} +2 -2
  98. package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
  101. package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
  102. package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
  103. package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
  104. package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-aTLifOX7.mjs} +4 -4
  105. package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
  106. package/dist/client/{form-DWnlEVSK.mjs → form-Dikmc2AO.mjs} +3 -3
  107. package/dist/client/{form.client-D7zmeqNI.mjs → form.client-zHaQK5I9.mjs} +5 -5
  108. package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-BLl9n8TH.mjs} +3 -3
  109. package/dist/client/gifting/client.mjs +16 -9
  110. package/dist/client/{gifting-Cn0jidP5.mjs → gifting-CufPM38H.mjs} +4 -4
  111. package/dist/client/{gifting.client-DVo1YFLs.mjs → gifting.client--N1GaSY8.mjs} +155 -84
  112. package/dist/client/gifting.interactive-D9MK4HkV.mjs +157 -0
  113. package/dist/client/gifting.parts-CRtiRzo-.mjs +119 -0
  114. package/dist/client/{headerSection-DjQuj_6v.mjs → headerSection-BIaBpmk3.mjs} +2 -2
  115. package/dist/client/{noop-jesvJXEE.mjs → islands-DJDLGQEm.mjs} +14007 -6685
  116. package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
  117. package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +226 -195
  118. package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
  119. package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
  120. package/dist/client/portal/client.mjs +31 -27
  121. package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
  122. package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DTHlWg_F.mjs} +22 -7
  123. package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
  124. package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
  125. package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-DhZAwo60.mjs} +3 -3
  126. package/dist/client/{productList-BuLemmod.mjs → productList-BiVpbZK2.mjs} +3 -3
  127. package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
  128. package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-C3OBRg7x.mjs} +2027 -781
  129. package/dist/client/rendering/client.mjs +29 -26
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +5 -5
  132. package/dist/client/{richText-coerce-Bnng7JFA.mjs → richText-coerce-ms477Z08.mjs} +2 -2
  133. package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
  135. package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
  136. package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
  137. package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
  138. package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
  139. package/dist/client/{shop-GuMqnDL-.mjs → shop-xt4dQ3HH.mjs} +3 -3
  140. package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
  141. package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-DS8t6749.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/{src-CmXh3JWs.mjs → src-Do_s2lqH.mjs} +11 -18
  144. package/dist/client/{timetableModel-GA-hn1qM.mjs → timetableModel-Dy3nNfTG.mjs} +11 -8
  145. package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
  146. package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
  147. package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
  148. package/dist/client/{view-DOyZc-DF.mjs → view-4gnPcpWJ.mjs} +24 -9
  149. package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-DDvL3iza.mjs} +76 -159
  150. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CLqSRUpt.mjs} +1 -1
  151. package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-CIdAg-Tm.mjs} +1 -1
  152. package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-Bm85jX35.mjs} +2 -2
  153. package/dist/preview-next/client/{PageSectionToolbar-BI3UCdpu.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
  154. package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3864 -1943
  155. package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
  156. package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
  157. package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +12 -8
  158. package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-ORNN4x-3.mjs} +782 -16
  159. package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-eAi3tDAr.mjs} +11 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-BgiYk3PB.mjs → previewAssistantSlot-CqH91EwA.mjs} +17988 -6757
  161. package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
  164. package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
  165. package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
  166. package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.mjs → useOpenBlockForSetup-BaWUF9D7.mjs} +2007 -448
  167. package/dist/preview-next/container-responsive.css +320 -0
  168. package/dist/preview-next/editor-chrome.css +23 -2
  169. package/dist/preview-next/keepAlive.mjs +1 -1
  170. package/dist/preview-next/middleware.mjs +1 -1
  171. package/dist/preview-next/{route-contract-BHTBA48n.mjs → route-contract-Ch0X99vE.mjs} +163 -17
  172. package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-B2FmczLO.mjs} +5 -5
  173. package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DtAyv9qA.mjs} +17 -7
  174. package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-BtPqb76u.mjs} +418 -31
  175. package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
  176. package/dist/server/{bindings-DMJH4bvo.mjs → bindings-B_9JuU66.mjs} +7 -7
  177. package/dist/server/{client-DrwlRNAH.mjs → client-DC7cjiSw.mjs} +469 -92
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +2 -2
  180. package/dist/server/{constants-CeMywaiD.mjs → constants-d6nPNJpe.mjs} +22 -6
  181. package/dist/server/{customCss-C9kgPHvr.mjs → customCss-rtIfEYwQ.mjs} +1 -18
  182. package/dist/server/data/resolveBlockData.mjs +1 -1
  183. package/dist/server/{expandPalette-ehuW8r2g.mjs → expandPalette-DxPrNOAB.mjs} +182 -90
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-D0prFflT.mjs → loadContent-hb27HYic.mjs} +11 -10
  186. package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-JToD8wDD.mjs} +3 -3
  187. package/dist/server/{lookMediaFrame-H0fi4bJk.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
  188. package/dist/server/manifest.mjs +2 -2
  189. package/dist/server/{navigation-wrcuWmgp.mjs → navigation-B2WhGofA.mjs} +1 -1
  190. package/dist/server/navigation.mjs +1 -1
  191. package/dist/server/next.mjs +8 -8
  192. package/dist/server/{overrideResolution-DUgCEH8z.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
  193. package/dist/server/page-converter.mjs +3 -3
  194. package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +86 -97
  195. package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
  196. package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-m80Xu2pd.mjs} +429 -247
  197. package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
  198. package/dist/server/{portal-pG_uhsI2.mjs → portal-B2wCQno_.mjs} +1 -1
  199. package/dist/server/portal.mjs +2 -2
  200. package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-BWIkFaXq.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
  203. package/dist/server/{registry-Cc88-23f.mjs → registry-KtsOsAzY.mjs} +20113 -9774
  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 +9 -9
  209. package/dist/server/{resolveBlockData-OG3KOkig.mjs → resolveBlockData-sjIDJYl7.mjs} +1 -1
  210. package/dist/server/{schema-CwfxQjc4.mjs → schema-BBEqquBM.mjs} +44 -28
  211. package/dist/server/server.mjs +3 -3
  212. package/dist/server/{servicePageContent-BcFuhhD7.mjs → servicePageContent-ChEZDRwU.mjs} +37 -14
  213. package/dist/server/theme-bridge.mjs +3 -3
  214. package/dist/server/theme.mjs +2 -2
  215. package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-DKCIBeb1.mjs} +2 -2
  216. package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-DybHErxH.mjs} +4 -4
  217. package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
  218. package/dist/server/{types-BKaBZFjD.mjs → types-vyz09w64.mjs} +479 -8
  219. package/dist/server/{validation-BovmbS8N.mjs → validation-Cvi-1TZZ.mjs} +13 -9
  220. package/dist/server/{version-hws4hgyX.mjs → version-B-icAIV1.mjs} +1 -1
  221. package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
  222. package/dist/styles/index.css +2482 -108
  223. package/package.json +1 -1
  224. package/dist/client/gifting.parts-Bak93gD2.mjs +0 -86
  225. package/dist/client/runtimeResponse-nXT8VAMl.mjs +0 -3
  226. package/dist/client/types-BEaKfam_.mjs +0 -778
@@ -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 { El as cn, Ic as PortalContainerProvider, on as SURFACE_DOCUMENT_DATA_ATTRIBUTE, sn as resolveSurfaceDocumentAttributes } from "./previewAssistantSlot-CqH91EwA.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-CLdF9f6o.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-CdpSupcr.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-CdpSupcr.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-VQHsRg2u.mjs";
5
+ import "./SdkPreviewModeRuntime-CLdF9f6o.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 Anchor, Ac as DialogTrigger, Cc as Dialog, Cd as unsafeAsEditorBlockId, Cr as resolveBlockVariantKey, El as cn$1, Fn as remoteDraftValues, Fo as escapeStyleContent, In as renderSourceFor, Jc as Item, Ko as applyCompiledRuntimeFieldsToContent, Ks as isRecord$1, Lc as usePortalContainer, Ld as unsafeAsPositiveByteCount, Lo as DEFAULT_THEME_RESPONSIVE_MODE, Nr as LocationMapView, Oc as DialogPortal, Ou as getFontWidthRange, Pc as menuItemInteractionClassName, Pd as assertNever, Po as buildThemeRuntime, Pu as authoredValuesEqual, Qc as Portal, Rc as ReactRemoveScroll, Rd as unsafeAsPositiveSeconds, Rn as resolveRenderedValues, Ro as getResponsiveScopeSpec, Sl as createSlot, Sn as useOptionalEditorUiStoreInstance, Tc as DialogContent, Tl as useComposedRefs, Ts as resolveCompiledSectionContextFromContent, W as siteChromeHeaderLogoMayBeHardToSee, Xc as createRovingFocusGroupScope, Xo as formatSiteChromeBackgroundTokenLabel, Yc as Root, Yo as restoreCompiledRuntimeFieldsFromContent, Zc as Presence, _a as measureSiteTopChromeBottomPx, ai as getBlockDefinition, al as useId$1, as as designRuntimeRulesForTheme, bl as useControlReadiness, c as usePreviewShownTheme, cl as DismissableLayer, cn as ApiRequestError, cu as resolveSurfaceForeground, dl as createCollection, ds as surfaceResolutionContextFromTheme, el as Arrow, en as applyBindingsToContent, fa as SITE_CHROME_VISIBLE_HEADER_SELECTOR, fl as useControllableState, fn as useIsEditingMode, fr as planArrangementContent, gl as Primitive, gs as getSiteFontsStorageUrl, h as composePreviewTheme, hl as composeEventHandlers, hs as generateFontFaceCss, ia as themeRuntimeScopeProps, il as useSize, is as componentRuntimeRulesForTheme, iu as rgbColorValue, ju as asDesignBlockId, kc as DialogTitle, lc as VISUALLY_HIDDEN_STYLES, ll as useCallbackRef, ml as createContextScope, ms as buildGoogleFontFamilyQuery, na as buildThemeDataAttrs, nc as extractApiEnvelopeErrorDetails, nl as Root2$1, nu as surfaceForegroundStyle, ol as FocusScope, ou as mapDrawingStyle, pc as Spinner, pl as useLayoutEffect2, qc as hideOthers, qo as compileEditorModelRuntime, rc as unwrapResponse, rl as createPopperScope, s as usePreviewPageDesignRenderState, sl as useFocusGuards, ss as headerStyleRecipeForTheme, su as parseSurfaceTree, tc as ApiEnvelopeError, tl as Content$1, tu as surfaceForegroundInputFromResolved, u as useSiteChromeCustomizeOptional, uc as Callout, ul as useDirection, us as compiledRuntimeStyleFieldNames, uu as expandPalette, vl as Button, vo as coerceInlineTextWithFallback, wc as DialogClose, ya as siteTopChromeMeasurementTargets$1, yo as deriveInlineTextFieldChanges, zo as heroPhotoPaintsGround, zr as withValueAtPath } from "./previewAssistantSlot-CqH91EwA.mjs";
4
+ import { $ as Crosshair, At as sameLocationSpatialPair, B as House, C as Move, D as MapPin, Dt as decideLocationSave, Et as decideLocationRelationship, F as Info, Ft as locationAddressSchema, It as locationPinSchema, Nt as decideLocationSourcePermission, Ot as editLocationValue, Pt as formatLocationAddress, Tt as confirmLocationPair, Xt as ok, Yt as err, 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 sameMeaningfulAddress, kt as locationDistanceMetres, l as Store, lt as ChevronUp, n as X, p as Search, pt as Check, r as WifiOff, s as TriangleAlert, st as CircleCheck, ut as ChevronRight, v as Plus, w as Mountain, wt as LOCATION_MATCH_THRESHOLDS_METRES, y as Pencil, zt as parseLocationValue } from "./lucide-react-eAi3tDAr.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-CIdAg-Tm.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,
@@ -6328,7 +6351,7 @@ function usePreviewTheme(siteId, enabled) {
6328
6351
  }
6329
6352
  //#endregion
6330
6353
  //#region ../editor-blocks/src/widgets/location/PickerMapArea.tsx
6331
- const LazyEditMap = lazy(() => import("./MapLibreEditMap-Db9BHyXh.mjs").then((mod) => ({ default: mod.MapLibreEditMap })));
6354
+ const LazyEditMap = lazy(() => import("./MapLibreEditMap-Bm85jX35.mjs").then((mod) => ({ default: mod.MapLibreEditMap })));
6332
6355
  function EditMap(props) {
6333
6356
  return /* @__PURE__ */ jsx(Suspense, {
6334
6357
  fallback: null,
@@ -9115,7 +9138,13 @@ function HeaderLogoContrastNotice({ logoSettingsHref }) {
9115
9138
  //#region ../preview-next/src/client/preview/SiteChromeCustomizeButton.tsx
9116
9139
  /** Said once under the controls when this person can look but not change the site's chrome. */
9117
9140
  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" }) {
9141
+ /** In the editor the chrome's controls belong to editing, so a visitor view hides them. */
9142
+ function SiteChromeCustomizeButton(props) {
9143
+ const store = useOptionalEditorUiStoreInstance();
9144
+ const isEditing = useIsEditingMode();
9145
+ return store && !isEditing ? null : /* @__PURE__ */ jsx(SiteChromeCustomizeControl, { ...props });
9146
+ }
9147
+ 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
9148
  const customize = useSiteChromeCustomizeOptional();
9120
9149
  const store = useOptionalEditorUiStoreInstance();
9121
9150
  const popover = useCustomizePopoverController();
@@ -9666,4 +9695,4 @@ function canInspectSiteStyle(access) {
9666
9695
  return access.kind === "apply-allowed";
9667
9696
  }
9668
9697
  //#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 };
9698
+ export { FieldFrame as $, pageDesignRuntimeProjectionFromSource as A, FIELD_SURFACE_CLASS as At, useSiteOptionWidgetContext as B, classifyKnownMimeType as Bt, PreviewCompiledThemeProvider as C, usePrevious as Ct, SiteFontFaceStyles as D, NativeSelect as Dt, usePreviewCompiledThemeOptional as E, FieldTrigger as Et, mergeResolvedDataContext as F, TabsTrigger as Ft, TransferError as G, useMediaEditor as H, withRenderedContentEntry as I, Content as It, SelectField as J, BlockContextProvider as K, siteColourCss as L, List as Lt, applyPreviewRuntimeContentProjections as M, Tabs as Mt, entryFieldRebindingProjection as N, TabsContent as Nt, SiteFontStorageProvider as O, Input as Ot, runtimeContentDecorationProjectionFromServerPage as P, TabsList as Pt, unmapValueFromSelect as Q, locationWidgetOverrides as R, Root2 as Rt, planBlockToolbarPlacement as S, SelectValue as St, usePreviewCompiledTheme as T, SearchInput as Tt, useMediaEditorOptional as U, MediaEditorContextProvider as V, useApiMediaUploader as W, mapCurrentValueForSelect as X, hasEmptyOption as Y, mapOptionValueForSelect as Z, PreviewChromeFloatingControl as _, Textarea as _t, sanitizeDashboardPath as a, ThemeScopeCore as at, measureSiteTopChromeClearance as b, SelectItem 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, Toaster as gt, CustomizeBackgroundColorPicker as h, ChoiceTileGroup as ht, resolvePreviewDashboardSetupHandoff as i, revealEditorElement as it, resolveRuntimePreviewSourceForTheme as j, useFieldDescribedBy as jt, useRememberSiteFonts as k, FIELD_FOCUS_WITHIN_CLASS 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, Select as vt, PreviewThemeRenderingProvider as w, clamp as wt, PREVIEW_SITE_BANNER_ATTRIBUTE as x, SelectTrigger as xt, readThemeCustomProperties as y, SelectContent as yt, SiteOptionWidgetProvider as z, Trigger 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 selectEditorWriteState, Dl as useShallow, El as cn, bn as useEditorUiStore, ft as useSessionJournal, gl as Primitive, kn as selectAutosaveStatus, vl as Button, zn as useStore } from "./previewAssistantSlot-CqH91EwA.mjs";
3
+ import { _ as Redo2, o as Undo2 } from "./lucide-react-eAi3tDAr.mjs";
4
+ import { at as Tooltip, ct as TooltipTrigger, ot as TooltipContent } from "./useOpenBlockForSetup-BaWUF9D7.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 };