@riverbankcms/sdk 0.179.0 → 0.180.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 +2 -2
- package/dist/_dts/{BlocksIslandsHydrator-DKwgs95u.d.ts → BlocksIslandsHydrator-DC_AvZwy.d.ts} +1 -1
- package/dist/_dts/{Page-lWenra5i.d.ts → Page-DQOxVtp3.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-BRxhRw4I.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
- package/dist/_dts/{client-qWn7xAwJ.d.ts → client-BP7VBRvs.d.ts} +235 -56
- package/dist/_dts/{content-types-DL6GIvTm.d.ts → content-types-1-K2qi__.d.ts} +2 -2
- package/dist/_dts/{contracts-CzWyAiJj.d.ts → contracts-Dfqz0Tcu.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CBKd0cJ4.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
- package/dist/_dts/{index-DVSipdrT.d.ts → index-B0_2-65A.d.ts} +3 -3
- package/dist/_dts/{index-DCiSHd-C.d.ts → index-BeM5Ylwf.d.ts} +5 -3
- package/dist/_dts/{index-BYnG_vF5.d.ts → index-Blrw2oVk.d.ts} +1 -1
- package/dist/_dts/{index-CaCum9mM.d.ts → index-CB5Csefo.d.ts} +2 -2
- package/dist/_dts/{index-CZgJrhzT.d.ts → index-DCcxLa8p.d.ts} +2 -2
- package/dist/_dts/{index-7CDBZGb-.d.ts → index-DQBGwBPx.d.ts} +1 -1
- package/dist/_dts/{index-BU9uAkHB.d.ts → index-DQr358-m.d.ts} +4 -4
- package/dist/_dts/{loadContent-CPKbFQyq.d.ts → loadContent-BG2tLGXj.d.ts} +7 -7
- package/dist/_dts/{request-BjKBCS7t.d.ts → request-P08l6mkr.d.ts} +2602 -821
- package/dist/_dts/{resolveBlockData-DupbMCup.d.ts → resolveBlockData-BDHc8lFs.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BqNyCHi8.d.ts → resolvePageContent-Y3IZBbtL.d.ts} +1 -1
- 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/gifting/client.d.ts +1 -1
- 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 +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +8 -8
- 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 +3 -3
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- 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/{serviceBookingOutline-YcsIjvn1.d.ts → serviceBookingOutline-BvtNagjw.d.ts} +8 -7
- package/dist/_dts/{types-BOxSq-Bq.d.ts → types-BrK6SS5c.d.ts} +9 -8
- package/dist/_dts/{types-CT-KOxl_.d.ts → types-DpEAnP4F.d.ts} +7 -2
- package/dist/_dts/{types-B7e6Lmo5.d.ts → types-HAy1-Jjo.d.ts} +3 -3
- package/dist/_dts/{validation-Dz6qccue.d.ts → validation-D6q3tOBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-1XifJg6V.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +16 -16
- package/dist/client/{BookingMailingListNote-BsbEgagJ.mjs → BookingMailingListNote-CGxg37zx.mjs} +91 -59
- package/dist/client/{BookingQuestionFields-C8IbeLHj.mjs → BookingQuestionFields-DXegGSnS.mjs} +24 -3
- package/dist/client/{CalendarNavigationChevron-Bbqij1XQ.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +5 -5
- package/dist/client/{DemoBookingPortalAccess-uA9H8LIL.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +12 -7
- package/dist/client/{EventCalendar.client-yoSI77ov.mjs → EventCalendar.client-CrpiyDSP.mjs} +9 -9
- package/dist/client/{EventCombined.client-HeCNlliq.mjs → EventCombined.client-D0me9wnz.mjs} +8 -8
- package/dist/client/{EventItem-Duhk1vnF.mjs → EventItem-CJITrGkF.mjs} +5 -4
- package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
- package/dist/client/{EventListing.client-B5ln77jG.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
- package/dist/client/{EventListing.view-hUDhNtMv.mjs → EventListing.view-CXfb7RRy.mjs} +7 -210
- package/dist/client/{EventRegistrationPayment-DqtX1vB2.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1292 -224
- package/dist/client/{Page-ChJ2TGVk.mjs → Page-bX7iy_MK.mjs} +158 -50
- package/dist/client/{SiteTermsAgreementField-CDBU31xW.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +22 -15
- package/dist/client/{StepIndicator-JQA-VuEH.mjs → StepIndicator-DCfdcb7s.mjs} +1 -1
- package/dist/client/{StepIndicator-2Dl9zon2.mjs → StepIndicator-DCqorVne.mjs} +6 -6
- package/dist/client/{accordion-B6SqU49k.mjs → accordion-wofJY8xY.mjs} +1 -1
- package/dist/client/{booking-form.client-DrEOjQ3N.mjs → booking-form.client-CYl9NrqS.mjs} +410 -77
- package/dist/client/{bookingForm-drZBwEZW.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
- package/dist/client/bookings.mjs +40 -10
- package/dist/client/{boxStyleClassNames-DEh45w16.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +2 -2
- package/dist/client/{carousel-C-YJliD-.mjs → carousel-BE1dEFsD.mjs} +1 -1
- package/dist/client/{cart-acGFWK9R.mjs → cart-BsjsdGZE.mjs} +3 -3
- package/dist/client/{cart.client-BzlOGP2j.mjs → cart.client-DylGUWXY.mjs} +1 -1
- package/dist/client/{checkout-SEontwhy.mjs → checkout-B5KxEUDr.mjs} +3 -3
- package/dist/client/{checkout.client-C0Qvh-d4.mjs → checkout.client-C98fhch3.mjs} +1 -1
- package/dist/client/{checkoutUrls-yUKeq1N9.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
- package/dist/client/client.mjs +224 -158
- package/dist/client/constants-PfYJsEZF.mjs +101 -0
- package/dist/client/{context-DTrwaQtg.mjs → context-DtKdUdkO.mjs} +199 -27
- package/dist/client/{dateFormatting-Cg8E1r9l.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0kOJYOX.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DyrpZ7ks.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +3 -3
- package/dist/client/{event-registration.client-RLZQWi2V.mjs → event-registration.client-Du9a_xAN.mjs} +1980 -1517
- package/dist/client/{eventCalendar-CphYnImh.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
- package/dist/client/{eventCombined-BvqjASB_.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
- package/dist/client/{eventListing-BaNAoC_M.mjs → eventListing-CQMxQ8By.mjs} +4 -4
- package/dist/client/{eventRegistration-COMHoRl6.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
- package/dist/client/{form-DyH2juYT.mjs → form-Zl1_8RJ6.mjs} +3 -3
- package/dist/client/{form.client-DBwzkB0M.mjs → form.client-TaMUys6I.mjs} +4 -4
- package/dist/client/{form.parts-CY4kX3mh.mjs → form.parts-CpNPbPPM.mjs} +1 -1
- package/dist/client/{formatDate-CTEN7gxW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -5
- package/dist/client/{gifting-CIx4V378.mjs → gifting-DNVa7-Wj.mjs} +4 -4
- package/dist/client/{gifting.client-BEVPpzJM.mjs → gifting.client-CFUq3GVx.mjs} +4 -4
- package/dist/client/{gifting.parts-VnORjnZK.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
- package/dist/client/{headerSection-DGcJfRS8.mjs → headerSection-Cg6083rn.mjs} +2 -2
- package/dist/client/{lookSurfaces-IqT_SVnX.mjs → lookSurfaces-gJ3OqPf9.mjs} +92 -2
- package/dist/client/{newsletter-form.client-BvEDkjiD.mjs → newsletter-form.client-VuL9I96G.mjs} +5 -5
- package/dist/client/{newsletter-form.interactive-DCO1lErD.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +18 -24
- package/dist/client/{newsletter-form.parts-BIy4IUT3.mjs → newsletter-form.parts-OBqsfT24.mjs} +1 -1
- package/dist/client/{newsletterForm-CoTXDNFS.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
- package/dist/client/portal/client.mjs +299 -115
- package/dist/client/{product-detail.client-YHQ2aKX1.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
- package/dist/client/{product-list.client-DxoZw1vF.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
- package/dist/client/{productDetail-DjuFvkey.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
- package/dist/client/{productList-DE9GEFoZ.mjs → productList-BAdJ6z5S.mjs} +3 -3
- package/dist/client/{propsDecoder-Cyag_HOs.mjs → propsDecoder-BLKAmX0S.mjs} +2 -2
- package/dist/client/{registry.server-BPwV-0Pp.mjs → registry.server-Bj9cmHHF.mjs} +89 -50
- package/dist/client/rendering/client.mjs +22 -22
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{richText-coerce-NrRqDeOg.mjs → richText-coerce-Z45OLLEX.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BWq5gKFK.mjs → routeIslandApiConfig-DHpTTK77.mjs} +1 -1
- package/dist/client/{shop-C3wM0Hr4.mjs → shop-BKsgxm_-.mjs} +3 -3
- package/dist/client/{shop-commerce-34YvcpbX.mjs → shop-commerce-Cbtk_kUW.mjs} +12 -12
- package/dist/client/{shop-commerce-store-B7xHksOs.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-BiBnozfO.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
- package/dist/client/{shop.client-C0v88nLd.mjs → shop.client-Rnqa74Tk.mjs} +12 -12
- package/dist/client/{shopShared-Ct-BRNez.mjs → shopShared-BaBfhjCq.mjs} +2 -2
- package/dist/client/{src-CCtanNlD.mjs → src-o7WEvbK1.mjs} +118 -3
- package/dist/client/{timetableModel-lhE29TNT.mjs → timetableModel-BOff1Kk5.mjs} +201 -7
- package/dist/client/{useAvailableSlots-BelJviOT.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
- package/dist/client/{useDiscountCodeUi-rQRE1-Ho.mjs → useDiscountCodeUi-BcFQRI_7.mjs} +1 -1
- package/dist/client/{useEventPagination-C4rS2Xxl.mjs → useEventPagination-BvdcexDC.mjs} +7 -7
- package/dist/client/{view-LJVHVqsy.mjs → view-CTBwSpKv.mjs} +3 -3
- package/dist/client/{wizardSteps-CNDsxeJH.mjs → wizardSteps-CWIQyRIw.mjs} +1605 -442
- package/dist/preview-next/before-render.mjs +1 -0
- package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-C4TtBPN-.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D6fkE59-.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-amcDlj0O.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-DeQjx4zk.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cx0SXnoX.mjs → SdkPreviewModeRuntime-Bs6Cwzr3.mjs} +15 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-aqpU34WI.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +5735 -2073
- package/dist/preview-next/client/{previewChromeRoot-D3Gy_Rs0.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-Dzx_RrN7.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-LHedw83e.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
- package/dist/preview-next/client/{useAutosaveStatus-DpSd9aVk.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BGZn5AT1.mjs → useOpenBlockForSetup-Seccrvwu.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +103 -10
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DnL-FgSV.mjs → route-contract-FwFj8zGL.mjs} +43 -0
- package/dist/server/{Block.shared-BEbq6EwO.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
- package/dist/server/{bindings-Bly0dRs7.mjs → bindings-CS6ih1Yc.mjs} +4 -4
- package/dist/server/{client-CGJ2ztYp.mjs → client-m0ylCj_f.mjs} +847 -786
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BkK1w3QQ.mjs → loadContent-vgWMz1uD.mjs} +6 -4
- package/dist/server/{loadPage-DTLe0FEs.mjs → loadPage-CIOL3-9t.mjs} +3 -3
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
- package/dist/server/next.mjs +43 -30
- package/dist/server/{overrideResolution-Uy9Zp2Ks.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-JzxBnqfV.mjs → pageRenderPlan-DJo_obpi.mjs} +9 -7
- package/dist/server/{pageRuntimeSupport-DyNSd2Yj.mjs → pageRuntimeSupport-BnSuoHON.mjs} +5 -1
- package/dist/server/{pageShared-DU4ETFPS.mjs → pageShared-BJuOzxzn.mjs} +550 -258
- package/dist/server/{prebuild-8jNtDXmS.mjs → prebuild-Cr8p8T7V.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-xeMG42aw.mjs → prefetchBlockData-BZh57-ua.mjs} +4 -3
- package/dist/server/{registry-DH1VrsCl.mjs → registry-CvhFwbXJ.mjs} +240 -80
- 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 +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BN8tweTx.mjs → resolveBlockData-Cv_W1LVB.mjs} +39 -31
- package/dist/server/{resolvePageContent-DnM16_f9.mjs → resolvePageContent-BWKUZUIn.mjs} +1 -1
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-B-FezJmH.mjs → servicePageContent-CRKbTm_7.mjs} +14 -10
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{validation-3jOzYdPL.mjs → validation-DCl-FCk_.mjs} +4 -4
- package/dist/server/{version-8t0o6_jd.mjs → version-DT_R5JAR.mjs} +1 -1
- package/dist/styles/index.css +504 -27
- package/package.json +1 -1
- package/dist/client/constants-4o4_hl34.mjs +0 -6
|
@@ -1,208 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Jt as EventQuickFacts, Xt as MediaNodeServer, bn as formatEventPrice, nn as weekColumnDays, tn as groupEventsByWeek } from "./newsletter-form.interactive-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as
|
|
6
|
-
import { r as boxStyleClassNames } from "./boxStyleClassNames-DEh45w16.mjs";
|
|
2
|
+
import { Jt as EventQuickFacts, Xt as MediaNodeServer, bn as formatEventPrice, nn as weekColumnDays, tn as groupEventsByWeek } from "./newsletter-form.interactive-7Of3eYn0.mjs";
|
|
3
|
+
import { Cs as EVENT_ADDRESS_AFTER_BOOKING_LABEL, Pa as eventVenuePlace, co as formatEventCompactDateRail, do as formatEventNextDateFact, go as groupEventsByDate, io as eventLocalDateKey, oo as formatDate, po as formatEventTimeRange, ro as eventDateOptions, vo as ImagePresets } from "./wizardSteps-CWIQyRIw.mjs";
|
|
4
|
+
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-gJ3OqPf9.mjs";
|
|
5
|
+
import { r as boxStyleClassNames } from "./boxStyleClassNames-CQHWz5gJ.mjs";
|
|
7
6
|
import { i as ThemedButtonLink, p as ClockIcon } from "./ThemedButton-CnSa7o-I.mjs";
|
|
8
|
-
import { _ as resolveEventLinkProps, c as MapPinIcon, d as formatCourseDatesAfter, f as formatCourseSessions, g as resolveEventCta, h as resolveEventCardBooking, l as eventDisplayTitle, m as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-
|
|
7
|
+
import { _ as resolveEventLinkProps, c as MapPinIcon, d as formatCourseDatesAfter, f as formatCourseSessions, g as resolveEventCta, h as resolveEventCardBooking, l as eventDisplayTitle, m as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-CJITrGkF.mjs";
|
|
9
8
|
import "react";
|
|
10
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
//#region ../blocks/src/system/runtime/nodes/svg.tsx
|
|
12
|
-
/**
|
|
13
|
-
* Strict SVG-`transform` validator.
|
|
14
|
-
*
|
|
15
|
-
* Accepts only a whitespace/comma-separated list of the geometric transform
|
|
16
|
-
* functions (`translate`/`rotate`/`scale`/`skewX`/`skewY`/`matrix`) whose
|
|
17
|
-
* arguments are plain numbers. This deliberately rejects anything else —
|
|
18
|
-
* `url(...)`, CSS functions, `javascript:`, angle/length units, stray letters —
|
|
19
|
-
* so a persisted custom-block tree can't smuggle an executable or exfiltrating
|
|
20
|
-
* value into the attribute.
|
|
21
|
-
*/
|
|
22
|
-
const TRANSFORM_NUMBER = String.raw`-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?`;
|
|
23
|
-
const TRANSFORM_ARGS = String.raw`${TRANSFORM_NUMBER}(?:[\s,]+${TRANSFORM_NUMBER})*`;
|
|
24
|
-
const TRANSFORM_FN = String.raw`(?:translate|rotate|scale|skewX|skewY|matrix)\(\s*${TRANSFORM_ARGS}\s*\)`;
|
|
25
|
-
const SAFE_TRANSFORM_RE = new RegExp(String.raw`^\s*${TRANSFORM_FN}(?:[\s,]*${TRANSFORM_FN})*\s*$`);
|
|
26
|
-
function safeTransform(value) {
|
|
27
|
-
if (typeof value !== "string") return void 0;
|
|
28
|
-
const trimmed = value.trim();
|
|
29
|
-
if (trimmed.length === 0) return void 0;
|
|
30
|
-
return SAFE_TRANSFORM_RE.test(trimmed) ? trimmed : void 0;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Turn paint props into a CSS style object. Colour values pass through as-is so
|
|
34
|
-
* they may reference theme tokens via `var()`, which only resolves in a CSS
|
|
35
|
-
* property context (not in a bare presentation attribute).
|
|
36
|
-
*/
|
|
37
|
-
function paintStyle(shape) {
|
|
38
|
-
const style = {};
|
|
39
|
-
if (shape.fill !== void 0) style.fill = shape.fill;
|
|
40
|
-
if (shape.stroke !== void 0) style.stroke = shape.stroke;
|
|
41
|
-
if (shape.strokeWidth !== void 0) style.strokeWidth = shape.strokeWidth;
|
|
42
|
-
if (shape.fillOpacity !== void 0) style.fillOpacity = shape.fillOpacity;
|
|
43
|
-
if (shape.strokeOpacity !== void 0) style.strokeOpacity = shape.strokeOpacity;
|
|
44
|
-
if (shape.strokeLinecap !== void 0) style.strokeLinecap = shape.strokeLinecap;
|
|
45
|
-
if (shape.strokeLinejoin !== void 0) style.strokeLinejoin = shape.strokeLinejoin;
|
|
46
|
-
if (shape.strokeDasharray !== void 0) style.strokeDasharray = shape.strokeDasharray;
|
|
47
|
-
return style;
|
|
48
|
-
}
|
|
49
|
-
function renderShape(shape, key) {
|
|
50
|
-
const style = paintStyle(shape);
|
|
51
|
-
const transform = safeTransform(shape.transform);
|
|
52
|
-
switch (shape.kind) {
|
|
53
|
-
case "text": return /* @__PURE__ */ jsx("text", {
|
|
54
|
-
className: shape.className,
|
|
55
|
-
x: shape.x,
|
|
56
|
-
y: shape.y,
|
|
57
|
-
transform,
|
|
58
|
-
children: shape.text
|
|
59
|
-
}, key);
|
|
60
|
-
case "path": return /* @__PURE__ */ jsx("path", {
|
|
61
|
-
d: shape.d,
|
|
62
|
-
className: shape.className,
|
|
63
|
-
fillRule: shape.fillRule,
|
|
64
|
-
style,
|
|
65
|
-
transform
|
|
66
|
-
}, key);
|
|
67
|
-
case "ellipse": return /* @__PURE__ */ jsx("ellipse", {
|
|
68
|
-
cx: shape.cx,
|
|
69
|
-
cy: shape.cy,
|
|
70
|
-
rx: shape.rx,
|
|
71
|
-
ry: shape.ry,
|
|
72
|
-
style,
|
|
73
|
-
transform
|
|
74
|
-
}, key);
|
|
75
|
-
case "circle": return /* @__PURE__ */ jsx("circle", {
|
|
76
|
-
cx: shape.cx,
|
|
77
|
-
cy: shape.cy,
|
|
78
|
-
r: shape.r,
|
|
79
|
-
style,
|
|
80
|
-
transform
|
|
81
|
-
}, key);
|
|
82
|
-
case "rect": return /* @__PURE__ */ jsx("rect", {
|
|
83
|
-
x: shape.x,
|
|
84
|
-
y: shape.y,
|
|
85
|
-
className: shape.className,
|
|
86
|
-
width: shape.width,
|
|
87
|
-
height: shape.height,
|
|
88
|
-
rx: shape.rx,
|
|
89
|
-
ry: shape.ry,
|
|
90
|
-
style,
|
|
91
|
-
transform
|
|
92
|
-
}, key);
|
|
93
|
-
case "line": return /* @__PURE__ */ jsx("line", {
|
|
94
|
-
x1: shape.x1,
|
|
95
|
-
y1: shape.y1,
|
|
96
|
-
x2: shape.x2,
|
|
97
|
-
y2: shape.y2,
|
|
98
|
-
style,
|
|
99
|
-
transform
|
|
100
|
-
}, key);
|
|
101
|
-
default: return null;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
const SvgNode = ({ blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, viewBox, width, height, className, style, ariaHidden = true, ariaLabel, shapes }) => {
|
|
105
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
106
|
-
viewBox,
|
|
107
|
-
width,
|
|
108
|
-
height,
|
|
109
|
-
className,
|
|
110
|
-
style,
|
|
111
|
-
"aria-hidden": ariaHidden || void 0,
|
|
112
|
-
role: ariaLabel ? "img" : void 0,
|
|
113
|
-
"aria-label": ariaLabel,
|
|
114
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
115
|
-
fill: "none",
|
|
116
|
-
children: (Array.isArray(shapes) ? shapes : []).map((shape, index) => renderShape(shape, index))
|
|
117
|
-
});
|
|
118
|
-
};
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region ../blocks/src/system/runtime/nodes/shared/MapDrawingSvg.tsx
|
|
121
|
-
const PIN_PATH = "M0 0C-3.5-9-13-15-13-25A13 13 0 1 1 13-25C13-15 3.5-9 0 0ZM0-20.5A4.5 4.5 0 1 0 0-29.5A4.5 4.5 0 1 0 0-20.5Z";
|
|
122
|
-
const commands = (points) => points.map(([x, y], index) => `${index ? "L" : "M"}${x} ${y}`).join(" ");
|
|
123
|
-
function pathShape(path) {
|
|
124
|
-
return path.kind === "polygon" ? {
|
|
125
|
-
kind: "path",
|
|
126
|
-
className: path.className,
|
|
127
|
-
fillRule: path.fillRule,
|
|
128
|
-
d: path.rings.map((ring) => `${commands(ring)} Z`).join(" ")
|
|
129
|
-
} : {
|
|
130
|
-
kind: "path",
|
|
131
|
-
className: path.className,
|
|
132
|
-
d: commands(path.points)
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
function labelShapes(label) {
|
|
136
|
-
const [x, y] = label.point, transform = `rotate(${label.angle} ${x} ${y})`;
|
|
137
|
-
return [label.haloClassName, label.className].map((className) => ({
|
|
138
|
-
kind: "text",
|
|
139
|
-
className,
|
|
140
|
-
x,
|
|
141
|
-
y,
|
|
142
|
-
transform,
|
|
143
|
-
text: label.text
|
|
144
|
-
}));
|
|
145
|
-
}
|
|
146
|
-
/** The drawing the renderer below would show, or null when there's nothing it can draw. */
|
|
147
|
-
function readableMapDrawing(drawing) {
|
|
148
|
-
const parsed = mapDrawingSchema.safeParse(drawing);
|
|
149
|
-
return parsed.success ? parsed.data : null;
|
|
150
|
-
}
|
|
151
|
-
/** Untrusted standalone callers retain boundary admission. */
|
|
152
|
-
function MapDrawingSvg(props) {
|
|
153
|
-
const drawing = readableMapDrawing(props.drawing);
|
|
154
|
-
return drawing ? /* @__PURE__ */ jsx(AdmittedMapDrawingSvg, {
|
|
155
|
-
...props,
|
|
156
|
-
drawing
|
|
157
|
-
}) : null;
|
|
158
|
-
}
|
|
159
|
-
/** Render an already admitted value without allocating another validation copy. */
|
|
160
|
-
function AdmittedMapDrawingSvg(props) {
|
|
161
|
-
const drawing = props.drawing;
|
|
162
|
-
const name = props.wider ? "wider" : "neighbourhood", frame = drawing.frames[name];
|
|
163
|
-
const shapes = [
|
|
164
|
-
{
|
|
165
|
-
kind: "rect",
|
|
166
|
-
className: frame.backgroundClass,
|
|
167
|
-
x: 0,
|
|
168
|
-
y: 0,
|
|
169
|
-
width: 800,
|
|
170
|
-
height: 800
|
|
171
|
-
},
|
|
172
|
-
...frame.paths.map(pathShape),
|
|
173
|
-
...frame.labels.flatMap(labelShapes),
|
|
174
|
-
{
|
|
175
|
-
kind: "path",
|
|
176
|
-
className: frame.pin.className,
|
|
177
|
-
fillRule: "evenodd",
|
|
178
|
-
d: PIN_PATH,
|
|
179
|
-
transform: `translate(${frame.pin.point.join(" ")})`
|
|
180
|
-
}
|
|
181
|
-
];
|
|
182
|
-
return /* @__PURE__ */ jsxs("figure", {
|
|
183
|
-
className: `rb-map-drawing ${props.className ?? ""}`.trim(),
|
|
184
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
185
|
-
className: "rb-map-drawing-crop",
|
|
186
|
-
style: cropHeightStyle(Math.max(255, props.height ?? 320), props.heightAs ?? "fixed"),
|
|
187
|
-
children: /* @__PURE__ */ jsx(SvgNode, {
|
|
188
|
-
className: `map-${name}`,
|
|
189
|
-
viewBox: frame.viewBox.join(" "),
|
|
190
|
-
shapes,
|
|
191
|
-
ariaHidden: false,
|
|
192
|
-
ariaLabel: props.label ? `Map showing ${props.label}` : "Map showing the arrival pin"
|
|
193
|
-
})
|
|
194
|
-
}), /* @__PURE__ */ jsxs("figcaption", { children: ["© ", /* @__PURE__ */ jsx("a", {
|
|
195
|
-
href: "https://www.openstreetmap.org/copyright",
|
|
196
|
-
target: "_blank",
|
|
197
|
-
rel: "noreferrer",
|
|
198
|
-
children: "OpenStreetMap contributors"
|
|
199
|
-
})] })]
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
function cropHeightStyle(height, heightAs) {
|
|
203
|
-
return heightAs === "minimum" ? { minHeight: height } : { height };
|
|
204
|
-
}
|
|
205
|
-
//#endregion
|
|
206
10
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
|
|
207
11
|
/**
|
|
208
12
|
* EventCard Component
|
|
@@ -258,7 +62,7 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
258
62
|
formattedTime,
|
|
259
63
|
hasImage,
|
|
260
64
|
headingLevel: cardHeadingLevel,
|
|
261
|
-
mapSlot
|
|
65
|
+
mapSlot,
|
|
262
66
|
priceText,
|
|
263
67
|
showMap,
|
|
264
68
|
showSummary,
|
|
@@ -270,13 +74,6 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
270
74
|
})]
|
|
271
75
|
});
|
|
272
76
|
};
|
|
273
|
-
function resolveVenueMapSlot(venue, override) {
|
|
274
|
-
return override ?? (venue?.drawing ? /* @__PURE__ */ jsx(MapDrawingSvg, {
|
|
275
|
-
drawing: venue.drawing,
|
|
276
|
-
label: venue.name,
|
|
277
|
-
height: 255
|
|
278
|
-
}) : null);
|
|
279
|
-
}
|
|
280
77
|
function EventCardMedia(props) {
|
|
281
78
|
if (props.lookPresentation.lookSlots !== void 0) return /* @__PURE__ */ jsx(EventLookDate, {
|
|
282
79
|
event: props.event,
|
|
@@ -938,4 +735,4 @@ function DaySchedule({ display }) {
|
|
|
938
735
|
});
|
|
939
736
|
}
|
|
940
737
|
//#endregion
|
|
941
|
-
export { EventCard as a,
|
|
738
|
+
export { EventCard as a, EventCompactRow as i, eventListSlotParents as n, EmptyState as r, EventListingFrameView as t };
|