@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
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { Bt as CardListContentPart, Gt as MediaNodeServer, Kt as EventQuickFacts, an as formatEventPriceDisplay, in as formatEventPriceAmount, lt as closedRunCopy, nn as formatCoursePrice, rn as formatEventPrice, st as formatBookingSchedulePresentation } from "./shop.interactive-CKFORzux.mjs";
|
|
3
|
+
import { $r as formatTotalCapacity, Dc as isPublicEventPricingOptionDisplayable, Ga as listLookSlot, Gr as formatTime, Hr as formatEventRunDates, Nr as eventDateOptions, Oc as publicEventPricingCurrency, Ra as resolveEventRegistrationScopedEvents, Rr as formatEventCompactDateRail, Tc as formatBookingPriceDisplay, Ur as formatEventTimeRange, Zr as formatEventRemainingPlaces, dc as nextLiveRunSessionStartMs, ei as getEventAvailability, fc as orderedLiveRunSessions, jc as publicEventPricingType, kc as publicEventPricingDisplay, lc as CANCELLED_SESSION_STATUS, pc as resolveWholeSeriesBookingPhase, ri as isEventFull, ti as getEventAvailabilityStatus, yr as ImagePresets, zr as formatEventDateParts } from "./display-D8MW2b0e.mjs";
|
|
4
|
+
import { $t as compareLocalScheduleDates, Bt as formatDate, Ut as formatDateTimeRange, Vt as formatDateRange, Xt as toScheduledBookingDateTime, an as resolveBookingBusinessTimeZone, ln as toUtcIsoDateTimeString, mn as formatCurrencyAmount, nn as getLocalScheduleDate, sn as toBookingTimeZone, tn as getBookingLocalDateKey } from "./noop-D5mFWXtN.mjs";
|
|
5
|
+
import { A as assertNever } from "./creditProducts-KYMVIH3J.mjs";
|
|
6
6
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
7
|
-
import { t as LocationMapActions } from "./LocationMapActions-
|
|
8
|
-
import {
|
|
9
|
-
import { a as
|
|
7
|
+
import { t as LocationMapActions } from "./LocationMapActions-BJT7MqP2.mjs";
|
|
8
|
+
import { t as isBookableEvent } from "./bookability-CE637yDE.mjs";
|
|
9
|
+
import { a as formatMoreDates, c as resolveEventLinkProps, i as formatCourseSessions, o as resolveEventCardBooking, t as eventDisplayTitle } from "./course-q1sA4Cj-.mjs";
|
|
10
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-DCIwlON6.mjs";
|
|
10
11
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
11
12
|
import "react";
|
|
12
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -53,20 +54,6 @@ function selectEventDetailsCandidate(events, requested, nowIso) {
|
|
|
53
54
|
mode: "completed"
|
|
54
55
|
} : null;
|
|
55
56
|
}
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region ../blocks/src/system/runtime/nodes/events/domain/bookability.ts
|
|
58
|
-
/**
|
|
59
|
-
* Whether a public event has a registration path a visitor can take.
|
|
60
|
-
*
|
|
61
|
-
* Lifecycle admission comes from the public booking-availability contract;
|
|
62
|
-
* capacity comes from the shared event-domain helpers so uncapped, fallback,
|
|
63
|
-
* and hybrid attendance-mode cases agree with the registration runtime.
|
|
64
|
-
*/
|
|
65
|
-
function isBookableEvent(event) {
|
|
66
|
-
if (!event.requiresRegistration) return false;
|
|
67
|
-
if (event.bookingAvailability.kind !== "open") return false;
|
|
68
|
-
return !isEventFull(event) || canJoinEventWaitlistOnAnyMode(event);
|
|
69
|
-
}
|
|
70
57
|
/**
|
|
71
58
|
* Select the next occurrence-targeted events for a quick-book rail.
|
|
72
59
|
*
|
|
@@ -169,11 +156,28 @@ function offeringDatesBySeries(events, now, booking) {
|
|
|
169
156
|
const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
|
|
170
157
|
return new Map([...groups].map(([seriesId, occurrences]) => [seriesId, orderedUniqueEventOccurrences(occurrences.filter((event) => event.bookingScope !== "whole_series" && Date.parse(event.startsAt) >= now.getTime())).slice(0, 3).map((event) => offeringDateRow(event, event, occurrencePlaces(event), booking))]));
|
|
171
158
|
}
|
|
172
|
-
/**
|
|
173
|
-
|
|
174
|
-
|
|
159
|
+
/**
|
|
160
|
+
* A course's dates on a card: its first upcoming session, then how many more
|
|
161
|
+
* follow ("and 5 more"). One booking covers every session, so the places left
|
|
162
|
+
* belong to the course: the card says them once, from its own booking decision,
|
|
163
|
+
* never per date.
|
|
164
|
+
*/
|
|
165
|
+
function offeringRunDates(event, now) {
|
|
166
|
+
if (event.bookingScope !== "whole_series") return {
|
|
167
|
+
dates: [],
|
|
168
|
+
datesMore: null
|
|
169
|
+
};
|
|
175
170
|
const nextStart = nextLiveRunSessionStartMs(event.run.sessions, now);
|
|
176
|
-
|
|
171
|
+
const upcoming = nextStart === null ? [] : orderedLiveRunSessions(event.run.sessions).filter((session) => Date.parse(session.startsAt) >= nextStart);
|
|
172
|
+
const [first] = upcoming;
|
|
173
|
+
if (!first) return {
|
|
174
|
+
dates: [],
|
|
175
|
+
datesMore: null
|
|
176
|
+
};
|
|
177
|
+
return {
|
|
178
|
+
dates: [offeringDateRow(first, event, null)],
|
|
179
|
+
datesMore: formatMoreDates(upcoming.length - 1)
|
|
180
|
+
};
|
|
177
181
|
}
|
|
178
182
|
function offeringDateRow(session, event, places, booking) {
|
|
179
183
|
const options = eventDateOptions({
|
|
@@ -219,7 +223,7 @@ function eventCardListContent(event, context, buttonText) {
|
|
|
219
223
|
leadDate: offeringLeadDate(event, context.nextStartMs),
|
|
220
224
|
newTabHint: external,
|
|
221
225
|
...offeringSchedule(event, context.now),
|
|
222
|
-
...event.bookingScope === "whole_series" ?
|
|
226
|
+
...event.bookingScope === "whole_series" ? offeringRunDates(event, context.now) : {}
|
|
223
227
|
};
|
|
224
228
|
default: return assertNever(context);
|
|
225
229
|
}
|
|
@@ -228,11 +232,13 @@ function cardProjectionBase(event, buttonText, context) {
|
|
|
228
232
|
const offering = context.kind !== "event-details";
|
|
229
233
|
const { cta, availability: places, closed } = cardBooking(event, buttonText, context);
|
|
230
234
|
const titleLink = resolveEventLinkProps(event);
|
|
235
|
+
const { title, runName } = eventDisplayTitle(event);
|
|
231
236
|
return {
|
|
232
237
|
external: cta.external,
|
|
233
238
|
content: {
|
|
234
239
|
id: event.occurrenceId || event.id,
|
|
235
|
-
title
|
|
240
|
+
title,
|
|
241
|
+
subtitle: runName,
|
|
236
242
|
...titleLink.href ? { titleLink } : {},
|
|
237
243
|
quickFacts: event.facts,
|
|
238
244
|
text: event.presentation?.summary ?? event.description,
|
|
@@ -330,12 +336,19 @@ function scheduleLine(summary, event, now) {
|
|
|
330
336
|
}
|
|
331
337
|
}
|
|
332
338
|
}
|
|
339
|
+
/**
|
|
340
|
+
* A course's facts are said for the whole course ("6 weekly sessions, 1 hour
|
|
341
|
+
* each", "£72 for the course"), so one session's length never sits beside
|
|
342
|
+
* the price of all of them.
|
|
343
|
+
*/
|
|
333
344
|
function offeringFacts(event, places, offering) {
|
|
345
|
+
const course = event.bookingScope === "whole_series";
|
|
346
|
+
const sessions = formatCourseSessions(event);
|
|
334
347
|
return [
|
|
335
|
-
...
|
|
348
|
+
...sessions ? [{
|
|
336
349
|
label: "Length",
|
|
337
|
-
value:
|
|
338
|
-
}] :
|
|
350
|
+
value: sessions
|
|
351
|
+
}] : lengthFact(event, !offering || course),
|
|
339
352
|
...offering && event.venue ? [{
|
|
340
353
|
label: "Venue",
|
|
341
354
|
value: event.venue.name
|
|
@@ -347,10 +360,17 @@ function offeringFacts(event, places, offering) {
|
|
|
347
360
|
}] : [],
|
|
348
361
|
...offering && event.pricing.kind === "external" ? [] : [{
|
|
349
362
|
label: "Price",
|
|
350
|
-
value: formatEventPriceDisplay(event.pricing)
|
|
363
|
+
value: course ? formatCoursePrice(event.pricing) : formatEventPriceDisplay(event.pricing)
|
|
351
364
|
}]
|
|
352
365
|
];
|
|
353
366
|
}
|
|
367
|
+
function lengthFact(event, shown) {
|
|
368
|
+
const minutes = Math.round((Date.parse(event.endsAt) - Date.parse(event.startsAt)) / 6e4);
|
|
369
|
+
return shown && minutes > 0 ? [{
|
|
370
|
+
label: "Length",
|
|
371
|
+
value: formatEventDuration(event, "readable")
|
|
372
|
+
}] : [];
|
|
373
|
+
}
|
|
354
374
|
function offeringTypeChips(event, typeLabel) {
|
|
355
375
|
return event.eventCategory ? [event.eventCategory.name] : typeLabel ? [typeLabel] : [];
|
|
356
376
|
}
|
|
@@ -1049,9 +1069,11 @@ function OtherEventDates({ selection }) {
|
|
|
1049
1069
|
}
|
|
1050
1070
|
function EventIdentity({ event, showTitle, showDescription }) {
|
|
1051
1071
|
if (!showTitle && !showDescription) return null;
|
|
1052
|
-
|
|
1072
|
+
const description = event.occurrenceDescription ?? event.description;
|
|
1073
|
+
return /* @__PURE__ */ jsxs("div", { children: [showTitle ? /* @__PURE__ */ jsx("h3", { children: event.occurrenceTitle ?? event.title }) : null, showDescription && description ? /* @__PURE__ */ jsx("p", {
|
|
1053
1074
|
className: "rb-mt-2",
|
|
1054
|
-
|
|
1075
|
+
style: { whiteSpace: "pre-line" },
|
|
1076
|
+
children: description
|
|
1055
1077
|
}) : null] });
|
|
1056
1078
|
}
|
|
1057
1079
|
function acceptedProductNames(props) {
|
|
@@ -1251,4 +1273,4 @@ function withLookParts(props, arrangement) {
|
|
|
1251
1273
|
};
|
|
1252
1274
|
}
|
|
1253
1275
|
//#endregion
|
|
1254
|
-
export { eventCardListContent as a, derivePreviewRunSchedule as c,
|
|
1276
|
+
export { eventCardListContent as a, derivePreviewRunSchedule as c, eventHeaderSlotParents as i, formatEventQuickDate as l, resolveEventDetailsPresentation as n, offeringDatesBySeries as o, lookPartShown as r, deriveEventScheduleSummary as s, EventDetailsView as t, selectQuickDateEvents as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ft as locationPinSchema } from "./lucide-react-
|
|
2
|
+
import { Ft as locationPinSchema } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../editor-blocks/src/widgets/location/editMapDecision.ts
|
package/dist/preview-next/client/{MapLibreEditMap-BKMNxSEJ.mjs → MapLibreEditMap-AIUPN1Zx.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as __toESM } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { At as sameMeaningfulAddress, Ft as locationPinSchema, T as Minus, k as LocateFixed, v as Plus } from "./lucide-react-
|
|
4
|
-
import { a as NO_EDIT_MAP_OVERLAY, c as overlayFeatures, d as editMapResource, f as editMapStyleUrl, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, m as moveEditingPin, o as midpoint, p as isPinArrow, s as overlayExtent, u as editMapInteraction } from "./LocationPickerEnvironment-
|
|
3
|
+
import { At as sameMeaningfulAddress, Ft as locationPinSchema, T as Minus, k as LocateFixed, v as Plus } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
4
|
+
import { a as NO_EDIT_MAP_OVERLAY, c as overlayFeatures, d as editMapResource, f as editMapStyleUrl, i as useOptionalLocationPickerEnvironment, l as EMPTY_EDIT_MAP_VIEW, m as moveEditingPin, o as midpoint, p as isPinArrow, s as overlayExtent, u as editMapInteraction } from "./LocationPickerEnvironment-8iKKoYZr.mjs";
|
|
5
5
|
import { useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { createPortal } from "react-dom";
|
package/dist/preview-next/client/{PageSectionToolbar-D59tHj_L.mjs → PageSectionToolbar-BFbSrDbi.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { $
|
|
4
|
-
import { A as LoaderCircle, F as Italic$1, G as FileText,
|
|
5
|
-
import {
|
|
6
|
-
import { A as Tooltip, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, P as Badge, a as blockNoticeAction, d as arrangementBackgroundControlFor, f as arrangementBlockControlsFor, j as TooltipContent, o as blockNoticeLabel, r as useBlockCustomizeControls, s as blockNoticeMessage, t as useOpenBlockForSetup, u as useBlockNotice } from "./useOpenBlockForSetup-
|
|
3
|
+
import { $c as Button, $l as mediaIdentifierSchema, $o as getGradientPreset, Ai as resolveImageUrlWithContext, Al as surfaceForegroundValue, Bl as normalizeRightAngle, Cc as __generator, Dc as __spreadArrays, Di as getRichTextImageSize, E as selectedImageFromRenderableAsset, Ec as __spreadArray, F as lookTilePosition, Gl as getImageUrl, Go as getCuratedSiteStyle, Hl as parseAspectRatioValue, Hs as selectedCanvasBlockId, Ja as RichTextDocSchema, Ks as Callout, L as nextLookTilePin, Mi as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, Oi as computeMediaTransformStyle, P as lookPositionLabel, Qs as DialogDescription$1, S as pageDesignLookPosition, Sc as __extends, T as selectedImageFromMediaValue, Tc as __rest, Ul as resolveMediaTransformForAspect, Vl as formatAspectRatioToken, Vs as unwrapResponse, Wl as getDirectImageUrlForMediaAsset, Xa as richTextVariantCapabilities, Xc as composeEventHandlers, Xu as unsafeAsEditorBlockId, Yc as createContextScope, Ys as Dialog, Zc as Primitive, Zi as readThemeScopeContext, Zl as resolveManagedMediaReference, Zo as gradientToCss, Zs as DialogContent$1, _o as replaceInlineTextRange, ac as DialogClose, ad as assertNever, an as getDashboardBaseUrl, au as asLayoutVariantKey, bc as __assign, bn as useEditorUiStoreInstance, cc as DialogOverlay, cd as unsafeAsPositiveByteCount, co as inlineTextEqual, cu as generateUuidV4, ec as DialogHeader, er as backgroundColorTokens, fo as normalizeInlineText, go as removeInlineTextMarkFromRange, ho as plainTextToInlineText, i as usePreviewSidebarNavigation, io as applyInlineTextMarkToRange, j as usePreviewRenderBackgrounds, ji as resolveMediaStorageUrl, lc as DialogPortal, li as getBlockDefinition, lo as inlineTextHighlightTones, lr as rankBackgroundImagePoolItems, ms as assertNever$1, nl as cva, nr as defaultBackgroundOverrideForMode, o as usePreviewPageDesignEditorState, oc as DialogContent, ol as useComposedRefs, po as normalizeInlineTextMarks, qc as useControllableState, rc as overlayScrimClass, sc as DialogDescription, sd as unsafeAsMediaAssetId, sl as cn$2, so as inlineTextAccentTones, su as authoredValuesEqual, tc as DialogTitle$1, tl as useControlReadiness, uc as DialogTitle, uo as inlineTextToPlainText, vc as usePortalContainer, vo as truncateInlineText, wc as __read, x as cyclePageDesignBlockLook, xc as __awaiter, yn as useEditorUiStore, zc as useSize, zl as isRotationDimensionSwap } from "./previewAssistantSlot-BUqAh1FL.mjs";
|
|
4
|
+
import { A as LoaderCircle, F as Italic$1, G as FileText, H as Highlighter, I as Info, J as FileHeadphone, K as FileSpreadsheet, Kt as err, L as Image, M as ListOrdered, N as Link$1, R as ImageUp, S as Palette, St as Archive, W as File, Y as FileArchive, Z as EyeOff, a as Upload, c as Trash2, j as List, mt as Check, n as X, q as FilePlay, qt as ok, s as TriangleAlert, tt as Crop, vt as Bold$1, y as Pencil } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
5
|
+
import { At as useFieldDescribedBy, Dt as Input, E as usePreviewCompiledThemeOptional, G as TransferError, H as useMediaEditor, L as siteColourCss, S as planBlockToolbarPlacement, St as usePrevious, U as useMediaEditorOptional, W as useApiMediaUploader, _ as PreviewChromeFloatingControl, _t as Select, b as measureSiteTopChromeClearance, bt as SelectTrigger, ct as EditorCanvasChoiceChip, dt as EditorInsertionMarker, ft as EditorSelectionFrame, h as CustomizeBackgroundColorPicker, lt as EditorCanvasCycleChip, pt as CHOSEN_OPTION_CLASS, st as EditorCanvasChipRow, ut as EditorCanvasNameChip, vt as SelectContent, xt as SelectValue, y as readThemeCustomProperties, yt as SelectItem, zt as classifyKnownMimeType } from "./siteStyleAccess-B_UaDyJO.mjs";
|
|
6
|
+
import { A as Tooltip, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, P as Badge, a as blockNoticeAction, d as arrangementBackgroundControlFor, f as arrangementBlockControlsFor, j as TooltipContent, o as blockNoticeLabel, r as useBlockCustomizeControls, s as blockNoticeMessage, t as useOpenBlockForSetup, u as useBlockNotice } from "./useOpenBlockForSetup-LAllV0rU.mjs";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import React, { Component, createContext, createRef, forwardRef, useCallback, useContext, useDebugValue, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -518,141 +518,6 @@ function progressPercentage(value, max) {
|
|
|
518
518
|
return Math.min(Math.max(max > 0 ? value / max * 100 : 0, 0), 100);
|
|
519
519
|
}
|
|
520
520
|
//#endregion
|
|
521
|
-
//#region ../ui/src/editor-canvas-chrome.tsx
|
|
522
|
-
const WHITE_EDGE_INSIDE = "shadow-[inset_0_0_0_1px_rgb(255_255_255/0.9)]";
|
|
523
|
-
const WHITE_EDGE_AROUND = "shadow-[0_0_0_1px_rgb(255_255_255/0.9)]";
|
|
524
|
-
/** An outline drawn as its own layer, so the item's own borders, shadows and outlines stay as they are. Place it inside a positioned element. */
|
|
525
|
-
function EditorSelectionFrame() {
|
|
526
|
-
return /* @__PURE__ */ jsx("div", {
|
|
527
|
-
"aria-hidden": "true",
|
|
528
|
-
"data-preview-block-selection-frame": "",
|
|
529
|
-
className: `pointer-events-none absolute inset-0 z-10 border-[3px] border-sky-500 ${WHITE_EDGE_INSIDE}`
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
const INSERTION_PILL_STYLE = {
|
|
533
|
-
fontSize: 12.5,
|
|
534
|
-
lineHeight: 1,
|
|
535
|
-
padding: "8px 14px",
|
|
536
|
-
gap: 6,
|
|
537
|
-
letterSpacing: 0
|
|
538
|
-
};
|
|
539
|
-
/** A line on one edge of a positioned element, with a pill saying a new item goes there. */
|
|
540
|
-
function EditorInsertionMarker({ edge, label = "New block goes here", ref }) {
|
|
541
|
-
return /* @__PURE__ */ jsx("div", {
|
|
542
|
-
ref,
|
|
543
|
-
"aria-hidden": "true",
|
|
544
|
-
"data-preview-insertion-marker": edge,
|
|
545
|
-
className: `pointer-events-none absolute inset-x-0 z-30 h-[3px] bg-sky-500 ${WHITE_EDGE_AROUND} ${edge === "top" ? "-top-px" : "-bottom-px"}`,
|
|
546
|
-
children: /* @__PURE__ */ jsxs("span", {
|
|
547
|
-
className: "absolute left-1/2 top-1/2 inline-flex -translate-x-1/2 -translate-y-1/2 items-center whitespace-nowrap rounded-full bg-sky-500 font-sans font-semibold text-white shadow-md ring-1 ring-white/90",
|
|
548
|
-
style: INSERTION_PILL_STYLE,
|
|
549
|
-
children: [/* @__PURE__ */ jsx(Plus, {
|
|
550
|
-
"aria-hidden": "true",
|
|
551
|
-
style: {
|
|
552
|
-
width: 14,
|
|
553
|
-
height: 14
|
|
554
|
-
}
|
|
555
|
-
}), label]
|
|
556
|
-
})
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
/** The row of chips by a selected item. */
|
|
560
|
-
function EditorCanvasChipRow({ label, children }) {
|
|
561
|
-
return /* @__PURE__ */ jsx("div", {
|
|
562
|
-
role: "group",
|
|
563
|
-
"aria-label": label,
|
|
564
|
-
className: "flex items-center gap-1",
|
|
565
|
-
"data-preview-chrome-row": "",
|
|
566
|
-
children
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
const darkChip = "flex items-center overflow-hidden rounded-full bg-black/80 font-sans text-xs text-white shadow";
|
|
570
|
-
const darkChipButton = "grid h-7 w-7 shrink-0 place-items-center hover:bg-black";
|
|
571
|
-
/** A black chip that does one thing when pressed, such as opening the item it sits on. */
|
|
572
|
-
function EditorCanvasChip({ children, label, onPress }) {
|
|
573
|
-
return /* @__PURE__ */ jsx("button", {
|
|
574
|
-
type: "button",
|
|
575
|
-
"aria-label": label,
|
|
576
|
-
className: `${darkChip} h-7 shrink-0 px-3 font-medium hover:bg-black`,
|
|
577
|
-
onClick: (event) => {
|
|
578
|
-
event.preventDefault();
|
|
579
|
-
event.stopPropagation();
|
|
580
|
-
onPress();
|
|
581
|
-
},
|
|
582
|
-
children
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
/** The chip naming the selected item; pressing it opens the item. */
|
|
586
|
-
function EditorCanvasNameChip({ name, onOpen }) {
|
|
587
|
-
return /* @__PURE__ */ jsxs(EditorCanvasChip, {
|
|
588
|
-
onPress: onOpen,
|
|
589
|
-
children: [name, " ›"]
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
/** A dark chip with a lead-in label and a choice of options, one of them current. */
|
|
593
|
-
function EditorCanvasChoiceChip({ label, leadIn, options, current, onChoose }) {
|
|
594
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
595
|
-
className: `${darkChip} gap-0.5 py-0.5 pl-2.5 pr-0.5`,
|
|
596
|
-
role: "group",
|
|
597
|
-
"aria-label": label,
|
|
598
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
599
|
-
className: "pr-1 text-white/70",
|
|
600
|
-
children: leadIn
|
|
601
|
-
}), options.map((option) => /* @__PURE__ */ jsx("button", {
|
|
602
|
-
type: "button",
|
|
603
|
-
"aria-pressed": option.value === current,
|
|
604
|
-
className: `rounded-full px-2 py-1 ${option.value === current ? "bg-white text-black" : "hover:bg-black"}`,
|
|
605
|
-
onClick: (event) => {
|
|
606
|
-
event.preventDefault();
|
|
607
|
-
event.stopPropagation();
|
|
608
|
-
if (option.value !== current) onChoose(option.value);
|
|
609
|
-
},
|
|
610
|
-
children: option.label
|
|
611
|
-
}, option.value))]
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
/** A dark chip with the current value's name between previous and next arrows. */
|
|
615
|
-
function EditorCanvasCycleChip({ label, value, prefix = null, position = null, previousLabel, nextLabel, onCycle }) {
|
|
616
|
-
const arrow = (direction) => /* @__PURE__ */ jsx("button", {
|
|
617
|
-
type: "button",
|
|
618
|
-
className: darkChipButton,
|
|
619
|
-
"aria-label": direction === "prev" ? previousLabel : nextLabel,
|
|
620
|
-
onClick: (event) => {
|
|
621
|
-
event.preventDefault();
|
|
622
|
-
event.stopPropagation();
|
|
623
|
-
onCycle(direction);
|
|
624
|
-
},
|
|
625
|
-
children: direction === "prev" ? /* @__PURE__ */ jsx(ChevronLeft, { size: 14 }) : /* @__PURE__ */ jsx(ChevronRight, { size: 14 })
|
|
626
|
-
});
|
|
627
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
628
|
-
className: `${darkChip} min-w-0 shrink`,
|
|
629
|
-
role: "group",
|
|
630
|
-
"aria-label": label,
|
|
631
|
-
children: [
|
|
632
|
-
arrow("prev"),
|
|
633
|
-
/* @__PURE__ */ jsxs("span", {
|
|
634
|
-
className: "flex min-w-0 max-w-[16rem] items-baseline gap-1.5 px-1 py-1",
|
|
635
|
-
"aria-live": "polite",
|
|
636
|
-
children: [
|
|
637
|
-
prefix ? /* @__PURE__ */ jsx("span", {
|
|
638
|
-
className: "shrink-0 text-white/70",
|
|
639
|
-
children: prefix
|
|
640
|
-
}) : null,
|
|
641
|
-
/* @__PURE__ */ jsx("span", {
|
|
642
|
-
className: "truncate font-medium",
|
|
643
|
-
children: value
|
|
644
|
-
}),
|
|
645
|
-
position ? /* @__PURE__ */ jsx("span", {
|
|
646
|
-
className: "shrink-0 text-white/70",
|
|
647
|
-
children: position
|
|
648
|
-
}) : null
|
|
649
|
-
]
|
|
650
|
-
}),
|
|
651
|
-
arrow("next")
|
|
652
|
-
]
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
//#endregion
|
|
656
521
|
//#region ../theme-core/src/footer/mode.ts
|
|
657
522
|
/** Reads only SDK footer intent; unrelated config and theme fields are not authorities. */
|
|
658
523
|
function resolveSdkFooterMode(config) {
|
|
@@ -16404,6 +16269,40 @@ function canInsertNode(state, nodeType) {
|
|
|
16404
16269
|
return false;
|
|
16405
16270
|
}
|
|
16406
16271
|
//#endregion
|
|
16272
|
+
//#region ../editor/src/primitives/rich-text/extensions/ListItemBulletCleanup.ts
|
|
16273
|
+
const TYPED_BULLET = /^[•◦▪‣⁃∙●○]\s*/;
|
|
16274
|
+
/** How many leading characters are a typed bullet; 0 when there isn't one. */
|
|
16275
|
+
function typedBulletLength(text) {
|
|
16276
|
+
return TYPED_BULLET.exec(text)?.[0].length ?? 0;
|
|
16277
|
+
}
|
|
16278
|
+
/** Every typed bullet at the start of a list item, as ranges to delete. */
|
|
16279
|
+
function typedBulletRanges(editor) {
|
|
16280
|
+
const ranges = [];
|
|
16281
|
+
editor.state.doc.descendants((node, position) => {
|
|
16282
|
+
if (node.type.name !== "listItem") return true;
|
|
16283
|
+
const text = node.firstChild?.firstChild;
|
|
16284
|
+
const length = text?.isText ? typedBulletLength(text.text ?? "") : 0;
|
|
16285
|
+
if (length > 0) ranges.push({
|
|
16286
|
+
from: position + 2,
|
|
16287
|
+
to: position + 2 + length
|
|
16288
|
+
});
|
|
16289
|
+
return true;
|
|
16290
|
+
});
|
|
16291
|
+
return ranges;
|
|
16292
|
+
}
|
|
16293
|
+
/**
|
|
16294
|
+
* Text pasted from elsewhere often carries its own "•". The list tool would
|
|
16295
|
+
* draw a second bullet beside it, so a list item never keeps a typed one.
|
|
16296
|
+
*/
|
|
16297
|
+
const ListItemBulletCleanup = Extension.create({
|
|
16298
|
+
name: "listItemBulletCleanup",
|
|
16299
|
+
onUpdate() {
|
|
16300
|
+
const ranges = typedBulletRanges(this.editor);
|
|
16301
|
+
if (ranges.length === 0) return;
|
|
16302
|
+
this.editor.view.dispatch([...ranges].reverse().reduce((tr, { from, to }) => tr.delete(from, to), this.editor.state.tr));
|
|
16303
|
+
}
|
|
16304
|
+
});
|
|
16305
|
+
//#endregion
|
|
16407
16306
|
//#region ../../node_modules/.pnpm/@tiptap+extension-blockquote@2.26.1_@tiptap+core@2.26.1_@tiptap+pm@2.26.1_/node_modules/@tiptap/extension-blockquote/dist/index.js
|
|
16408
16307
|
/**
|
|
16409
16308
|
* Matches a blockquote to a `>` as input.
|
|
@@ -20131,6 +20030,7 @@ function editorExtensions(variant, placeholder) {
|
|
|
20131
20030
|
HTMLAttributes: { rel: "noreferrer noopener" }
|
|
20132
20031
|
}),
|
|
20133
20032
|
...hasNode("image") ? [RichTextImage] : [],
|
|
20033
|
+
...hasNode("listItem") ? [ListItemBulletCleanup] : [],
|
|
20134
20034
|
Placeholder.configure({ placeholder })
|
|
20135
20035
|
];
|
|
20136
20036
|
}
|
|
@@ -21714,7 +21614,8 @@ function filterRoutableItems(items, searchQuery) {
|
|
|
21714
21614
|
function TabButton({ active, label, onClick }) {
|
|
21715
21615
|
return /* @__PURE__ */ jsx("button", {
|
|
21716
21616
|
type: "button",
|
|
21717
|
-
className: cn$2("min-w-0 flex-1 truncate rounded-sm px-3 py-2 text-sm font-medium transition", active ? "bg-background shadow" : "hover:bg-background/50", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring
|
|
21617
|
+
className: cn$2("min-w-0 flex-1 truncate rounded-sm px-3 py-2 text-sm font-medium transition", active ? "bg-background shadow" : "hover:bg-background/50", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),
|
|
21618
|
+
"aria-pressed": active,
|
|
21718
21619
|
onClick,
|
|
21719
21620
|
children: label
|
|
21720
21621
|
});
|
|
@@ -21729,6 +21630,7 @@ function InternalTabPanel(props) {
|
|
|
21729
21630
|
children: "Select any published or draft page, post, or routed entry for this site."
|
|
21730
21631
|
}),
|
|
21731
21632
|
/* @__PURE__ */ jsx(Input, {
|
|
21633
|
+
autoFocus: true,
|
|
21732
21634
|
className: "min-w-0",
|
|
21733
21635
|
placeholder: loadingItems ? "Loading…" : "Search content...",
|
|
21734
21636
|
value: searchQuery,
|
|
@@ -21815,6 +21717,7 @@ function UrlTabPanel({ id, label, helperText, placeholder, value, inputType, onC
|
|
|
21815
21717
|
children: label
|
|
21816
21718
|
}),
|
|
21817
21719
|
/* @__PURE__ */ jsx(Input, {
|
|
21720
|
+
autoFocus: true,
|
|
21818
21721
|
id,
|
|
21819
21722
|
type: inputType,
|
|
21820
21723
|
placeholder,
|
|
@@ -21917,6 +21820,11 @@ function LinkPopover({ editor, tone = "dark", initialItems, loadItems }) {
|
|
|
21917
21820
|
}
|
|
21918
21821
|
applyLink(resolution.attrs);
|
|
21919
21822
|
}
|
|
21823
|
+
function applyOnEnter(event) {
|
|
21824
|
+
if (event.key !== "Enter" || !(event.target instanceof HTMLInputElement)) return;
|
|
21825
|
+
event.preventDefault();
|
|
21826
|
+
applyFromDraft();
|
|
21827
|
+
}
|
|
21920
21828
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
|
|
21921
21829
|
variant: "ghost",
|
|
21922
21830
|
size: "icon",
|
|
@@ -21939,6 +21847,7 @@ function LinkPopover({ editor, tone = "dark", initialItems, loadItems }) {
|
|
|
21939
21847
|
className: "max-h-[85vh] w-[calc(100vw-2rem)] max-w-2xl overflow-hidden overflow-y-auto",
|
|
21940
21848
|
children: [/* @__PURE__ */ jsxs(DialogHeader, { children: [/* @__PURE__ */ jsx(DialogTitle$1, { children: "Choose link" }), /* @__PURE__ */ jsx(DialogDescription$1, { children: "Select an internal page, an external URL, or a custom path." })] }), /* @__PURE__ */ jsxs("div", {
|
|
21941
21849
|
className: "min-w-0 space-y-3",
|
|
21850
|
+
onKeyDown: applyOnEnter,
|
|
21942
21851
|
children: [
|
|
21943
21852
|
/* @__PURE__ */ jsxs("div", {
|
|
21944
21853
|
className: "flex min-w-0 gap-2 rounded-md bg-muted/40 p-1",
|
|
@@ -28959,13 +28868,11 @@ function useCropAutosave(props, transform) {
|
|
|
28959
28868
|
};
|
|
28960
28869
|
}
|
|
28961
28870
|
function CropDialogContent(props) {
|
|
28962
|
-
const
|
|
28963
|
-
const transform = reference?.type === "image" ? resolveMediaTransformForAspect(reference.transform, props.aspect) : void 0;
|
|
28871
|
+
const transform = resolveMediaTransformForAspect(props.transform, props.aspect);
|
|
28964
28872
|
const updateSelection = useCropAutosave(props, transform);
|
|
28965
|
-
|
|
28966
|
-
|
|
28967
|
-
|
|
28968
|
-
orientationMode: props.state.crop.source.orientationMode,
|
|
28873
|
+
return props.source ? /* @__PURE__ */ jsx(ImageCropper, {
|
|
28874
|
+
imageUrl: props.source.imageUrl,
|
|
28875
|
+
orientationMode: props.source.orientationMode,
|
|
28969
28876
|
aspect: props.aspect,
|
|
28970
28877
|
initialRect: transform?.rect,
|
|
28971
28878
|
initialHotspot: transform?.hotspot,
|
|
@@ -28981,16 +28888,9 @@ function CropDialogContent(props) {
|
|
|
28981
28888
|
children: "Unable to load image preview"
|
|
28982
28889
|
});
|
|
28983
28890
|
}
|
|
28984
|
-
|
|
28985
|
-
|
|
28986
|
-
|
|
28987
|
-
const sessionKey = JSON.stringify([
|
|
28988
|
-
props.siteId,
|
|
28989
|
-
props.editingSlot,
|
|
28990
|
-
reference.identifier,
|
|
28991
|
-
props.aspect
|
|
28992
|
-
]);
|
|
28993
|
-
const content = /* @__PURE__ */ jsx(CropDialogContent, { ...props }, sessionKey);
|
|
28891
|
+
/** The existing crop/focus editor, also usable before an upload has a durable media identity. */
|
|
28892
|
+
function ImageCropDialog(props) {
|
|
28893
|
+
const content = /* @__PURE__ */ jsx(CropDialogContent, { ...props }, props.sessionKey);
|
|
28994
28894
|
if (props.mode === "inline") return props.open ? /* @__PURE__ */ jsx("div", {
|
|
28995
28895
|
className: "space-y-4",
|
|
28996
28896
|
children: content
|
|
@@ -29008,6 +28908,22 @@ function CropDialog(props) {
|
|
|
29008
28908
|
children: content
|
|
29009
28909
|
});
|
|
29010
28910
|
}
|
|
28911
|
+
function CropDialog(props) {
|
|
28912
|
+
const reference = props.state.resolution?.reference;
|
|
28913
|
+
if (reference?.type !== "image" || props.state.crop.kind === "ineligible") return null;
|
|
28914
|
+
const sessionKey = JSON.stringify([
|
|
28915
|
+
props.siteId,
|
|
28916
|
+
props.editingSlot,
|
|
28917
|
+
reference.identifier,
|
|
28918
|
+
props.aspect
|
|
28919
|
+
]);
|
|
28920
|
+
return /* @__PURE__ */ jsx(ImageCropDialog, {
|
|
28921
|
+
...props,
|
|
28922
|
+
sessionKey,
|
|
28923
|
+
transform: reference.transform,
|
|
28924
|
+
source: props.state.crop.kind === "ready" ? props.state.crop.source : null
|
|
28925
|
+
});
|
|
28926
|
+
}
|
|
29011
28927
|
//#endregion
|
|
29012
28928
|
//#region ../media-editor/src/pickerUploads.ts
|
|
29013
28929
|
/** Batch identity and manual selection have one owner; File identity is irrelevant. */
|
|
@@ -29594,7 +29510,7 @@ function resolvedPreviewMedia(state) {
|
|
|
29594
29510
|
asset: state.resolution.asset
|
|
29595
29511
|
};
|
|
29596
29512
|
}
|
|
29597
|
-
const MediaPreview = ({ state, previewAspectRatio, onReplace, onEditCrop, onEditDetails, onRemove, fullWidth = false, variant = "default", showRemoveAction = true, showActionOverlay = true, previewMaxWidth = "md", preventUpscale = false }) => {
|
|
29513
|
+
const MediaPreview = ({ state, previewAspectRatio, previewBorderRadius, onReplace, onEditCrop, onEditDetails, onRemove, fullWidth = false, variant = "default", showRemoveAction = true, showActionOverlay = true, previewMaxWidth = "md", preventUpscale = false }) => {
|
|
29598
29514
|
const { imageResolveContext } = useMediaEditor();
|
|
29599
29515
|
const value = state.resolution?.reference;
|
|
29600
29516
|
const image = isImageValue(value);
|
|
@@ -29627,7 +29543,10 @@ const MediaPreview = ({ state, previewAspectRatio, onReplace, onEditCrop, onEdit
|
|
|
29627
29543
|
className: cn$2("relative w-full overflow-hidden bg-muted", previewWidthClassName, isThumbnailVariant ? "h-full w-full rounded-none border-0" : "rounded-lg border border-dashed border-muted-foreground/50", !isThumbnailVariant && !previewAspectRatio && "min-h-[10rem]"),
|
|
29628
29544
|
children: /* @__PURE__ */ jsxs("div", {
|
|
29629
29545
|
className: cn$2("relative flex w-full items-center justify-center", isThumbnailVariant && "h-full", !isThumbnailVariant && !previewAspectRatio && "min-h-[10rem]", hasValue && "bg-black/5", video && "bg-black/80"),
|
|
29630
|
-
style:
|
|
29546
|
+
style: {
|
|
29547
|
+
...aspectStyle,
|
|
29548
|
+
borderRadius: previewBorderRadius
|
|
29549
|
+
},
|
|
29631
29550
|
children: [
|
|
29632
29551
|
image && imageSrc ? /* @__PURE__ */ jsx("img", {
|
|
29633
29552
|
alt: value?.alt ?? "",
|
|
@@ -30034,7 +29953,7 @@ function resolveEditorMediaState(reference, index, allowCrop = true) {
|
|
|
30034
29953
|
//#endregion
|
|
30035
29954
|
//#region ../media-editor/src/MediaEditor.tsx
|
|
30036
29955
|
const MEDIA_PICKER_PAGE_SIZE = 18;
|
|
30037
|
-
const MediaEditor = ({ editingSlot, value, onChange, allowedKinds, previewAspectRatio, minSourceWidth, minSourceHeight, showAltInput = true, cropEditorMode = "dialog", allowCrop, cropEditorAutoOpen = false, mediaPickerAutoOpen = false, onMediaPickerOpenChange, mediaPickerDialogMaxWidth, mediaPickerPolicy, showPreview = true, showActionOverlay = true, onEditDetails, fullWidth = false, previewVariant = "default", showRemoveAction = true, previewMaxWidth = "md", preventPreviewUpscale = false, onUploadComplete, onAssetSelected, uploadIntent, videoPrepIntent, videoSelectionIntent, components }) => {
|
|
29956
|
+
const MediaEditor = ({ editingSlot, value, onChange, allowedKinds, previewAspectRatio, previewBorderRadius, minSourceWidth, minSourceHeight, showAltInput = true, cropEditorMode = "dialog", allowCrop, cropEditorAutoOpen = false, mediaPickerAutoOpen = false, onMediaPickerOpenChange, mediaPickerDialogMaxWidth, mediaPickerPolicy, showPreview = true, showActionOverlay = true, onEditDetails, fullWidth = false, previewVariant = "default", showRemoveAction = true, previewMaxWidth = "md", preventPreviewUpscale = false, onUploadComplete, onAssetSelected, uploadIntent, videoPrepIntent, videoSelectionIntent, components }) => {
|
|
30038
29957
|
const context = useMediaEditor();
|
|
30039
29958
|
const mediaState = resolveEditorMediaState(value, context.imageResolveContext.mediaAssetIndex, allowCrop);
|
|
30040
29959
|
const scopedUploader = useApiMediaUploader({
|
|
@@ -30159,6 +30078,7 @@ const MediaEditor = ({ editingSlot, value, onChange, allowedKinds, previewAspect
|
|
|
30159
30078
|
showPreview ? /* @__PURE__ */ jsx(MediaPreview, {
|
|
30160
30079
|
state: mediaState,
|
|
30161
30080
|
previewAspectRatio,
|
|
30081
|
+
previewBorderRadius,
|
|
30162
30082
|
onReplace: () => {
|
|
30163
30083
|
setPickerOpen(true);
|
|
30164
30084
|
onMediaPickerOpenChange?.(true);
|
|
@@ -31502,4 +31422,4 @@ function PageSectionToolbar({ blockId, content }) {
|
|
|
31502
31422
|
] });
|
|
31503
31423
|
}
|
|
31504
31424
|
//#endregion
|
|
31505
|
-
export { ScrollableDialogContent as A, EMPTY_DOC as C, resolveSdkFooterMode as D, decideDocumentReplacement as E, resolveVideoSelectionIntentForMediaField as F, isSvgMimeType as I, Surface as M, surfaceVariants as N,
|
|
31425
|
+
export { ScrollableDialogContent as A, EMPTY_DOC as C, resolveSdkFooterMode as D, decideDocumentReplacement as E, resolveVideoSelectionIntentForMediaField as F, isSvgMimeType as I, Surface as M, surfaceVariants as N, Switch as O, emitMediaCropDebug as P, useRichTextEditor as S, InlineTextEditor as T, MediaPickerMiniDialog as _, ArrangementOptionsBody as a, getRichTextImagePositionFromTarget as b, BackgroundChooser as c, gradientLabel as d, readBackgroundColorPaletteSnapshot as f, MediaEditor as g, getUnresolvedRichTextImageWarnings as h, ArrangementLookNote as i, ScrollableDialogShell as j, SegmentedControl as k, BackgroundPreviewSwatch as l, useRichTextImageProjection as m, pageSectionIdFromBlockId as n, lookIsAutomatic as o, useSiteColourVariables as p, BlockToolbar as r, useArrangementToolbar as s, PageSectionToolbar as t, formatTokenLabel as u, MediaPickerMini as v, parseRichTextDoc as w, insertOrReplaceRichTextImage as x, RichTextEditorSurface as y };
|