@riverbankcms/sdk 0.161.0 → 0.162.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 (187) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-Bx4kLiTA.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
  2. package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-CdQS6C7i.d.ts} +8 -8
  3. package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +58 -91
  4. package/dist/_dts/{client-Ep0jI9eE.d.ts → client-DGa53rjL.d.ts} +11 -3
  5. package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
  6. package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-CyBaPaIq.d.ts} +13 -4
  7. package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
  9. package/dist/_dts/{index-ylivB7Jj.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
  10. package/dist/_dts/{index-CSsfq6KG.d.ts → index-BtnsA14K.d.ts} +9 -5
  11. package/dist/_dts/{index-BVkP8f70.d.ts → index-C39F9KaB.d.ts} +13 -2
  12. package/dist/_dts/{index-KPrWM0KF.d.ts → index-DEu85xBt.d.ts} +1 -1
  13. package/dist/_dts/{schema-BHu0PYWl.d.ts → index-DI2yaSPY.d.ts} +4099 -3343
  14. package/dist/_dts/{types-BR1Yboa9.d.ts → index-Dbd0Sn0G.d.ts} +3300 -1691
  15. package/dist/_dts/{index-CF6Cjs7b.d.ts → index-Du1IRglc.d.ts} +2 -2
  16. package/dist/_dts/{index-D_8uz4OP.d.ts → index-Jlcq6w69.d.ts} +3 -3
  17. package/dist/_dts/{index-DvKQA6AZ.d.ts → index-Wm62sXf2.d.ts} +4 -4
  18. package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-BPfAAZDW.d.ts} +10 -7
  19. package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-DWbrtKf8.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +6 -6
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/index.d.ts +8 -8
  27. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  28. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  29. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  30. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  31. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  32. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  34. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  35. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  36. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  37. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  38. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  39. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  40. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  42. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  43. package/dist/_dts/sdk/src/server.d.ts +5 -5
  44. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  45. package/dist/_dts/{types-ZGUiHpDE.d.ts → types-CVv2H4AT.d.ts} +7 -7
  46. package/dist/_dts/{types-D02ngcUH.d.ts → types-CfNG5koF.d.ts} +2 -2
  47. package/dist/_dts/{types-CJXTCF_F.d.ts → types-ClZ-BQL_.d.ts} +3 -3
  48. package/dist/_dts/{validation-BaV565gb.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
  49. package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +20 -19
  50. package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
  51. package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
  52. package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
  53. package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
  54. package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
  55. package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
  56. package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
  57. package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
  58. package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-M5rpaHxi.mjs} +4 -4
  59. package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
  60. package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
  61. package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-k4lhuCn5.mjs} +14 -21
  62. package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +10 -10
  63. package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
  64. package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-_aIK2ojv.mjs} +2 -70
  65. package/dist/client/{Page-Bf2nPACI.mjs → Page-DJBIQBOw.mjs} +1762 -254
  66. package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
  67. package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
  68. package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-BWsDgjMC.mjs} +1 -1
  69. package/dist/client/{accordion-TcimLLRQ.mjs → accordion-CtO2XF7M.mjs} +1 -1
  70. package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
  71. package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
  72. package/dist/client/bookings.mjs +5 -5
  73. package/dist/client/{carousel-CGAk6j0m.mjs → carousel-BR-zCD3O.mjs} +2 -2
  74. package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
  75. package/dist/client/{cart-D_h3rAZ2.mjs → cart-C6YpKbZZ.mjs} +3 -3
  76. package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-dC938WrX.mjs} +1 -1
  77. package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Dy9RlREI.mjs} +3 -3
  78. package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-CefG0d2F.mjs} +1 -1
  79. package/dist/client/client.mjs +34 -69
  80. package/dist/client/{context-9ZfMb6GA.mjs → context-BFwxgZpB.mjs} +28 -1
  81. package/dist/client/{cta-D-ZqL7-e.mjs → cta-DtA42Xio.mjs} +1 -1
  82. package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
  83. package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
  84. package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
  85. package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-BFgsLqTj.mjs} +2 -1
  86. package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-BaXZ1-Ky.mjs} +13 -13
  87. package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-COLwF80U.mjs} +4 -4
  88. package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
  89. package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-CBrkimXu.mjs} +2 -2
  90. package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-CedKVA1S.mjs} +4 -4
  91. package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
  92. package/dist/client/{form-QZhtdFHA.mjs → form-XFy9uXSJ.mjs} +3 -3
  93. package/dist/client/{form.client-CgvPACwG.mjs → form.client-B0iancFK.mjs} +4 -4
  94. package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-DMbolu9Y.mjs} +3 -3
  95. package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
  96. package/dist/client/gifting/client.mjs +3 -3
  97. package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-WjlECjtV.mjs} +2 -2
  98. package/dist/client/{mediaAssets-BvjcAZpS.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
  99. package/dist/client/mediaContext-CNzWmoA4.mjs +136 -0
  100. package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
  101. package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
  102. package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
  103. package/dist/client/{noop-B7H6gCbj.mjs → noop-B3RNPVrt.mjs} +19 -3
  104. package/dist/client/portal/client.mjs +1116 -85
  105. package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
  106. package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
  107. package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-CbBUVWgd.mjs} +3 -3
  108. package/dist/client/{productList-DEo8Bqoe.mjs → productList-vqOKH2mh.mjs} +3 -3
  109. package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-CkSUep5a.mjs} +4 -3
  110. package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-cZ24QwtW.mjs} +272 -68
  111. package/dist/client/rendering/client.mjs +27 -26
  112. package/dist/client/rendering/islands.mjs +1 -1
  113. package/dist/client/rendering.mjs +10 -7
  114. package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
  115. package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
  116. package/dist/client/{schema-C-m8XHuW.mjs → schema-DNHLlze-.mjs} +4575 -4311
  117. package/dist/client/{shop-RGWa43H7.mjs → shop-CF0dhnfH.mjs} +3 -3
  118. package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
  119. package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
  120. package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-DqfYoqWH.mjs} +12 -12
  121. package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-CreQ0I7i.mjs} +38 -31
  122. package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-D-yh-P7g.mjs} +2 -2
  123. package/dist/client/{mediaContext-jPeJ2PmJ.mjs → site-styles-B9HgmY07.mjs} +1329 -511
  124. package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-DCdVErTJ.mjs} +10 -9
  125. package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
  126. package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
  127. package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
  128. package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
  129. package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-CsysCF22.mjs} +6 -6
  130. package/dist/client/{view-Dj_FZHmg.mjs → view-BpBjo9Te.mjs} +64 -55
  131. package/dist/client/{view-BUh4LnLS.mjs → view-DMyTchi7.mjs} +4 -4
  132. package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-BO2OmMO9.mjs} +59 -53
  133. package/dist/preview-next/before-render.mjs +3 -3
  134. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +1 -1
  135. package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +164 -1042
  136. package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-VaHvYtrA.mjs} +9 -190
  137. package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
  138. package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +220 -130
  139. package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-CHKOWXxl.mjs} +608 -333
  140. package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-C0VUwEHz.mjs} +158752 -162808
  141. package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
  142. package/dist/preview-next/client/runtime.mjs +3 -3
  143. package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
  144. package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
  145. package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-BeR2S8oG.mjs} +1 -1
  146. package/dist/preview-next/keepAlive.mjs +2 -2
  147. package/dist/preview-next/middleware.mjs +1 -1
  148. package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
  149. package/dist/preview-next/{route-contract-hLg-yjQN.mjs → route-contract-CkrFDMrl.mjs} +394 -200
  150. package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-DxvNGDig.mjs} +4 -4
  151. package/dist/server/{bindings-C5YpKuKt.mjs → bindings-BuhKvYkE.mjs} +2 -2
  152. package/dist/server/{client-Cv26lZQ4.mjs → client-BobW6DOz.mjs} +34 -69
  153. package/dist/server/config-validation.mjs +1 -1
  154. package/dist/server/config.mjs +2 -2
  155. package/dist/server/{effectiveNavLinkStyle-CGvGr3yD.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +1127 -144
  156. package/dist/server/index.mjs +3 -3
  157. package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-CCG_3mbY.mjs} +7 -4
  158. package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
  159. package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-jntGoMrf.mjs} +2 -2
  160. package/dist/server/next.mjs +9 -9
  161. package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
  162. package/dist/server/{overrides-D1fiPOKF.mjs → overrides-DByQwIyW.mjs} +264 -168
  163. package/dist/server/page-converter.mjs +1 -1
  164. package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-DrwcTk2t.mjs} +1 -1
  165. package/dist/server/prebuild.mjs +1 -1
  166. package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-LfgxSJYE.mjs} +31 -10
  167. package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-8A3T5v4M.mjs} +647 -166
  168. package/dist/server/{registry-BVfCqaCq.mjs → registry-Digv02oV.mjs} +308 -36
  169. package/dist/server/rendering/server.mjs +4 -4
  170. package/dist/server/rendering.mjs +8 -8
  171. package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
  172. package/dist/server/routing.mjs +1 -1
  173. package/dist/server/{schema-CD4peO7m.mjs → schema-BiqpDRwB.mjs} +2813 -2549
  174. package/dist/server/server.mjs +3 -3
  175. package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-DrkprQPL.mjs} +81 -113
  176. package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-BmKKkkbh.mjs} +2 -2
  177. package/dist/server/{src-ILxc6pid.mjs → src-08GY1njw.mjs} +902 -44
  178. package/dist/server/theme-bridge.mjs +1 -1
  179. package/dist/server/theme.mjs +1 -1
  180. package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CSd_Vusz.mjs} +36 -29
  181. package/dist/server/{validation-B1ieVemg.mjs → validation-DdUTkBOZ.mjs} +2 -2
  182. package/dist/server/{version-BQK44wFg.mjs → version-DdIOqIDe.mjs} +1 -1
  183. package/dist/styles/index.css +872 -41
  184. package/package.json +1 -1
  185. package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
  186. package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +0 -5812
  187. package/dist/server/loadPage--DXBwI8V.mjs +0 -2
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-BC0V7iAR.mjs";
3
- import { Br as makeBoundaryId, Ln as defaultThemeTokens, Or as asSiteStyleId, U as parseThemeForPersistence, cn as parseResolvedSurface, dn as resolveSurface, dr as renderableMediaAssetSchema$1, fr as indexRenderableMediaAssets, kn as expandPalette, kr as assertNever$1, ln as parseSurfaceTree, nn as textColorStyle, ur as buildRenderableMediaAssetIndex, vt as stripStaleTransitionStyleGroup, xr as asDesignBlockId } from "./ThemedButton-b14Bv03E.mjs";
4
- import { $ as lookTilePosition, $a as heroPhotoPaintsGround, $i as testimonialsHeadingFragment, Ai as resolveEntryRouteTarget, An as useEditorUiStoreInstance, At as useRetentionTicks, Bi as buildResolveImageUrlContext, Bn as unsafeAsLinkedContentEntryId, Br as isSupportedLoaderEndpoint, Ca as readStoredMode, Ci as logger, Ct as useEntryEditorController, Da as deriveSiteStyleBlockPolicy, Di as calendarWindowQuerySchema, Ea as resolvePublishedLook, Ei as defaultTransforms, Fi as LINKED_CONTENT_ENTRY_META_KEY, Fn as remoteDraftValues, Fs as NO_BLOCK_VERSIONS, Ft as EditorWriteSurface, Ga as boundaryLayout, Gi as cardFragment, Go as TabsList, Gr as createCustomBlockRegistry, Hi as setContextResolveImageUrlContext, Hn as isEdited, Ii as coerceLinkedContentEntriesPayload, In as renderSourceFor, Is as readEditorBlockVersionsFromPlacement, It as editorAdmissionNotice, Ja as defaultSectionTransitionVariantForFamily, Ji as blogFeaturedPostFragment, Jo as DialogContent, Jr as getBlockDefinition, Js as toUtcIsoDateTimeString, Ka as composeBoundary, Ki as faqAccordionFragment, Ko as TabsTrigger, Kr as makeDefaultBlockComponent, Li as getLinkedContentEntryMeta, Ln as renderedFieldChanges, Ls as readPublishedBlockPlacement, Mi as resolveRouteTarget, Ms as parseFooterModuleId, Nn as activeLinkedSaveHandover, No as Callout, Ns as parseMailingListPlacementTargeting, Nt as EditLeaseDiscardedNotice, Oa as componentRuntimeRulesForTheme, Oi as publicEventsArraySchema, Os as cn, Ot as createEditorApiClientFactory, Pa as surfaceResolutionContextFromTheme, Pi as formatDate, Pn as planLinkedSaveHandoverRetention, Po as CalloutDescription, Ps as sameMailingListPlacementTargeting, Pt as EditLeaseModal, Q as lookPositionLabel, Qa as deriveSectionGround, Qi as testimonialsCarouselFragment, Qo as DialogTitle, Qr as SITE_CHROME_VISIBLE_HEADER_SELECTOR, Rn as resolveRenderedValues, Rs as selectedContentVersionId, Sa as arrangementManifestFromVariants, Si as renderInlineText, Ta as resolveModeArrangement, Ti as RichText$1, Ts as Button, Ui as richTextFragment, Uo as Tabs, Us as unsafeAsEditorBlockId, Vi as getCurrentResolveImageUrlContext, Vn as baselineRevisionOf, Vr as ThemeScope, Wa as formatSiteChromeBackgroundTokenLabel, Wi as headingFragment, Wn as canEditorWrite, Wo as TabsContent, Wr as resolveSdkFooterMode, Xa as sectionTransitionFamilyForBoundaryOptionId, Xi as formEmbedFragment, Xo as DialogFooter, Xr as offeringsPreviewBlockDefinition, Ya as sectionTransitionFamilies, Yi as singleButtonFragment, Yo as DialogDescription, Yr as normalizeBlockContent, Ys as assertNever$2, Za as sectionTransitionVariantForBoundaryOptionId, Zi as formCopyFragment, Zo as DialogHeader, Zr as publicRouteCandidatesSchema, _ as PreviewDesignHistoryOrderProvider, _i as buildAppointmentServicesView, _o as isInlineTextEmpty, _r as unwrapResponse, _t as PREVIEW_EDITABLE_OUTLINE, ai as resolveArrangementKnobs, ao as admitReadinessFacts, ar as DEFAULT_LAUNCH_READINESS_INPUT, at as registerPreviewRenewalFetcher, ba as resolveItemSurface, bn as createRoutingHelpers, bo as getAtPath, br as BlockApiProvider, bt as EditableBlockProvider, ca as runTransforms, ci as mergeContentWithBlockStyleOverrides, cn as EditorProvider, co as unavailableReadinessFact, ct as usePreviewToken, da as blockLookFromContent, di as chosenString, do as isRecord$7, ea as ctaCopyFragment, eo as parseCanonicalRuntimeBackground, fa as readBlockComposition, fo as parseBlockIconValue, ft as renderSiteChromeBlock, g as usePreviewPageDesignEditorState, gi as resolveLocationMapLocation, go as inlineTextToPlainText, gr as API_ENDPOINTS, gt as PreviewTextEditor, h as PreviewPageDesignEditorStateProvider, ha as compileEditorModelRuntime, hi as normalizeLocationMapSource, ho as coerceInlineTextWithFallback, ht as PreviewInlineTextEditor, i as PreviewDesignCoordinatorProvider, ii as systemCustomizeFacetDefinitionsForBlock, io as resolveDateRuntimeContext, ir as decodePublicProductCategorySelectorQuery, it as initPreviewAuth, ja as headerStyleRecipeForTheme, ji as resolvePageRouteTarget, jn as useOptionalEditorUiStoreInstance, js as buildMailingListSignupBlockSourceRef, jt as VIEWING_PARTICIPATION, ka as designRuntimeRulesForTheme, ki as bookingConsentCarrierSchema, kn as useEditorUiStore, kt as createPageSurfaceEditorServices, la as defineFragment, li as getDefaultComponentRegistry, ln as useEditor, lo as isRichTextDoc, lr as useApiMediaUploader, lt as SiteAdmissionObserver, ma as applyCompiledRuntimeFieldsToContent, mi as buildLoadedOfferingsPreviewListing, mo as parseGeneratedIconSetId, mt as PreviewRichTextEditor, n as useSiteChromeCustomizeOptional, na as ctaRowFragment, ni as compileManifestContentContract, no as resolveSectionBackground, o as PreviewThemeOverlayProvider, oa as ctaButton, oi as buildThemeRuntime, oo as loadedReadinessFact, or as deriveLaunchReadiness, ot as renewPreviewSession, pa as applyPageOpeningForegroundToTheme, po as parseGeneratedIconAssetId, qa as sectionFactsForContent, qi as faqHeadingFragment, qo as Dialog, qr as resolveBlockVariantKey, ra as heroCopyFragment, ri as validateManifestDraft, ro as readRuntimeNow, rr as blocksKeys, rt as createGuardedPreviewApiClient, s as usePreviewThemeOverlay, sa as bodyCopyFragment, so as pageTemplateFromEntry, sr as MediaEditorContextProvider, st as usePreviewAuth, t as SiteChromeCustomizeProvider, ta as heroCtaRowFragment, ti as parseStoredVariant, to as resolveCompiledSectionForegroundFromContent, ua as arrangementHooksFromContent, ui as projectRecurringSchedule, uo as isObjectRecord, ur as ApiRequestError, ut as SessionJournalHost, vi as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, vo as plainTextToInlineText, vr as clientComponentRegistry, wa as resolveEffectiveArrangement, wi as Text$1, wt as useOptionalSessionJournal, xa as resolveLookSlotSurfaces, xn as createSnapshotFromPageRecord, xo as siblingPath, xt as EntryControllerProvider, ya as arrangementSlotNames, yi as offeringsListingFor, yo as bindingSchema, yr as ImageResolveContextProvider, zs as parseEditLeaseScope } from "./SiteChromeCustomizeContext-CDbxk_qZ.mjs";
3
+ import { Ar as assertNever$1, Cr as asDesignBlockId, Hr as makeBoundaryId, Ln as defaultThemeTokens, U as parseThemeForPersistence, cn as parseResolvedSurface, dn as resolveSurface, dr as buildRenderableMediaAssetIndex, fr as renderableMediaAssetSchema$1, kn as expandPalette, kr as asSiteStyleId, ln as parseSurfaceTree, nn as textColorStyle, pr as indexRenderableMediaAssets, vt as stripStaleTransitionStyleGroup } from "./ThemedButton-CHKOWXxl.mjs";
4
+ import { $i as applyCompiledRuntimeFieldsToContent, $o as Dialog, $r as coerceLinkedContentEntriesPayload, $t as unsafeAsLinkedContentEntryId, Ai as readBlockComposition, B as useRetentionTicks, Bi as parseBlockIconValue, Bn as ImageResolveContextProvider, Bo as CalloutDescription, Br as logger, Bs as sameMailingListPlacementTargeting, Bt as useEditorUiStore, Ca as resolveModeArrangement, Cn as DEFAULT_LAUNCH_READINESS_INPUT, Cr as buildThemeRuntime, Di as defineFragment, Do as siblingPath, Dr as projectRecurringSchedule, Ea as componentRuntimeRulesForTheme, Ei as runTransforms, En as MediaEditorContextProvider, Eo as getAtPath, Er as getDefaultComponentRegistry, Fa as surfaceResolutionContextFromTheme, Fi as pageTemplateFromEntry, Fr as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, G as EditorWriteSurface, Gi as isInlineTextEmpty, Gr as publicEventsArraySchema, Gs as parseEditLeaseScope, Hi as parseGeneratedIconSetId, Hr as RichText$1, Hs as readEditorBlockVersionsFromPlacement, Ht as useOptionalEditorUiStoreInstance, I as createEditorApiClientFactory, Ii as unavailableReadinessFact, In as API_ENDPOINTS, Ir as offeringsListingFor, Jr as resolvePageRouteTarget, Jt as remoteDraftValues, Ki as plainTextToInlineText, Kr as bookingConsentCarrierSchema, Kt as activeLinkedSaveHandover, Li as isRichTextDoc, Ls as buildMailingListSignupBlockSourceRef, Ma as headerStyleRecipeForTheme, Mi as resolveDateRuntimeContext, Mr as normalizeLocationMapSource, Mt as createSnapshotFromPageRecord, Ni as admitReadinessFacts, Nr as resolveLocationMapLocation, Oa as designRuntimeRulesForTheme, Oi as arrangementHooksFromContent, On as useApiMediaUploader, Or as chosenString, Pi as loadedReadinessFact, Pr as buildAppointmentServicesView, Ps as cn, Qn as ThemeScope, Qo as TabsTrigger, Qr as LINKED_CONTENT_ENTRY_META_KEY, Ri as isObjectRecord, Rn as unwrapResponse, Rs as parseFooterModuleId, Sa as resolveEffectiveArrangement, Sn as decodePublicProductCategorySelectorQuery, Sr as resolveArrangementKnobs, Ta as deriveSiteStyleBlockPolicy, Ti as bodyCopyFragment, Tr as mergeContentWithBlockStyleOverrides, U as EditLeaseDiscardedNotice, Ui as coerceInlineTextWithFallback, Ur as defaultTransforms, Us as readPublishedBlockPlacement, V as VIEWING_PARTICIPATION, Vi as parseGeneratedIconAssetId, Vn as BlockApiProvider, Vr as Text$1, Vs as NO_BLOCK_VERSIONS, Vt as useEditorUiStoreInstance, W as EditLeaseModal, Wi as inlineTextToPlainText, Wr as calendarWindowQuerySchema, Ws as selectedContentVersionId, Xi as applyPageOpeningForegroundToTheme, Xo as TabsContent, Xs as unsafeAsEditorBlockId, Xt as renderedFieldChanges, Yo as Tabs, Yr as resolveRouteTarget, Yt as renderSourceFor, Zn as isSupportedLoaderEndpoint, Zo as TabsList, Zr as formatDate, Zt as resolveRenderedValues, _i as ctaCopyFragment, _o as heroPhotoPaintsGround, _t as EditorProvider, a as usePreviewAuth, ai as setContextResolveImageUrlContext, ar as getBlockDefinition, ba as arrangementManifestFromVariants, bi as heroCopyFragment, bo as resolveSectionBackground, c as SessionJournalHost, ci as cardFragment, co as boundaryLayout, cr as publicRouteCandidatesSchema, di as blogFeaturedPostFragment, ea as compileEditorModelRuntime, ei as getLinkedContentEntryMeta, es as DialogContent, f as PreviewRichTextEditor, fi as singleButtonFragment, fo as defaultSectionTransitionVariantForFamily, fr as parseStoredVariant, ga as arrangementSlotNames, gi as testimonialsHeadingFragment, go as deriveSectionGround, h as PREVIEW_EDITABLE_OUTLINE, hi as testimonialsCarouselFragment, ho as sectionTransitionVariantForBoundaryOptionId, i as renewPreviewSession, ii as getCurrentResolveImageUrlContext, io as formatSiteChromeBackgroundTokenLabel, ir as resolveBlockVariantKey, is as DialogTitle, ji as readRuntimeNow, jr as buildLoadedOfferingsPreviewListing, js as Button, jt as createRoutingHelpers, ki as blockLookFromContent, kn as ApiRequestError, li as faqAccordionFragment, lo as composeBoundary, lr as SITE_CHROME_VISIBLE_HEADER_SELECTOR, m as PreviewTextEditor, mi as formCopyFragment, mo as sectionTransitionFamilyForBoundaryOptionId, mr as validateManifestDraft, n as initPreviewAuth, nc as toUtcIsoDateTimeString, nn as baselineRevisionOf, nr as createCustomBlockRegistry, ns as DialogFooter, o as usePreviewToken, oi as richTextFragment, on as canEditorWrite, or as normalizeBlockContent, p as PreviewInlineTextEditor, pi as formEmbedFragment, po as sectionTransitionFamilies, pr as compileManifestContentContract, qi as bindingSchema, qr as resolveEntryRouteTarget, qt as planLinkedSaveHandoverRetention, r as registerPreviewRenewalFetcher, rc as assertNever$2, ri as buildResolveImageUrlContext, rn as isEdited, rr as makeDefaultBlockComponent, rs as DialogHeader, s as SiteAdmissionObserver, si as headingFragment, sr as offeringsPreviewBlockDefinition, t as createGuardedPreviewApiClient, tn as editorAdmissionNotice, tr as resolveSdkFooterMode, ts as DialogDescription, u as renderSiteChromeBlock, ui as faqHeadingFragment, uo as sectionFactsForContent, v as EditableBlockProvider, va as resolveItemSurface, vi as heroCtaRowFragment, vo as parseCanonicalRuntimeBackground, vr as systemCustomizeFacetDefinitionsForBlock, vt as useEditor, wa as resolvePublishedLook, wi as ctaButton, wn as deriveLaunchReadiness, x as useEntryEditorController, xa as readStoredMode, xn as blocksKeys, y as EntryControllerProvider, ya as resolveLookSlotSurfaces, yi as ctaRowFragment, yo as resolveCompiledSectionForegroundFromContent, z as createPageSurfaceEditorServices, zi as isRecord$7, zn as clientComponentRegistry, zo as Callout, zr as renderInlineText, zs as parseMailingListPlacementTargeting } from "./previewAuthStore-C0VUwEHz.mjs";
5
5
  import { Ft as parseLocationValue, H as GripVertical, It as projectPublicLocation, Lt as publicLocationSchema, _ as RotateCcw, kt as decideLocationSourcePermission, lt as ChevronRight, n as X, ut as ChevronLeft } from "./lucide-react-CA9cpo0P.mjs";
