@riverbankcms/sdk 0.172.0 → 0.174.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/README.md +6 -1
- package/dist/_dts/{BlocksIslandsHydrator-DtrzTJ77.d.ts → BlocksIslandsHydrator-GqVX3I8E.d.ts} +1 -1
- package/dist/_dts/{Page-DViYbakk.d.ts → Page-BhUH31M-.d.ts} +27 -16
- package/dist/_dts/{SdkPreviewMode-D-5OeDbT.d.ts → SdkPreviewMode-DBn2x0UL.d.ts} +14 -7
- package/dist/_dts/{client-DZBOzd3U.d.ts → client-Cr-sOeSl.d.ts} +1002 -139
- package/dist/_dts/{content-types-DS3DrYn_.d.ts → content-types-DKw1yJdN.d.ts} +2 -2
- package/dist/_dts/{contracts-C3QGPCUf.d.ts → contracts-CJ2O03nB.d.ts} +6 -4
- package/dist/_dts/{footerPageOutline-D9Q7VIul.d.ts → footerPageOutline-DoGHHKr_.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-R7NeFT1u.d.ts → generatePageMetadata-CJGu4hoa.d.ts} +2 -2
- package/dist/_dts/{index-Dns7OHyl.d.ts → index--39uLjrr.d.ts} +1 -1
- package/dist/_dts/{index-Da4UMgbs.d.ts → index-3GzargmS.d.ts} +2 -2
- package/dist/_dts/{index-DkFV_1Bc.d.ts → index-Bq-488M7.d.ts} +1 -1
- package/dist/_dts/{index-BnMavhoh.d.ts → index-DQZ5L0Gb.d.ts} +2 -2
- package/dist/_dts/{index-C0zjLMAW.d.ts → index-DYlfdT1O.d.ts} +2 -1
- package/dist/_dts/{index-CpOkfBt1.d.ts → index-DYsP4k6S.d.ts} +3 -3
- package/dist/_dts/{index-MuMYjetm.d.ts → index-DdEi2iXd.d.ts} +4 -4
- package/dist/_dts/{loadContent-DJmXHzfi.d.ts → loadContent-BVPagYmy.d.ts} +11 -11
- package/dist/_dts/{request-wQ28JWbr.d.ts → request-Be1E-H-V.d.ts} +4892 -1720
- package/dist/_dts/{resolveBlockData-C-IP53u9.d.ts → resolveBlockData-D1pL25bD.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Cc4zqaEC.d.ts → resolvePageContent-B4sbTf96.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 +9 -9
- 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 +6 -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 +4 -2
- 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 +13 -8
- 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 +36 -204
- package/dist/_dts/{types-CpjyP5I4.d.ts → types-5MeDI1w8.d.ts} +7 -7
- package/dist/_dts/{types-DrinAfeW.d.ts → types-Bm5_3VEd.d.ts} +3 -3
- package/dist/_dts/{types-ZuZoGsZV.d.ts → types-CVoCc_Ia.d.ts} +2 -2
- package/dist/_dts/{validation-CIZ_fP5l.d.ts → validation-lEtYD-Rh.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-UFmQB1BE.mjs → BlocksIslandsHydrator-DkflFLGQ.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-VjRYhx1c.mjs → BookingMailingListNote-CAyoiAGD.mjs} +18 -12
- package/dist/client/{BookingPanelArrangement-DpqnRo-t.mjs → BookingPanelArrangement-C7yiJrxm.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-CzOT8ZWo.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-CNckKZct.mjs → CalendarNavigationChevron-BPQU5Snc.mjs} +41 -34
- package/dist/client/{DemoBookingPortalAccess-CmZLVXOy.mjs → DemoBookingPortalAccess-BnEgvJas.mjs} +22 -22
- package/dist/client/{EventCalendar.client-BU-SxLCn.mjs → EventCalendar.client-BiWQc28-.mjs} +11 -10
- package/dist/client/{EventCombined.client-f28VltfY.mjs → EventCombined.client-B_ytWQtn.mjs} +10 -9
- package/dist/client/{EventItem-sKBofjiW.mjs → EventItem-C-mxXpX_.mjs} +25 -16
- package/dist/client/{EventListWeekNavigation-IAcax47T.mjs → EventListWeekNavigation-Bm3Ap1Rd.mjs} +1 -1
- package/dist/client/{EventListing.client-BEtnRvZr.mjs → EventListing.client-Bs_8im5_.mjs} +3 -3
- package/dist/client/{EventListing.view-BZ4l_rmT.mjs → EventListing.view-CN7BjGgC.mjs} +37 -14
- package/dist/client/{EventRegistrationPayment-BWb295cD.mjs → EventRegistrationPayment-DPkRcSdw.mjs} +848 -146
- package/dist/client/{LocationMapActions-Hsj2HC_1.mjs → LocationMapActions-BJT7MqP2.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-C7E7Lyfa.mjs → MapDrawingSvg-DCIwlON6.mjs} +1 -1
- package/dist/client/{Page-Ds1s3DuC.mjs → Page--xJ23nA5.mjs} +1160 -521
- package/dist/client/{StepIndicator-CSCyAaKY.mjs → StepIndicator-D391QRNc.mjs} +85 -13
- package/dist/client/{accessibleSurfaces-OsAseM7H.mjs → accessibleSurfaces-DN8it_Cx.mjs} +36 -27
- package/dist/client/{accordion-DgwFZJSx.mjs → accordion-BQtTkDN8.mjs} +1 -1
- package/dist/client/bookability-CE637yDE.mjs +17 -0
- package/dist/client/{booking-form.client-CKY9oksp.mjs → booking-form.client-D9M7TKGV.mjs} +362 -47
- package/dist/client/{bookingForm-CsHhcdSF.mjs → bookingForm-BsOS0sl9.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{boxStyleClassNames-B1Z_TGAe.mjs → boxStyleClassNames-CNDLpT06.mjs} +1 -1
- package/dist/client/{carousel-0sw2Kc3a.mjs → carousel-CPsW-FPh.mjs} +1 -1
- package/dist/client/{cart-CPfvMDGJ.mjs → cart-CwElmocm.mjs} +3 -3
- package/dist/client/{cart.client-BJBPUTmg.mjs → cart.client-RpqI56w8.mjs} +1 -1
- package/dist/client/{checkout-DU4JFjGT.mjs → checkout-CfMgqY8H.mjs} +3 -3
- package/dist/client/{checkout.client-BbNCO4xa.mjs → checkout.client-BpuPyOuJ.mjs} +1 -1
- package/dist/client/{checkoutUrls-BQ3OlWlM.mjs → checkoutUrls-VeHY6WYj.mjs} +1 -1
- package/dist/client/client.mjs +206 -7
- package/dist/client/{context-xNC1Cyjw.mjs → context-CNlesLfF.mjs} +81 -14
- package/dist/client/{cta-CNVQHLKs.mjs → course-q1sA4Cj-.mjs} +77 -3
- package/dist/client/{creditProducts-BTRX4edc.mjs → creditProducts-KYMVIH3J.mjs} +2 -84
- package/dist/client/{dateFormatting-B6ea-egy.mjs → dateFormatting-B73Ll0s4.mjs} +9 -1
- package/dist/client/{demoPortalMagicLink-BhjGxhX3.mjs → demoPortalMagicLink-BVbLD4pi.mjs} +1 -1
- package/dist/client/{display-B5DfNb6A.mjs → display-D8MW2b0e.mjs} +3076 -819
- package/dist/client/{enhanceHeaderSection-BFcHLuqk.mjs → enhanceHeaderSection-BzjY6AiY.mjs} +3 -3
- package/dist/client/{event-details.client-WHT5GLn2.mjs → event-details.client-CseTWUFC.mjs} +1 -1
- package/dist/client/{event-registration.client-CmnRKELC.mjs → event-registration.client-b5TLxntR.mjs} +1315 -553
- package/dist/client/{eventCalendar-2NbdCyov.mjs → eventCalendar-C-kJNIc9.mjs} +4 -4
- package/dist/client/{eventCombined-D1lH1n2T.mjs → eventCombined-BgHJGhwE.mjs} +4 -4
- package/dist/client/{eventDetails-BHvnF2Tw.mjs → eventDetails-CAwbreD0.mjs} +2 -2
- package/dist/client/{eventListing-EhSDk4UL.mjs → eventListing-_14atrj8.mjs} +4 -4
- package/dist/client/{eventRegistration-z_0jN_KS.mjs → eventRegistration-BOqSdstJ.mjs} +4 -4
- package/dist/client/{form-BfChzSkS.mjs → form-DfAB-llc.mjs} +3 -3
- package/dist/client/{form.client-D1zehtPk.mjs → form.client-DN-I9_qC.mjs} +6 -6
- package/dist/client/{form.parts-rMDlUQIv.mjs → form.parts-t2Q1neM6.mjs} +1 -1
- package/dist/client/{formatDate-ymSVT9Y5.mjs → formatDate-Dp7POa9Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BX9bQ84k.mjs → headerSection-Dces54pb.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DMbuJCtJ.mjs → newsletter-form.client-D_YFUlR2.mjs} +9 -7
- package/dist/client/{newsletter-form.parts-BxrVsoI0.mjs → newsletter-form.parts-URO5Mn_I.mjs} +1 -1
- package/dist/client/{newsletterForm-B_I3FJFS.mjs → newsletterForm-_c9fKIzS.mjs} +3 -3
- package/dist/client/{noop-CamIX2yK.mjs → noop-D5mFWXtN.mjs} +139 -12
- package/dist/client/portal/client.mjs +346 -272
- package/dist/client/{product-detail.client-qxuiYCof.mjs → product-detail.client-CVW1UIxJ.mjs} +1 -1
- package/dist/client/{product-list.client-CDL-jihv.mjs → product-list.client-CF9hO23G.mjs} +1 -1
- package/dist/client/{productDetail-B97m0uZy.mjs → productDetail-C_qbmUuP.mjs} +3 -3
- package/dist/client/{productList-DE4vSSG_.mjs → productList-Df5qDD0z.mjs} +3 -3
- package/dist/client/{propsDecoder-BTde6Syh.mjs → propsDecoder-BiEyK2ii.mjs} +3 -3
- package/dist/client/{registry.server-Cn8XjRte.mjs → registry.server-ClcfWpvM.mjs} +93 -63
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +34 -61
- package/dist/client/{richText-coerce-Bcl3vTb4.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BjRoLoMD.mjs → routeIslandApiConfig-DAypPzSo.mjs} +1 -1
- package/dist/client/{runtimeResponse-B-lrAGhX.mjs → runtimeResponse-9v8q2NBc.mjs} +1 -1
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +3 -0
- package/dist/client/{shop-commerce-BsY7a71m.mjs → shop-commerce-Bw4_BXQg.mjs} +12 -11
- package/dist/client/{shop-commerce-store-BZ5j90HD.mjs → shop-commerce-store-Da6Ah-_4.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DidgH7ow.mjs +166 -0
- package/dist/client/{shop-BC4H0oYT.mjs → shop-gteEpeO5.mjs} +3 -3
- package/dist/client/{shop.client-WgGVGelc.mjs → shop.client-CbbdjWWd.mjs} +13 -12
- package/dist/client/{shop.interactive-Bb67gPLL.mjs → shop.interactive-CKFORzux.mjs} +45 -29
- package/dist/client/{shopShared-BE6TEk2A.mjs → shopShared-C7QjoywZ.mjs} +2 -2
- package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
- package/dist/client/{timetableModel-Bbz_ECL5.mjs → timetableModel-CtZiIj9q.mjs} +25 -15
- package/dist/client/{useAvailableSlots-CdP14E_b.mjs → useAvailableSlots-CUVRD1nx.mjs} +39 -8
- package/dist/client/{useDiscountApply-DvOSso2l.mjs → useDiscountApply-BZU5DWZQ.mjs} +4 -167
- package/dist/client/{useDiscountCodeUi-B4fRd2jy.mjs → useDiscountCodeUi-BuLgof7O.mjs} +1 -1
- package/dist/client/{useEventPagination-M3jC8lgP.mjs → useEventPagination-B4VPtSEF.mjs} +6 -6
- package/dist/client/{view-DNNNbnNj.mjs → view-CvlTplao.mjs} +2 -2
- package/dist/client/{view-B0TFnP4y.mjs → view-CxUpgcM6.mjs} +56 -34
- package/dist/preview-next/client/{LocationPickerEnvironment-D4F_5rnr.mjs → LocationPickerEnvironment-8iKKoYZr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-BKMNxSEJ.mjs → MapLibreEditMap-AIUPN1Zx.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D59tHj_L.mjs → PageSectionToolbar-BFbSrDbi.mjs} +80 -160
- package/dist/preview-next/client/{PreviewEditorSidebar-CjOIZlUk.mjs → PreviewEditorSidebar-BtpzqQ-i.mjs} +780 -1634
- package/dist/preview-next/client/{PreviewEditorUI--kS9Cwsc.mjs → PreviewEditorUI-z22h-CCY.mjs} +29 -26
- package/dist/preview-next/client/{PreviewShell-Bi8-rclb.mjs → PreviewShell-BW3Qpoa_.mjs} +52 -32
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CWTUw-3L.mjs → SdkPreviewModeRuntime-BvVeK1hR.mjs} +47 -69
- package/dist/preview-next/client/{lucide-react-BCNn8dEQ.mjs → lucide-react-Dfgl3Vtq.mjs} +7 -1
- package/dist/preview-next/client/{previewAssistantSlot-Caofnr1Z.mjs → previewAssistantSlot-BUqAh1FL.mjs} +98429 -46667
- package/dist/preview-next/client/{previewChromeRoot-CbAI_jSH.mjs → previewChromeRoot-NCy5zHO8.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DY65_hLk.mjs → sdk-runtime-CxmKDVGZ.mjs} +2 -2
- package/dist/preview-next/client/siteStyleAccess-B_UaDyJO.mjs +9356 -0
- package/dist/preview-next/client/{useAutosaveStatus-CakNU3lp.mjs → useAutosaveStatus-BqmWvPLY.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-CCEMkosU.mjs → useOpenBlockForSetup-LAllV0rU.mjs} +8 -4
- package/dist/preview-next/container-responsive.css +117 -32
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DsKDQoVW.mjs → route-contract-DV6SeCNv.mjs} +200 -2
- package/dist/server/{Block.shared-D7Qy9F4a.mjs → Block.shared-Ch2FKAvU.mjs} +11 -6
- package/dist/server/{ThemeScopeCore-D1NTXZdX.mjs → ThemeScopeCore-DFvjDVzi.mjs} +23 -6
- package/dist/server/{accessibleSurfaces-Dbd2__Le.mjs → accessibleSurfaces-CM3QANtw.mjs} +22 -5
- package/dist/server/{bindings-Bp6OnR3n.mjs → bindings-CQg2lzZn.mjs} +6 -4
- package/dist/server/{client-dROAfMRa.mjs → client-aYRTVneD.mjs} +205 -6
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/customCss-BGB8gMVb.mjs +210 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-zOIrtqz-.mjs → loadContent-Cgpfr44e.mjs} +8 -10
- package/dist/server/{loadPage-vwFiq1Rk.mjs → loadPage-RDk10NMP.mjs} +3 -3
- package/dist/server/lookMediaFrame-CQtkvlDn.mjs +2528 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
- package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -8
- package/dist/server/{overrideResolution-DjboggbB.mjs → overrideResolution-VhhN94d8.mjs} +3 -4
- package/dist/server/page-converter.mjs +2 -2
- package/dist/server/{pageRenderPlan-BR4t1rOw.mjs → pageRenderPlan-CkFTsxkd.mjs} +166 -42
- package/dist/server/{pageRuntimeSupport-BKo6XVK-.mjs → pageRuntimeSupport-CpAtzNxD.mjs} +15 -7
- package/dist/server/{pageShared-BJjptSGp.mjs → pageShared-B8yLPjs0.mjs} +531 -117
- package/dist/server/{parseThemeForPersistence-B18KDEue.mjs → parseThemeForPersistence-Cwqb5pZx.mjs} +2 -2
- package/dist/server/{portal-Ce1Prfl3.mjs → portal-BjVHMAUC.mjs} +1 -1
- package/dist/server/portal.mjs +1 -1
- package/dist/server/{prebuild-CntSkZQI.mjs → prebuild-DOu6QceG.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BM9Ds0OQ.mjs → prefetchBlockData-CfOXFKYG.mjs} +3 -3
- package/dist/server/{registry-wYH0LH5f.mjs → registry-34rkAfaU.mjs} +1409 -3314
- 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 +2 -2
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-Bu_p4HxZ.mjs → resolveBlockData-D7VeoWgr.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-CCPUY9Xh.mjs → resolveButtonColourStates--6yJp9Tq.mjs} +15 -4
- package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
- package/dist/server/{schema-BFOqYIMQ.mjs → schema-CUDHMirj.mjs} +440 -154
- package/dist/server/server.mjs +3 -3
- package/dist/server/{src-Cxucn-1P.mjs → src-DHK4JUlp.mjs} +4 -1
- package/dist/server/theme-bridge.mjs +21 -15
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-Bsfdy_ZV.mjs → three-pass-converter-39SXCCnh.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DwKJfMYb.mjs → titleSourceSchema-Cu-3PRvv.mjs} +0 -1
- package/dist/server/{validation-DAQdPDku.mjs → validation-CLVKoJrX.mjs} +5 -5
- package/dist/server/{version-DAB0O3yx.mjs → version-HVfdvBJ0.mjs} +1 -1
- package/dist/styles/index.css +1038 -200
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CPcA8xSm.mjs +0 -3
- package/dist/preview-next/client/SiteChromeCustomizeButton-CrgS3I8d.mjs +0 -53534
- package/dist/server/customCss-QymcmOZ-.mjs +0 -97
- package/dist/server/opaqueSurface-COEKXVwk.mjs +0 -54
- package/dist/server/rich-text-CRcONdyM.mjs +0 -33
package/dist/preview-next/client/{PreviewEditorUI--kS9Cwsc.mjs → PreviewEditorUI-z22h-CCY.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $
|
|
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-
|
|
4
|
-
import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-
|
|
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-
|
|
6
|
-
import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-
|
|
2
|
+
import { $c as Button, $s as DialogFooter, Bu as displayedValues, Ct as EditorWriteSurface, Ms as editorAdmissionIsOpen, Os as resolveBlockTitle, Qs as DialogDescription, Sn as useSidebarView, U as usePreviewAuth, Un as editorAuthoredBlockDocument, Vs as unwrapResponse, Xr as publishReadinessWarning, Xu as unsafeAsEditorBlockId, Yr as PUBLISH_READINESS_COPY, Ys as Dialog, Zr as readinessFactsFromPayload, Zs as DialogContent, ba as pageTemplateFromEntry, bn as useEditorUiStoreInstance, dn as PREVIEW_CHROME_Z_INDEX, ec as DialogHeader, et as useFooterPanelOwnsNotice, ht as useSessionJournalHistory, jn as canDiscardDraft, mt as useSessionJournal, n as usePreviewAssistantSlot, nl as cva, pt as useServerRefresh, sl as cn, su as authoredValuesEqual, tc as DialogTitle, ut as useEntryEditorController, yn as useEditorUiStore } from "./previewAssistantSlot-BUqAh1FL.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-Dfgl3Vtq.mjs";
|
|
4
|
+
import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-BqmWvPLY.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-LAllV0rU.mjs";
|
|
6
|
+
import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-NCy5zHO8.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";
|
|
@@ -189,6 +189,17 @@ function StatusBarNote({ message }) {
|
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
+
/** On a phone the controls fill the row, so a problem gets a line of its own above them. */
|
|
193
|
+
function PhoneProblemLine({ status }) {
|
|
194
|
+
if (status.kind !== "error") return null;
|
|
195
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
196
|
+
className: "mb-2 flex items-start gap-2 text-sm text-destructive sm:hidden",
|
|
197
|
+
children: [/* @__PURE__ */ jsx(TriangleAlert, { className: "mt-0.5 h-4 w-4 shrink-0" }), /* @__PURE__ */ jsx("span", {
|
|
198
|
+
className: "min-w-0",
|
|
199
|
+
children: status.message
|
|
200
|
+
})]
|
|
201
|
+
});
|
|
202
|
+
}
|
|
192
203
|
function HistoryButton({ label, icon, onClick, disabled }) {
|
|
193
204
|
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
194
205
|
asChild: true,
|
|
@@ -236,9 +247,9 @@ function EditorStatusBar({ status, lastSavedLabel, toolbar, draftSyncState = "ba
|
|
|
236
247
|
});
|
|
237
248
|
const disablePublish = toolbar?.disablePublish || !hasChanges && currentLifecycle !== "draft";
|
|
238
249
|
const statusClass = statusDecision.primary.kind === "error" ? "text-destructive" : "text-muted-foreground";
|
|
239
|
-
return /* @__PURE__ */
|
|
250
|
+
return /* @__PURE__ */ jsxs(FixedBottomSurface, {
|
|
240
251
|
variant: "light",
|
|
241
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
252
|
+
children: [/* @__PURE__ */ jsx(PhoneProblemLine, { status: statusDecision.primary }), /* @__PURE__ */ jsxs("div", {
|
|
242
253
|
"data-testid": "editor-status-bar",
|
|
243
254
|
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" : ""}`,
|
|
244
255
|
children: [
|
|
@@ -265,24 +276,14 @@ function EditorStatusBar({ status, lastSavedLabel, toolbar, draftSyncState = "ba
|
|
|
265
276
|
/* @__PURE__ */ jsx("div", {
|
|
266
277
|
className: `flex min-w-0 shrink items-center gap-2 ${statusClass}`,
|
|
267
278
|
children: statusDecision.primary.kind === "error" ? /* @__PURE__ */ jsxs("span", {
|
|
268
|
-
className: "
|
|
269
|
-
children: [
|
|
270
|
-
|
|
271
|
-
/* @__PURE__ */ jsx(
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
decision: statusDecision,
|
|
275
|
-
size: "desktop"
|
|
276
|
-
})
|
|
277
|
-
}),
|
|
278
|
-
/* @__PURE__ */ jsx("span", {
|
|
279
|
-
className: "block min-w-0 truncate sm:hidden",
|
|
280
|
-
children: /* @__PURE__ */ jsx(StatusCopy, {
|
|
281
|
-
decision: statusDecision,
|
|
282
|
-
size: "mobile"
|
|
283
|
-
})
|
|
279
|
+
className: "hidden min-w-0 items-center gap-2 sm:inline-flex",
|
|
280
|
+
children: [/* @__PURE__ */ jsx(TriangleAlert, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ jsx("span", {
|
|
281
|
+
className: "line-clamp-2 min-w-0 leading-tight",
|
|
282
|
+
children: /* @__PURE__ */ jsx(StatusCopy, {
|
|
283
|
+
decision: statusDecision,
|
|
284
|
+
size: "desktop"
|
|
284
285
|
})
|
|
285
|
-
]
|
|
286
|
+
})]
|
|
286
287
|
}) : statusDecision.primary.kind === "saving" ? /* @__PURE__ */ jsxs("span", {
|
|
287
288
|
className: "inline-flex min-w-0 items-center gap-2",
|
|
288
289
|
children: [
|
|
@@ -399,7 +400,7 @@ function EditorStatusBar({ status, lastSavedLabel, toolbar, draftSyncState = "ba
|
|
|
399
400
|
})] }) : null]
|
|
400
401
|
}) : null
|
|
401
402
|
]
|
|
402
|
-
})
|
|
403
|
+
})]
|
|
403
404
|
});
|
|
404
405
|
}
|
|
405
406
|
//#endregion
|
|
@@ -1018,6 +1019,8 @@ function PreviewEditorChrome({ dashboardBaseUrl = null, inMaintenanceMode = fals
|
|
|
1018
1019
|
const controller = useEntryEditorController();
|
|
1019
1020
|
const { canEdit } = usePreviewAuth();
|
|
1020
1021
|
const combinedAutosave = useEditorWriteState();
|
|
1022
|
+
const sidebarView = useSidebarView();
|
|
1023
|
+
const footerPanelOwnsNotice = useFooterPanelOwnsNotice(siteId, sidebarView.kind === "chrome" && sidebarView.target === "footer");
|
|
1021
1024
|
const computedToolbar = usePreviewPublicationToolbar(controller.toolbar);
|
|
1022
1025
|
const draftSyncState = useEditorUiStore((state) => state.getDraftSyncState());
|
|
1023
1026
|
const unfinishedSummary = useEditorUiStore((state) => state.blockValidation.getIncompleteSummary());
|
|
@@ -1051,7 +1054,7 @@ function PreviewEditorChrome({ dashboardBaseUrl = null, inMaintenanceMode = fals
|
|
|
1051
1054
|
hasFailedSaves: combinedAutosave.hasFailedSaves,
|
|
1052
1055
|
...sessionHistory,
|
|
1053
1056
|
historyNote: sessionHistory.historyNote ?? unfinishedSummary,
|
|
1054
|
-
attentionMessage: combinedAutosave.attentionMessage
|
|
1057
|
+
attentionMessage: footerPanelOwnsNotice ? null : combinedAutosave.attentionMessage
|
|
1055
1058
|
}), /* @__PURE__ */ jsx(PublishReadinessPrompt, { gate: publishGate })] }), portalTarget);
|
|
1056
1059
|
}
|
|
1057
1060
|
/** The publish warning, naming blocks as the sidebar does and opening them to set up. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as useOptionalPreviewLayout } from "./PreviewLayoutContext-Dy0LwcHc.mjs";
|
|
3
3
|
import { t as PreviewQueryProvider } from "./PreviewQueryProvider-BgIucg_5.mjs";
|
|
4
|
-
import { $
|
|
5
|
-
import { U as GripVertical } from "./lucide-react-
|
|
6
|
-
import {
|
|
7
|
-
import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-
|
|
8
|
-
import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, d as EditorProvider, f as useEditor, i as getPreviewChromeSurfaceDataProps, l as PREVIEW_KEEP_ALIVE_INTERVAL_MS, o as readPreviewThemeCookie, p as FixedBottomSurface, r as PREVIEW_CHROME_THEME_CLASS_NAME, s as subscribePreviewThemeCookie, t as PreviewChromeRootProvider, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeRoot-
|
|
4
|
+
import { $c as Button, $s as DialogFooter, B as initPreviewAuth, Co as DEFAULT_THEME_RESPONSIVE_MODE, Ct as EditorWriteSurface, Dn as parseStoredSidebarWidth, En as SIDEBAR_WIDTH, Et as getEditorClientId, Fi as buildResolveImageUrlContext, Fn as renderSourceFor, Fs as observeEditorAdmission, G as renderSiteChromeBlock, H as renewPreviewSession, Hn as unsafeAsLinkedContentEntryId, Hs as selectedCanvasBlockId, Is as OPERATION_ID_HEADER, It as ImageResolveContextProvider, Jl as buildRenderableMediaAssetIndex, Ks as Callout, Ln as resolveRenderedValues, Lr as LINKED_CONTENT_ENTRY_META_KEY, Ls as API_ENDPOINTS, Mn as activeLinkedSaveHandover, Nn as planLinkedSaveHandoverRetention, Ns as editorAdmissionNotice, O as PreviewRenderObservationsProvider, Pn as remoteDraftValues, Ps as editorAdmissionSession, Qi as themeRuntimeScopeProps, Qs as DialogDescription, St as EditLeaseModal, U as usePreviewAuth, V as registerPreviewRenewalFetcher, Vs as unwrapResponse, W as usePreviewToken, Xi as buildThemeDataAttrs, Xl as indexRenderableMediaAssets, Xu as unsafeAsEditorBlockId, Yl as renderableMediaAssetSchema$1, Ys as Dialog, Zs as DialogContent, _ as PreviewFooterProvider, _a as planSiteChromePlacement, _t as savedContentReceipt, _u as parseFooterModuleId, a as PreviewPageDesignEditorStateProvider, ad as assertNever$2, bn as useEditorUiStoreInstance, bt as VIEWING_PARTICIPATION, ca as SITE_STICKY_CHROME_HEIGHT_CSS_VAR, ct as EntryControllerProvider, ec as DialogHeader, f as PreviewThemeJournalProvider, fa as planSiteOverlayHeaderClearance, fn as createRoutingHelpers, g as previewThemeBase, gt as createEditorApiClientFactory, i as usePreviewSidebarNavigation, in as blocksKeys, l as SiteChromeCustomizeProvider, la as SITE_STICKY_CHROME_HEIGHT_FALLBACK, ll as baselineRevisionOf, m as usePreviewThemeSourceOptional, ms as assertNever$1, p as usePreviewThemeSource, pa as siteTopChromeMeasurementTargets, pl as canEditorWrite, pn as createSnapshotFromPageRecord, pt as useServerRefresh, qs as CalloutDescription, r as PreviewSidebarBootstrap, sa as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, sl as cn, su as authoredValuesEqual, t as PreviewAssistantSlotProvider, tc as DialogTitle, tt as SessionJournalHost, ua as measureSiteStickyChromeHeightPx, ul as isEdited, un as ApiRequestError, ut as useEntryEditorController, v as useLiveFooterRuntime, vt as savedPageSurfaceMetadataReceipt, wo as getResponsiveScopeSpec, xn as useOptionalEditorUiStoreInstance, xt as EditLeaseDiscardedNotice, yn as useEditorUiStore, yt as useRetentionTicks, z as createGuardedPreviewApiClient, zr as getLinkedContentEntryMeta, zt as BlockApiProvider, zu as parseEditLeaseScope } from "./previewAssistantSlot-BUqAh1FL.mjs";
|
|
5
|
+
import { U as GripVertical } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
6
|
+
import { C as PreviewCompiledThemeProvider, F as mergeResolvedDataContext, Mt as TabsContent, Nt as TabsList, O as SiteFontStorageProvider, Pt as TabsTrigger, T as usePreviewCompiledTheme, V as MediaEditorContextProvider, W as useApiMediaUploader, a as sanitizeDashboardPath, at as ThemeScopeCore, ht as Toaster, i as resolvePreviewDashboardSetupHandoff, it as revealEditorElement, jt as Tabs, l as SiteChromeCustomizeButton, n as resolveSiteStyleAccess, r as buildPreviewDashboardSetupUrl, s as resolvePreviewSetupBannerModel, t as canInspectSiteStyle, v as PreviewChromeLayerProvider, w as PreviewThemeRenderingProvider, x as PREVIEW_SITE_BANNER_ATTRIBUTE } from "./siteStyleAccess-B_UaDyJO.mjs";
|
|
7
|
+
import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-8iKKoYZr.mjs";
|
|
8
|
+
import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, d as EditorProvider, f as useEditor, i as getPreviewChromeSurfaceDataProps, l as PREVIEW_KEEP_ALIVE_INTERVAL_MS, o as readPreviewThemeCookie, p as FixedBottomSurface, r as PREVIEW_CHROME_THEME_CLASS_NAME, s as subscribePreviewThemeCookie, t as PreviewChromeRootProvider, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeRoot-NCy5zHO8.mjs";
|
|
9
9
|
import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -388,6 +388,7 @@ function SiteDocumentLayout({ plan, headerNode, bannerNode = null, footerNode, c
|
|
|
388
388
|
}),
|
|
389
389
|
stickyChromeOffset,
|
|
390
390
|
/* @__PURE__ */ jsx("div", {
|
|
391
|
+
"data-site-document-content": "",
|
|
391
392
|
"data-site-document-overlay-content": plan.overlayHeaderClearance.kind === "opening-content" ? "true" : void 0,
|
|
392
393
|
className: joinSiteChromeClassNames(SITE_CHROME_CLASS_NAMES.overlayContent, contentClassName),
|
|
393
394
|
style: contentStyle,
|
|
@@ -414,6 +415,7 @@ function SiteDocumentLayout({ plan, headerNode, bannerNode = null, footerNode, c
|
|
|
414
415
|
topShell,
|
|
415
416
|
stickyChromeOffset,
|
|
416
417
|
/* @__PURE__ */ jsx("div", {
|
|
418
|
+
"data-site-document-content": "",
|
|
417
419
|
className: joinSiteChromeClassNames(SITE_CHROME_CLASS_NAMES.normalFlowContent, contentClassName),
|
|
418
420
|
children
|
|
419
421
|
}),
|
|
@@ -619,7 +621,7 @@ function appointmentsSecondaryAction(context, appointments, override) {
|
|
|
619
621
|
};
|
|
620
622
|
}
|
|
621
623
|
function appointmentsDescription(appointments, override) {
|
|
622
|
-
if (appointments.kind === "ready") return "Appointments have at least one bookable service with
|
|
624
|
+
if (appointments.kind === "ready") return "Appointments have at least one bookable service, with someone who offers it and hours they can be booked.";
|
|
623
625
|
return override ? "Appointment setup is still unfinished. You chose to launch anyway and finish it later." : "Finish appointment setup so customers can book at least one service before launch, or launch anyway and come back later.";
|
|
624
626
|
}
|
|
625
627
|
function appointmentsRequirements(context, input) {
|
|
@@ -1404,7 +1406,7 @@ const aspectCropSchema = z.object({
|
|
|
1404
1406
|
hotspot: z.preprocess((value) => value == null ? void 0 : value, hotspotSchema.optional()),
|
|
1405
1407
|
rotation: z.preprocess((value) => value == null ? void 0 : value, rotationSchema.optional())
|
|
1406
1408
|
});
|
|
1407
|
-
const
|
|
1409
|
+
const mediaTransformSchema = z.object({
|
|
1408
1410
|
aspectCrops: z.preprocess((value) => {
|
|
1409
1411
|
if (!value || typeof value !== "object" || Array.isArray(value)) return;
|
|
1410
1412
|
return value;
|
|
@@ -1428,7 +1430,7 @@ const mediaUsageShape = {
|
|
|
1428
1430
|
width: z.number().optional(),
|
|
1429
1431
|
height: z.number().optional(),
|
|
1430
1432
|
poster: mediaPosterSchema.optional(),
|
|
1431
|
-
transform:
|
|
1433
|
+
transform: mediaTransformSchema.optional()
|
|
1432
1434
|
};
|
|
1433
1435
|
const environmentExclusions = {
|
|
1434
1436
|
assetId: z.never().optional(),
|
|
@@ -4163,7 +4165,21 @@ function PreviewThemedSiteDocument({ children, themeRuntime = defaultPreviewThem
|
|
|
4163
4165
|
const effectiveTheme = compiled.theme;
|
|
4164
4166
|
const headerNode = renderPreviewHeader(siteChromeRenderModel, effectiveTheme, staticHeaderNode);
|
|
4165
4167
|
const siteDocumentPlan = planPreviewSiteDocument(effectiveTheme, bannerNode, headerNode);
|
|
4166
|
-
const
|
|
4168
|
+
const footerRuntime = useLiveFooterRuntime();
|
|
4169
|
+
const footerNode = renderPreviewFooter(footerRuntime && siteChromeRenderModel ? {
|
|
4170
|
+
...siteChromeRenderModel,
|
|
4171
|
+
footer: {
|
|
4172
|
+
...siteChromeRenderModel.footer,
|
|
4173
|
+
viewModelOverrides: {
|
|
4174
|
+
...siteChromeRenderModel.footer.viewModelOverrides,
|
|
4175
|
+
content: {
|
|
4176
|
+
...siteChromeRenderModel.footer.content,
|
|
4177
|
+
...siteChromeRenderModel.footer.viewModelOverrides.content,
|
|
4178
|
+
footerRuntime
|
|
4179
|
+
}
|
|
4180
|
+
}
|
|
4181
|
+
}
|
|
4182
|
+
} : siteChromeRenderModel, effectiveTheme, staticFooterNode);
|
|
4167
4183
|
const responsiveMode = resolveDocumentResponsiveMode(themeRuntime, useContainerResponsiveMode);
|
|
4168
4184
|
return renderPreviewDocument({
|
|
4169
4185
|
wrapDocument: (document) => renderThemedDocument(themeRuntime, compiled, responsiveMode, document),
|
|
@@ -4194,11 +4210,11 @@ function markPreviewSiteBanner(bannerNode) {
|
|
|
4194
4210
|
}
|
|
4195
4211
|
function renderPreviewFooter(model, theme, fallback) {
|
|
4196
4212
|
if (!model || model.footer.canRenderReactively === false) return fallback;
|
|
4197
|
-
return /* @__PURE__ */ jsx(SiteChromeEditableSurface, {
|
|
4213
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [model.footer.staticBlocksNode, /* @__PURE__ */ jsx(SiteChromeEditableSurface, {
|
|
4198
4214
|
surface: "footer",
|
|
4199
4215
|
preserveSingleComponentRoot: true,
|
|
4200
4216
|
children: renderSiteChromeBlock(model, "footer", theme, { themeConfigOverrideMode: "ignore" })
|
|
4201
|
-
});
|
|
4217
|
+
})] });
|
|
4202
4218
|
}
|
|
4203
4219
|
function renderThemedDocument(runtime, compiled, responsiveMode, documentNode) {
|
|
4204
4220
|
switch (runtime.kind) {
|
|
@@ -4430,10 +4446,10 @@ function resolveShellThemeRoles(props, journalSource) {
|
|
|
4430
4446
|
}
|
|
4431
4447
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
4432
4448
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
4433
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
4449
|
+
return { default: (await import("./PreviewEditorSidebar-BtpzqQ-i.mjs")).PreviewEditorSidebar };
|
|
4434
4450
|
});
|
|
4435
4451
|
const PreviewEditorUI = React.lazy(async () => {
|
|
4436
|
-
return { default: (await import("./PreviewEditorUI
|
|
4452
|
+
return { default: (await import("./PreviewEditorUI-z22h-CCY.mjs")).PreviewEditorUI };
|
|
4437
4453
|
});
|
|
4438
4454
|
function renderShellProviders(input) {
|
|
4439
4455
|
if (!input.themeRoles) return input.content;
|
|
@@ -4835,28 +4851,32 @@ function initialChromeSelections(props) {
|
|
|
4835
4851
|
function PreviewEditorTheme({ props, apiClient, designEditorEnabled, siteStyleAccess }) {
|
|
4836
4852
|
const source = usePreviewThemeSource();
|
|
4837
4853
|
const rendering = usePreviewRenderingOverride(props.renderingOverride);
|
|
4838
|
-
return /* @__PURE__ */ jsx(
|
|
4839
|
-
siteId: props.siteId,
|
|
4854
|
+
return /* @__PURE__ */ jsx(PreviewFooterProvider, {
|
|
4840
4855
|
apiClient,
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
themeId: props.themeId ?? null,
|
|
4845
|
-
selectionId: props.themeSelectionId ?? null,
|
|
4846
|
-
initialSelections: initialChromeSelections(props),
|
|
4847
|
-
headerLogoContext: props.themeSelectionHeaderLogo,
|
|
4848
|
-
siteStyleAccess,
|
|
4849
|
-
canOpenDesignEditor: props.entryData == null && props.pageId !== null && canInspectSiteStyle(siteStyleAccess),
|
|
4850
|
-
onAcceptedChoice: rendering.end,
|
|
4851
|
-
children: /* @__PURE__ */ jsx(PreviewEditorPage, {
|
|
4852
|
-
props: {
|
|
4853
|
-
...props,
|
|
4854
|
-
renderingOverride: rendering.override
|
|
4855
|
-
},
|
|
4856
|
+
siteId: props.siteId,
|
|
4857
|
+
children: /* @__PURE__ */ jsx(SiteChromeCustomizeProvider, {
|
|
4858
|
+
siteId: props.siteId,
|
|
4856
4859
|
apiClient,
|
|
4857
|
-
|
|
4860
|
+
theme: previewThemeBase(source),
|
|
4861
|
+
headerPreferences: props.themeSelectionHeaderPreferences ?? null,
|
|
4862
|
+
footerPreferences: props.themeSelectionFooterPreferences,
|
|
4863
|
+
themeId: props.themeId ?? null,
|
|
4864
|
+
selectionId: props.themeSelectionId ?? null,
|
|
4865
|
+
initialSelections: initialChromeSelections(props),
|
|
4866
|
+
headerLogoContext: props.themeSelectionHeaderLogo,
|
|
4858
4867
|
siteStyleAccess,
|
|
4859
|
-
|
|
4868
|
+
canOpenDesignEditor: props.entryData == null && props.pageId !== null && canInspectSiteStyle(siteStyleAccess),
|
|
4869
|
+
onAcceptedChoice: rendering.end,
|
|
4870
|
+
children: /* @__PURE__ */ jsx(PreviewEditorPage, {
|
|
4871
|
+
props: {
|
|
4872
|
+
...props,
|
|
4873
|
+
renderingOverride: rendering.override
|
|
4874
|
+
},
|
|
4875
|
+
apiClient,
|
|
4876
|
+
designEditorEnabled,
|
|
4877
|
+
siteStyleAccess,
|
|
4878
|
+
onAcceptedChoice: rendering.end
|
|
4879
|
+
})
|
|
4860
4880
|
})
|
|
4861
4881
|
});
|
|
4862
4882
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $
|
|
3
|
-
import { Bt as publicLocationSchema, Mt as decideLocationSourcePermission, Rt as parseLocationValue, zt as projectPublicLocation } from "./lucide-react-
|
|
4
|
-
import { A as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { f as
|
|
8
|
-
import { a as dispatchLinkedEntryFieldFocusEvent, c as useLinkedSaveHandoverRetention, d as linkedEntryRenderOverlaysFromStore, f as PREVIEW_EDITABLE_OUTLINE, i as dispatchLinkedEntryEditEvent, l as applyLinkedEntryRenderOverlay, o as defaultPreviewThemeRuntime, r as dispatchBlockFieldFocusEvent, s as linkedSaveHandoversVersion, t as PreviewShell, u as applyLinkedEntryRenderOverlayToDataContext } from "./PreviewShell-Bi8-rclb.mjs";
|
|
2
|
+
import { $r as selectBlockContent, Aa as formEmbedFragment, As as isObjectRecord, Ba as ctaButton, Bi as normalizeEventRegistrationPageSurfaceSubject, Br as defaultTransforms, Ca as richTextFragment, Cr as arrangementHooksFromContent, D as ObservedJoin, Da as faqHeadingFragment, Dl as parseThemeForPersistence, Dr as buildLoadedOfferingsPreviewListing, Ea as faqAccordionFragment, Ei as RichText$1, Er as getDefaultComponentRegistry, Fa as heroCtaRowFragment, Fi as buildResolveImageUrlContext, Fn as renderSourceFor, Fr as siblingPath, Fu as NO_BLOCK_VERSIONS, Ga as validateManifestDraft, Gr as createEditorPresentationPageReader, Ha as defineFragment, Hi as groupOfferingRunsByCourse, Hn as unsafeAsLinkedContentEntryId, Hr as resolvePageRouteTarget, Ia as ctaRowFragment, Ii as getCurrentResolveImageUrlContext, In as renderedFieldChanges, Iu as readEditorBlockVersionsFromPlacement, Ji as readOfferingsGrouping, Jr as mapOutlineRegions, Ki as offeringsListingFor, Kr as allOutlineBlocks, Li as setContextResolveImageUrlContext, Ll as defaultThemeTokens, Ln as resolveRenderedValues, Lu as readPublishedBlockPlacement, Ma as testimonialsCarouselFragment, Ml as textColorStyle, Mr as logger, Na as testimonialsHeadingFragment, Nr as Text$1, Oa as blogFeaturedPostFragment, Or as resolveEventDetailsPresentation, Pa as ctaCopyFragment, Pl as parseSurfaceTree, Pn as remoteDraftValues, Pr as getAtPath, Pt as clientComponentRegistry, Qr as readinessFactsFromLoaders, Ri as projectRecurringSchedule, Rr as coerceLinkedContentEntriesPayload, Rs as calendarWindowQuerySchema, Ru as selectedContentVersionId, Sa as bookingConsentCarrierSchema, So as mergeContentWithBlockStyleOverrides, Sr as resolveDefaultBlockTree, Su as parseMailingListPlacementTargeting, Ta as cardFragment, Ti as cardListPresentationSchemaShape, Tr as readBlockComposition, Tu as sameMailingListPlacementTargeting, Ua as runTransforms, Ur as resolveRouteTarget, Va as bodyCopyFragment, Vi as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Vr as resolveEntryRouteTarget, Vs as unwrapResponse, W as usePreviewToken, Wa as compileManifestContentContract, Xu as unsafeAsEditorBlockId, ad as assertNever, ao as coerceInlineTextWithFallback, ba as pageTemplateFromEntry, bn as useEditorUiStoreInstance, bo as buildThemeRuntime, br as makeDefaultBlockComponent, cu as generateUuidV4, di as normalizeBlockContent, dl as canWriteLinkedEntry, do as isInlineTextEmpty, dr as createPageRenderPlanReader, eo as parseBlockIconValue, fi as normalizeLocationMapSource, fr as planArrangementContent, ga as resolveDateRuntimeContext, gi as publicRouteCandidatesSchema, gr as retargetJoinsAcrossOmissions, ha as readRuntimeNow, hi as offeringsPreviewBlockDefinition, hr as renderedJoinLayout, id as toUtcIsoDateTimeString, ja as formCopyFragment, jr as renderInlineText, js as isRecord$1, k as PreviewRenderPlanProjection, ka as singleButtonFragment, kr as buildAppointmentServicesView, li as getBlockDefinition, ml as bindingSchema, mo as parseInlineTextFromUnknown, mr as joinSlotKey, no as parseGeneratedIconSetId, oo as deriveInlineTextFieldChanges, pi as resolveLocationMapLocation, pr as composePageJoins, qr as mapOutlineBlocks, s as usePreviewPageDesignRenderState, to as parseGeneratedIconAssetId, uo as inlineTextToPlainText, uu as buildMailingListSignupBlockSourceRef, wa as headingFragment, wr as blockLookFromContent, xa as publicEventsArraySchema, ya as hiddenFromVisitors, yn as useEditorUiStore, za as heroCopyFragment } from "./previewAssistantSlot-BUqAh1FL.mjs";
|
|
3
|
+
import { Bt as publicLocationSchema, Mt as decideLocationSourcePermission, Rt as parseLocationValue, zt as projectPublicLocation } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
4
|
+
import { A as pageDesignRuntimeProjectionFromSource, E as usePreviewCompiledThemeOptional, F as mergeResolvedDataContext, I as withRenderedContentEntry, M as applyPreviewRuntimeContentProjections, N as entryFieldRebindingProjection, P as runtimeContentDecorationProjectionFromServerPage, g as PreviewChromeFloatingBar, j as resolveRuntimePreviewSourceForTheme, ot as EditorCanvasChip } from "./siteStyleAccess-B_UaDyJO.mjs";
|
|
5
|
+
import { C as EMPTY_DOC, D as resolveSdkFooterMode, E as decideDocumentReplacement, S as useRichTextEditor, T as InlineTextEditor, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, r as BlockToolbar, t as PageSectionToolbar, w as parseRichTextDoc, y as RichTextEditorSurface } from "./PageSectionToolbar-BFbSrDbi.mjs";
|
|
6
|
+
import { f as useEditor } from "./previewChromeRoot-NCy5zHO8.mjs";
|
|
7
|
+
import { a as dispatchLinkedEntryFieldFocusEvent, c as useLinkedSaveHandoverRetention, d as linkedEntryRenderOverlaysFromStore, f as PREVIEW_EDITABLE_OUTLINE, i as dispatchLinkedEntryEditEvent, l as applyLinkedEntryRenderOverlay, o as defaultPreviewThemeRuntime, r as dispatchBlockFieldFocusEvent, s as linkedSaveHandoversVersion, t as PreviewShell, u as applyLinkedEntryRenderOverlayToDataContext } from "./PreviewShell-BW3Qpoa_.mjs";
|
|
9
8
|
import * as React$1 from "react";
|
|
10
9
|
import React, { createContext, memo, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
11
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -31,55 +30,6 @@ function isSupportedLoaderEndpoint(endpoint) {
|
|
|
31
30
|
return SUPPORTED_LOADER_ENDPOINTS.includes(endpoint);
|
|
32
31
|
}
|
|
33
32
|
//#endregion
|
|
34
|
-
//#region ../theme-core/src/buttons/parseThemeForPersistence.ts
|
|
35
|
-
/**
|
|
36
|
-
* Proves that every persisted button variant compiles against the theme's
|
|
37
|
-
* concrete palette. Public rendering may still recover from malformed
|
|
38
|
-
* external/runtime input, but persistence boundaries must reject it.
|
|
39
|
-
*/
|
|
40
|
-
function parseThemeForPersistence(value) {
|
|
41
|
-
const parsed = themeSchema.safeParse(value);
|
|
42
|
-
if (!parsed.success) return {
|
|
43
|
-
ok: false,
|
|
44
|
-
error: {
|
|
45
|
-
kind: "invalid-theme-schema",
|
|
46
|
-
issues: parsed.error.issues
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
const parsedTheme = parsed.data;
|
|
50
|
-
const theme = parsedTheme.buttons && !parsedTheme.buttons.surfacePolicy ? {
|
|
51
|
-
...parsedTheme,
|
|
52
|
-
buttons: {
|
|
53
|
-
...parsedTheme.buttons,
|
|
54
|
-
surfacePolicy: createStandardButtonSurfacePolicy()
|
|
55
|
-
}
|
|
56
|
-
} : parsedTheme;
|
|
57
|
-
if (!theme.buttons) return {
|
|
58
|
-
ok: true,
|
|
59
|
-
value: theme
|
|
60
|
-
};
|
|
61
|
-
const palette = expandPalette(theme.palette);
|
|
62
|
-
for (const variant of theme.buttons.variants) {
|
|
63
|
-
const result = compileButtonColourStates({
|
|
64
|
-
variant,
|
|
65
|
-
global: theme.buttons.global,
|
|
66
|
-
palette
|
|
67
|
-
});
|
|
68
|
-
if (!result.ok) return {
|
|
69
|
-
ok: false,
|
|
70
|
-
error: {
|
|
71
|
-
kind: "invalid-button-colour-contract",
|
|
72
|
-
variantId: variant.id,
|
|
73
|
-
cause: result.error
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
return {
|
|
78
|
-
ok: true,
|
|
79
|
-
value: theme
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
//#endregion
|
|
83
33
|
//#region ../blocks/src/system/fragments/library/headerCta.ts
|
|
84
34
|
const headerCtaFragment = defineFragment({
|
|
85
35
|
variantMeaning: { kind: "arrangement" },
|
|
@@ -885,7 +835,14 @@ function promote(tree, heading) {
|
|
|
885
835
|
return children === tree.props.children ? tree : React.cloneElement(tree, {}, children);
|
|
886
836
|
}
|
|
887
837
|
/** One page-wide choice; callers receive the final trees and do not recompute heading rules. */
|
|
888
|
-
function applyPageHeadingSemantics(trees, eventDetailsComponent
|
|
838
|
+
function applyPageHeadingSemantics(trees, eventDetailsComponent, facts = {
|
|
839
|
+
scope: "page",
|
|
840
|
+
overrideOwnsPageHeading: false
|
|
841
|
+
}) {
|
|
842
|
+
if (facts.scope === "region" || facts.overrideOwnsPageHeading) return {
|
|
843
|
+
trees,
|
|
844
|
+
needsPageTitle: false
|
|
845
|
+
};
|
|
889
846
|
const nodes = [...trees.values()].flatMap(elements);
|
|
890
847
|
if (nodes.some((node) => ownsH1(node, eventDetailsComponent))) return {
|
|
891
848
|
trees,
|
|
@@ -1147,11 +1104,12 @@ function pageDateRuntimeContext(dataContext) {
|
|
|
1147
1104
|
}
|
|
1148
1105
|
/** Booking context keeps its defaults together across SSR and authoring. */
|
|
1149
1106
|
function pageBookingRuntime(context) {
|
|
1150
|
-
const { bookingTimeZone, bookingOfferingPresets = [], appointmentServicePathPrefix = null } = context ?? {};
|
|
1107
|
+
const { bookingTimeZone, bookingOfferingPresets = [], appointmentServicePathPrefix = null, businessPerson = null } = context ?? {};
|
|
1151
1108
|
return {
|
|
1152
1109
|
bookingTimeZone,
|
|
1153
1110
|
bookingOfferingPresets,
|
|
1154
|
-
appointmentServicePathPrefix
|
|
1111
|
+
appointmentServicePathPrefix,
|
|
1112
|
+
businessPerson
|
|
1155
1113
|
};
|
|
1156
1114
|
}
|
|
1157
1115
|
//#endregion
|
|
@@ -1321,7 +1279,7 @@ function offeringArrangementContent(content, data, context, audience) {
|
|
|
1321
1279
|
const now = new Date(readRuntimeNow(context?.now));
|
|
1322
1280
|
const listing = buildLoadedOfferingsPreviewListing({
|
|
1323
1281
|
now,
|
|
1324
|
-
listingMode: offeringsListingFor(
|
|
1282
|
+
listingMode: offeringsListingFor(readOfferingsGrouping(effectiveOfferingsGrouping(content)), cardListArrangementForContent(content)),
|
|
1325
1283
|
routeCandidates: publicRouteCandidatesSchema.safeParse(data.routeCandidates).data,
|
|
1326
1284
|
...normalized,
|
|
1327
1285
|
presets: context?.bookingOfferingPresets,
|
|
@@ -1343,6 +1301,12 @@ function offeringArrangementContent(content, data, context, audience) {
|
|
|
1343
1301
|
publicVisibility: listing.kind === "no-groups" && listing.reason === "empty-hidden" ? "omitted" : "shown"
|
|
1344
1302
|
};
|
|
1345
1303
|
}
|
|
1304
|
+
function effectiveOfferingsGrouping(content) {
|
|
1305
|
+
const knobs = content._effectiveKnobs;
|
|
1306
|
+
if (typeof knobs !== "object" || knobs === null || !("grouping" in knobs)) return void 0;
|
|
1307
|
+
const grouping = knobs.grouping;
|
|
1308
|
+
return typeof grouping === "object" && grouping !== null && "value" in grouping ? grouping.value : void 0;
|
|
1309
|
+
}
|
|
1346
1310
|
/** Older blocks opt into preparation only when public visibility needs their listing. */
|
|
1347
1311
|
function needsOfferingListing(content, normalized) {
|
|
1348
1312
|
return content._effectiveLook !== void 0 || normalized.groupOverrides?.some((group) => group.hideWhenEmpty === true) === true;
|
|
@@ -1907,24 +1871,29 @@ function PageRendererCore(props) {
|
|
|
1907
1871
|
setContextResolveImageUrlContext(imageResolveContext);
|
|
1908
1872
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
1909
1873
|
const readSystemTrees = React$1.useMemo(createPageSystemTreeReader, []);
|
|
1874
|
+
const headingScope = props.headingScope ?? "page";
|
|
1910
1875
|
const headingPresentation = React$1.useMemo(() => applyPageHeadingSemantics(readSystemTrees({
|
|
1911
1876
|
preparation,
|
|
1912
1877
|
dataContext,
|
|
1913
1878
|
registry: resolvedRegistry,
|
|
1914
1879
|
previewAuthoring: props.previewAuthoring,
|
|
1915
1880
|
imageResolveContext
|
|
1916
|
-
}), resolvedRegistry["event-details"]
|
|
1881
|
+
}), resolvedRegistry["event-details"], {
|
|
1882
|
+
scope: headingScope,
|
|
1883
|
+
overrideOwnsPageHeading: overrideOwnsPageHeading(preparation)
|
|
1884
|
+
}), [
|
|
1917
1885
|
preparation,
|
|
1918
1886
|
dataContext,
|
|
1919
1887
|
resolvedRegistry,
|
|
1920
1888
|
props.previewAuthoring,
|
|
1921
1889
|
imageResolveContext,
|
|
1922
|
-
readSystemTrees
|
|
1890
|
+
readSystemTrees,
|
|
1891
|
+
headingScope
|
|
1923
1892
|
]);
|
|
1924
|
-
return wrapRenderedPage(props, plan, !page || preparation.entries.length === 0 ? renderEmptyPage(page, audience) : renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation));
|
|
1893
|
+
return wrapRenderedPage(props, plan, !page || preparation.entries.length === 0 ? renderEmptyPage(page, audience, headingScope) : renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation));
|
|
1925
1894
|
}
|
|
1926
|
-
function renderEmptyPage(page, audience) {
|
|
1927
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [page ? /* @__PURE__ */ jsx(PageTitleFallback, { name: page.name }) : null, presentEmptyPage(audience)] });
|
|
1895
|
+
function renderEmptyPage(page, audience, headingScope) {
|
|
1896
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [page && headingScope === "page" ? /* @__PURE__ */ jsx(PageTitleFallback, { name: page.name }) : null, presentEmptyPage(audience)] });
|
|
1928
1897
|
}
|
|
1929
1898
|
function wrapRenderedPage(props, plan, rendered) {
|
|
1930
1899
|
return props.wrapPage ? props.wrapPage(plan, rendered) : rendered;
|
|
@@ -1932,7 +1901,7 @@ function wrapRenderedPage(props, plan, rendered) {
|
|
|
1932
1901
|
function renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation) {
|
|
1933
1902
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
1934
1903
|
const joinSlots = joinSlotsByPair(preparation.joins);
|
|
1935
|
-
const renderRegion = (entries, joins) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
1904
|
+
const renderRegion = (entries, joins, flow) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
1936
1905
|
entry,
|
|
1937
1906
|
index,
|
|
1938
1907
|
entries,
|
|
@@ -1942,12 +1911,13 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
|
|
|
1942
1911
|
resolvedRegistry,
|
|
1943
1912
|
systemTrees: headingPresentation.trees,
|
|
1944
1913
|
joinSlots: joins,
|
|
1914
|
+
flow,
|
|
1945
1915
|
wrapBlock: props.wrapBlock,
|
|
1946
1916
|
renderJoin: props.renderJoin
|
|
1947
1917
|
}));
|
|
1948
1918
|
const { main, aside } = preparation.regions;
|
|
1949
1919
|
const title = headingPresentation.needsPageTitle ? /* @__PURE__ */ jsx(PageTitleFallback, { name: props.page?.name ?? "" }) : null;
|
|
1950
|
-
if (aside.length === 0) return /* @__PURE__ */ jsxs("div", { children: [title, renderRegion(main, joinSlots)] });
|
|
1920
|
+
if (aside.length === 0) return /* @__PURE__ */ jsxs("div", { children: [title, renderRegion(main, joinSlots, "main")] });
|
|
1951
1921
|
return /* @__PURE__ */ jsxs("div", {
|
|
1952
1922
|
className: "rb-page-layout",
|
|
1953
1923
|
"data-page-layout": "main-aside",
|
|
@@ -1956,12 +1926,12 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
|
|
|
1956
1926
|
/* @__PURE__ */ jsx("div", {
|
|
1957
1927
|
className: "rb-page-layout__main",
|
|
1958
1928
|
"data-page-region": "main",
|
|
1959
|
-
children: renderRegion(main, joinSlots)
|
|
1929
|
+
children: renderRegion(main, joinSlots, "main")
|
|
1960
1930
|
}),
|
|
1961
1931
|
/* @__PURE__ */ jsx("aside", {
|
|
1962
1932
|
className: "rb-page-layout__aside rb-sticky-below-site-chrome",
|
|
1963
1933
|
"data-page-region": "aside",
|
|
1964
|
-
children: renderRegion(aside, /* @__PURE__ */ new Map())
|
|
1934
|
+
children: renderRegion(aside, /* @__PURE__ */ new Map(), "aside")
|
|
1965
1935
|
})
|
|
1966
1936
|
]
|
|
1967
1937
|
});
|
|
@@ -2050,6 +2020,10 @@ function requireEntryBlockOverride(entry, themeResources) {
|
|
|
2050
2020
|
}
|
|
2051
2021
|
requireBlockOverride(themeResources, entry.override, entry.block.kind);
|
|
2052
2022
|
}
|
|
2023
|
+
/** The footer meets the main flow's last block, which marks itself for the footer edge's reserve. */
|
|
2024
|
+
function pageEndingAttribute(flow, position) {
|
|
2025
|
+
return flow === "main" && (position === "last" || position === "only") ? "" : void 0;
|
|
2026
|
+
}
|
|
2053
2027
|
/**
|
|
2054
2028
|
* Renders one planned block: its wrapper, style-group data attributes,
|
|
2055
2029
|
* boundary reserve space and the join markup that follows it.
|
|
@@ -2110,6 +2084,7 @@ function renderPlanEntry(input) {
|
|
|
2110
2084
|
"data-block-composition": blockComposition?.treatment,
|
|
2111
2085
|
"data-block-composition-kind": blockComposition?.kind,
|
|
2112
2086
|
"data-page-block-position": blockPosition,
|
|
2087
|
+
"data-page-ending": pageEndingAttribute(input.flow, blockPosition),
|
|
2113
2088
|
"data-site-style-boundary-before": reserves.topPlacement,
|
|
2114
2089
|
"data-site-style-boundary-after": reserves.bottomPlacement,
|
|
2115
2090
|
"data-site-style-field-seam": reserves.fieldSeam,
|
|
@@ -2204,6 +2179,9 @@ function resolveSystemBlockTree(input) {
|
|
|
2204
2179
|
return /* @__PURE__ */ jsx(FailedSystemBlockTree, { error });
|
|
2205
2180
|
}
|
|
2206
2181
|
}
|
|
2182
|
+
function overrideOwnsPageHeading(preparation) {
|
|
2183
|
+
return [...preparation.regions.main, ...preparation.regions.aside].some(({ entry }) => (entry.kind === "renderable" || entry.kind === "override-only") && entry.override?.ownsPageHeading === true);
|
|
2184
|
+
}
|
|
2207
2185
|
/** Preserve the block memo's reuse rules while resolving page-wide heading facts. */
|
|
2208
2186
|
function createPageSystemTreeReader() {
|
|
2209
2187
|
const memo = {};
|
|
@@ -181,6 +181,12 @@ function trimmedStringOrNull(value) {
|
|
|
181
181
|
const trimmed = typeof value === "string" ? value.trim() : "";
|
|
182
182
|
return trimmed.length > 0 ? trimmed : null;
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* Capitalize the first character of a string
|
|
186
|
+
*/
|
|
187
|
+
function capitalize(str) {
|
|
188
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
189
|
+
}
|
|
184
190
|
//#endregion
|
|
185
191
|
//#region ../core/src/location.ts
|
|
186
192
|
/** One complete, finite, bounded arrival pin; zero is a valid coordinate. */
|
|
@@ -51994,4 +52000,4 @@ var lucide_react_exports = /* @__PURE__ */ __exportAll({
|
|
|
51994
52000
|
useLucideContext: () => useLucideContext
|
|
51995
52001
|
});
|
|
51996
52002
|
//#endregion
|
|
51997
|
-
export { EllipsisVertical as $, LoaderCircle as A, sameMeaningfulAddress as At, ImageOff as B, publicLocationSchema as Bt, Move as C, LOCATION_MATCH_THRESHOLDS_METRES as Ct, MapPin as D, editLocationValue as Dt, Maximize2 as E, decideLocationSave as Et, Italic as F, locationPinSchema as Ft, FileText as G,
|
|
52003
|
+
export { EllipsisVertical as $, LoaderCircle as A, sameMeaningfulAddress as At, ImageOff as B, publicLocationSchema as Bt, Move as C, LOCATION_MATCH_THRESHOLDS_METRES as Ct, MapPin as D, editLocationValue as Dt, Maximize2 as E, decideLocationSave as Et, Italic as F, locationPinSchema as Ft, FileText as G, mapDrawingSchema as Gt, Highlighter as H, asNonEmptyStringOrNull as Ht, Info as I, locationValueSchema as It, FileHeadphone as J, FileSpreadsheet as K, err as Kt, Image as L, normalizeLocationAddressText as Lt, ListOrdered as M, decideLocationSourcePermission as Mt, Link as N, formatLocationAddress as Nt, Lock as O, locationDistanceMetres as Ot, Link2 as P, locationAddressSchema as Pt, ExternalLink as Q, ImageUp as R, parseLocationValue as Rt, Palette as S, Archive as St, Minus as T, decideLocationRelationship as Tt, GripVertical as U, capitalize as Ut, House as V, toLocationCoordinates as Vt, File as W, trimmedStringOrNull as Wt, Eye as X, FileArchive as Y, EyeOff as Z, Redo2 as _, Box as _t, Upload as a, Circle as at, PanelTop as b, ArrowUpRight as bt, Trash2 as c, CircleCheck as ct, SlidersHorizontal as d, ChevronRight as dt, Crosshair as et, Settings as f, ChevronLeft as ft, RotateCcw as g, Building2 as gt, Route as h, Calendar as ht, Video as i, Clock3 as it, List as j, stableJsonStringify as jt, LocateFixed as k, sameLocationSpatialPair as kt, Store as l, CircleAlert as lt, Rows3 as m, Check as mt, X as n, Copy as nt, Undo2 as o, CirclePlus as ot, Search as p, ChevronDown as pt, FilePlay as q, ok as qt, WifiOff as r, Clock as rt, TriangleAlert as s, CircleMinus as st, lucide_react_exports as t, Crop as tt, Sparkles as u, ChevronUp as ut, Plus as v, Bold as vt, Mountain as w, confirmLocationPair as wt, PanelBottom as x, ArrowDown as xt, Pencil as y, ArrowUp as yt, ImagePlus as z, projectPublicLocation as zt };
|