@riverbankcms/sdk 0.171.0 → 0.172.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-xuFmD41p.d.ts → BlocksIslandsHydrator-DtrzTJ77.d.ts} +1 -1
- package/dist/_dts/{Page-4fzXy8H9.d.ts → Page-DViYbakk.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-BlHgMsc8.d.ts → SdkPreviewMode-D-5OeDbT.d.ts} +2 -2
- package/dist/_dts/{client-BPoU758C.d.ts → client-DZBOzd3U.d.ts} +1 -2
- package/dist/_dts/{content-types-TnkhoSls.d.ts → content-types-DS3DrYn_.d.ts} +3 -3
- package/dist/_dts/{contracts-7wrMA79U.d.ts → contracts-C3QGPCUf.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DaOsPQ_Q.d.ts → footerPageOutline-D9Q7VIul.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-D9aDEzKK.d.ts → generatePageMetadata-R7NeFT1u.d.ts} +2 -2
- package/dist/_dts/{index-DDKJfaLY.d.ts → index-BnMavhoh.d.ts} +2 -2
- package/dist/_dts/{index-585vn6qb.d.ts → index-C0zjLMAW.d.ts} +49 -38
- package/dist/_dts/{index-W9R3Bnf2.d.ts → index-CpOkfBt1.d.ts} +3 -3
- package/dist/_dts/{index-Cbw0IiY7.d.ts → index-Da4UMgbs.d.ts} +2 -2
- package/dist/_dts/{index-DNCDENic.d.ts → index-DkFV_1Bc.d.ts} +1 -1
- package/dist/_dts/{index-ChNbrcgD.d.ts → index-Dns7OHyl.d.ts} +1 -1
- package/dist/_dts/{index-CZKSUcDs.d.ts → index-MuMYjetm.d.ts} +4 -4
- package/dist/_dts/{loadContent-DPyNAJym.d.ts → loadContent-DJmXHzfi.d.ts} +7 -7
- package/dist/_dts/{request-jXTRN1Y4.d.ts → request-wQ28JWbr.d.ts} +66983 -65876
- package/dist/_dts/{resolveBlockData-BbvE-gsZ.d.ts → resolveBlockData-C-IP53u9.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BBgih00D.d.ts → resolvePageContent-Cc4zqaEC.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +18 -1
- package/dist/_dts/{types-kWvBwYK6.d.ts → types-CpjyP5I4.d.ts} +7 -7
- package/dist/_dts/{types-DEAKoDNi.d.ts → types-DrinAfeW.d.ts} +3 -3
- package/dist/_dts/{types-BXuVxDYo.d.ts → types-ZuZoGsZV.d.ts} +2 -2
- package/dist/_dts/{validation-BAO0_ntM.d.ts → validation-CIZ_fP5l.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DfMsMIej.mjs → BlocksIslandsHydrator-UFmQB1BE.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-aaSicywS.mjs → BookingMailingListNote-VjRYhx1c.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-OgftZ9QC.mjs → BookingPanelArrangement-DpqnRo-t.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-CzOT8ZWo.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-iMWrY6Hz.mjs → CalendarNavigationChevron-CNckKZct.mjs} +7 -7
- package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-BCumOTLY.mjs → DemoBookingPortalAccess-CmZLVXOy.mjs} +6 -6
- package/dist/client/{EventCalendar.client-kh7mkYnW.mjs → EventCalendar.client-BU-SxLCn.mjs} +9 -9
- package/dist/client/{EventCombined.client-DXD5i0Ar.mjs → EventCombined.client-f28VltfY.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
- package/dist/client/{EventItem-BnwcoFQN.mjs → EventItem-sKBofjiW.mjs} +40 -14
- package/dist/client/{EventListWeekNavigation-DuG6z02f.mjs → EventListWeekNavigation-IAcax47T.mjs} +1 -1
- package/dist/client/{EventListing.client-18yfHrcr.mjs → EventListing.client-BEtnRvZr.mjs} +3 -3
- package/dist/client/{EventListing.view-BM7rTVSL.mjs → EventListing.view-BZ4l_rmT.mjs} +189 -73
- package/dist/client/{EventRegistrationPayment-D5J3DR0x.mjs → EventRegistrationPayment-BWb295cD.mjs} +9 -9
- package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-Hsj2HC_1.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-C7E7Lyfa.mjs} +1 -1
- package/dist/client/{Page-DH2sm4Cf.mjs → Page-Ds1s3DuC.mjs} +1425 -490
- package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
- package/dist/client/{StepIndicator-CsRlU46Y.mjs → StepIndicator-CSCyAaKY.mjs} +6 -6
- package/dist/client/{TabBarFragment-CsAufYwT.mjs → TabBarFragment-BqfRLojo.mjs} +1 -1
- package/dist/client/{ThemedButton-BMDHwnM6.mjs → ThemedButton-DuaYtnvG.mjs} +1 -1
- package/dist/client/{accessibleSurfaces-Bbn1-jJ8.mjs → accessibleSurfaces-OsAseM7H.mjs} +57 -42
- package/dist/client/{accordion-DT4MD3Np.mjs → accordion-DgwFZJSx.mjs} +1 -1
- package/dist/client/{booking-form.client-DdqNQNCa.mjs → booking-form.client-CKY9oksp.mjs} +33 -29
- package/dist/client/{bookingForm-CLN396HU.mjs → bookingForm-CsHhcdSF.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-iLF_3KX9.mjs → boxStyleClassNames-B1Z_TGAe.mjs} +1 -1
- package/dist/client/{carousel-DFLomCGm.mjs → carousel-0sw2Kc3a.mjs} +2 -2
- package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
- package/dist/client/{cart-BozMM5NK.mjs → cart-CPfvMDGJ.mjs} +3 -3
- package/dist/client/{cart.client-CqOOxPbW.mjs → cart.client-BJBPUTmg.mjs} +1 -1
- package/dist/client/{checkout-CTWF5nbB.mjs → checkout-DU4JFjGT.mjs} +3 -3
- package/dist/client/{checkout.client-CpqxN8e0.mjs → checkout.client-BbNCO4xa.mjs} +1 -1
- package/dist/client/{checkoutUrls-Ccg6yfjq.mjs → checkoutUrls-BQ3OlWlM.mjs} +1 -1
- package/dist/client/client.mjs +151 -6
- package/dist/client/{context-Dzjv2CpA.mjs → context-xNC1Cyjw.mjs} +14 -1
- package/dist/client/{cta-pzQkBLgS.mjs → cta-CNVQHLKs.mjs} +53 -11
- package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-B6ea-egy.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-BhjGxhX3.mjs} +1 -1
- package/dist/client/{display-Cl6mgSJa.mjs → display-B5DfNb6A.mjs} +1869 -333
- package/dist/client/{enhanceHeaderSection-CJCl0HJC.mjs → enhanceHeaderSection-BFcHLuqk.mjs} +139 -16
- package/dist/client/{event-details.client-Pn9Kxh3I.mjs → event-details.client-WHT5GLn2.mjs} +1 -1
- package/dist/client/{event-registration.client-BAmBdWXE.mjs → event-registration.client-CmnRKELC.mjs} +11 -11
- package/dist/client/{eventCalendar-C5Bh2L8L.mjs → eventCalendar-2NbdCyov.mjs} +4 -4
- package/dist/client/{eventCombined-dELKxxIe.mjs → eventCombined-D1lH1n2T.mjs} +4 -4
- package/dist/client/{eventDetails-Do9D_fJ_.mjs → eventDetails-BHvnF2Tw.mjs} +2 -2
- package/dist/client/{eventListing-B2HTUWLq.mjs → eventListing-EhSDk4UL.mjs} +4 -4
- package/dist/client/{eventRegistration-ByOJnqGc.mjs → eventRegistration-z_0jN_KS.mjs} +4 -4
- package/dist/client/{form-DX70QG-J.mjs → form-BfChzSkS.mjs} +3 -3
- package/dist/client/{form.client-CJoqBrS6.mjs → form.client-D1zehtPk.mjs} +4 -4
- package/dist/client/{form.parts-DTof9pL3.mjs → form.parts-rMDlUQIv.mjs} +3 -3
- package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-ymSVT9Y5.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CJuPX_1K.mjs → headerSection-BX9bQ84k.mjs} +2 -2
- package/dist/client/{newsletter-form.client-CqzNjOft.mjs → newsletter-form.client-DMbuJCtJ.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DjJsFms2.mjs → newsletter-form.parts-BxrVsoI0.mjs} +2 -2
- package/dist/client/{newsletterForm-D1MHoPbh.mjs → newsletterForm-B_I3FJFS.mjs} +3 -3
- package/dist/client/{noop-poI1m2yW.mjs → noop-CamIX2yK.mjs} +17 -1
- package/dist/client/portal/client.mjs +231 -117
- package/dist/client/{product-detail.client-DOQ7El1d.mjs → product-detail.client-qxuiYCof.mjs} +1 -1
- package/dist/client/{product-list.client-CmxOZbzL.mjs → product-list.client-CDL-jihv.mjs} +1 -1
- package/dist/client/{productDetail-BN3zv5sa.mjs → productDetail-B97m0uZy.mjs} +3 -3
- package/dist/client/{productList-GN_Id4bF.mjs → productList-DE4vSSG_.mjs} +3 -3
- package/dist/client/{propsDecoder-BdmzM3D5.mjs → propsDecoder-BTde6Syh.mjs} +3 -3
- package/dist/client/{registry.server-BOyra8CA.mjs → registry.server-Cn8XjRte.mjs} +1464 -1183
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +22 -16
- package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-Bcl3vTb4.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DnaJ8PQc.mjs → routeIslandApiConfig-BjRoLoMD.mjs} +1 -1
- package/dist/client/{runtimeResponse-BN8PoIVp.mjs → runtimeResponse-B-lrAGhX.mjs} +1 -1
- package/dist/client/{runtimeResponse-B1-cyLXt.mjs → runtimeResponse-CPcA8xSm.mjs} +1 -1
- package/dist/client/{shop-LjBLDBqF.mjs → shop-BC4H0oYT.mjs} +3 -3
- package/dist/client/{shop-commerce-B8aZTdRJ.mjs → shop-commerce-BsY7a71m.mjs} +12 -12
- package/dist/client/{shop-commerce-store-C1FtHYl7.mjs → shop-commerce-store-BZ5j90HD.mjs} +1 -1
- package/dist/client/{shop.client-D0qZ3KZp.mjs → shop.client-WgGVGelc.mjs} +12 -12
- package/dist/client/{shop.interactive-DAKyWK1B.mjs → shop.interactive-Bb67gPLL.mjs} +187 -81
- package/dist/client/{shopShared-CztcSe9i.mjs → shopShared-BE6TEk2A.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-D1jDTbms.mjs → timetableModel-Bbz_ECL5.mjs} +10 -10
- package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
- package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-CdP14E_b.mjs} +2 -2
- package/dist/client/{useDiscountApply-CHGYDxdM.mjs → useDiscountApply-DvOSso2l.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-Dew9UAEy.mjs → useDiscountCodeUi-B4fRd2jy.mjs} +1 -1
- package/dist/client/{useEventPagination-BpC7-ksE.mjs → useEventPagination-M3jC8lgP.mjs} +6 -6
- package/dist/client/{view-BxeiAL3c.mjs → view-B0TFnP4y.mjs} +198 -60
- package/dist/client/{view-ShYH3WXh.mjs → view-DNNNbnNj.mjs} +3 -3
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-lW2aLGWd.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-C9InQJpd.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-DsSqwrMS.mjs → PageSectionToolbar-D59tHj_L.mjs} +320 -395
- package/dist/preview-next/client/{PreviewEditorSidebar-BEEWzXnU.mjs → PreviewEditorSidebar-CjOIZlUk.mjs} +761 -416
- package/dist/preview-next/client/{PreviewEditorUI-C86Out4V.mjs → PreviewEditorUI--kS9Cwsc.mjs} +126 -137
- package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
- package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
- package/dist/preview-next/client/{PreviewShell-CBWYjBvQ.mjs → PreviewShell-Bi8-rclb.mjs} +312 -63
- package/dist/preview-next/client/{SdkPreviewModeRuntime-o-mVqWLx.mjs → SdkPreviewModeRuntime-CWTUw-3L.mjs} +308 -135
- package/dist/preview-next/client/{SiteChromeCustomizeButton-H_ciMNHA.mjs → SiteChromeCustomizeButton-CrgS3I8d.mjs} +1936 -320
- package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
- package/dist/preview-next/client/{lucide-react-DygTyy7K.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CuOcsG_N.mjs → previewAssistantSlot-Caofnr1Z.mjs} +23441 -21340
- package/dist/preview-next/client/{previewChromeRoot-DPeV7KaP.mjs → previewChromeRoot-CbAI_jSH.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +5 -4
- package/dist/preview-next/client/sdk-runtime-DY65_hLk.mjs +6 -0
- package/dist/preview-next/client/{useAutosaveStatus-DNA1Q4L1.mjs → useAutosaveStatus-CakNU3lp.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BdnMlHC6.mjs → useOpenBlockForSetup-CCEMkosU.mjs} +126 -11
- package/dist/preview-next/container-responsive.css +215 -4
- package/dist/preview-next/editor-base.css +14 -4
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-CtSgU8UZ.mjs → route-contract-DsKDQoVW.mjs} +147 -2
- package/dist/server/{Block.shared-ifgaBglp.mjs → Block.shared-D7Qy9F4a.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DGDOH6OU.mjs → ThemeScopeCore-D1NTXZdX.mjs} +15 -10
- package/dist/server/{accessibleSurfaces-BuPNCWAK.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
- package/dist/server/{bindings-CiYpie1M.mjs → bindings-Bp6OnR3n.mjs} +109 -20
- package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
- package/dist/server/{client-ngWuFsmN.mjs → client-dROAfMRa.mjs} +149 -4
- package/dist/server/config-template-validation.mjs +3 -0
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-DeLQeJAZ.mjs → loadContent-zOIrtqz-.mjs} +19 -14
- package/dist/server/{loadPage-D4J747FQ.mjs → loadPage-vwFiq1Rk.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-ukEz1BaM.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
- package/dist/server/{overrideResolution-DSuVkpqm.mjs → overrideResolution-DjboggbB.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-DFv3h4Ib.mjs → pageRenderPlan-BR4t1rOw.mjs} +954 -337
- package/dist/server/{pageRuntimeSupport-yHaRNWMj.mjs → pageRuntimeSupport-BKo6XVK-.mjs} +3 -2
- package/dist/server/{pageShared-CAZD0LcY.mjs → pageShared-BJjptSGp.mjs} +1039 -853
- package/dist/server/{parseThemeForPersistence-Dl7LIBJq.mjs → parseThemeForPersistence-B18KDEue.mjs} +2 -2
- package/dist/server/{prebuild-BKOCND3b.mjs → prebuild-CntSkZQI.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-GIoExi8A.mjs → prefetchBlockData-BM9Ds0OQ.mjs} +2 -2
- package/dist/server/{registry-BogXzcOD.mjs → registry-wYH0LH5f.mjs} +7269 -4975
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CT4YSBve.mjs → resolveBlockData-Bu_p4HxZ.mjs} +2 -2
- package/dist/server/{resolveButtonColourStates-DVISOQD9.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +53 -33
- package/dist/server/{schema-C92Q8y0-.mjs → schema-BFOqYIMQ.mjs} +2 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-vSBCWU3w.mjs → validation-DAQdPDku.mjs} +4 -4
- package/dist/server/{version-Cw5vFmUY.mjs → version-DAB0O3yx.mjs} +1 -1
- package/dist/styles/index.css +1260 -15
- package/package.json +1 -1
- package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
- package/dist/preview-next/client/sdk-runtime-zTTFZ4MM.mjs +0 -5
package/dist/preview-next/client/{PreviewEditorUI-C86Out4V.mjs → PreviewEditorUI--kS9Cwsc.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $
|
|
3
|
-
import { $ as
|
|
4
|
-
import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-
|
|
5
|
-
import {
|
|
6
|
-
import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-
|
|
2
|
+
import { $_ as authoredValuesEqual, Bm as DialogHeader, Cm as unwrapResponse, Fm as Dialog, G as useEntryEditorController, Gu as pageTemplateFromEntry, Ht as PREVIEW_CHROME_Z_INDEX, Ih as Button, Lm as DialogContent, Pv as displayedValues, Q as useSessionJournalHistory, Rm as DialogDescription, Sn as editorAuthoredBlockDocument, V as usePreviewAuth, Vm as DialogTitle, Wh as cn, Wv as unsafeAsEditorBlockId, X as useServerRefresh, Xt as useEditorUiStore, Z as useSessionJournal, Zt as useEditorUiStoreInstance, br as readinessFactsFromPayload, im as resolveBlockTitle, lm as editorAdmissionIsOpen, n as usePreviewAssistantSlot, ot as EditorWriteSurface, un as canDiscardDraft, vr as PUBLISH_READINESS_COPY, yr as publishReadinessWarning, zh as cva, zm as DialogFooter } from "./previewAssistantSlot-Caofnr1Z.mjs";
|
|
3
|
+
import { $ as EllipsisVertical, A as LoaderCircle, S as Palette, X as Eye, _ as Redo2, o as Undo2, pt as ChevronDown, s as TriangleAlert, y as Pencil } from "./lucide-react-BCNn8dEQ.mjs";
|
|
4
|
+
import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-CakNU3lp.mjs";
|
|
5
|
+
import { A as Tooltip, B as DropdownMenuRadioItem, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, N as TooltipTrigger, P as Badge, R as DropdownMenuLabel, V as DropdownMenuSeparator, c as needsSetupAsk, j as TooltipContent, n as resolveBlockManifest, t as useOpenBlockForSetup, z as DropdownMenuRadioGroup } from "./useOpenBlockForSetup-CCEMkosU.mjs";
|
|
6
|
+
import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-CbAI_jSH.mjs";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import { useCallback, useEffect, useMemo, useRef, useState, useTransition } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -178,16 +178,34 @@ function useDiscardConfirmation(onDiscard) {
|
|
|
178
178
|
/** A momentary note (such as a journal note) beside Undo and Redo, kept to one line. */
|
|
179
179
|
function StatusBarNote({ message }) {
|
|
180
180
|
if (!message) return null;
|
|
181
|
-
return /* @__PURE__ */ jsx(
|
|
181
|
+
return /* @__PURE__ */ jsx(Badge, {
|
|
182
|
+
variant: "warning",
|
|
182
183
|
role: "status",
|
|
183
184
|
title: message,
|
|
184
|
-
className: "min-w-0 max-w-[32rem] shrink
|
|
185
|
-
children:
|
|
185
|
+
className: "min-w-0 max-w-[32rem] shrink py-1 font-normal",
|
|
186
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
187
|
+
className: "truncate",
|
|
188
|
+
children: message
|
|
189
|
+
})
|
|
186
190
|
});
|
|
187
191
|
}
|
|
192
|
+
function HistoryButton({ label, icon, onClick, disabled }) {
|
|
193
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
194
|
+
asChild: true,
|
|
195
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
196
|
+
type: "button",
|
|
197
|
+
variant: "ghost",
|
|
198
|
+
size: "icon",
|
|
199
|
+
onClick,
|
|
200
|
+
disabled,
|
|
201
|
+
"aria-label": label,
|
|
202
|
+
children: icon
|
|
203
|
+
})
|
|
204
|
+
}), /* @__PURE__ */ jsx(TooltipContent, { children: label })] });
|
|
205
|
+
}
|
|
188
206
|
function StatusCopy({ decision, size }) {
|
|
189
207
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [formatEditorStatus(decision, size), decision.primary.kind === "publication" && decision.savedAt ? /* @__PURE__ */ jsxs("span", {
|
|
190
|
-
className: "text-xs text-
|
|
208
|
+
className: "text-xs text-muted-foreground",
|
|
191
209
|
children: [" · saved ", decision.savedAt]
|
|
192
210
|
}) : null] });
|
|
193
211
|
}
|
|
@@ -217,54 +235,31 @@ function EditorStatusBar({ status, lastSavedLabel, toolbar, draftSyncState = "ba
|
|
|
217
235
|
historyNote
|
|
218
236
|
});
|
|
219
237
|
const disablePublish = toolbar?.disablePublish || !hasChanges && currentLifecycle !== "draft";
|
|
220
|
-
const statusClass = statusDecision.primary.kind === "error" ? "text-destructive" : "text-
|
|
238
|
+
const statusClass = statusDecision.primary.kind === "error" ? "text-destructive" : "text-muted-foreground";
|
|
221
239
|
return /* @__PURE__ */ jsx(FixedBottomSurface, {
|
|
222
240
|
variant: "light",
|
|
223
241
|
children: /* @__PURE__ */ jsxs("div", {
|
|
224
242
|
"data-testid": "editor-status-bar",
|
|
225
|
-
className: `relative flex flex-nowrap items-center gap-2 text-sm text-
|
|
243
|
+
className: `relative flex flex-nowrap items-center gap-2 text-sm text-foreground sm:gap-3 ${hasConfiguredMenu || toggleSlot ? "pr-12 sm:pr-14" : showMobileHistoryMenu ? "pr-12 sm:pr-0" : ""}`,
|
|
226
244
|
children: [
|
|
227
245
|
/* @__PURE__ */ jsxs("div", {
|
|
228
246
|
className: "flex min-w-0 flex-1 flex-nowrap items-center gap-2 sm:gap-3",
|
|
229
247
|
children: [
|
|
230
248
|
historyControls ? /* @__PURE__ */ jsxs("div", {
|
|
231
|
-
className: "hidden items-center
|
|
249
|
+
className: "hidden items-center sm:inline-flex",
|
|
232
250
|
role: "toolbar",
|
|
233
251
|
"aria-label": "History controls",
|
|
234
|
-
children: [
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
title: "Undo",
|
|
246
|
-
children: /* @__PURE__ */ jsx(Undo2, { className: "h-4 w-4" })
|
|
247
|
-
})
|
|
248
|
-
}), /* @__PURE__ */ jsx(TooltipContent, { children: "Undo" })] }),
|
|
249
|
-
/* @__PURE__ */ jsx("div", {
|
|
250
|
-
className: "mx-0.5 h-5 w-px bg-slate-200",
|
|
251
|
-
"aria-hidden": "true"
|
|
252
|
-
}),
|
|
253
|
-
/* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
254
|
-
asChild: true,
|
|
255
|
-
children: /* @__PURE__ */ jsx(Button, {
|
|
256
|
-
type: "button",
|
|
257
|
-
variant: "ghost",
|
|
258
|
-
size: "icon",
|
|
259
|
-
className: "h-8 w-8 text-slate-600",
|
|
260
|
-
onClick: historyControls.onRedo,
|
|
261
|
-
disabled: !historyControls.canRedo,
|
|
262
|
-
"aria-label": "Redo",
|
|
263
|
-
title: "Redo",
|
|
264
|
-
children: /* @__PURE__ */ jsx(Redo2, { className: "h-4 w-4" })
|
|
265
|
-
})
|
|
266
|
-
}), /* @__PURE__ */ jsx(TooltipContent, { children: "Redo" })] })
|
|
267
|
-
]
|
|
252
|
+
children: [/* @__PURE__ */ jsx(HistoryButton, {
|
|
253
|
+
label: "Undo",
|
|
254
|
+
icon: /* @__PURE__ */ jsx(Undo2, {}),
|
|
255
|
+
onClick: historyControls.onUndo,
|
|
256
|
+
disabled: !historyControls.canUndo
|
|
257
|
+
}), /* @__PURE__ */ jsx(HistoryButton, {
|
|
258
|
+
label: "Redo",
|
|
259
|
+
icon: /* @__PURE__ */ jsx(Redo2, {}),
|
|
260
|
+
onClick: historyControls.onRedo,
|
|
261
|
+
disabled: !historyControls.canRedo
|
|
262
|
+
})]
|
|
268
263
|
}) : null,
|
|
269
264
|
/* @__PURE__ */ jsx(StatusBarNote, { message: statusDecision.note }),
|
|
270
265
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -485,116 +480,110 @@ function PreviewOpenEditorButton() {
|
|
|
485
480
|
});
|
|
486
481
|
}
|
|
487
482
|
//#endregion
|
|
488
|
-
//#region ../preview-next/src/client/preview/PreviewZoomControls.tsx
|
|
489
|
-
function PreviewZoomControls({ zoom, onZoomChange, disabled }) {
|
|
490
|
-
return /* @__PURE__ */ jsxs(Select, {
|
|
491
|
-
value: String(zoom),
|
|
492
|
-
onValueChange: (value) => onZoomChange(value === "fit" ? "fit" : Number(value)),
|
|
493
|
-
disabled,
|
|
494
|
-
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
495
|
-
"aria-label": "Zoom",
|
|
496
|
-
className: "h-[30px] w-[74px] rounded-full border-0 bg-transparent px-2 text-[13px] font-semibold shadow-none",
|
|
497
|
-
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
498
|
-
}), /* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
499
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
500
|
-
value: "33",
|
|
501
|
-
children: "33%"
|
|
502
|
-
}),
|
|
503
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
504
|
-
value: "50",
|
|
505
|
-
children: "50%"
|
|
506
|
-
}),
|
|
507
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
508
|
-
value: "75",
|
|
509
|
-
children: "75%"
|
|
510
|
-
}),
|
|
511
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
512
|
-
value: "100",
|
|
513
|
-
children: "100%"
|
|
514
|
-
}),
|
|
515
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
516
|
-
value: "fit",
|
|
517
|
-
children: "Fit"
|
|
518
|
-
})
|
|
519
|
-
] })]
|
|
520
|
-
});
|
|
521
|
-
}
|
|
522
|
-
//#endregion
|
|
523
483
|
//#region ../preview-next/src/client/preview/PreviewViewportControls.tsx
|
|
484
|
+
const FIT_LABEL = "Fit to space";
|
|
485
|
+
const FIT_VALUE = "fit";
|
|
524
486
|
const VIEWPORT_PRESETS = [
|
|
525
487
|
{
|
|
526
488
|
label: "Desktop",
|
|
527
|
-
width: 1440
|
|
528
|
-
icon: Monitor
|
|
489
|
+
width: 1440
|
|
529
490
|
},
|
|
530
491
|
{
|
|
531
492
|
label: "Tablet",
|
|
532
|
-
width: 768
|
|
533
|
-
icon: Tablet
|
|
493
|
+
width: 768
|
|
534
494
|
},
|
|
535
495
|
{
|
|
536
496
|
label: "Mobile",
|
|
537
|
-
width: 375
|
|
538
|
-
|
|
497
|
+
width: 375
|
|
498
|
+
}
|
|
499
|
+
];
|
|
500
|
+
const ZOOM_OPTIONS = [
|
|
501
|
+
{
|
|
502
|
+
value: "fit",
|
|
503
|
+
label: "Fit"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
value: 100,
|
|
507
|
+
label: "100%"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
value: 75,
|
|
511
|
+
label: "75%"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
value: 50,
|
|
515
|
+
label: "50%"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
value: 33,
|
|
519
|
+
label: "33%"
|
|
539
520
|
}
|
|
540
521
|
];
|
|
522
|
+
function sizeValue(mode, width) {
|
|
523
|
+
return mode === "fixed" && typeof width === "number" ? String(width) : FIT_VALUE;
|
|
524
|
+
}
|
|
525
|
+
/** What the button says: the chosen size, and the zoom when it isn't fitted. */
|
|
526
|
+
function viewportTriggerLabel(mode, width, zoom) {
|
|
527
|
+
if (mode !== "fixed" || typeof width !== "number") return FIT_LABEL;
|
|
528
|
+
const size = VIEWPORT_PRESETS.find((preset) => preset.width === width)?.label ?? `${width}px`;
|
|
529
|
+
return zoom === void 0 || zoom === "fit" ? size : `${size}, ${zoom}%`;
|
|
530
|
+
}
|
|
531
|
+
function parseZoom(value) {
|
|
532
|
+
return ZOOM_OPTIONS.find((option) => String(option.value) === value)?.value ?? "fit";
|
|
533
|
+
}
|
|
541
534
|
/**
|
|
542
|
-
* The editing size, in the bottom bar:
|
|
543
|
-
* sidebar, or
|
|
544
|
-
* These are editing preferences only; view mode always uses
|
|
535
|
+
* The editing size, in the bottom bar: a menu button whose default fits the
|
|
536
|
+
* space beside the sidebar, or a device width. Zoom joins the menu once a
|
|
537
|
+
* width is chosen. These are editing preferences only; view mode always uses
|
|
538
|
+
* the browser's width.
|
|
545
539
|
*/
|
|
546
540
|
function PreviewViewportControls({ mode, width, onModeChange, onWidthChange, className, zoom, onZoomChange }) {
|
|
547
|
-
const
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
541
|
+
const label = viewportTriggerLabel(mode, width, zoom);
|
|
542
|
+
const showZoom = mode === "fixed" && zoom !== void 0 && onZoomChange !== void 0;
|
|
543
|
+
const chooseSize = (value) => {
|
|
544
|
+
if (value === FIT_VALUE) return onModeChange("squeeze");
|
|
545
|
+
onWidthChange(Number(value));
|
|
546
|
+
onModeChange("fixed");
|
|
547
|
+
};
|
|
548
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
549
|
+
asChild: true,
|
|
550
|
+
children: /* @__PURE__ */ jsxs(Button, {
|
|
551
|
+
type: "button",
|
|
552
|
+
variant: "secondary",
|
|
553
|
+
"aria-label": `Preview size: ${label}`,
|
|
554
|
+
className: cn("shrink-0", className),
|
|
555
|
+
children: [label, /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true" })]
|
|
556
|
+
})
|
|
557
|
+
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
558
|
+
align: "end",
|
|
559
|
+
side: "top",
|
|
552
560
|
children: [
|
|
553
|
-
/* @__PURE__ */ jsx(
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
children: /* @__PURE__ */ jsx(
|
|
558
|
-
|
|
559
|
-
children:
|
|
560
|
-
})
|
|
561
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Preview size" }),
|
|
562
|
+
/* @__PURE__ */ jsxs(DropdownMenuRadioGroup, {
|
|
563
|
+
value: sizeValue(mode, width),
|
|
564
|
+
onValueChange: chooseSize,
|
|
565
|
+
children: [/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
566
|
+
value: FIT_VALUE,
|
|
567
|
+
children: FIT_LABEL
|
|
568
|
+
}), VIEWPORT_PRESETS.map((preset) => /* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
569
|
+
value: String(preset.width),
|
|
570
|
+
children: `${preset.label}, ${preset.width}px`
|
|
571
|
+
}, preset.width))]
|
|
561
572
|
}),
|
|
562
|
-
/* @__PURE__ */
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
},
|
|
573
|
-
children: /* @__PURE__ */ jsx(preset.icon, {
|
|
574
|
-
className: "h-4 w-4",
|
|
575
|
-
"aria-hidden": "true"
|
|
573
|
+
showZoom ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
574
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
575
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Zoom" }),
|
|
576
|
+
/* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
|
|
577
|
+
value: String(zoom),
|
|
578
|
+
onValueChange: (value) => onZoomChange(parseZoom(value)),
|
|
579
|
+
children: ZOOM_OPTIONS.map((option) => /* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
580
|
+
value: String(option.value),
|
|
581
|
+
children: option.label
|
|
582
|
+
}, option.value))
|
|
576
583
|
})
|
|
577
|
-
}
|
|
578
|
-
showZoomControls ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
579
|
-
className: "mx-0.5 h-4 w-px bg-border",
|
|
580
|
-
"aria-hidden": "true"
|
|
581
|
-
}), /* @__PURE__ */ jsx(PreviewZoomControls, {
|
|
582
|
-
zoom,
|
|
583
|
-
onZoomChange
|
|
584
|
-
})] }) : null
|
|
584
|
+
] }) : null
|
|
585
585
|
]
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
function SizeButton({ label, pressed, onSelect, children }) {
|
|
589
|
-
return /* @__PURE__ */ jsx("button", {
|
|
590
|
-
type: "button",
|
|
591
|
-
"aria-label": label,
|
|
592
|
-
"aria-pressed": pressed,
|
|
593
|
-
title: label,
|
|
594
|
-
onClick: onSelect,
|
|
595
|
-
className: cn("grid h-[30px] min-w-8 place-items-center rounded-full px-1.5 text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", pressed && "bg-muted text-foreground"),
|
|
596
|
-
children
|
|
597
|
-
});
|
|
586
|
+
})] });
|
|
598
587
|
}
|
|
599
588
|
//#endregion
|
|
600
589
|
//#region ../preview-next/src/client/preview/MaintenanceModeBadge.tsx
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region ../preview-next/src/client/layout/PreviewLayoutContext.tsx
|
|
5
|
+
const PreviewLayoutContext = createContext(null);
|
|
6
|
+
function PreviewLayoutProvider({ headerNode, bannerNode = null, footerNode, siteChromeRenderModel = null, children }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(PreviewLayoutContext.Provider, {
|
|
8
|
+
value: {
|
|
9
|
+
headerNode,
|
|
10
|
+
bannerNode,
|
|
11
|
+
footerNode,
|
|
12
|
+
siteChromeRenderModel
|
|
13
|
+
},
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function usePreviewLayout() {
|
|
18
|
+
const context = useContext(PreviewLayoutContext);
|
|
19
|
+
if (!context) throw new Error("usePreviewLayout must be used within PreviewLayoutProvider");
|
|
20
|
+
return context;
|
|
21
|
+
}
|
|
22
|
+
function useOptionalPreviewLayout() {
|
|
23
|
+
return useContext(PreviewLayoutContext);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { useOptionalPreviewLayout as n, usePreviewLayout as r, PreviewLayoutProvider as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useRef } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
5
|
+
//#region ../preview-next/src/client/preview/PreviewQueryProvider.tsx
|
|
6
|
+
function createPreviewQueryClient() {
|
|
7
|
+
return new QueryClient({ defaultOptions: { queries: {
|
|
8
|
+
staleTime: 3e4,
|
|
9
|
+
refetchOnWindowFocus: false
|
|
10
|
+
} } });
|
|
11
|
+
}
|
|
12
|
+
function PreviewQueryProvider({ children }) {
|
|
13
|
+
const clientRef = useRef(null);
|
|
14
|
+
if (!clientRef.current) clientRef.current = createPreviewQueryClient();
|
|
15
|
+
return /* @__PURE__ */ jsx(QueryClientProvider, {
|
|
16
|
+
client: clientRef.current,
|
|
17
|
+
children
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { createPreviewQueryClient as n, PreviewQueryProvider as t };
|