@riverbankcms/sdk 0.166.0 → 0.168.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/CHANGELOG.md +7 -0
- package/README.md +5 -0
- package/dist/_dts/{BlocksIslandsHydrator-CPvN6RBW.d.ts → BlocksIslandsHydrator-CiD_VVGM.d.ts} +1 -1
- package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bj6VJRS5.d.ts} +9 -8
- package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-ChpsnwDX.d.ts} +2 -2
- package/dist/_dts/{client-D4BXQEZc.d.ts → client-C8mfUxrJ.d.ts} +73 -35
- package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-_vXZyR4H.d.ts} +2 -2
- package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-CJFfrVKU.d.ts} +9 -5
- package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-CMegb23G.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-D9YdAIMh.d.ts} +2 -2
- package/dist/_dts/{index-DdcwPqQN.d.ts → index-BQXaZ7aY.d.ts} +4 -4
- package/dist/_dts/{index-ahxQCUc7.d.ts → index-Bpr-wT5k.d.ts} +2 -2
- package/dist/_dts/{index--qflsCiy.d.ts → index-C7_Rz8EY.d.ts} +3 -3
- package/dist/_dts/{index-kQ5xkM6X.d.ts → index-Cx2BQlHL.d.ts} +3 -3
- package/dist/_dts/{index-Bmboeb49.d.ts → index-Dgz6yhsy.d.ts} +1 -1
- package/dist/_dts/index-Vh8B9FSa.d.ts +14 -0
- package/dist/_dts/{index-BgJ2aU5c.d.ts → index-vR3p9Bu-.d.ts} +2 -2
- package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-dhWSgLeS.d.ts} +7 -7
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
- package/dist/_dts/{index-wbBZ0awa.d.ts → request-BrYhNV9Z.d.ts} +81287 -47810
- package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-BfSHm8Ms.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-gZJ4i1wN.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +6 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +7 -5
- 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 +1 -1
- package/dist/_dts/{types-BX3Y-EW3.d.ts → types-BB33-Spd.d.ts} +3 -3
- package/dist/_dts/{types-DF54stxv.d.ts → types-BVFXYtRg.d.ts} +7 -7
- package/dist/_dts/{types-DuiHLiPo.d.ts → types-FOsJ-KYb.d.ts} +4 -2
- package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-DckTc6TQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DcwEaliO.mjs} +21 -21
- package/dist/client/BookingMailingListNote-Dsugoe-n.mjs +946 -0
- package/dist/client/BookingQuestionFields-Bhh0cvsl.mjs +359 -0
- package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-CNe3ZjdC.mjs} +166 -17
- package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-BeiZxEUJ.mjs} +7 -7
- package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-BL943-tl.mjs} +11 -30
- package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-BFVxECTp.mjs} +137 -61
- package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
- package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-BIc4gjiD.mjs} +86 -17
- package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-a0QEIEf0.mjs} +1 -1
- package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-CEFTC3jH.mjs} +3 -3
- package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-Bt2sBBms.mjs} +41 -50
- package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-D9YBNb_E.mjs} +255 -40
- package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-gqzt5gkW.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-13JQI7_z.mjs} +22 -2
- package/dist/client/{Page-DNDZLRlB.mjs → Page-D_M2Vxz3.mjs} +26063 -22139
- package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
- package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-CaN8snZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-DkVKtK5a.mjs} +19 -19
- package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
- package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
- package/dist/client/{accordion-uVqNowRX.mjs → accordion-DE7OG--d.mjs} +1 -1
- package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-CS1PPjw7.mjs} +842 -374
- package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-DE2CwIU9.mjs} +5 -4
- package/dist/client/{src-DjnxOjXG.mjs → bookingQuestionValues-BjcyCru5.mjs} +88 -1
- package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
- package/dist/client/bookings.mjs +18 -13
- package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-DZyUdnFh.mjs} +3 -3
- package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
- package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
- package/dist/client/{cart-DCxjE3Is.mjs → cart-D7HkkNwe.mjs} +3 -3
- package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-H4sv2TpD.mjs} +1 -1
- package/dist/client/{checkout-B0EKbeVv.mjs → checkout-2qVyG-Sh.mjs} +3 -3
- package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DAjrBZ74.mjs} +1 -1
- package/dist/client/client.mjs +325 -65
- package/dist/client/{context-n6IZigd3.mjs → context-DXmIbXCK.mjs} +300 -3
- package/dist/client/{cta-CDeAwYoN.mjs → cta-DP_IBnq3.mjs} +2 -2
- package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-CwrkFZTr.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-DQXK-Fh6.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-DheQj7rg.mjs} +4 -4
- package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-C5UufcRp.mjs} +1 -1
- package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-CMGg63IU.mjs} +73 -239
- package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-DlD0GCEy.mjs} +4 -4
- package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-DoSi8p_l.mjs} +4 -4
- package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-DzuQYgmO.mjs} +2 -2
- package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-CkiMjl0g.mjs} +4 -4
- package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-CjS3Zpjp.mjs} +4 -4
- package/dist/client/{form-BeNQiZ2V.mjs → form-DgQqm7T2.mjs} +3 -3
- package/dist/client/{form.client-BFdCKlp7.mjs → form.client-BI9Dcsq5.mjs} +5 -5
- package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-DevF0L_A.mjs} +3 -3
- package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DDyURjoe.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CalNAShx.mjs → headerSection-DYIG6Pwb.mjs} +2 -2
- package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
- package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
- package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-BWp7Y1e1.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-Dg8s9NwJ.mjs} +2 -2
- package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-DnPraMzx.mjs} +3 -3
- package/dist/client/{noop-D-RG9eR3.mjs → noop-ByFRHYQ2.mjs} +456 -491
- package/dist/client/portal/client.mjs +76 -229
- package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-BFAgHrdg.mjs} +1 -1
- package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DVrs_DyY.mjs} +1 -1
- package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-D4rvl6Xg.mjs} +3 -3
- package/dist/client/{productList-DjGrjOwD.mjs → productList-B8o5AOMX.mjs} +3 -3
- package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-hhotPP6P.mjs} +5 -5
- package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-Ch3EpupA.mjs} +2296 -2489
- package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
- package/dist/client/rendering/client.mjs +30 -30
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +10 -9
- package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-C3LabQ1O.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-CQGlxId8.mjs} +1 -1
- package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
- package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
- package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-VDbVaKY-.mjs} +12 -12
- package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-DqdgJ8Zw.mjs} +1 -1
- package/dist/client/{shop-DLufMauE.mjs → shop-rRXplPGZ.mjs} +3 -3
- package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-DdwvMvaK.mjs} +13 -13
- package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-C8OvFY06.mjs} +167 -68
- package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-BeuJiGPU.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
- package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-Cko9LRKy.mjs} +13 -158
- package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
- package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-M6QIEiWf.mjs} +3 -3
- package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-BJSnyO0f.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-D3XnOSCi.mjs} +1 -1
- package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-PhTIoFVX.mjs} +7 -7
- package/dist/client/{view-DAVEoe8A.mjs → view-448wvvEY.mjs} +21 -12
- package/dist/client/{view-8w4GA8rf.mjs → view-L_mkgtnk.mjs} +4 -4
- package/dist/client/{site-styles-DELkUk9s.mjs → wizardSteps-CFulHWnT.mjs} +19371 -17045
- package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-BpvnOGlN.mjs} +26 -17
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-C0OtdWu_.mjs} +432 -127
- package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-Csc5vH5k.mjs} +6 -6
- package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-BOLH_pm-.mjs} +252 -158
- package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-CKodLReY.mjs} +31 -32
- package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-BeEZpeKn.mjs} +19484 -18082
- package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
- package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-BBdN5kfY.mjs} +21470 -16697
- package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-VZtGwPuH.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-kiZkMcuR.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-BiIHEeE0.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-BuFLIpmX.mjs} +2 -93
- package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-DlxYgmh_.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Bq7SUX3K.mjs → route-contract-C0sCvCYL.mjs} +248 -0
- package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-Dnhc0Wu5.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-NAQ_zsFu.mjs} +1173 -148
- package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-108nxyGc.mjs} +520 -129
- package/dist/server/{bindings-DjdUq9FR.mjs → bindings-DLoZYUxG.mjs} +2 -2
- package/dist/server/{client-07UeMDzA.mjs → client-Bc8jI8zN.mjs} +346 -63
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/headerVariant-BwR9NV4b.mjs +463 -0
- package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-D61gpqHB.mjs} +4 -5
- package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-B4ZYpIcd.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
- package/dist/server/metadata.mjs +5 -1
- package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
- package/dist/server/next/revalidate.mjs +9 -4
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
- package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-CDReKy2P.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-ByVTA7-4.mjs} +375 -171
- package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-Dzz_Dze6.mjs} +291 -5
- package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Dk5Ku6hs.mjs} +12184 -11593
- package/dist/server/{schema-C2PqHrMo.mjs → parseThemeForPersistence-pJPGfMrf.mjs} +593 -1591
- package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-CW4M0WEZ.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-Bvx0SiIM.mjs} +5 -34
- package/dist/server/{registry-TFPJdGQi.mjs → registry-Bh0Y25zH.mjs} +6041 -4562
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-OHlOXlOE.mjs → resolveBlockData-CnHHst9r.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +393 -502
- package/dist/server/responseMedia-t6gs0cB7.mjs +115 -0
- package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -3
- package/dist/server/theme.mjs +1 -2
- package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
- package/dist/server/{validation-DIBFZeMB.mjs → validation-D2bHWSxJ.mjs} +59 -10
- package/dist/server/{version-DZWZM1H6.mjs → version-DkM1eAxG.mjs} +1 -1
- package/dist/styles/index.css +991 -48
- package/package.json +4 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-mMMvLLAJ.d.ts +0 -31339
- package/dist/client/BookingMailingListNote-DOWOZYlK.mjs +0 -331
- package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
- package/dist/client/events-BmqPeeQm.mjs +0 -20
- package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
- package/dist/client/useBookingNowIso-Da-f9iHw.mjs +0 -58
- package/dist/client/wizardSteps-DNpajrAH.mjs +0 -6926
- package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +0 -52
- package/dist/server/publicProducts-W9hDRwjz.mjs +0 -64
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Ht as buildEventRuntimeFilters, Mt as eventListingBlockRuntime, Ut as getEventRuntimeFiltersKey, Vt as toError } from "./shop.interactive-C8OvFY06.mjs";
|
|
3
|
+
import { Dn as formatTime, On as groupEventsByDate, _n as eventDateOptions, hn as eventCalendarWeekStart, mn as buildCalendarViewport, oi as listLookSlot, qr as getBlockApiReadStage } from "./wizardSteps-CFulHWnT.mjs";
|
|
4
|
+
import { Tt as formatDate, Vt as getLocalScheduleDate, c as calendarQueryKey, ct as calendarMonthDate, f as planCalendarMonthRanges, l as calendarWindowBounds, o as calendarMonthKey, s as calendarPageResponseError, u as calendarWindowMonths$1 } from "./noop-ByFRHYQ2.mjs";
|
|
5
|
+
import { n as useBlockApi } from "./context-DXmIbXCK.mjs";
|
|
5
6
|
import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-1PJxc8KO.mjs";
|
|
6
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
7
|
-
import { a as
|
|
7
|
+
import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
|
+
import { a as combinedClassName, c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, r as AgendaEventCard, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-CNe3ZjdC.mjs";
|
|
8
9
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
9
10
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
10
|
-
import { t as TabBarFragment } from "./TabBarFragment-
|
|
11
|
-
import { n as
|
|
12
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-Ccr4TZlm.mjs";
|
|
11
|
+
import { t as TabBarFragment } from "./TabBarFragment-DkVKtK5a.mjs";
|
|
12
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-PhTIoFVX.mjs";
|
|
13
13
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
//#region ../blocks/src/system/runtime/hooks/useCalendarToday.ts
|
|
@@ -134,6 +134,26 @@ function useEventModal() {
|
|
|
134
134
|
return context;
|
|
135
135
|
}
|
|
136
136
|
//#endregion
|
|
137
|
+
//#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookClient.tsx
|
|
138
|
+
/** Connect the shared month view to calendar selection and the existing day modal. */
|
|
139
|
+
function MonthLookClient(props) {
|
|
140
|
+
const { openDayModal } = useEventModal();
|
|
141
|
+
const [selection, setSelection] = React.useState(null);
|
|
142
|
+
const anchor = `${props.viewDate.year}-${props.viewDate.month}`;
|
|
143
|
+
const selectedDay = selection?.anchor === anchor ? selection.day : props.selectedDay;
|
|
144
|
+
return /* @__PURE__ */ jsx(MonthLookView, {
|
|
145
|
+
...props,
|
|
146
|
+
selectedDay,
|
|
147
|
+
controls: {
|
|
148
|
+
selectDay: (day) => setSelection({
|
|
149
|
+
anchor,
|
|
150
|
+
day
|
|
151
|
+
}),
|
|
152
|
+
openDay: (date, events) => openDayModal(date, [...events])
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
137
157
|
//#region ../blocks/src/system/runtime/nodes/events/shared/TabBar.tsx
|
|
138
158
|
/**
|
|
139
159
|
* TabBar Component
|
|
@@ -141,12 +161,17 @@ function useEventModal() {
|
|
|
141
161
|
* Simple horizontal tab bar for switching between views.
|
|
142
162
|
* Uses semantic CSS classes for styling.
|
|
143
163
|
*/
|
|
144
|
-
const TabBar = ({ tabs, activeTab, onTabChange, className }) => {
|
|
164
|
+
const TabBar = ({ tabs, activeTab, onTabChange, className, presentation }) => {
|
|
145
165
|
return /* @__PURE__ */ jsx(TabBarFragment, {
|
|
166
|
+
listAttributes: presentation?.lookSlots ? listLookSlot(presentation, "controls") : void 0,
|
|
167
|
+
tabAttributes: presentation?.lookSlots ? (active) => ({
|
|
168
|
+
...listLookSlot(presentation, "control"),
|
|
169
|
+
"data-current": active ? "true" : void 0
|
|
170
|
+
}) : void 0,
|
|
146
171
|
tabs,
|
|
147
172
|
activeTab,
|
|
148
173
|
onTabChange,
|
|
149
|
-
className: `nav-tabs ${className || ""}`,
|
|
174
|
+
className: presentation ? ["nav-tabs", className].filter(Boolean).join(" ") : `nav-tabs ${className || ""}`,
|
|
150
175
|
tabClassName: "nav-tab",
|
|
151
176
|
activeTabClassName: "nav-tab--active"
|
|
152
177
|
});
|
|
@@ -831,8 +856,9 @@ const EventCombinedCalendarHeader = ({ calendarView, title, loadState, onPreviou
|
|
|
831
856
|
label: "Today"
|
|
832
857
|
})]
|
|
833
858
|
});
|
|
834
|
-
const EventCombinedCalendarTab = ({ calendarTabViews, calendarView, calendarViewOptions, onCalendarViewChange, calendarEvents, eventsByDate, viewDate, viewport, calendarLoadState, dayNames, calendarContext, today, goToPrevious, goToNext, goToToday, emptyMessage, showCapacity, showVenue, cardRole, buttonVariant, buttonText, showEmptyState }) => /* @__PURE__ */ jsxs(EventModalProvider, { children: [/* @__PURE__ */ jsxs("div", {
|
|
859
|
+
const EventCombinedCalendarTab = ({ monthLook, calendarTabViews, calendarView, calendarViewOptions, onCalendarViewChange, calendarEvents, eventsByDate, viewDate, viewport, calendarLoadState, dayNames, calendarContext, today, goToPrevious, goToNext, goToToday, emptyMessage, showCapacity, showVenue, cardRole, buttonVariant, buttonText, showEmptyState }) => /* @__PURE__ */ jsxs(EventModalProvider, { children: [/* @__PURE__ */ jsxs("div", {
|
|
835
860
|
className: "event-combined-content event-calendar",
|
|
861
|
+
...monthLook?.hooks,
|
|
836
862
|
children: [
|
|
837
863
|
calendarTabViews === "both" && /* @__PURE__ */ jsx("div", {
|
|
838
864
|
className: "event-calendar-view-toggle",
|
|
@@ -852,7 +878,25 @@ const EventCombinedCalendarTab = ({ calendarTabViews, calendarView, calendarView
|
|
|
852
878
|
onToday: goToToday,
|
|
853
879
|
buttonVariant
|
|
854
880
|
}),
|
|
855
|
-
viewport.kind === "
|
|
881
|
+
monthLook && viewport.kind === "month" ? /* @__PURE__ */ jsx(MonthLookClient, {
|
|
882
|
+
...monthLook,
|
|
883
|
+
days: viewport.days,
|
|
884
|
+
dayNames,
|
|
885
|
+
eventsByDate,
|
|
886
|
+
viewDate,
|
|
887
|
+
today,
|
|
888
|
+
timeZone: calendarContext.timeZone,
|
|
889
|
+
selectedDay: resolveMonthSelectedDay({
|
|
890
|
+
days: viewport.days,
|
|
891
|
+
eventsByDate,
|
|
892
|
+
today,
|
|
893
|
+
viewDate
|
|
894
|
+
}),
|
|
895
|
+
emptyMessage,
|
|
896
|
+
showCapacity,
|
|
897
|
+
buttonVariant,
|
|
898
|
+
buttonText
|
|
899
|
+
}) : viewport.kind === "week" ? /* @__PURE__ */ jsx(WeekAgendaView, {
|
|
856
900
|
days: viewport.days,
|
|
857
901
|
events: calendarEvents,
|
|
858
902
|
emptyMessage,
|
|
@@ -863,21 +907,13 @@ const EventCombinedCalendarTab = ({ calendarTabViews, calendarView, calendarView
|
|
|
863
907
|
buttonText,
|
|
864
908
|
calendarTimeZone: calendarContext.timeZone,
|
|
865
909
|
today
|
|
866
|
-
}) : /* @__PURE__ */
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
date,
|
|
874
|
-
events: eventsByDate.get(dateKey) ?? [],
|
|
875
|
-
viewDate,
|
|
876
|
-
calendarTimeZone: calendarContext.timeZone,
|
|
877
|
-
today
|
|
878
|
-
}, dateKey);
|
|
879
|
-
})
|
|
880
|
-
})]
|
|
910
|
+
}) : /* @__PURE__ */ jsx(CombinedLegacyMonthGrid, {
|
|
911
|
+
days: viewport.days,
|
|
912
|
+
dayNames,
|
|
913
|
+
eventsByDate,
|
|
914
|
+
viewDate,
|
|
915
|
+
calendarContext,
|
|
916
|
+
today
|
|
881
917
|
}),
|
|
882
918
|
viewport.kind !== "week" && calendarEvents.length === 0 && showEmptyState && /* @__PURE__ */ jsx("p", {
|
|
883
919
|
className: "event-calendar-empty",
|
|
@@ -892,8 +928,13 @@ const EventCombinedCalendarTab = ({ calendarTabViews, calendarView, calendarView
|
|
|
892
928
|
calendarTimeZone: calendarContext.timeZone
|
|
893
929
|
})] });
|
|
894
930
|
/** The combined view reuses the list's filter and pager owners while keeping them mounted across tabs. */
|
|
895
|
-
function useCombinedEventList(source, paginationAction) {
|
|
896
|
-
const
|
|
931
|
+
function useCombinedEventList(source, paginationAction, presentation) {
|
|
932
|
+
const built = eventListingBlockRuntime.buildRender(source);
|
|
933
|
+
const { hydration } = built;
|
|
934
|
+
const display = {
|
|
935
|
+
...built.display,
|
|
936
|
+
...presentation
|
|
937
|
+
};
|
|
897
938
|
const filterState = useEventCollectionFilters(hydration);
|
|
898
939
|
const pagination = useEventPagination({
|
|
899
940
|
initialEvents: [...display.events],
|
|
@@ -920,7 +961,7 @@ function useCombinedEventList(source, paginationAction) {
|
|
|
920
961
|
* Tabbed view with List and Calendar tabs.
|
|
921
962
|
* List tab includes filtering; Calendar tab shows month/week view.
|
|
922
963
|
*/
|
|
923
|
-
const EventCombinedClient = ({ events: initialEvents, siteId, listLayout = "stack", listColumns = "3", eventsPerPage = 12, paginationAction = {
|
|
964
|
+
const EventCombinedClient = ({ combinedLook, events: initialEvents, siteId, listLayout = "stack", listColumns = "3", eventsPerPage = 12, paginationAction = {
|
|
924
965
|
kind: "loadMore",
|
|
925
966
|
label: "Load more events"
|
|
926
967
|
}, startOfWeek = "monday", calendarTabViews = "both", defaultCalendarView, showFilters, showCategoryFilter = "auto", showVenueFilter, showStaffFilter, eventSurface, filterEventPresets, scheduleScope, seriesIds, filterCategoryIds, filterStaffMemberId, filterVenueId, showVenue, showMap, showCapacity, cardRole, buttonVariant = "primary", buttonText = "Book", emptyMessage = "No upcoming events scheduled.", className, calendarContext, calendarWindow }) => {
|
|
@@ -962,7 +1003,7 @@ const EventCombinedClient = ({ events: initialEvents, siteId, listLayout = "stac
|
|
|
962
1003
|
buttonVariant,
|
|
963
1004
|
buttonText,
|
|
964
1005
|
emptyMessage
|
|
965
|
-
}, paginationAction);
|
|
1006
|
+
}, paginationAction, combinedLook?.list);
|
|
966
1007
|
const { events: calendarEventsRaw, viewDate, today, viewport, loadState: calendarLoadState, goToPrevious, goToNext, goToToday } = useCalendarEvents({
|
|
967
1008
|
siteId,
|
|
968
1009
|
view: calendarView,
|
|
@@ -974,8 +1015,60 @@ const EventCombinedClient = ({ events: initialEvents, siteId, listLayout = "stac
|
|
|
974
1015
|
});
|
|
975
1016
|
const eventsByDate = useMemo(() => groupEventsByDate(calendarEventsRaw, calendarContext.timeZone), [calendarContext.timeZone, calendarEventsRaw]);
|
|
976
1017
|
const dayNames = useMemo(() => getOrderedDayNames(startOfWeek), [startOfWeek]);
|
|
1018
|
+
return /* @__PURE__ */ jsx(CombinedTabsView, {
|
|
1019
|
+
activeTab,
|
|
1020
|
+
onTabChange: setActiveTab,
|
|
1021
|
+
list: list.node,
|
|
1022
|
+
combinedLook,
|
|
1023
|
+
className,
|
|
1024
|
+
calendar: {
|
|
1025
|
+
calendarTabViews,
|
|
1026
|
+
calendarView,
|
|
1027
|
+
calendarViewOptions,
|
|
1028
|
+
onCalendarViewChange: setCalendarView,
|
|
1029
|
+
calendarEvents: calendarEventsRaw,
|
|
1030
|
+
eventsByDate,
|
|
1031
|
+
viewDate,
|
|
1032
|
+
viewport,
|
|
1033
|
+
calendarLoadState,
|
|
1034
|
+
dayNames,
|
|
1035
|
+
calendarContext,
|
|
1036
|
+
today,
|
|
1037
|
+
goToPrevious,
|
|
1038
|
+
goToNext,
|
|
1039
|
+
goToToday,
|
|
1040
|
+
emptyMessage,
|
|
1041
|
+
showCapacity: resolvedShowCapacity,
|
|
1042
|
+
showVenue: resolvedShowVenue,
|
|
1043
|
+
cardRole,
|
|
1044
|
+
buttonVariant,
|
|
1045
|
+
buttonText,
|
|
1046
|
+
showEmptyState: hydrationReady && calendarLoadState.kind === "idle"
|
|
1047
|
+
}
|
|
1048
|
+
});
|
|
1049
|
+
};
|
|
1050
|
+
const EventCombinedIslandClient = (props) => /* @__PURE__ */ jsx(EventCombinedClient, { ...toEventCombinedControllerProps(props) });
|
|
1051
|
+
function CombinedLegacyMonthGrid({ days, dayNames, eventsByDate, viewDate, calendarContext, today }) {
|
|
1052
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
1053
|
+
className: "event-calendar-container",
|
|
1054
|
+
children: [/* @__PURE__ */ jsx(CalendarDayHeaders, { dayNames }), /* @__PURE__ */ jsx("div", {
|
|
1055
|
+
className: "event-calendar-grid",
|
|
1056
|
+
children: days.map((date) => {
|
|
1057
|
+
const dateKey = formatDateKey(date);
|
|
1058
|
+
return /* @__PURE__ */ jsx(CalendarDayCell, {
|
|
1059
|
+
date,
|
|
1060
|
+
events: eventsByDate.get(dateKey) ?? [],
|
|
1061
|
+
viewDate,
|
|
1062
|
+
calendarTimeZone: calendarContext.timeZone,
|
|
1063
|
+
today
|
|
1064
|
+
}, dateKey);
|
|
1065
|
+
})
|
|
1066
|
+
})]
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1069
|
+
function CombinedTabsView({ activeTab, onTabChange, list, combinedLook, className, calendar }) {
|
|
977
1070
|
return /* @__PURE__ */ jsxs("div", {
|
|
978
|
-
className:
|
|
1071
|
+
className: combinedClassName(combinedLook, className),
|
|
979
1072
|
"data-block": "event-combined",
|
|
980
1073
|
children: [
|
|
981
1074
|
/* @__PURE__ */ jsx(TabBar, {
|
|
@@ -986,37 +1079,20 @@ const EventCombinedClient = ({ events: initialEvents, siteId, listLayout = "stac
|
|
|
986
1079
|
id: "calendar",
|
|
987
1080
|
label: "Calendar"
|
|
988
1081
|
}],
|
|
1082
|
+
presentation: combinedLook?.list,
|
|
989
1083
|
activeTab,
|
|
990
|
-
onTabChange: (
|
|
1084
|
+
onTabChange: (tab) => onTabChange(tab === "calendar" ? "calendar" : "list")
|
|
991
1085
|
}),
|
|
992
|
-
activeTab === "list" ?
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
viewDate,
|
|
1001
|
-
viewport,
|
|
1002
|
-
calendarLoadState,
|
|
1003
|
-
dayNames,
|
|
1004
|
-
calendarContext,
|
|
1005
|
-
today,
|
|
1006
|
-
goToPrevious,
|
|
1007
|
-
goToNext,
|
|
1008
|
-
goToToday,
|
|
1009
|
-
emptyMessage,
|
|
1010
|
-
showCapacity: resolvedShowCapacity,
|
|
1011
|
-
showVenue: resolvedShowVenue,
|
|
1012
|
-
cardRole,
|
|
1013
|
-
buttonVariant,
|
|
1014
|
-
buttonText,
|
|
1015
|
-
showEmptyState: hydrationReady && calendarLoadState.kind === "idle"
|
|
1016
|
-
})
|
|
1086
|
+
activeTab === "list" ? /* @__PURE__ */ jsx(CombinedLookFrame, {
|
|
1087
|
+
look: combinedLook?.list,
|
|
1088
|
+
children: list
|
|
1089
|
+
}) : null,
|
|
1090
|
+
activeTab === "calendar" ? /* @__PURE__ */ jsx(EventCombinedCalendarTab, {
|
|
1091
|
+
...calendar,
|
|
1092
|
+
monthLook: combinedLook?.month
|
|
1093
|
+
}) : null
|
|
1017
1094
|
]
|
|
1018
1095
|
});
|
|
1019
|
-
}
|
|
1020
|
-
const EventCombinedIslandClient = (props) => /* @__PURE__ */ jsx(EventCombinedClient, { ...toEventCombinedControllerProps(props) });
|
|
1096
|
+
}
|
|
1021
1097
|
//#endregion
|
|
1022
|
-
export { CalendarDayCell as a,
|
|
1098
|
+
export { CalendarDayCell as a, MonthLookClient as c, useCalendarToday as d, useHydrationReady as i, EventModalProvider as l, EventCombinedIslandClient as n, useCalendarEvents as o, EventModals as r, useCalendarViewport as s, EventCombinedClient as t, useEventModal as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { Qt as selectCardListPresentation, Xt as CardListLeadDate, Yt as CardListContentPart, Zt as resolveCardListSchedule, on as formatEventPrice } from "./shop.interactive-C8OvFY06.mjs";
|
|
3
|
+
import { En as formatEventTimeRange, Ln as getEventAvailabilityStatus, Nn as formatEventRemainingPlaces, Sn as formatEventCompactDateRail, _n as eventDateOptions, ii as listItemPresentation, oi as listLookSlot } from "./wizardSteps-CFulHWnT.mjs";
|
|
4
|
+
import { I as resolveTokenOrCssColorValue, N as isCssColorLiteral, P as resolveOnColorForThemeToken, nt as getTextColorForBackground } from "./accessibleSurfaces-chpD4C2c.mjs";
|
|
5
|
+
import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-BdnEwA38.mjs";
|
|
6
|
+
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-DP_IBnq3.mjs";
|
|
6
7
|
import React from "react";
|
|
7
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
//#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
|
|
@@ -70,6 +71,37 @@ function CalendarIcon({ className, size = 16, strokeWidth = 2 }) {
|
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
73
|
//#endregion
|
|
74
|
+
//#region ../blocks/src/system/runtime/nodes/events/shared/eventCategoryBadge.ts
|
|
75
|
+
/** The category's badge, when the event has a category: its name in its own colour, with readable text. */
|
|
76
|
+
function eventCategoryBadge(category) {
|
|
77
|
+
return category ? {
|
|
78
|
+
label: category.name,
|
|
79
|
+
style: categoryBadgeStyle(category.color ?? null)
|
|
80
|
+
} : null;
|
|
81
|
+
}
|
|
82
|
+
function categoryBadgeStyle(background) {
|
|
83
|
+
const normalized = background?.trim() ?? "";
|
|
84
|
+
if (!normalized) return {
|
|
85
|
+
backgroundColor: "rgb(var(--tb-accent, 0 0 0))",
|
|
86
|
+
color: "rgb(var(--tb-onAccent, 255 255 255))"
|
|
87
|
+
};
|
|
88
|
+
if (isCssColorLiteral(normalized)) return {
|
|
89
|
+
backgroundColor: normalized,
|
|
90
|
+
color: readableTextColor(normalized)
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
backgroundColor: resolveTokenOrCssColorValue(normalized),
|
|
94
|
+
color: resolveOnColorForThemeToken(normalized) ?? "rgb(var(--tb-onAccent, 255 255 255))"
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function readableTextColor(background) {
|
|
98
|
+
try {
|
|
99
|
+
return getTextColorForBackground(background);
|
|
100
|
+
} catch {
|
|
101
|
+
return "rgb(var(--tb-onAccent, 255 255 255))";
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
73
105
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventItem.tsx
|
|
74
106
|
/** Arrangement content choices are data, ready for other live offering lists to reuse. */
|
|
75
107
|
const eventItemParts = {
|
|
@@ -98,6 +130,7 @@ const eventItemParts = {
|
|
|
98
130
|
],
|
|
99
131
|
grid: [
|
|
100
132
|
"image",
|
|
133
|
+
"chips",
|
|
101
134
|
"date",
|
|
102
135
|
"title",
|
|
103
136
|
"meta",
|
|
@@ -112,6 +145,15 @@ const eventItemParts = {
|
|
|
112
145
|
"places",
|
|
113
146
|
"action"
|
|
114
147
|
],
|
|
148
|
+
"timetable-rows": [
|
|
149
|
+
"date",
|
|
150
|
+
"title",
|
|
151
|
+
"meta",
|
|
152
|
+
"description",
|
|
153
|
+
"time",
|
|
154
|
+
"places",
|
|
155
|
+
"action"
|
|
156
|
+
],
|
|
115
157
|
"month-day": [
|
|
116
158
|
"title",
|
|
117
159
|
"meta",
|
|
@@ -119,6 +161,10 @@ const eventItemParts = {
|
|
|
119
161
|
"action"
|
|
120
162
|
]
|
|
121
163
|
};
|
|
164
|
+
/** Rows with a rail: the venue and price beside the title, the time and the button together at the end. */
|
|
165
|
+
function hasActionRail(arrangement) {
|
|
166
|
+
return arrangement === "compact" || arrangement === "timetable-rows";
|
|
167
|
+
}
|
|
122
168
|
function eventItemFacts(props) {
|
|
123
169
|
const options = eventDateOptions(props.event);
|
|
124
170
|
const availability = getEventAvailabilityStatus(props.event);
|
|
@@ -133,20 +179,20 @@ function eventItemFacts(props) {
|
|
|
133
179
|
time,
|
|
134
180
|
price
|
|
135
181
|
}),
|
|
136
|
-
venueIcon: props.arrangement
|
|
182
|
+
venueIcon: hasActionRail(props.arrangement) && props.showVenue !== false && Boolean(props.event.venue),
|
|
137
183
|
places: props.showCapacity ? formatEventRemainingPlaces(props.event, { full: "Sold out" }) : null,
|
|
138
184
|
availability: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available",
|
|
139
185
|
description: props.event.presentation?.summary ?? props.event.description
|
|
140
186
|
};
|
|
141
187
|
}
|
|
142
|
-
/**
|
|
188
|
+
/** Rows with a rail keep pricing in the details and time in the action rail. */
|
|
143
189
|
function eventItemMeta(props, formatted) {
|
|
144
190
|
const parts = props.parts ?? eventItemParts[props.arrangement];
|
|
145
191
|
const venue = props.showVenue !== false ? props.event.venue?.name : null;
|
|
146
192
|
const teacher = formatEventTeacherLine(props.event);
|
|
147
193
|
const time = parts.includes("time") ? null : formatted.time;
|
|
148
|
-
const price = props.arrangement
|
|
149
|
-
return (props.arrangement
|
|
194
|
+
const price = hasActionRail(props.arrangement) && !parts.includes("price") ? formatted.price : null;
|
|
195
|
+
return (hasActionRail(props.arrangement) ? [
|
|
150
196
|
venue,
|
|
151
197
|
teacher,
|
|
152
198
|
price,
|
|
@@ -171,11 +217,12 @@ function renderCalendarItem(props) {
|
|
|
171
217
|
const facts = eventItemFacts(props);
|
|
172
218
|
const Tag = props.as ?? eventItemTag(props.arrangement);
|
|
173
219
|
const root = props.arrangement === "grid" ? "item" : props.continued ? "row-continued" : "row";
|
|
220
|
+
const chipsOnPhoto = parts.includes("image") && Boolean(props.event.presentation?.image);
|
|
174
221
|
const body = (part) => [
|
|
175
222
|
"title",
|
|
176
223
|
"meta",
|
|
177
224
|
"description"
|
|
178
|
-
].includes(part) || part === "action" && props.arrangement === "grid";
|
|
225
|
+
].includes(part) || part === "chips" && !chipsOnPhoto || part === "action" && props.arrangement === "grid";
|
|
179
226
|
const renderPart = (part) => /* @__PURE__ */ jsx(React.Fragment, { children: renderEventItemContentPart({
|
|
180
227
|
part,
|
|
181
228
|
props,
|
|
@@ -185,7 +232,7 @@ function renderCalendarItem(props) {
|
|
|
185
232
|
...listLookSlot(props, root),
|
|
186
233
|
"data-availability": facts.availability,
|
|
187
234
|
children: [
|
|
188
|
-
parts.filter((part) => part === "image" || part === "date").map(renderPart),
|
|
235
|
+
parts.filter((part) => part === "image" || part === "chips" && chipsOnPhoto || part === "date").map(renderPart),
|
|
189
236
|
/* @__PURE__ */ jsx("div", {
|
|
190
237
|
...listLookSlot(props, props.arrangement === "grid" ? "item-body" : "what"),
|
|
191
238
|
children: parts.filter(body).map(renderPart)
|
|
@@ -201,17 +248,18 @@ function renderCalendarItem(props) {
|
|
|
201
248
|
}
|
|
202
249
|
function renderCalendarTrailingParts(props, parts, renderPart) {
|
|
203
250
|
const content = parts.map(renderPart);
|
|
204
|
-
return props.arrangement
|
|
251
|
+
return hasActionRail(props.arrangement) && parts.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
205
252
|
...listLookSlot(props, "item-actions"),
|
|
206
253
|
children: content
|
|
207
254
|
}) : content;
|
|
208
255
|
}
|
|
209
256
|
function eventItemTag(arrangement) {
|
|
210
|
-
return arrangement === "ledger" || arrangement === "day-groups" || arrangement === "week-columns" ? "li" : "article";
|
|
257
|
+
return arrangement === "ledger" || arrangement === "timetable-rows" || arrangement === "day-groups" || arrangement === "week-columns" ? "li" : "article";
|
|
211
258
|
}
|
|
212
259
|
function renderEventItemContentPart({ part, props, facts }) {
|
|
213
260
|
switch (part) {
|
|
214
261
|
case "image": return renderEventItemImage(props, facts.link);
|
|
262
|
+
case "chips": return renderEventItemCategory(props);
|
|
215
263
|
case "date": return /* @__PURE__ */ jsxs("time", {
|
|
216
264
|
...listLookSlot(props, "date"),
|
|
217
265
|
dateTime: props.event.startsAt,
|
|
@@ -240,7 +288,7 @@ function renderEventItemContentPart({ part, props, facts }) {
|
|
|
240
288
|
});
|
|
241
289
|
case "time": return /* @__PURE__ */ jsxs("p", {
|
|
242
290
|
...listLookSlot(props, "time"),
|
|
243
|
-
children: [props.arrangement
|
|
291
|
+
children: [hasActionRail(props.arrangement) ? /* @__PURE__ */ jsx(ClockIcon, { "aria-hidden": "true" }) : null, facts.time]
|
|
244
292
|
});
|
|
245
293
|
case "places": return facts.places ? /* @__PURE__ */ jsx("p", {
|
|
246
294
|
...listLookSlot(props, "places"),
|
|
@@ -297,6 +345,18 @@ function renderEventItemImage(props, link) {
|
|
|
297
345
|
presentation: props
|
|
298
346
|
});
|
|
299
347
|
}
|
|
348
|
+
/** The same badge the older event cards show: the category's name in its own colour. */
|
|
349
|
+
function renderEventItemCategory(props) {
|
|
350
|
+
const badge = eventCategoryBadge(props.event.eventCategory);
|
|
351
|
+
return badge ? /* @__PURE__ */ jsx("div", {
|
|
352
|
+
...listLookSlot(props, "chips"),
|
|
353
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
354
|
+
...listLookSlot(props, "chip"),
|
|
355
|
+
style: badge.style,
|
|
356
|
+
children: badge.label
|
|
357
|
+
})
|
|
358
|
+
}) : null;
|
|
359
|
+
}
|
|
300
360
|
function renderEventItemAction(props) {
|
|
301
361
|
const cta = resolveEventCta(props.event, props.buttonText);
|
|
302
362
|
const slot = props.arrangement === "grid" ? "item-actions" : "action";
|
|
@@ -343,6 +403,15 @@ const bodyParts = [
|
|
|
343
403
|
"availability",
|
|
344
404
|
"action"
|
|
345
405
|
];
|
|
406
|
+
const datedRowParts = [
|
|
407
|
+
"date-stamp",
|
|
408
|
+
"title",
|
|
409
|
+
"schedule",
|
|
410
|
+
"dates",
|
|
411
|
+
"facts",
|
|
412
|
+
"availability",
|
|
413
|
+
"action"
|
|
414
|
+
];
|
|
346
415
|
function renderCardItem({ item, presentation, index, Title, actionNode, feedback }) {
|
|
347
416
|
const layout = cardItemLayout(presentation, index);
|
|
348
417
|
const body = cardItemBody(item, presentation);
|
|
@@ -381,7 +450,7 @@ function renderCardItem({ item, presentation, index, Title, actionNode, feedback
|
|
|
381
450
|
}
|
|
382
451
|
function cardItemLayout(presentation, index) {
|
|
383
452
|
const arrangement = presentation.cardArrangement ?? "cards";
|
|
384
|
-
if (arrangement === "index" || arrangement === "sequence") return {
|
|
453
|
+
if (arrangement === "index" || arrangement === "sequence" || arrangement === "type-columns") return {
|
|
385
454
|
kind: "row",
|
|
386
455
|
tag: "li",
|
|
387
456
|
slot: "item"
|
|
@@ -395,7 +464,7 @@ function cardItemLayout(presentation, index) {
|
|
|
395
464
|
function cardItemBody(item, presentation) {
|
|
396
465
|
const schedule = resolveCardListSchedule(item, presentation.datesMode);
|
|
397
466
|
const arrangement = presentation.cardArrangement ?? "cards";
|
|
398
|
-
const parts = (presentation.bodyParts ?? (arrangement === "slides" || arrangement === "track" ? carouselBodyParts : bodyParts)).filter((part) => part !== "schedule" && part !== "dates" || part === schedule.part);
|
|
467
|
+
const parts = (presentation.bodyParts ?? (arrangement === "slides" || arrangement === "track" ? carouselBodyParts : arrangement === "type-columns" ? datedRowParts : bodyParts)).filter((part) => part !== "schedule" && part !== "dates" || part === schedule.part);
|
|
399
468
|
return {
|
|
400
469
|
item: schedule.item,
|
|
401
470
|
parts
|
|
@@ -447,7 +516,7 @@ function CardListCollection({ Carousel, presentation, slides, photoCount = 0, la
|
|
|
447
516
|
indicator: presentation.cardArrangement === "slides" ? "dots" : "none",
|
|
448
517
|
slides
|
|
449
518
|
});
|
|
450
|
-
return /* @__PURE__ */ jsx(presentation.cardArrangement === "index" || presentation.cardArrangement === "sequence" ? "ol" : "div", {
|
|
519
|
+
return /* @__PURE__ */ jsx(presentation.cardArrangement === "index" || presentation.cardArrangement === "sequence" || presentation.cardArrangement === "type-columns" ? "ol" : "div", {
|
|
451
520
|
...listLookSlot(presentation, "items"),
|
|
452
521
|
"data-card-list": true,
|
|
453
522
|
"data-has-photo": String(photoCount > 0),
|
|
@@ -493,4 +562,4 @@ function cardItemSlotParents(arrangement) {
|
|
|
493
562
|
};
|
|
494
563
|
}
|
|
495
564
|
//#endregion
|
|
496
|
-
export { eventItemSlotParents as a,
|
|
565
|
+
export { eventItemSlotParents as a, MapPinIcon as c, cardItemSlotParents as i, formatEventTeacherLine as l, CardListItems as n, eventCategoryBadge as o, EventItem as r, CalendarIcon as s, CardListCollection as t };
|
package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-a0QEIEf0.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { oi as listLookSlot } from "./wizardSteps-CFulHWnT.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
4
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-
|
|
2
|
+
import { Ht as buildEventRuntimeFilters } from "./shop.interactive-C8OvFY06.mjs";
|
|
3
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-a0QEIEf0.mjs";
|
|
4
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-PhTIoFVX.mjs";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
|