6
- import { A as PreviewBlockCustomizeSelectionProvider, F as planSiteDocument, I as ResponsiveScope, L as Toaster, N as SITE_CHROME_CLASS_NAMES, P as SiteDocumentLayout, a as sanitizeDashboardPath, b as cyclePageDesignBlockLook, d as useBlockCustomizeControls, g as LookCyclePill, i as resolvePreviewDashboardSetupHandoff, j as usePreviewBlockCustomizeSelectionOptional, k as CustomizeBackgroundColorPicker, l as PreviewSiteFontStorageProvider, m as ArrangementModeSwitchPill, n as resolveSiteStyleAccess, p as ArrangementLookPill, r as buildPreviewDashboardSetupUrl, s as resolvePreviewSetupBannerModel, t as canInspectSiteStyle, v as useArrangementToolbar, x as pageDesignLookPosition, y as CustomizeBackgroundControlRows } from "./siteStyleAccess-Kqk0j0dE.mjs";
6
+ import { $ as useBlockCustomizeControls, Bt as planSiteDocument, C as usePreviewThemeOverlay, Dt as CustomizeBackgroundColorPicker, Ht as Toaster, Ot as PreviewBlockCustomizeSelectionProvider, Rt as SITE_CHROME_CLASS_NAMES, S as PreviewThemeOverlayProvider, Vt as ResponsiveScope, _ as SiteChromeCustomizeProvider, a as sanitizeDashboardPath, b as PreviewDesignCoordinatorProvider, bt as lookTilePosition, ct as usePreviewPageDesignEditorState, h as SiteFontStorageProvider, ht as pageDesignLookPosition, i as resolvePreviewDashboardSetupHandoff, it as LookCyclePill, kt as usePreviewBlockCustomizeSelectionOptional, mt as cyclePageDesignBlockLook, n as resolveSiteStyleAccess, nt as ArrangementModeSwitchPill, ot as useArrangementToolbar, pt as CustomizeBackgroundControlRows, r as buildPreviewDashboardSetupUrl, s as resolvePreviewSetupBannerModel, st as PreviewPageDesignEditorStateProvider, t as canInspectSiteStyle, tt as ArrangementLookPill, v as useSiteChromeCustomizeOptional, yt as lookPositionLabel, zt as SiteDocumentLayout } from "./siteStyleAccess-DHyzUpv4.mjs";
7
7
  import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-QtSG2Bl-.mjs";
