@riverbankcms/sdk 0.180.0 → 0.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-DC_AvZwy.d.ts → BlocksIslandsHydrator-CVCasDPz.d.ts} +1 -1
- package/dist/_dts/{Page-DQOxVtp3.d.ts → Page-Dtj2Ui3S.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DrLgY9_f.d.ts → SdkPreviewMode-D1f_60WW.d.ts} +2 -2
- package/dist/_dts/{client-BP7VBRvs.d.ts → client-Chr9pNVW.d.ts} +58 -70
- package/dist/_dts/{content-types-1-K2qi__.d.ts → content-types-kjccgopX.d.ts} +2 -2
- package/dist/_dts/{contracts-Dfqz0Tcu.d.ts → contracts-BodaiS00.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CSfAqmry.d.ts → generatePageMetadata-BS6kaJFp.d.ts} +2 -2
- package/dist/_dts/{index-BeM5Ylwf.d.ts → index-Brl6_I2j.d.ts} +1 -2
- package/dist/_dts/{index-CB5Csefo.d.ts → index-CJkefwYh.d.ts} +2 -2
- package/dist/_dts/{index-DQBGwBPx.d.ts → index-D1WpKwQe.d.ts} +1 -1
- package/dist/_dts/{index-DQr358-m.d.ts → index-DG0OvBs0.d.ts} +8 -8
- package/dist/_dts/{index-Blrw2oVk.d.ts → index-Diqt0PvG.d.ts} +1 -1
- package/dist/_dts/{index-DCcxLa8p.d.ts → index-Dy50xUMK.d.ts} +2 -2
- package/dist/_dts/{loadContent-BG2tLGXj.d.ts → loadContent-BgxshKrA.d.ts} +7 -7
- package/dist/_dts/{request-P08l6mkr.d.ts → request-CA0izds5.d.ts} +2498 -1108
- package/dist/_dts/{resolveBlockData-BDHc8lFs.d.ts → resolveBlockData-ChQmwEd3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Y3IZBbtL.d.ts → resolvePageContent-BvGyvblj.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 -2
- package/dist/_dts/sdk/src/index.d.ts +104 -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 +83 -52
- 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 +43 -56
- package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
- 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-BvtNagjw.d.ts → serviceBookingOutline-BgFbJQhU.d.ts} +6 -6
- package/dist/_dts/{types-HAy1-Jjo.d.ts → types-CQrsP1x_.d.ts} +3 -3
- package/dist/_dts/{types-DpEAnP4F.d.ts → types-CgS3xLk8.d.ts} +2 -2
- package/dist/_dts/{types-BrK6SS5c.d.ts → types-R65DKjPn.d.ts} +7 -7
- package/dist/_dts/{validation-D6q3tOBA.d.ts → validation-6LTIbuBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DJSmdNUJ.mjs → BlocksIslandsHydrator-DqZPz6oW.mjs} +19 -19
- package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-uWfR2kaG.mjs} +93 -18
- package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-CyNIKw6k.mjs} +7 -87
- package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
- package/dist/client/{CalendarNavigationChevron-VfP50sYm.mjs → CalendarNavigationChevron-BGCX3zwG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-DFLPyuqe.mjs} +9 -6
- package/dist/client/{EventCalendar.client-CrpiyDSP.mjs → EventCalendar.client-zDL4-t-B.mjs} +10 -10
- package/dist/client/{EventCombined.client-D0me9wnz.mjs → EventCombined.client-uciDKLID.mjs} +60 -10
- package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
- package/dist/client/{EventItem-CJITrGkF.mjs → EventItem-CwzrjcRw.mjs} +6 -6
- package/dist/client/{EventListWeekNavigation-BlEm_xjq.mjs → EventListWeekNavigation-ChvcnPma.mjs} +1 -1
- package/dist/client/{EventListing.client-BNM_HuS0.mjs → EventListing.client-DA57Qoyx.mjs} +3 -3
- package/dist/client/{EventListing.view-CXfb7RRy.mjs → EventListing.view-DZ0qMFF4.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-DiD9uYs6.mjs → EventRegistrationPayment-DSqCJL8E.mjs} +700 -514
- package/dist/client/{Page-bX7iy_MK.mjs → Page-C7mygH_f.mjs} +389 -248
- package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-BAdW5DvE.mjs → SiteTermsAgreementField-B4z-e4Wq.mjs} +7 -11
- package/dist/client/{StepIndicator-DCfdcb7s.mjs → StepIndicator-Dn_DY4oY.mjs} +1 -1
- package/dist/client/{StepIndicator-DCqorVne.mjs → StepIndicator-atfDU82W.mjs} +21 -13
- package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
- package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-n6kS6Hct.mjs} +77 -1
- package/dist/client/{accordion-wofJY8xY.mjs → accordion-CsW8U3ff.mjs} +1 -1
- package/dist/client/{booking-form.client-CYl9NrqS.mjs → booking-form.client-cBWM392H.mjs} +52 -29
- package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
- package/dist/client/{bookingForm-kgVWtuMe.mjs → bookingForm-DgySpp6C.mjs} +4 -4
- package/dist/client/bookings.mjs +17 -11
- package/dist/client/{boxStyleClassNames-CQHWz5gJ.mjs → boxStyleClassNames-BpGVdLFD.mjs} +2 -2
- package/dist/client/{carousel-BE1dEFsD.mjs → carousel-DJoleFV3.mjs} +2 -2
- package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
- package/dist/client/{cart-BsjsdGZE.mjs → cart-EO5o6uPH.mjs} +3 -3
- package/dist/client/{cart.client-DylGUWXY.mjs → cart.client-D_gPw45z.mjs} +1 -1
- package/dist/client/{checkout-B5KxEUDr.mjs → checkout-NVfZW0kR.mjs} +3 -3
- package/dist/client/{checkout.client-C98fhch3.mjs → checkout.client-DD3JuqOy.mjs} +1 -1
- package/dist/client/{checkoutUrls-BMLYTf38.mjs → checkoutUrls-z2gXvlGw.mjs} +1 -1
- package/dist/client/client.mjs +87 -43
- package/dist/client/{constants-PfYJsEZF.mjs → constants-CoOkvw__.mjs} +1 -2
- package/dist/client/{context-DtKdUdkO.mjs → context-CRhn9qzS.mjs} +732 -370
- package/dist/client/{dateFormatting-BaGPvQS3.mjs → dateFormatting-BnWB4L1s.mjs} +15 -25
- package/dist/client/{demoPortalMagicLink-B8eDjhuG.mjs → demoPortalMagicLink-CWDGSTBu.mjs} +2 -3
- package/dist/client/{enhanceHeaderSection-DvhD-8eE.mjs → enhanceHeaderSection-tdP_-Z9o.mjs} +4 -5
- package/dist/client/{event-registration.client-Du9a_xAN.mjs → event-registration.client-D7YYKySQ.mjs} +191 -210
- package/dist/client/{eventCalendar-Di9wDfzl.mjs → eventCalendar-CsAfu5d0.mjs} +4 -4
- package/dist/client/{eventCombined-CNW6nBsB.mjs → eventCombined-VXJB5CoS.mjs} +4 -4
- package/dist/client/{eventListing-CQMxQ8By.mjs → eventListing-B3KIZNfY.mjs} +4 -4
- package/dist/client/{eventRegistration-CprS9k1D.mjs → eventRegistration-BP-dEk1c.mjs} +4 -4
- package/dist/client/{form-Zl1_8RJ6.mjs → form-DM8Zbxbv.mjs} +3 -3
- package/dist/client/{form.client-TaMUys6I.mjs → form.client-e2z_Tlgk.mjs} +5 -5
- package/dist/client/{form.parts-CpNPbPPM.mjs → form.parts-Ctljy1a3.mjs} +3 -3
- package/dist/client/gifting/client.mjs +32 -29
- package/dist/client/{gifting-DNVa7-Wj.mjs → gifting-DWIsqQru.mjs} +4 -4
- package/dist/client/{gifting.client-CFUq3GVx.mjs → gifting.client-QsSWF0uA.mjs} +5 -5
- package/dist/client/{gifting.parts-CDQvxA4A.mjs → gifting.parts-CedLgwa_.mjs} +2 -2
- package/dist/client/{headerSection-Cg6083rn.mjs → headerSection-DAkRkwb-.mjs} +2 -2
- package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
- package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
- package/dist/client/{newsletter-form.client-VuL9I96G.mjs → newsletter-form.client-WYja9-WN.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-7Of3eYn0.mjs → newsletter-form.interactive-RuM86VAv.mjs} +23 -24
- package/dist/client/{newsletter-form.parts-OBqsfT24.mjs → newsletter-form.parts-2petDnWv.mjs} +2 -2
- package/dist/client/{newsletterForm-BkJe_RTv.mjs → newsletterForm-BUbXdA_e.mjs} +3 -3
- package/dist/client/{lookSurfaces-gJ3OqPf9.mjs → noop-Dl4mZ-rr.mjs} +167 -49
- package/dist/client/portal/client.mjs +13040 -8190
- package/dist/client/portalOrders-COGn4BKG.mjs +596 -0
- package/dist/client/portalRoutes-D72yvtDh.mjs +862 -0
- package/dist/client/{product-detail.client-B2hdxqJN.mjs → product-detail.client-pOAryevt.mjs} +1 -1
- package/dist/client/{product-list.client-CCEgu9rx.mjs → product-list.client-CcUpUiud.mjs} +1 -1
- package/dist/client/{productDetail-CRX_ZRfS.mjs → productDetail-BZJCfqat.mjs} +3 -3
- package/dist/client/{productList-BAdJ6z5S.mjs → productList-CiRs3mNb.mjs} +3 -3
- package/dist/client/{propsDecoder-BLKAmX0S.mjs → propsDecoder--uHW4tFM.mjs} +2 -2
- package/dist/client/{registry.server-Bj9cmHHF.mjs → registry.server-CDNNd8wC.mjs} +247 -203
- package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +16 -8
- package/dist/client/{richText-coerce-Z45OLLEX.mjs → richText-coerce-CQGE_wHV.mjs} +2 -1
- package/dist/client/{routeIslandApiConfig-DHpTTK77.mjs → routeIslandApiConfig-BtCg87-N.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-DL_ARBpa.mjs} +1 -1
- package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-Ds9cmBUf.mjs} +1 -1
- package/dist/client/{shop-BKsgxm_-.mjs → shop-Rx_gEMK8.mjs} +3 -3
- package/dist/client/{shop-commerce-Cbtk_kUW.mjs → shop-commerce-D8evQnMT.mjs} +53 -16
- package/dist/client/{shop-commerce-store-B-rv2p5h.mjs → shop-commerce-store-C9PcsSTj.mjs} +22 -5
- package/dist/client/{shop-discount-apply.state-CiCDLNh7.mjs → shop-discount-apply.state-D5CtGfJI.mjs} +2 -2
- package/dist/client/{shop.client-Rnqa74Tk.mjs → shop.client-D4lzQ9oY.mjs} +17 -39
- package/dist/client/{shopShared-BaBfhjCq.mjs → shopShared-BVbq7Nm-.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-Al4ooTl_.mjs +164 -0
- package/dist/client/{src-o7WEvbK1.mjs → src-ZSqRK3dD.mjs} +228 -90
- package/dist/client/{timetableModel-BOff1Kk5.mjs → timetableModel-BQJrSK0K.mjs} +9 -78
- package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
- package/dist/client/{useAvailableSlots-DQJNh10g.mjs → useAvailableSlots-Dm3lKJKR.mjs} +2 -3
- package/dist/client/{useDiscountCodeUi-BcFQRI_7.mjs → useDiscountCodeUi-klgfGn7f.mjs} +1 -1
- package/dist/client/{useEventPagination-BvdcexDC.mjs → useEventPagination-Jnjt7_ly.mjs} +8 -8
- package/dist/client/{view-CTBwSpKv.mjs → view-CC_yQLSA.mjs} +4 -4
- package/dist/client/{wizardSteps-CWIQyRIw.mjs → wizardSteps-BliJOzEX.mjs} +953 -279
- package/dist/preview-next/client/{PageSectionToolbar-CG6KwITA.mjs → PageSectionToolbar-BhL0uADo.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BGBqrC9m.mjs → PreviewEditorSidebar-Ct8eIm0i.mjs} +5 -5
- package/dist/preview-next/client/{PreviewEditorUI-Bwkyx28x.mjs → PreviewEditorUI-BS32G4V9.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-DB1l6JNU.mjs → PreviewShell-RL0WfZXD.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bs6Cwzr3.mjs → SdkPreviewModeRuntime-MK_gHeGy.mjs} +29 -5
- package/dist/preview-next/client/{previewAssistantSlot-T-oDD_Dd.mjs → previewAssistantSlot-CQyS8pcq.mjs} +5011 -2074
- package/dist/preview-next/client/{previewChromeRoot-BeukcDRy.mjs → previewChromeRoot-BSxp3Mfu.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-ceDW_9q2.mjs → sdk-runtime-DKnTzy74.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-CCB9bScO.mjs → siteStyleAccess-BlmbvbLN.mjs} +3 -3
- package/dist/preview-next/client/{useAutosaveStatus-D4o0CKq7.mjs → useAutosaveStatus-D-7GwZOQ.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-Seccrvwu.mjs → useOpenBlockForSetup-BNZtGM5g.mjs} +1 -1
- package/dist/preview-next/container-responsive.css +203 -174
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-FwFj8zGL.mjs → route-contract-R3PcMmax.mjs} +71 -37
- package/dist/server/{Block.shared-D6WrRCxX.mjs → Block.shared-CniF9tSu.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQzjDQ2q.mjs → ThemeScopeCore-BQWsnGT6.mjs} +126 -120
- package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-WPzUAHp4.mjs} +33 -2
- package/dist/server/accordions-By_0Ykks.mjs +111 -0
- package/dist/server/{bindings-CS6ih1Yc.mjs → bindings-DxojjtK3.mjs} +7 -7
- package/dist/server/{client-m0ylCj_f.mjs → client-CDndhbYO.mjs} +86 -42
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-VyF5nEhL.mjs +1474 -0
- package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-vgWMz1uD.mjs → loadContent-BKstMBmX.mjs} +5 -4
- package/dist/server/{loadPage-CIOL3-9t.mjs → loadPage-IgNnZaqr.mjs} +3 -3
- package/dist/server/{lookMediaFrame-m-91jGGn.mjs → lookMediaFrame-TFjgNG61.mjs} +38 -18
- package/dist/server/manifest.mjs +36 -25
- package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
- package/dist/server/media-BRmYrnzb.mjs +31 -0
- package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
- package/dist/server/{navigation-BcNfYYuu.mjs → navigation-quBYlSKD.mjs} +2 -2
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +134 -81
- package/dist/server/{overrideResolution-BiHmsvTZ.mjs → overrideResolution-CCaAPpIa.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-DJo_obpi.mjs → pageRenderPlan-B7iULvKe.mjs} +8 -7
- package/dist/server/{pageRuntimeSupport-BnSuoHON.mjs → pageRuntimeSupport-BytMroxn.mjs} +5 -5
- package/dist/server/{pageShared-BJuOzxzn.mjs → pageShared-Dcs_XTIO.mjs} +243 -323
- package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-Bihl4W5K.mjs} +3 -2
- package/dist/server/{portal-B4JVkdjc.mjs → portal-CMW_b9mG.mjs} +62 -46
- package/dist/server/portal.mjs +3 -3
- package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
- package/dist/server/{prebuild-Cr8p8T7V.mjs → prebuild-agaH-vZV.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BZh57-ua.mjs → prefetchBlockData-DwpRjqw4.mjs} +4 -3
- package/dist/server/{registry-CvhFwbXJ.mjs → registry-DM9dHfDC.mjs} +345 -449
- 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 +10 -9
- package/dist/server/{resolveBlockData-Cv_W1LVB.mjs → resolveBlockData-CinHGf8l.mjs} +2 -2
- package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → resolveButtonColourStates-B0O1IM16.mjs} +2 -1028
- package/dist/server/{responseMedia-KRKguBC5.mjs → responseMedia-IfH65QAH.mjs} +1 -1
- package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-CRKbTm_7.mjs → servicePageContent-BBBhOtdE.mjs} +21 -20
- package/dist/server/theme-bridge.mjs +3 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
- package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
- package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
- package/dist/server/types-BKaBZFjD.mjs +1085 -0
- package/dist/server/{validation-DCl-FCk_.mjs → validation-DG5jX3jH.mjs} +70 -17
- package/dist/server/{version-DT_R5JAR.mjs → version-CipbxPHL.mjs} +1 -1
- package/dist/server/video-Cdr3wh-q.mjs +272 -0
- package/dist/styles/index.css +1013 -1840
- package/package.json +2 -1
- package/dist/_dts/index-B0_2-65A.d.ts +0 -101
- package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
- package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
- package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
- package/dist/client/formatDate-hhI1-tzt.mjs +0 -26
- package/dist/server/constants-Cj7hfbrA.mjs +0 -41
- package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
- package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { f as builtinTransformDefinitions } from "./pageRenderPlan-
|
|
2
|
-
import {
|
|
3
|
-
import { c as SUPPORTED_LOADER_ENDPOINTS } from "./responseMedia-
|
|
1
|
+
import { f as builtinTransformDefinitions } from "./pageRenderPlan-B7iULvKe.mjs";
|
|
2
|
+
import { Go as blockCategoryEnum, Jo as fieldSchema, Ko as blockSectionDeclarationShape, Ps as parseMailingListProviderScope, Yo as validateManifestLookField, _s as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, qo as builtInBlockKindsSchema, t as getBlockDefinition } from "./registry-DM9dHfDC.mjs";
|
|
3
|
+
import { c as SUPPORTED_LOADER_ENDPOINTS } from "./responseMedia-IfH65QAH.mjs";
|
|
4
|
+
import { o as customBlockLayoutSchema } from "./typeGuards-CTW_9AXq.mjs";
|
|
4
5
|
import { r as footerModeSchema } from "./mode-bkFS8glh.mjs";
|
|
5
|
-
import {
|
|
6
|
+
import { c as ALLOWED_NODE_TYPES_SET, i as customBlockLayoutSizeIssues, n as customBlockFieldDefaultIssues, r as customBlockLayoutPropIssues, t as titleSourceValueSchema, u as ALLOWED_TRANSFORM_IDS_SET } from "./titleSourceSchema-NhK6azFS.mjs";
|
|
6
7
|
import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-Cqp13TKc.mjs";
|
|
7
|
-
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-
|
|
8
|
+
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-DwpRjqw4.mjs";
|
|
8
9
|
import { n as BINDING_TRANSFORM_VALUES$1 } from "./bindings-DhmIW3Er.mjs";
|
|
9
10
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
10
11
|
import { i as safeParseRouteTemplate, t as describeRouteTemplateParseError } from "./routeTemplate-AsKQwa47.mjs";
|
|
11
12
|
import { z } from "zod";
|
|
12
13
|
//#region ../site-contracts/src/blocks/sdkDeclaration.ts
|
|
13
14
|
const sdkBlockPresentationShape = {
|
|
14
|
-
variants: z.record(z.string().min(1),
|
|
15
|
+
variants: z.record(z.string().min(1), customBlockLayoutSchema).optional(),
|
|
15
16
|
defaultVariant: z.string().min(1).optional(),
|
|
16
17
|
variantOptions: z.record(z.string().min(1), z.object({
|
|
17
18
|
label: z.string().min(1).optional(),
|
|
@@ -228,7 +229,7 @@ const sdkCustomBlockInputSchema = z.object({
|
|
|
228
229
|
tags: z.array(z.string()).optional(),
|
|
229
230
|
fields: z.array(fieldDefinitionInputSchema).min(1),
|
|
230
231
|
dataLoaders: sdkDataLoadersSchema$1,
|
|
231
|
-
layout: z.optional(
|
|
232
|
+
layout: z.optional(customBlockLayoutSchema),
|
|
232
233
|
...sdkBlockPresentationShape,
|
|
233
234
|
...blockSectionDeclarationShape
|
|
234
235
|
}).superRefine(validateManifestLookField).superRefine(validateSdkBlockDeclaration);
|
|
@@ -763,8 +764,10 @@ const contentConfigSchema = z.object({
|
|
|
763
764
|
/**
|
|
764
765
|
* Validation functions for declarative node layouts in custom blocks.
|
|
765
766
|
*
|
|
766
|
-
* These functions validate that layouts only use allowed node types
|
|
767
|
-
*
|
|
767
|
+
* These functions validate that layouts only use allowed node types and
|
|
768
|
+
* transform IDs, and that node props carry nothing unsafe to render (the rules
|
|
769
|
+
* live in `@riverbankcms/blocks`, `system/node/safeLayoutProps`). Used for
|
|
770
|
+
* strict save-time validation.
|
|
768
771
|
*/
|
|
769
772
|
/**
|
|
770
773
|
* Validate all node types in a layout tree.
|
|
@@ -863,10 +866,30 @@ function isBindingObject(value) {
|
|
|
863
866
|
return value !== null && typeof value === "object" && "$bind" in value && typeof value.$bind === "object";
|
|
864
867
|
}
|
|
865
868
|
/**
|
|
866
|
-
* Validate a
|
|
869
|
+
* Validate that no node prop in a layout carries something unsafe to render:
|
|
870
|
+
* CSS outside the allowlist, `url()`, an address on another origin, raw content
|
|
871
|
+
* bound into `style` or `className`, markup or handler props.
|
|
867
872
|
*
|
|
868
|
-
*
|
|
869
|
-
|
|
873
|
+
* Each error names the node path and the property, so the author can fix it.
|
|
874
|
+
*/
|
|
875
|
+
function validateLayoutProps(layout) {
|
|
876
|
+
const errors = customBlockLayoutPropIssues(layout).map(toUnsafePropError);
|
|
877
|
+
return {
|
|
878
|
+
valid: errors.length === 0,
|
|
879
|
+
errors
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
const toUnsafePropError = (issue) => ({
|
|
883
|
+
path: issue.path,
|
|
884
|
+
type: "unsafe_prop",
|
|
885
|
+
value: issue.value,
|
|
886
|
+
message: issue.message
|
|
887
|
+
});
|
|
888
|
+
/**
|
|
889
|
+
* Validate a complete layout (node types, transform IDs and node props).
|
|
890
|
+
*
|
|
891
|
+
* Combines validateLayoutNodeTypes, validateTransformIds and the prop safety
|
|
892
|
+
* rules into a single validation pass.
|
|
870
893
|
*
|
|
871
894
|
* @example
|
|
872
895
|
* ```typescript
|
|
@@ -877,11 +900,19 @@ function isBindingObject(value) {
|
|
|
877
900
|
* ```
|
|
878
901
|
*/
|
|
879
902
|
function validateLayout(layout) {
|
|
880
|
-
const
|
|
881
|
-
|
|
903
|
+
const sizeErrors = customBlockLayoutSizeIssues(layout).map(toUnsafePropError);
|
|
904
|
+
if (sizeErrors.length > 0) return {
|
|
905
|
+
valid: false,
|
|
906
|
+
errors: sizeErrors
|
|
907
|
+
};
|
|
908
|
+
const errors = [
|
|
909
|
+
...validateLayoutNodeTypes(layout).errors,
|
|
910
|
+
...validateTransformIds(layout).errors,
|
|
911
|
+
...validateLayoutProps(layout).errors
|
|
912
|
+
];
|
|
882
913
|
return {
|
|
883
|
-
valid:
|
|
884
|
-
errors
|
|
914
|
+
valid: errors.length === 0,
|
|
915
|
+
errors
|
|
885
916
|
};
|
|
886
917
|
}
|
|
887
918
|
//#endregion
|
|
@@ -1213,7 +1244,7 @@ const sdkCustomBlockSchema = z.object({
|
|
|
1213
1244
|
tags: z.array(z.string()).optional(),
|
|
1214
1245
|
fields: fieldSchema.array().min(1, "Custom blocks must have at least one field"),
|
|
1215
1246
|
dataLoaders: sdkDataLoadersSchema,
|
|
1216
|
-
layout: z.optional(
|
|
1247
|
+
layout: z.optional(customBlockLayoutSchema),
|
|
1217
1248
|
...sdkBlockPresentationShape,
|
|
1218
1249
|
...blockSectionDeclarationShape
|
|
1219
1250
|
}).superRefine(validateManifestLookField).superRefine(validateSdkBlockDeclaration).superRefine(validateCustomBlockPresentation);
|
|
@@ -1298,7 +1329,29 @@ const riverbankSiteConfigSchema = z.object({
|
|
|
1298
1329
|
activeTheme: activeThemeSchema,
|
|
1299
1330
|
dashboard: dashboardConfigSchema.optional()
|
|
1300
1331
|
}).strict();
|
|
1332
|
+
/**
|
|
1333
|
+
* Layout bindings read loader data from `data.*`, and the layout gate trusts
|
|
1334
|
+
* those as platform-loaded. A content field named `data` would sit in the same
|
|
1335
|
+
* scope and could stand in for it, so a block with a layout can't have one.
|
|
1336
|
+
*/
|
|
1337
|
+
const LOADER_DATA_FIELD_ID = "data";
|
|
1301
1338
|
function validateCustomBlockPresentation(data, ctx) {
|
|
1339
|
+
const hasLayout = Boolean(data.layout) || Object.keys(data.variants ?? {}).length > 0;
|
|
1340
|
+
const shadowIndex = data.fields.findIndex((field) => "id" in field && field.id === LOADER_DATA_FIELD_ID);
|
|
1341
|
+
if (hasLayout && shadowIndex >= 0) ctx.addIssue({
|
|
1342
|
+
code: z.ZodIssueCode.custom,
|
|
1343
|
+
message: `A custom block with a layout can't have a field with id "${LOADER_DATA_FIELD_ID}": layouts read loaded data from data.*. Rename the field.`,
|
|
1344
|
+
path: [
|
|
1345
|
+
"fields",
|
|
1346
|
+
shadowIndex,
|
|
1347
|
+
"id"
|
|
1348
|
+
]
|
|
1349
|
+
});
|
|
1350
|
+
if (hasLayout) customBlockFieldDefaultIssues(data.fields).forEach((issue) => ctx.addIssue({
|
|
1351
|
+
code: z.ZodIssueCode.custom,
|
|
1352
|
+
message: issue.message,
|
|
1353
|
+
path: ["fields"]
|
|
1354
|
+
}));
|
|
1302
1355
|
if (data.layout) addLayoutIssues(data.layout, ["layout"], "", ctx);
|
|
1303
1356
|
if (!data.variants) return;
|
|
1304
1357
|
Object.entries(data.variants).forEach(([key, node]) => addLayoutIssues(node, ["variants", key], `${key}: `, ctx));
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { n as isRecord } from "./typeGuards-CTW_9AXq.mjs";
|
|
2
|
+
//#region ../theme-core/src/accordions/types.ts
|
|
3
|
+
/**
|
|
4
|
+
* Icon configuration mapping icon styles to Lucide icons and behavior
|
|
5
|
+
* Used by both CSS generation (for rotation) and component rendering (for icon selection)
|
|
6
|
+
*/
|
|
7
|
+
const ICON_CONFIG = {
|
|
8
|
+
"plus-minus": {
|
|
9
|
+
closedIcon: "Plus",
|
|
10
|
+
openIcon: "Minus",
|
|
11
|
+
rotation: 0
|
|
12
|
+
},
|
|
13
|
+
"chevron": {
|
|
14
|
+
closedIcon: "ChevronDown",
|
|
15
|
+
rotation: 180
|
|
16
|
+
},
|
|
17
|
+
"caret": {
|
|
18
|
+
closedIcon: "ChevronDown",
|
|
19
|
+
rotation: 180
|
|
20
|
+
},
|
|
21
|
+
"arrow": {
|
|
22
|
+
closedIcon: "ArrowDown",
|
|
23
|
+
rotation: 180
|
|
24
|
+
},
|
|
25
|
+
"circle-plus-minus": {
|
|
26
|
+
closedIcon: "CirclePlus",
|
|
27
|
+
openIcon: "CircleMinus",
|
|
28
|
+
rotation: 0
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Icon size mapping (px values for CSS and Lucide React)
|
|
33
|
+
*/
|
|
34
|
+
const ICON_SIZE_PX = {
|
|
35
|
+
sm: "16px",
|
|
36
|
+
md: "20px",
|
|
37
|
+
lg: "24px"
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Spacing map for accordion content padding
|
|
41
|
+
*/
|
|
42
|
+
const ACCORDION_SPACING_MAP = {
|
|
43
|
+
none: "0",
|
|
44
|
+
compact: "0.75rem",
|
|
45
|
+
cozy: "1rem",
|
|
46
|
+
medium: "1.25rem",
|
|
47
|
+
comfortable: "1.5rem",
|
|
48
|
+
spacious: "2rem"
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Question (trigger) font-size by scale step. Kept as self-contained clamps
|
|
52
|
+
* rather than the heading-scale CSS vars so question size stays predictable
|
|
53
|
+
* even when a theme configures very large headings.
|
|
54
|
+
*/
|
|
55
|
+
const ACCORDION_TRIGGER_FONT_SCALE = {
|
|
56
|
+
body: "clamp(0.95rem, var(--fs-body), 1.0625rem)",
|
|
57
|
+
md: "clamp(1.0625rem, 0.98rem + 0.45vw, 1.3rem)",
|
|
58
|
+
lg: "clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem)"
|
|
59
|
+
};
|
|
60
|
+
const ACCORDION_TRIGGER_LETTER_SPACING = {
|
|
61
|
+
normal: "0",
|
|
62
|
+
tight: "-0.01em",
|
|
63
|
+
wide: "0.04em"
|
|
64
|
+
};
|
|
65
|
+
const ACCORDION_OPEN_ACCENT_THICKNESS = {
|
|
66
|
+
thin: "2px",
|
|
67
|
+
medium: "3px",
|
|
68
|
+
thick: "4px"
|
|
69
|
+
};
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region ../blocks/src/system/node/nodeProps.ts
|
|
72
|
+
/**
|
|
73
|
+
* Which values on a node definition become its component's props.
|
|
74
|
+
*
|
|
75
|
+
* The resolver renders these and the custom-block gate checks them, so both
|
|
76
|
+
* read them from here: if the two ever disagreed, a value could reach the DOM
|
|
77
|
+
* without being checked (issue 1185).
|
|
78
|
+
*/
|
|
79
|
+
/** Keys that describe the node itself. `$`-prefixed keys are directives. */
|
|
80
|
+
const NODE_STRUCTURE_KEYS = /* @__PURE__ */ new Set([
|
|
81
|
+
"type",
|
|
82
|
+
"key",
|
|
83
|
+
"children",
|
|
84
|
+
"props"
|
|
85
|
+
]);
|
|
86
|
+
/** `Object.hasOwn`, which this package's target library doesn't declare. */
|
|
87
|
+
const hasOwn = (record, key) => Object.prototype.hasOwnProperty.call(record, key);
|
|
88
|
+
/**
|
|
89
|
+
* A node's props in render order. Older manifests put props at the top level of
|
|
90
|
+
* the node rather than under `props`; those still render, and a key under
|
|
91
|
+
* `props` wins over the same key at the top level.
|
|
92
|
+
*/
|
|
93
|
+
function nodePropEntries(node) {
|
|
94
|
+
const props = isRecord(node.props) ? node.props : {};
|
|
95
|
+
return [...Object.entries(node).filter(([key]) => !NODE_STRUCTURE_KEYS.has(key) && !key.startsWith("$") && !hasOwn(props, key)).map(([key, value]) => [
|
|
96
|
+
key,
|
|
97
|
+
value,
|
|
98
|
+
"node"
|
|
99
|
+
]), ...Object.entries(props).map(([key, value]) => [
|
|
100
|
+
key,
|
|
101
|
+
value,
|
|
102
|
+
"props"
|
|
103
|
+
])];
|
|
104
|
+
}
|
|
105
|
+
/** The props the resolver hands to a node's component, before bindings resolve. */
|
|
106
|
+
function getNodeProps(node) {
|
|
107
|
+
return Object.fromEntries(nodePropEntries(node).map(([key, value]) => [key, value]));
|
|
108
|
+
}
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region ../blocks/src/lib/video.ts
|
|
111
|
+
/**
|
|
112
|
+
* Parse a video URL and extract provider and video ID.
|
|
113
|
+
* Uses URL constructor for safe parsing.
|
|
114
|
+
*
|
|
115
|
+
* @param url - Video URL to parse
|
|
116
|
+
* @returns VideoInfo if valid, null otherwise
|
|
117
|
+
*
|
|
118
|
+
* Supported formats:
|
|
119
|
+
* - YouTube: youtube.com/watch?v=ID, youtu.be/ID, youtube.com/embed/ID
|
|
120
|
+
* - Vimeo: vimeo.com/ID, player.vimeo.com/video/ID
|
|
121
|
+
* - Instagram: instagram.com/p/SHORTCODE, instagram.com/reel/SHORTCODE, instagram.com/tv/SHORTCODE
|
|
122
|
+
*/
|
|
123
|
+
function parseVideoUrl(url) {
|
|
124
|
+
if (!url || typeof url !== "string") return null;
|
|
125
|
+
try {
|
|
126
|
+
const parsed = new URL(url);
|
|
127
|
+
const hostname = parsed.hostname.toLowerCase().replace(/^www\./, "");
|
|
128
|
+
if (hostname === "youtube.com" || hostname === "m.youtube.com" || hostname === "youtu.be" || hostname === "youtube-nocookie.com") {
|
|
129
|
+
const id = extractYouTubeId(parsed);
|
|
130
|
+
if (id) return {
|
|
131
|
+
provider: "youtube",
|
|
132
|
+
id,
|
|
133
|
+
url
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
if (hostname === "vimeo.com" || hostname === "player.vimeo.com") {
|
|
137
|
+
const id = extractVimeoId(parsed);
|
|
138
|
+
if (id) return {
|
|
139
|
+
provider: "vimeo",
|
|
140
|
+
id,
|
|
141
|
+
url
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
if (hostname === "instagram.com" || hostname === "m.instagram.com" || hostname === "instagr.am") {
|
|
145
|
+
const instagram = extractInstagramShortcode(parsed);
|
|
146
|
+
if (instagram) return {
|
|
147
|
+
provider: "instagram",
|
|
148
|
+
id: instagram.shortcode,
|
|
149
|
+
kind: instagram.kind,
|
|
150
|
+
url
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
return null;
|
|
154
|
+
} catch {
|
|
155
|
+
return null;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Extract YouTube video ID from parsed URL.
|
|
160
|
+
*/
|
|
161
|
+
function extractYouTubeId(url) {
|
|
162
|
+
if (url.hostname.toLowerCase().replace(/^www\./, "") === "youtu.be") {
|
|
163
|
+
const id = url.pathname.slice(1).split("/")[0] ?? "";
|
|
164
|
+
return isValidYouTubeId(id) ? id : null;
|
|
165
|
+
}
|
|
166
|
+
const vParam = url.searchParams.get("v");
|
|
167
|
+
if (vParam && isValidYouTubeId(vParam)) return vParam;
|
|
168
|
+
const shortsId = url.pathname.match(/^\/shorts\/([^/?]+)/)?.[1];
|
|
169
|
+
if (shortsId && isValidYouTubeId(shortsId)) return shortsId;
|
|
170
|
+
const embedId = url.pathname.match(/^\/embed\/([^/?]+)/)?.[1];
|
|
171
|
+
if (embedId && isValidYouTubeId(embedId)) return embedId;
|
|
172
|
+
const vId = url.pathname.match(/^\/v\/([^/?]+)/)?.[1];
|
|
173
|
+
if (vId && isValidYouTubeId(vId)) return vId;
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Validate YouTube video ID format.
|
|
178
|
+
* YouTube IDs are 11 characters, alphanumeric plus - and _
|
|
179
|
+
*/
|
|
180
|
+
function isValidYouTubeId(id) {
|
|
181
|
+
return /^[a-zA-Z0-9_-]{11}$/.test(id);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Extract Vimeo video ID from parsed URL.
|
|
185
|
+
*/
|
|
186
|
+
function extractVimeoId(url) {
|
|
187
|
+
const playerId = url.pathname.match(/^\/video\/(\d+)/)?.[1];
|
|
188
|
+
if (playerId) return playerId;
|
|
189
|
+
const pathId = url.pathname.match(/^\/(\d+)/)?.[1];
|
|
190
|
+
if (pathId) return pathId;
|
|
191
|
+
return null;
|
|
192
|
+
}
|
|
193
|
+
function extractInstagramShortcode(url) {
|
|
194
|
+
const match = url.pathname.match(/^\/(p|reel|reels|tv)\/([^/?#]+)/);
|
|
195
|
+
const rawKind = match?.[1];
|
|
196
|
+
const shortcode = match?.[2];
|
|
197
|
+
if (!rawKind || !shortcode) return null;
|
|
198
|
+
const normalizedKind = rawKind === "reels" ? "reel" : rawKind;
|
|
199
|
+
if (normalizedKind !== "p" && normalizedKind !== "reel" && normalizedKind !== "tv") return null;
|
|
200
|
+
const kind = normalizedKind;
|
|
201
|
+
if (!isValidInstagramShortcode(shortcode)) return null;
|
|
202
|
+
return {
|
|
203
|
+
kind,
|
|
204
|
+
shortcode
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
function isValidInstagramShortcode(shortcode) {
|
|
208
|
+
return /^[a-zA-Z0-9_-]{5,}$/.test(shortcode);
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Generate privacy-enhanced embed URL for a video.
|
|
212
|
+
*
|
|
213
|
+
* @param info - VideoInfo from parseVideoUrl
|
|
214
|
+
* @returns Embed URL suitable for iframe src
|
|
215
|
+
*/
|
|
216
|
+
function getEmbedUrl(info) {
|
|
217
|
+
switch (info.provider) {
|
|
218
|
+
case "youtube": return `https://www.youtube-nocookie.com/embed/${info.id}`;
|
|
219
|
+
case "vimeo": return `https://player.vimeo.com/video/${info.id}`;
|
|
220
|
+
case "instagram": return `https://www.instagram.com/${info.kind ?? "p"}/${info.id}/embed`;
|
|
221
|
+
}
|
|
222
|
+
return info.provider;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Generate thumbnail URL for a video.
|
|
226
|
+
*
|
|
227
|
+
* @param info - VideoInfo from parseVideoUrl
|
|
228
|
+
* @returns Thumbnail image URL
|
|
229
|
+
*
|
|
230
|
+
* Note: YouTube maxresdefault.jpg may 404 for some videos.
|
|
231
|
+
* Consider using hqdefault.jpg as a more reliable fallback.
|
|
232
|
+
*/
|
|
233
|
+
function getThumbnailUrl(info) {
|
|
234
|
+
switch (info.provider) {
|
|
235
|
+
case "youtube": return `https://img.youtube.com/vi/${info.id}/maxresdefault.jpg`;
|
|
236
|
+
case "vimeo": return `https://vumbnail.com/${info.id}.jpg`;
|
|
237
|
+
case "instagram": return "";
|
|
238
|
+
}
|
|
239
|
+
return info.provider;
|
|
240
|
+
}
|
|
241
|
+
function getVideoEmbedLoadingStrategy(provider) {
|
|
242
|
+
switch (provider) {
|
|
243
|
+
case "youtube":
|
|
244
|
+
case "vimeo": return "native-lazy";
|
|
245
|
+
case "instagram": return "defer-until-near-viewport";
|
|
246
|
+
}
|
|
247
|
+
return provider;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Parse URL and get complete embed information.
|
|
251
|
+
* Convenience function that combines parseVideoUrl with embed/thumbnail URLs.
|
|
252
|
+
*
|
|
253
|
+
* @param url - Video URL to parse
|
|
254
|
+
* @returns EmbedInfo if valid, null otherwise
|
|
255
|
+
*/
|
|
256
|
+
function getVideoEmbed(url) {
|
|
257
|
+
const info = parseVideoUrl(url);
|
|
258
|
+
if (!info) return null;
|
|
259
|
+
return {
|
|
260
|
+
...info,
|
|
261
|
+
embedUrl: getEmbedUrl(info),
|
|
262
|
+
thumbnailUrl: getThumbnailUrl(info)
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* A video frame's aspect ratio: `16/9`, `4 / 3`, `1.5` or `auto`. The video
|
|
267
|
+
* node writes the value into a style attribute, so anything else is dropped at
|
|
268
|
+
* render and refused in a custom-block layout (issue 1185).
|
|
269
|
+
*/
|
|
270
|
+
const VIDEO_ASPECT_RATIO_PATTERN = /^(?:auto|\d+(?:\.\d+)?(?:\s*\/\s*\d+(?:\.\d+)?)?)$/;
|
|
271
|
+
//#endregion
|
|
272
|
+
export { hasOwn as a, ACCORDION_SPACING_MAP as c, ICON_CONFIG as d, ICON_SIZE_PX as f, getNodeProps as i, ACCORDION_TRIGGER_FONT_SCALE as l, getVideoEmbed as n, nodePropEntries as o, getVideoEmbedLoadingStrategy as r, ACCORDION_OPEN_ACCENT_THICKNESS as s, VIDEO_ASPECT_RATIO_PATTERN as t, ACCORDION_TRIGGER_LETTER_SPACING as u };
|