8
- import { a as resolvePreviewChromeSurface, i as getPreviewChromeSurfaceDataProps, n as PREVIEW_CHROME_THEME_CLASS_NAME, o as PREVIEW_KEEP_ALIVE_INTERVAL_MS, s as PREVIEW_KEEP_ALIVE_JITTER_RATIO, u as FixedBottomSurface } from "./previewChromeSurface-Dd1_mNIg.mjs";
8
+ import { a as resolvePreviewChromeSurface, i as getPreviewChromeSurfaceDataProps, n as PREVIEW_CHROME_THEME_CLASS_NAME, o as PREVIEW_KEEP_ALIVE_INTERVAL_MS, s as PREVIEW_KEEP_ALIVE_JITTER_RATIO, u as FixedBottomSurface } from "./previewChromeSurface-Dhyx2YrS.mjs";
9
9
  import * as React$1 from "react";
10
10
  import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
11
11
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -975,6 +975,7 @@ function planArrangementContent(blockKind, manifest, content, audience) {
975
975
  });
976
976
  return {
977
977
  ...activeContent,
978
+ ...mode !== null ? { variant: mode } : {},
978
979
  ...effectiveContent,
979
980
  ...photoContent,
980
981
  ...arrangementShapeContent(effective.look.id, {
@@ -4739,7 +4740,7 @@ function snapshotFromPreviewEntry(entryData) {
4739
4740
  title,
4740
4741
  path: entryData.path ?? "",
4741
4742
  status,
4742
- publishAt
4743
+ publishAt: entryData.lastPublishedAt ?? null
4743
4744
  },
4744
4745
  status,
4745
4746
  route: previewEntryRoute(entryData)
@@ -4755,6 +4756,7 @@ function snapshotFromPreviewPage(pageId, metadata, schema) {
4755
4756
  path: metadata.path,
4756
4757
  status: metadata.status,
4757
4758
  publishedAt: metadata.publishedAt,
4759
+ lastPublishedAt: metadata.lastPublishedAt,
4758
4760
  draftMetaTitle: metadata.draftMetaTitle,
4759
4761
  draftMetaDescription: metadata.draftMetaDescription,
4760
4762
  publishedMetaTitle: metadata.publishedMetaTitle,
@@ -4793,11 +4795,8 @@ function previewValues(entryData, pageMetadata) {
4793
4795
  };
4794
4796
  }
4795
4797
  /** Loading may render the document, but grants neither lease participation nor shortcuts. */
4796
- function previewAuthoringMode(mode, admitted = true) {
4797
- return {
4798
- requestedEditingMode: admitted && mode.requestedEditingMode,
4799
- historyShortcutsEnabled: admitted && mode.isEditingMode
4800
- };
4798
+ function previewAuthoringMode(mode, admitted) {
4799
+ return { requestedEditingMode: admitted && mode.requestedEditingMode };
4801
4800
  }
4802
4801
  function PreviewEntryControllerProvider({ children, businessTimeZone, siteId, pageId, pageNodeType = "page", routeId: providedRouteId, entryData, contentTypeSchema, initialStatus = "draft", initialBlocks, blockFieldExtensions, pageMetadata, initialPageJournalState, authoringAdmitted, apiClient, subscribeToLeaseChanges, onLeaseGranted, liveDrafts }) {
4803
4802
  const authoring = previewAuthoringMode(useEditor(), authoringAdmitted);
@@ -4848,7 +4847,6 @@ function PreviewEntryControllerProvider({ children, businessTimeZone, siteId, pa
4848
4847
  initialPageJournalState,
4849
4848
  initialBlocks: pageNodeType === "page_surface" ? void 0 : normalizedInitialBlocks,
4850
4849
  blockFieldExtensions,
4851
- historyShortcutsEnabled: authoring.historyShortcutsEnabled,
4852
4850
  liveDrafts: previewLiveDraftsForScope(liveDrafts, previewToken, siteId, leaseScope)
4853
4851
  };
4854
4852
  if (pageNodeType === "page_surface" && pageId && pageMetadata) {
@@ -5134,6 +5132,7 @@ function PreviewConfirmationDialog({ dashboardContinueUrl, dialogState, isChecki
5134
5132
  //#region ../preview-next/src/onboarding-preview-planner.ts
5135
5133
  const DEFAULT_CHECK_ERROR_MESSAGE = "Unable to check your confirmation status right now.";
5136
5134
  const DEFAULT_RESEND_ERROR_MESSAGE = "Unable to resend your confirmation email right now.";
5135
+ const RESEND_LIMIT_MESSAGE = "You’ve requested all the emails we can send for this sign-up. Check your inbox and spam folder for the latest link.";
5137
5136
  const RESEND_SUCCESS_MESSAGE = "We sent a fresh confirmation email. Check your inbox and spam folder.";
5138
5137
  const ALREADY_CONFIRMED_MESSAGE = "Your email is already confirmed. You can complete setup in the dashboard.";
5139
5138
  function applyOnboardingConfirmationUpdate(state, update) {
@@ -5258,15 +5257,6 @@ function planInitialStatusLoadFailure() {
5258
5257
  statusLoadFailed: true
5259
5258
  }]);
5260
5259
  }
5261
- function planMissingResendConfirmationConfig(message = DEFAULT_RESEND_ERROR_MESSAGE) {
5262
- return planNoEffect([{
5263
- kind: "setResendFeedback",
5264
- resendFeedback: {
5265
- kind: "error",
5266
- message
5267
- }
5268
- }]);
5269
- }
5270
5260
  function planResendConfirmationFailure(message = DEFAULT_RESEND_ERROR_MESSAGE) {
5271
5261
  return planNoEffect([{
5272
5262
  kind: "setResendFeedback",
@@ -5291,7 +5281,7 @@ function planResendConfirmationSuccess(input) {
5291
5281
  kind: "setResendFeedback",
5292
5282
  resendFeedback: {
5293
5283
  kind: "success",
5294
- message: input.response.result === "already_confirmed" ? ALREADY_CONFIRMED_MESSAGE : RESEND_SUCCESS_MESSAGE
5284
+ message: input.response.result === "already_confirmed" ? ALREADY_CONFIRMED_MESSAGE : input.response.result === "limit_reached" ? RESEND_LIMIT_MESSAGE : input.response.limitReached ? `We’ve sent another email. ${RESEND_LIMIT_MESSAGE}` : RESEND_SUCCESS_MESSAGE
5295
5285
  }
5296
5286
  }
5297
5287
  ],
@@ -5370,6 +5360,74 @@ function buildOnboardingResendConfirmationUrl(input) {
5370
5360
  return url.toString();
5371
5361
  }
5372
5362
  //#endregion
5363
+ //#region ../preview-next/src/client/preview/usePreviewConfirmationResend.ts
5364
+ function stateAfterReply(reply) {
5365
+ if (reply.kind === "failed") return reply.retryAfterSeconds > 0 ? {
5366
+ kind: "cooling",
5367
+ seconds: reply.retryAfterSeconds
5368
+ } : { kind: "idle" };
5369
+ const data = reply.data;
5370
+ if (data.result === "limit_reached" || data.result === "resent" && data.limitReached) return { kind: "exhausted" };
5371
+ return data.result === "resent" ? {
5372
+ kind: "cooling",
5373
+ seconds: Math.ceil(data.retryAfterSeconds)
5374
+ } : { kind: "idle" };
5375
+ }
5376
+ function decideResendButton(state) {
5377
+ switch (state.kind) {
5378
+ case "idle": return {
5379
+ disabled: false,
5380
+ label: "Resend confirmation email"
5381
+ };
5382
+ case "sending": return {
5383
+ disabled: true,
5384
+ label: "Sending..."
5385
+ };
5386
+ case "exhausted": return {
5387
+ disabled: true,
5388
+ label: "No more emails available"
5389
+ };
5390
+ case "cooling": return {
5391
+ disabled: true,
5392
+ label: `Send again in ${state.seconds} seconds`
5393
+ };
5394
+ }
5395
+ }
5396
+ /** Owns duplicate submission, cooldown and exhaustion for preview's resend action. */
5397
+ function usePreviewConfirmationResend(input) {
5398
+ const [state, setState] = useState({ kind: "idle" });
5399
+ const inFlight = useRef(false);
5400
+ const resendButton = decideResendButton(state);
5401
+ useEffect(() => {
5402
+ if (state.kind !== "cooling") return;
5403
+ const timer = setTimeout(() => setState((current) => current.kind !== "cooling" ? current : current.seconds <= 1 ? { kind: "idle" } : {
5404
+ kind: "cooling",
5405
+ seconds: current.seconds - 1
5406
+ }), 1e3);
5407
+ return () => clearTimeout(timer);
5408
+ }, [state]);
5409
+ return {
5410
+ resendConfirmation: useCallback(async () => {
5411
+ if (inFlight.current || resendButton.disabled) return;
5412
+ inFlight.current = true;
5413
+ setState({ kind: "sending" });
5414
+ try {
5415
+ const reply = await input.request();
5416
+ setState(stateAfterReply(reply));
5417
+ if (reply.kind === "failed") input.failed(reply.message);
5418
+ else input.succeeded(reply.data);
5419
+ } catch (error) {
5420
+ setState({ kind: "idle" });
5421
+ input.failed(error instanceof Error ? error.message : "Unable to resend your confirmation email right now.");
5422
+ } finally {
5423
+ inFlight.current = false;
5424
+ }
5425
+ }, [input, resendButton.disabled]),
5426
+ resendButton,
5427
+ resendNeedsSupport: state.kind === "exhausted"
5428
+ };
5429
+ }
5430
+ //#endregion
5373
5431
  //#region ../preview-next/src/client/preview/useOnboardingConfirmationCheck.ts
5374
5432
  const INITIAL_ONBOARDING_CONFIRMATION_STATE = {
5375
5433
  dashboardUnlocked: false,
@@ -5393,8 +5451,12 @@ function isLaunchReadiness(value) {
5393
5451
  function isOnboardingPreviewStatusResponse(value) {
5394
5452
  return isRecord$2(value) && typeof value.dashboardUnlocked === "boolean" && typeof value.requiresEmailConfirmation === "boolean" && isLaunchReadiness(value.launchReadiness);
5395
5453
  }
5454
+ function isResendResult(value) {
5455
+ if (value.result === "already_confirmed" || value.result === "limit_reached") return true;
5456
+ return value.result === "resent" && typeof value.retryAfterSeconds === "number" && Number.isFinite(value.retryAfterSeconds) && value.retryAfterSeconds >= 0 && typeof value.limitReached === "boolean";
5457
+ }
5396
5458
  function isResendOnboardingPreviewConfirmationResponse(value) {
5397
- return isRecord$2(value) && (value.result === "resent" || value.result === "already_confirmed") && typeof value.dashboardUnlocked === "boolean" && typeof value.requiresEmailConfirmation === "boolean" && isLaunchReadiness(value.launchReadiness);
5459
+ return isRecord$2(value) && isResendResult(value) && typeof value.dashboardUnlocked === "boolean" && typeof value.requiresEmailConfirmation === "boolean" && isLaunchReadiness(value.launchReadiness);
5398
5460
  }
5399
5461
  function getSuccessData(payload, isData) {
5400
5462
  if (!isRecord$2(payload) || payload.success !== true || !isData(payload.data)) return null;
@@ -5402,7 +5464,6 @@ function getSuccessData(payload, isData) {
5402
5464
  }
5403
5465
  function useOnboardingConfirmationCheck(input) {
5404
5466
  const [isCheckingConfirmation, setIsCheckingConfirmation] = useState(false);
5405
- const [isResendingConfirmation, setIsResendingConfirmation] = useState(false);
5406
5467
  const [confirmationState, dispatchConfirmationUpdates] = useReducer(applyOnboardingConfirmationUpdates, INITIAL_ONBOARDING_CONFIRMATION_STATE);
5407
5468
  const previewUpgradeStartedRef = useRef(false);
5408
5469
  const { dashboardUnlocked, dialogState, hasLoadedStatus, launchReadiness, resendFeedback, statusLoadFailed } = confirmationState;
@@ -5487,49 +5548,39 @@ function useOnboardingConfirmationCheck(input) {
5487
5548
  input.siteSlug,
5488
5549
  readConfirmationStatus
5489
5550
  ]);
5490
- const resendConfirmation = useCallback(async () => {
5491
- if (isResendingConfirmation) return;
5492
- if (!resendConfirmationUrl || !input.previewToken) {
5493
- applyPlan(planMissingResendConfirmationConfig());
5494
- return;
5495
- }
5496
- setIsResendingConfirmation(true);
5497
- dispatchConfirmationUpdates([{
5498
- kind: "setResendFeedback",
5499
- resendFeedback: null
5500
- }]);
5501
- try {
5551
+ const resend = usePreviewConfirmationResend({
5552
+ request: useCallback(async () => {
5553
+ if (!resendConfirmationUrl || !input.previewToken) throw new Error(DEFAULT_RESEND_ERROR_MESSAGE);
5502
5554
  const response = await fetch(resendConfirmationUrl, {
5503
5555
  method: "POST",
5504
5556
  headers: { Authorization: `Bearer ${input.previewToken}` }
5505
5557
  });
5506
5558
  const payload = await response.json().catch(() => null);
5507
- if (!response.ok) throw new Error(getErrorMessageFromEnvelope(payload, DEFAULT_RESEND_ERROR_MESSAGE));
5559
+ if (!response.ok) {
5560
+ const delay = Number(response.headers.get("Retry-After"));
5561
+ return {
5562
+ kind: "failed",
5563
+ message: getErrorMessageFromEnvelope(payload, DEFAULT_RESEND_ERROR_MESSAGE),
5564
+ retryAfterSeconds: response.status === 429 ? Number.isFinite(delay) && delay > 0 ? Math.ceil(delay) : 60 : 0
5565
+ };
5566
+ }
5508
5567
  const data = getSuccessData(payload, isResendOnboardingPreviewConfirmationResponse);
5509
5568
  if (!data) throw new Error(DEFAULT_RESEND_ERROR_MESSAGE);
5510
- applyPlan(planResendConfirmationSuccess({
5511
- authMode: input.authMode,
5512
- currentUrl: currentPreviewUrl(),
5513
- dashboardBaseUrl: input.dashboardBaseUrl,
5514
- response: data,
5515
- siteSlug: input.siteSlug,
5516
- upgradeAlreadyStarted: previewUpgradeStartedRef.current
5517
- }));
5518
- } catch (error) {
5519
- applyPlan(planResendConfirmationFailure(error instanceof Error ? error.message : DEFAULT_RESEND_ERROR_MESSAGE));
5520
- } finally {
5521
- setIsResendingConfirmation(false);
5522
- }
5523
- }, [
5524
- applyPlan,
5525
- currentPreviewUrl,
5526
- input.authMode,
5527
- input.dashboardBaseUrl,
5528
- input.previewToken,
5529
- input.siteSlug,
5530
- isResendingConfirmation,
5531
- resendConfirmationUrl
5532
- ]);
5569
+ return {
5570
+ kind: "success",
5571
+ data
5572
+ };
5573
+ }, [resendConfirmationUrl, input.previewToken]),
5574
+ failed: (message) => applyPlan(planResendConfirmationFailure(message)),
5575
+ succeeded: (response) => applyPlan(planResendConfirmationSuccess({
5576
+ authMode: input.authMode,
5577
+ currentUrl: currentPreviewUrl(),
5578
+ dashboardBaseUrl: input.dashboardBaseUrl,
5579
+ response,
5580
+ siteSlug: input.siteSlug,
5581
+ upgradeAlreadyStarted: previewUpgradeStartedRef.current
5582
+ }))
5583
+ });
5533
5584
  useEffect(() => {
5534
5585
  if (!input.shouldLoadStatus || !confirmationStatusUrl || !input.previewToken) return;
5535
5586
  let cancelled = false;
@@ -5576,9 +5627,8 @@ function useOnboardingConfirmationCheck(input) {
5576
5627
  dialogState,
5577
5628
  hasLoadedStatus,
5578
5629
  isCheckingConfirmation,
5579
- isResendingConfirmation,
5630
+ ...resend,
5580
5631
  launchReadiness,
5581
- resendConfirmation,
5582
5632
  resendFeedback,
5583
5633
  statusLoadFailed
5584
5634
  };
@@ -5603,6 +5653,16 @@ function usePreviewRestart(dashboardBaseUrl, siteSlug) {
5603
5653
  }, [dashboardBaseUrl, siteSlug])
5604
5654
  };
5605
5655
  }
5656
+ function ConfirmationResendSupport({ visible, dashboardBaseUrl }) {
5657
+ if (!visible || !dashboardBaseUrl) return null;
5658
+ return /* @__PURE__ */ jsx("a", {
5659
+ className: "text-xs underline underline-offset-2",
5660
+ href: new URL("/contact", dashboardBaseUrl).toString(),
5661
+ target: "_blank",
5662
+ rel: "noopener noreferrer",
5663
+ children: "Contact us for help"
5664
+ });
5665
+ }
5606
5666
  function PreviewRecoveryBanner({ state, renewalPending, restartAvailable, reauthenticate }) {
5607
5667
  const unavailable = state === "unavailable";
5608
5668
  return /* @__PURE__ */ jsx(FixedBottomSurface, {
@@ -5742,36 +5802,43 @@ function PreviewAuthBanner({ dashboardBaseUrl = null, surfaceId }) {
5742
5802
  ]
5743
5803
  }), /* @__PURE__ */ jsxs("div", {
5744
5804
  className: "flex flex-col gap-2 sm:items-end",
5745
- children: [/* @__PURE__ */ jsx("div", {
5746
- className: "flex flex-col gap-2 sm:flex-row sm:items-center",
5747
- children: showDashboardCta ? /* @__PURE__ */ jsx(Button, {
5748
- type: "button",
5749
- size: "sm",
5750
- className: bannerModel.primaryButtonClassName,
5751
- onClick: handleCompleteSetup,
5752
- disabled: !dashboardContinueUrl,
5753
- children: bannerModel.ctaLabel
5754
- }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
5755
- type: "button",
5756
- size: "sm",
5757
- variant: "outline",
5758
- className: bannerModel.secondaryButtonClassName,
5759
- onClick: () => void onboardingConfirmationCheck.resendConfirmation(),
5760
- disabled: onboardingConfirmationCheck.isResendingConfirmation,
5761
- children: onboardingConfirmationCheck.isResendingConfirmation ? "Sending..." : "Resend confirmation email"
5762
- }), /* @__PURE__ */ jsx(Button, {
5763
- type: "button",
5764
- size: "sm",
5765
- className: bannerModel.primaryButtonClassName,
5766
- onClick: () => void onboardingConfirmationCheck.checkConfirmation(),
5767
- disabled: !dashboardContinueUrl || onboardingConfirmationCheck.isCheckingConfirmation,
5768
- children: onboardingConfirmationCheck.isCheckingConfirmation ? "Checking..." : "I've confirmed my email"
5769
- })] })
5770
- }), showOnboardingGrantGuidance && onboardingConfirmationCheck.resendFeedback ? /* @__PURE__ */ jsx("p", {
5771
- "aria-live": "polite",
5772
- className: onboardingConfirmationCheck.resendFeedback.kind === "error" ? "text-xs text-destructive" : "text-xs text-muted-foreground",
5773
- children: onboardingConfirmationCheck.resendFeedback.message
5774
- }) : null]
5805
+ children: [
5806
+ /* @__PURE__ */ jsx("div", {
5807
+ className: "flex flex-col gap-2 sm:flex-row sm:items-center",
5808
+ children: showDashboardCta ? /* @__PURE__ */ jsx(Button, {
5809
+ type: "button",
5810
+ size: "sm",
5811
+ className: bannerModel.primaryButtonClassName,
5812
+ onClick: handleCompleteSetup,
5813
+ disabled: !dashboardContinueUrl,
5814
+ children: bannerModel.ctaLabel
5815
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
5816
+ type: "button",
5817
+ size: "sm",
5818
+ variant: "outline",
5819
+ className: bannerModel.secondaryButtonClassName,
5820
+ onClick: () => void onboardingConfirmationCheck.resendConfirmation(),
5821
+ disabled: onboardingConfirmationCheck.resendButton.disabled,
5822
+ children: onboardingConfirmationCheck.resendButton.label
5823
+ }), /* @__PURE__ */ jsx(Button, {
5824
+ type: "button",
5825
+ size: "sm",
5826
+ className: bannerModel.primaryButtonClassName,
5827
+ onClick: () => void onboardingConfirmationCheck.checkConfirmation(),
5828
+ disabled: !dashboardContinueUrl || onboardingConfirmationCheck.isCheckingConfirmation,
5829
+ children: onboardingConfirmationCheck.isCheckingConfirmation ? "Checking..." : "I've confirmed my email"
5830
+ })] })
5831
+ }),
5832
+ /* @__PURE__ */ jsx(ConfirmationResendSupport, {
5833
+ visible: onboardingConfirmationCheck.resendNeedsSupport,
5834
+ dashboardBaseUrl
5835
+ }),
5836
+ showOnboardingGrantGuidance && onboardingConfirmationCheck.resendFeedback ? /* @__PURE__ */ jsx("p", {
5837
+ "aria-live": "polite",
5838
+ className: onboardingConfirmationCheck.resendFeedback.kind === "error" ? "text-xs text-destructive" : "text-xs text-muted-foreground",
5839
+ children: onboardingConfirmationCheck.resendFeedback.message
5840
+ }) : null
5841
+ ]
5775
5842
  })]
5776
5843
  })
5777
5844
  }), /* @__PURE__ */ jsx(PreviewConfirmationDialog, {
@@ -5794,7 +5861,7 @@ function PreviewAccessBanners({ dashboardBaseUrl, surfaceId, isEntry, pageNodeTy
5794
5861
  const { requestedEditingMode, setEditingMode } = useEditor();
5795
5862
  const showDiscardedNotice = useEditorUiStore((editor) => canEditorWrite(editor.editability) && editor.leaseDiscardedChanges);
5796
5863
  const thing = previewLeaseThing(isEntry, pageNodeType);
5797
- const admissionNotice = useEditorUiStore((editor) => editorAdmissionNotice(editor.editAdmission));
5864
+ const admissionNotice = useEditorUiStore((editor) => editorAdmissionNotice(editor.getAdmission()));
5798
5865
  const active = state === "ok";
5799
5866
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
5800
5867
  /* @__PURE__ */ jsx(PreviewAuthBanner, {
@@ -6626,7 +6693,6 @@ function cycleAvailabilityFromFlags(input) {
6626
6693
  //#region ../preview-next/src/client/preview/SiteChromeCustomizeButton.tsx
6627
6694
  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" }) {
6628
6695
  const customize = useSiteChromeCustomizeOptional();
6629
- const editorUiStore = useOptionalEditorUiStoreInstance();
6630
6696
  const popover = useCustomizePopoverController();
6631
6697
  const [backgroundChooserOpen, setBackgroundChooserOpen] = useState(false);
6632
6698
  const popoverSide = useSiteChromeCustomizePopoverSide({
@@ -6773,22 +6839,9 @@ function SiteChromeCustomizeButton({ surface, containerClassName = "pointer-even
6773
6839
  })]
6774
6840
  })]
6775
6841
  }) : null,
6776
- editorUiStore && surfaceState.surface === "header" && customize?.canOpenDesignEditor === true ? /* @__PURE__ */ jsx("div", {
6777
- className: "border-t pt-2",
6778
- children: /* @__PURE__ */ jsx("button", {
6779
- type: "button",
6780
- className: "w-full rounded-md border bg-background px-3 py-2 text-sm font-medium hover:bg-muted",
6781
- onClick: (event) => {
6782
- event.preventDefault();
6783
- event.stopPropagation();
6784
- editorUiStore.getState().openPreviewEditor({
6785
- kind: "design",
6786
- row: "header-style"
6787
- });
6788
- popover.close();
6789
- },
6790
- children: "More options"
6791
- })
6842
+ surfaceState.surface === "header" ? /* @__PURE__ */ jsx(HeaderPopoverActions, {
6843
+ applyAllowed: surfaceState.applyAllowed,
6844
+ onClose: popover.close
6792
6845
  }) : null,
6793
6846
  surfaceState.diagnostics.length > 0 ? /* @__PURE__ */ jsx("ul", {
6794
6847
  className: "space-y-1 text-xs text-amber-700",
@@ -6807,6 +6860,44 @@ function SiteChromeCustomizeButton({ surface, containerClassName = "pointer-even
6807
6860
  ]
6808
6861
  });
6809
6862
  }
6863
+ /** What the header popover offers beyond its own controls: the fuller editor, and a way back to the style. */
6864
+ function HeaderPopoverActions({ applyAllowed, onClose }) {
6865
+ const customize = useSiteChromeCustomizeOptional();
6866
+ const editorUiStore = useOptionalEditorUiStoreInstance();
6867
+ const run = (action) => (event) => {
6868
+ event.preventDefault();
6869
+ event.stopPropagation();
6870
+ action();
6871
+ };
6872
+ const className = "inline-flex w-full items-center justify-center gap-2 rounded-md border bg-background px-3 py-2 text-sm font-medium hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50";
6873
+ const moreOptions = editorUiStore !== null && customize?.canOpenDesignEditor === true;
6874
+ const reset = customize?.headerFollowsStyleDefaults() === false;
6875
+ if (!customize || !moreOptions && !reset) return null;
6876
+ return /* @__PURE__ */ jsxs("div", {
6877
+ className: "space-y-2 border-t pt-2",
6878
+ children: [moreOptions ? /* @__PURE__ */ jsx("button", {
6879
+ type: "button",
6880
+ className,
6881
+ onClick: run(() => {
6882
+ editorUiStore.getState().openPreviewEditor({
6883
+ kind: "design",
6884
+ row: "header-style"
6885
+ });
6886
+ onClose();
6887
+ }),
6888
+ children: "More options"
6889
+ }) : null, reset ? /* @__PURE__ */ jsxs("button", {
6890
+ type: "button",
6891
+ className,
6892
+ disabled: !applyAllowed,
6893
+ onClick: run(customize.resetHeaderToStyleDefaults),
6894
+ children: [/* @__PURE__ */ jsx(RotateCcw, {
6895
+ className: "h-4 w-4",
6896
+ "aria-hidden": "true"
6897
+ }), "Reset to the style's defaults"]
6898
+ }) : null]
6899
+ });
6900
+ }
6810
6901
  /** Opens the footer composer, matching the block toolbar's Edit pill. */
6811
6902
  function FooterEditPill() {
6812
6903
  const editorUiStore = useOptionalEditorUiStoreInstance();
@@ -7955,10 +8046,10 @@ function resolveShellThemeRoles(props) {
7955
8046
  }
7956
8047
  const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
7957
8048
  const PreviewEditorSidebar = React.lazy(async () => {
7958
- return { default: (await import("./PreviewEditorSidebar-Dvq-RW9-.mjs")).PreviewEditorSidebar };
8049
+ return { default: (await import("./PreviewEditorSidebar-ChrW9VEo.mjs")).PreviewEditorSidebar };
7959
8050
  });
7960
8051
  const PreviewEditorUI = React.lazy(async () => {
7961
- return { default: (await import("./PreviewEditorUI-BdFjS39R.mjs")).PreviewEditorUI };
8052
+ return { default: (await import("./PreviewEditorUI-VaHvYtrA.mjs")).PreviewEditorUI };
7962
8053
  });
7963
8054
  const previewPaneContainmentStyle = {
7964
8055
  contain: "layout paint",
@@ -7989,8 +8080,7 @@ function renderShellProviders(input) {
7989
8080
  footerPreferences: props.themeSelectionFooterPreferences,
7990
8081
  themeId: props.themeId ?? null,
7991
8082
  selectionId: props.themeSelectionId ?? null,
7992
- selectionVersion: props.themeSelectionVersion ?? null,
7993
- selectionUpdatedAt: props.themeSelectionUpdatedAt ?? null,
8083
+ journalState: props.themeSelectionJournalState,
7994
8084
  initialSelections: {
7995
8085
  selectionVersion: props.themeSelectionVersion ?? null,
7996
8086
  selectionUpdatedAt: props.themeSelectionUpdatedAt ?? null,
@@ -8035,7 +8125,7 @@ function PreviewDocumentContent(input) {
8035
8125
  }
8036
8126
  function PreviewShellLayout(props) {
8037
8127
  const themeRoles = resolveShellThemeRoles(props);
8038
- const { children, rendering, surfaceId, siteId, dashboardBaseUrl = null, pageId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, apiClient, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null, themeSelectionButtonStyleRepairs, themeSelectionHeaderSelection = null, themeSelectionFooterLookId = null, themeSelectionHeaderLogo, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, sdkConfig, bookingOfferingPresets, themeRuntime = defaultPreviewThemeRuntime, siteStyleAccess = { kind: "hidden" }, onFooterSaved } = props;
8128
+ const { children, rendering, surfaceId, siteId, dashboardBaseUrl = null, pageId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, apiClient, themeId = null, themeSelectionId = null, themeSelectionJournalState, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null, themeSelectionButtonStyleRepairs, themeSelectionHeaderSelection = null, themeSelectionFooterLookId = null, themeSelectionHeaderLogo, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, sdkConfig, bookingOfferingPresets, themeRuntime = defaultPreviewThemeRuntime, siteStyleAccess = { kind: "hidden" }, onFooterSaved } = props;
8039
8129
  const layout = useOptionalPreviewLayout();
8040
8130
  const headerNode = layout?.headerNode ?? null;
8041
8131
  const bannerNode = layout?.bannerNode ?? null;
@@ -8200,6 +8290,7 @@ function PreviewShellLayout(props) {
8200
8290
  apiClient,
8201
8291
  themeId,
8202
8292
  themeSelectionId,
8293
+ themeSelectionJournalState,
8203
8294
  themeSelectionVersion,
8204
8295
  themeSelectionUpdatedAt,
8205
8296
  themeSelectionButtonStyleSelection,
@@ -8307,6 +8398,7 @@ function resolveShellLayoutProps(input) {
8307
8398
  apiClient: input.apiClient,
8308
8399
  themeId: props.themeId ?? null,
8309
8400
  themeSelectionId: props.themeSelectionId ?? null,
8401
+ themeSelectionJournalState: props.themeSelectionJournalState,
8310
8402
  themeSelectionVersion: props.themeSelectionVersion ?? null,
8311
8403
  themeSelectionUpdatedAt: props.themeSelectionUpdatedAt ?? null,
8312
8404
  themeSelectionButtonStyleSelection: props.themeSelectionButtonStyleSelection ?? null,
@@ -8341,7 +8433,7 @@ function renderShellLayout(input) {
8341
8433
  });
8342
8434
  }
8343
8435
  function wrapPreviewSiteFontStorage(children, siteFontStorageUrl) {
8344
- return /* @__PURE__ */ jsx(PreviewSiteFontStorageProvider, {
8436
+ return /* @__PURE__ */ jsx(SiteFontStorageProvider, {
8345
8437
  siteFontStorageUrl,
8346
8438
  children
8347
8439
  });
@@ -8349,8 +8441,7 @@ function wrapPreviewSiteFontStorage(children, siteFontStorageUrl) {
8349
8441
  function PreviewEditorBody({ props, designEditorEnabled, siteStyleAccess }) {
8350
8442
  const { apiClient } = useEntryEditorController();
8351
8443
  const bearerToken = usePreviewToken();
8352
- const journal = useOptionalSessionJournal();
8353
- const content = /* @__PURE__ */ jsx(PreviewPageDesignEditorStateProvider, {
8444
+ return /* @__PURE__ */ jsx(PreviewPageDesignEditorStateProvider, {
8354
8445
  apiClient,
8355
8446
  siteId: props.siteId,
8356
8447
  pageId: props.pageId,
@@ -8368,7 +8459,6 @@ function PreviewEditorBody({ props, designEditorEnabled, siteStyleAccess }) {
8368
8459
  }), props.siteFontStorageUrl)]
8369
8460
  })
8370
8461
  });
8371
- return journal ? content : /* @__PURE__ */ jsx(PreviewDesignHistoryOrderProvider, { children: content });
8372
8462
  }
8373
8463
  function PreviewBlockApiProvider({ config, children }) {
8374
8464
  const token = usePreviewToken();
@@ -8440,7 +8530,7 @@ function PreviewEditorMount({ props, apiClient, access }) {
8440
8530
  ]);
8441
8531
  const editable = isPreviewRuntimeSessionEditable(props.previewSession);
8442
8532
  const ordinaryPageId = props.pageId && !props.entryData && props.pageNodeType !== "page_surface" ? props.pageId : null;
8443
- const renderContent = (initialPageJournalState, checkpoint, authoringAdmitted) => /* @__PURE__ */ jsxs(PreviewEntryControllerProvider, {
8533
+ const renderContent = (initialPageJournalState, authoringAdmitted) => /* @__PURE__ */ jsxs(PreviewEntryControllerProvider, {
8444
8534
  blockFieldExtensions: props.sdkConfig?.blockFieldExtensions ?? null,
8445
8535
  businessTimeZone: props.businessTimeZone,
8446
8536
  siteId: props.siteId,
@@ -8462,11 +8552,10 @@ function PreviewEditorMount({ props, apiClient, access }) {
8462
8552
  authoringAdmitted && /* @__PURE__ */ jsx(SiteAdmissionObserver, {
8463
8553
  siteId: props.siteId,
8464
8554
  apiClient,
8465
- checkpoint,
8466
8555
  siteOnly: !scope && editable,
8467
8556
  subscribeToAdmissionChanges: props.subscribeToAdmissionChanges
8468
8557
  }),
8469
- authoringAdmitted && /* @__PURE__ */ jsx(PreviewLeaseEditingMode, {}),
8558
+ /* @__PURE__ */ jsx(PreviewLeaseEditingMode, {}),
8470
8559
  /* @__PURE__ */ jsx(PreviewEditorBody, {
8471
8560
  props,
8472
8561
  ...access,
@@ -8481,8 +8570,8 @@ function PreviewEditorMount({ props, apiClient, access }) {
8481
8570
  editable,
8482
8571
  scope,
8483
8572
  ordinaryPageId,
8484
- fallback: renderContent(void 0, void 0, false),
8485
- children: (initialPageJournalState, checkpoint) => renderContent(initialPageJournalState, checkpoint, true)
8573
+ fallback: renderContent(void 0, false),
8574
+ children: (initialPageJournalState) => renderContent(initialPageJournalState, true)
8486
8575
  });
8487
8576
  }
8488
8577
  function defaultDesignEditorEligibility(input) {
@@ -8861,7 +8950,7 @@ function useMediaQuery(query) {
8861
8950
  //#endregion
8862
8951
  //#region ../preview-next/src/client/blocks/BlockToolbar.tsx
8863
8952
  function BlockToolbar({ placement = DEFAULT_PREVIEW_CHROME_FLOATING_PLACEMENT, ...input }) {
8864
- const { selection, controls, toolbar, open, cycleSdk, cycleLegacy } = useBlockToolbar(input);
8953
+ const { selection, controls, toolbar, open, cycleSdk, cycleRecipe } = useBlockToolbar(input);
8865
8954
  const name = controls.manifest?.title ?? getBlockDefinition(input.blockKind)?.manifest.title ?? input.blockKind;
8866
8955
  const row = /* @__PURE__ */ jsxs("div", {
8867
8956
  role: "group",
@@ -8882,7 +8971,7 @@ function BlockToolbar({ placement = DEFAULT_PREVIEW_CHROME_FLOATING_PLACEMENT, .
8882
8971
  controls,
8883
8972
  toolbar,
8884
8973
  onCycleSdk: cycleSdk,
8885
- onCycleLegacy: cycleLegacy
8974
+ onCycleRecipe: cycleRecipe
8886
8975
  })
8887
8976
  ]
8888
8977
  });
@@ -8926,7 +9015,7 @@ function useBlockToolbar(input) {
8926
9015
  openField
8927
9016
  });
8928
9017
  const cycleSdk = (direction) => cycleSdkLook(controls, direction);
8929
- const cycleLegacy = (direction) => {
9018
+ const cycleRecipe = (direction) => {
8930
9019
  if (!controls.designBlock) return;
8931
9020
  const action = cyclePageDesignBlockLook(controls.designBlock, direction);
8932
9021
  if (action) applyAction(action, { runtimeContent: values });
@@ -8937,7 +9026,7 @@ function useBlockToolbar(input) {
8937
9026
  toolbar,
8938
9027
  open,
8939
9028
  cycleSdk,
8940
- cycleLegacy
9029
+ cycleRecipe
8941
9030
  };
8942
9031
  }
8943
9032
  function useOpenBlockSidebar(blockId, uiStore) {
@@ -8969,7 +9058,7 @@ function cycleSdkLook(controls, direction) {
8969
9058
  if (next) controls.backend.setValue(item.path, next.value);
8970
9059
  }
8971
9060
  /** The Look pill shows only while its arrows have somewhere to go. */
8972
- function ToolbarLook({ controls, toolbar, onCycleSdk, onCycleLegacy }) {
9061
+ function ToolbarLook({ controls, toolbar, onCycleSdk, onCycleRecipe }) {
8973
9062
  if (controls.lookSource.kind === "sdk") {
8974
9063
  const field = cyclableSdkLookField(controls.lookSource.item);
8975
9064
  return field && controls.lookSource.item ? /* @__PURE__ */ jsx(SdkToolbarLook, {
@@ -8988,7 +9077,7 @@ function ToolbarLook({ controls, toolbar, onCycleSdk, onCycleLegacy }) {
8988
9077
  return preset.canCycle ? /* @__PURE__ */ jsx(LookCyclePill, {
8989
9078
  lookName: preset.lookName,
8990
9079
  position: preset.position,
8991
- onCycle: onCycleLegacy
9080
+ onCycle: onCycleRecipe
8992
9081
  }) : null;
8993
9082
  }
8994
9083
  function cyclableSdkLookField(item) {
@@ -10006,7 +10095,8 @@ function SdkPreviewModeRuntime(props) {
10006
10095
  supabaseUrl: content.supabaseUrl,
10007
10096
  siteFontStorageUrl,
10008
10097
  designEditorEligibility: { kind: "sdk-page" },
10009
- hideSiteStyleConfigurator: true
10098
+ hideSiteStyleConfigurator: true,
10099
+ themeSelectionJournalState: null
10010
10100
  };
10011
10101
  if (model.rendering.kind === "overrides-only") return /* @__PURE__ */ jsx(PreviewShell, {
10012
10102
  ...shellProps,