@riverbankcms/sdk 0.181.0 → 0.183.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 +79 -0
- package/README.md +49 -3
- package/dist/_dts/{BlocksIslandsHydrator-CVCasDPz.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
- package/dist/_dts/{Page-Dtj2Ui3S.d.ts → Page-CEqZJZEE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D1f_60WW.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
- package/dist/_dts/{client-Chr9pNVW.d.ts → client-B_B_amKD.d.ts} +2 -3
- package/dist/_dts/{content-types-kjccgopX.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
- package/dist/_dts/{contracts-BodaiS00.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-BS6kaJFp.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
- package/dist/_dts/{index-Brl6_I2j.d.ts → index-BOpUh8kO.d.ts} +1 -1
- package/dist/_dts/{index-CJkefwYh.d.ts → index-Bizdaxji.d.ts} +2 -2
- package/dist/_dts/{index-Diqt0PvG.d.ts → index-BxCmCit0.d.ts} +1 -1
- package/dist/_dts/{index-DG0OvBs0.d.ts → index-CjAkEWAp.d.ts} +4 -4
- package/dist/_dts/{index-D1WpKwQe.d.ts → index-iuFrbIjt.d.ts} +1 -1
- package/dist/_dts/{index-Dy50xUMK.d.ts → index-liuhlOX7.d.ts} +2 -2
- package/dist/_dts/{loadContent-BgxshKrA.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
- package/dist/_dts/{request-CA0izds5.d.ts → request-Gn0O1blj.d.ts} +25042 -23761
- package/dist/_dts/{resolveBlockData-ChQmwEd3.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BvGyvblj.d.ts → resolvePageContent-xzJ3c9Na.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 +7 -7
- 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 +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/portal/index.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 +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 +91 -2
- package/dist/_dts/{serviceBookingOutline-BgFbJQhU.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
- package/dist/_dts/{types-CgS3xLk8.d.ts → types-BoITy0rA.d.ts} +41 -4
- package/dist/_dts/{types-CQrsP1x_.d.ts → types-DBNuMtSk.d.ts} +16 -5
- package/dist/_dts/{types-R65DKjPn.d.ts → types-DHMcuoeQ.d.ts} +7 -7
- package/dist/_dts/{validation-6LTIbuBA.d.ts → validation-BIPO-XlE.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DqZPz6oW.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
- package/dist/client/{BookingMailingListNote-uWfR2kaG.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-CyNIKw6k.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
- package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-BGCX3zwG.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +27 -10
- package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DFLPyuqe.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
- package/dist/client/{EventCalendar.client-zDL4-t-B.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
- package/dist/client/{EventCombined.client-uciDKLID.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
- package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
- package/dist/client/{EventItem-CwzrjcRw.mjs → EventItem-Fr2qi2C2.mjs} +33 -186
- package/dist/client/{EventListWeekNavigation-ChvcnPma.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
- package/dist/client/{EventListing.client-DA57Qoyx.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
- package/dist/client/{EventListing.view-DZ0qMFF4.mjs → EventListing.view-COuEJzbO.mjs} +8 -8
- package/dist/client/{EventRegistrationPayment-DSqCJL8E.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +41 -195
- package/dist/client/{Page-C7mygH_f.mjs → Page-CgbQZP5g.mjs} +2947 -1018
- package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-B4z-e4Wq.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
- package/dist/client/{StepIndicator-Dn_DY4oY.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
- package/dist/client/{StepIndicator-atfDU82W.mjs → StepIndicator-DyXoI3ob.mjs} +221 -20
- package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
- package/dist/client/{accessibleSurfaces-n6kS6Hct.mjs → accessibleSurfaces-wj4Rloo5.mjs} +1214 -724
- package/dist/client/{accordion-CsW8U3ff.mjs → accordion-BVXfjnh-.mjs} +1 -1
- package/dist/client/{booking-form.client-cBWM392H.mjs → booking-form.client-DycPGtke.mjs} +191 -71
- package/dist/client/{bookingForm-DgySpp6C.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BpGVdLFD.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
- package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
- package/dist/client/{carousel-DJoleFV3.mjs → carousel-DyCLMP8s.mjs} +2 -2
- package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DffP_Nv0.mjs} +1 -1
- package/dist/client/{cart-EO5o6uPH.mjs → cart-BuEp_cj4.mjs} +3 -3
- package/dist/client/{cart.client-D_gPw45z.mjs → cart.client-CAO39uDG.mjs} +1 -1
- package/dist/client/{checkout-NVfZW0kR.mjs → checkout-BoxzT64s.mjs} +3 -3
- package/dist/client/{checkout.client-DD3JuqOy.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
- package/dist/client/{checkoutUrls-z2gXvlGw.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
- package/dist/client/client.mjs +466 -94
- package/dist/client/{constants-CoOkvw__.mjs → constants-C_8AxMdm.mjs} +1 -1
- package/dist/client/{context-CRhn9qzS.mjs → context-D1L0pe__.mjs} +23 -5
- package/dist/client/{dateFormatting-BnWB4L1s.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CWDGSTBu.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-tdP_-Z9o.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
- package/dist/client/{event-registration.client-D7YYKySQ.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
- package/dist/client/{eventCalendar-CsAfu5d0.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
- package/dist/client/{eventCombined-VXJB5CoS.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
- package/dist/client/{eventListing-B3KIZNfY.mjs → eventListing-aTLifOX7.mjs} +4 -4
- package/dist/client/{eventRegistration-BP-dEk1c.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
- package/dist/client/{form-DM8Zbxbv.mjs → form-Dikmc2AO.mjs} +3 -3
- package/dist/client/{form.client-e2z_Tlgk.mjs → form.client-zHaQK5I9.mjs} +5 -5
- package/dist/client/{form.parts-Ctljy1a3.mjs → form.parts-BLl9n8TH.mjs} +3 -3
- package/dist/client/gifting/client.mjs +16 -9
- package/dist/client/{gifting-DWIsqQru.mjs → gifting-CufPM38H.mjs} +4 -4
- package/dist/client/{gifting.client-QsSWF0uA.mjs → gifting.client--N1GaSY8.mjs} +155 -84
- package/dist/client/gifting.interactive-D9MK4HkV.mjs +157 -0
- package/dist/client/gifting.parts-CRtiRzo-.mjs +119 -0
- package/dist/client/{headerSection-DAkRkwb-.mjs → headerSection-BIaBpmk3.mjs} +2 -2
- package/dist/client/{noop-Dl4mZ-rr.mjs → islands-DJDLGQEm.mjs} +16008 -8676
- package/dist/client/{newsletter-form.client-WYja9-WN.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
- package/dist/client/{newsletter-form.interactive-RuM86VAv.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +384 -326
- package/dist/client/{newsletter-form.parts-2petDnWv.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
- package/dist/client/{newsletterForm-BUbXdA_e.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
- package/dist/client/portal/client.mjs +291 -101
- package/dist/client/{portalOrders-COGn4BKG.mjs → portalOrders-tCxS04g0.mjs} +3 -2
- package/dist/client/{portalRoutes-D72yvtDh.mjs → portalRoutes-DTHlWg_F.mjs} +33 -7
- package/dist/client/{product-detail.client-pOAryevt.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
- package/dist/client/{product-list.client-CcUpUiud.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
- package/dist/client/{productDetail-BZJCfqat.mjs → productDetail-DhZAwo60.mjs} +3 -3
- package/dist/client/{productList-CiRs3mNb.mjs → productList-BiVpbZK2.mjs} +3 -3
- package/dist/client/{propsDecoder--uHW4tFM.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
- package/dist/client/{registry.server-CDNNd8wC.mjs → registry.server-C3OBRg7x.mjs} +2305 -873
- package/dist/client/rendering/client.mjs +29 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-CQGE_wHV.mjs → richText-coerce-ms477Z08.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BtCg87-N.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
- package/dist/client/{runtimeResponse-Ds9cmBUf.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
- package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
- package/dist/client/{shop-commerce-D8evQnMT.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
- package/dist/client/{shop-commerce-store-C9PcsSTj.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-D5CtGfJI.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
- package/dist/client/{shop-Rx_gEMK8.mjs → shop-xt4dQ3HH.mjs} +3 -3
- package/dist/client/{shop.client-D4lzQ9oY.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
- package/dist/client/{shopShared-BVbq7Nm-.mjs → shopShared-DS8t6749.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-ZSqRK3dD.mjs → src-Do_s2lqH.mjs} +16 -19
- package/dist/client/{timetableModel-BQJrSK0K.mjs → timetableModel-Dy3nNfTG.mjs} +13 -17
- package/dist/client/{useAvailableSlots-Dm3lKJKR.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-klgfGn7f.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
- package/dist/client/{useEventPagination-Jnjt7_ly.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
- package/dist/client/{view-CC_yQLSA.mjs → view-4gnPcpWJ.mjs} +24 -9
- package/dist/client/{wizardSteps-BliJOzEX.mjs → wizardSteps-DDvL3iza.mjs} +375 -186
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CLqSRUpt.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-CIdAg-Tm.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-Bm85jX35.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-BhL0uADo.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
- package/dist/preview-next/client/{PreviewEditorSidebar-Ct8eIm0i.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3871 -1947
- package/dist/preview-next/client/{PreviewEditorUI-BS32G4V9.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
- package/dist/preview-next/client/{PreviewShell-RL0WfZXD.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
- package/dist/preview-next/client/{SdkPreviewModeRuntime-MK_gHeGy.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +51 -20
- package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-ORNN4x-3.mjs} +782 -16
- package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-eAi3tDAr.mjs} +11 -1
- package/dist/preview-next/client/{previewAssistantSlot-CQyS8pcq.mjs → previewAssistantSlot-CqH91EwA.mjs} +20687 -8562
- package/dist/preview-next/client/{previewChromeRoot-BSxp3Mfu.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DKnTzy74.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlmbvbLN.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
- package/dist/preview-next/client/{useAutosaveStatus-D-7GwZOQ.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BNZtGM5g.mjs → useOpenBlockForSetup-BaWUF9D7.mjs} +2007 -448
- package/dist/preview-next/container-responsive.css +320 -0
- package/dist/preview-next/editor-chrome.css +23 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-R3PcMmax.mjs → route-contract-Ch0X99vE.mjs} +183 -18
- package/dist/server/{Block.shared-CniF9tSu.mjs → Block.shared-B2FmczLO.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQWsnGT6.mjs → ThemeScopeCore-DtAyv9qA.mjs} +51 -29
- package/dist/server/{accessibleSurfaces-WPzUAHp4.mjs → accessibleSurfaces-BtPqb76u.mjs} +509 -389
- package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
- package/dist/server/{bindings-DxojjtK3.mjs → bindings-B_9JuU66.mjs} +7 -7
- package/dist/server/{client-CDndhbYO.mjs → client-DC7cjiSw.mjs} +489 -93
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-VyF5nEhL.mjs → constants-d6nPNJpe.mjs} +33 -6
- package/dist/server/{customCss-C9kgPHvr.mjs → customCss-rtIfEYwQ.mjs} +1 -18
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{resolveButtonColourStates-B0O1IM16.mjs → expandPalette-DxPrNOAB.mjs} +950 -316
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BKstMBmX.mjs → loadContent-hb27HYic.mjs} +11 -10
- package/dist/server/{loadPage-IgNnZaqr.mjs → loadPage-JToD8wDD.mjs} +3 -3
- package/dist/server/{lookMediaFrame-TFjgNG61.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-quBYlSKD.mjs → navigation-B2WhGofA.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +8 -8
- package/dist/server/{overrideResolution-CCaAPpIa.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-B7iULvKe.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +242 -336
- package/dist/server/{pageRuntimeSupport-BytMroxn.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
- package/dist/server/{pageShared-Dcs_XTIO.mjs → pageShared-m80Xu2pd.mjs} +1292 -877
- package/dist/server/{parseThemeForPersistence-Bihl4W5K.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
- package/dist/server/{portal-CMW_b9mG.mjs → portal-B2wCQno_.mjs} +1 -1
- package/dist/server/portal.mjs +2 -2
- package/dist/server/{prebuild-agaH-vZV.mjs → prebuild-BWIkFaXq.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DwpRjqw4.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
- package/dist/server/{registry-DM9dHfDC.mjs → registry-KtsOsAzY.mjs} +21703 -10936
- 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 +9 -9
- package/dist/server/{resolveBlockData-CinHGf8l.mjs → resolveBlockData-sjIDJYl7.mjs} +1 -1
- package/dist/server/{schema-CwfxQjc4.mjs → schema-BBEqquBM.mjs} +44 -28
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-BBBhOtdE.mjs → servicePageContent-ChEZDRwU.mjs} +38 -15
- package/dist/server/theme-bridge.mjs +34 -9
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-DKCIBeb1.mjs} +2 -2
- package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-DybHErxH.mjs} +4 -4
- package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
- package/dist/server/{types-BKaBZFjD.mjs → types-vyz09w64.mjs} +479 -8
- package/dist/server/{validation-DG5jX3jH.mjs → validation-Cvi-1TZZ.mjs} +13 -9
- package/dist/server/{version-CipbxPHL.mjs → version-B-icAIV1.mjs} +1 -1
- package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
- package/dist/styles/index.css +2568 -154
- package/package.json +1 -1
- package/dist/client/gifting.parts-CedLgwa_.mjs +0 -86
- package/dist/client/runtimeResponse-DL_ARBpa.mjs +0 -3
- package/dist/client/types-BEaKfam_.mjs +0 -778
|
@@ -4,6 +4,131 @@ function isRecord$1(value) {
|
|
|
4
4
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5
5
|
}
|
|
6
6
|
//#endregion
|
|
7
|
+
//#region ../site-contracts/src/blocks/nodes.ts
|
|
8
|
+
const transformStepSchema = z.object({
|
|
9
|
+
id: z.string().min(1, "Transform requires an identifier"),
|
|
10
|
+
options: z.record(z.string(), z.unknown()).optional()
|
|
11
|
+
});
|
|
12
|
+
const bindingPathSchema = z.string().min(1, "Binding path is required").regex(/[A-Za-z0-9_\.$\[\]/-]+/, "Binding path contains invalid characters");
|
|
13
|
+
const bindingSchema = z.object({
|
|
14
|
+
from: bindingPathSchema,
|
|
15
|
+
fallback: z.unknown().optional(),
|
|
16
|
+
transforms: transformStepSchema.array().default([]),
|
|
17
|
+
pick: z.enum([
|
|
18
|
+
"value",
|
|
19
|
+
"collection",
|
|
20
|
+
"context"
|
|
21
|
+
]).default("value"),
|
|
22
|
+
coerce: z.enum([
|
|
23
|
+
"number",
|
|
24
|
+
"boolean",
|
|
25
|
+
"string"
|
|
26
|
+
]).optional()
|
|
27
|
+
});
|
|
28
|
+
const repeatSchema = z.object({
|
|
29
|
+
collection: bindingSchema,
|
|
30
|
+
itemName: z.string().min(1).default("item"),
|
|
31
|
+
indexName: z.string().min(1).default("index"),
|
|
32
|
+
limit: z.number().int().positive().optional(),
|
|
33
|
+
sortBy: z.object({
|
|
34
|
+
path: bindingPathSchema,
|
|
35
|
+
direction: z.enum(["asc", "desc"]).default("asc")
|
|
36
|
+
}).optional()
|
|
37
|
+
});
|
|
38
|
+
const conditionalAuthoringPresenceSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("visitor-only") }), z.object({
|
|
39
|
+
kind: z.literal("recover-empty-when-active"),
|
|
40
|
+
placeholder: z.string().min(1).optional()
|
|
41
|
+
})]);
|
|
42
|
+
const conditionSchema = z.object({
|
|
43
|
+
when: bindingSchema,
|
|
44
|
+
equals: z.unknown().optional(),
|
|
45
|
+
not: z.boolean().default(false),
|
|
46
|
+
authoringPresence: conditionalAuthoringPresenceSchema.default({ kind: "visitor-only" })
|
|
47
|
+
});
|
|
48
|
+
const dataScopeSchema = z.object({
|
|
49
|
+
name: z.string().min(1),
|
|
50
|
+
from: bindingSchema
|
|
51
|
+
});
|
|
52
|
+
const nodePropsSchema = z.record(z.string(), z.unknown()).default({});
|
|
53
|
+
/**
|
|
54
|
+
* A plain `z.object`, so a key it does not list is stripped from the parsed
|
|
55
|
+
* node. For custom-block layouts that strip is part of the protection (issue
|
|
56
|
+
* 1185): the renderer treats unknown top-level keys as props, and only the
|
|
57
|
+
* parsed value has been through the layout gate. Store and render the parsed
|
|
58
|
+
* value, never the raw manifest.
|
|
59
|
+
*/
|
|
60
|
+
const nodeSchema = z.object({
|
|
61
|
+
type: z.string().min(1, "Node type is required"),
|
|
62
|
+
key: z.string().optional(),
|
|
63
|
+
props: nodePropsSchema.optional(),
|
|
64
|
+
children: z.lazy(() => z.array(nodeSchema).default([])).optional(),
|
|
65
|
+
$bind: bindingSchema.optional(),
|
|
66
|
+
$repeat: repeatSchema.optional(),
|
|
67
|
+
$when: conditionSchema.optional(),
|
|
68
|
+
$scopes: dataScopeSchema.array().optional()
|
|
69
|
+
});
|
|
70
|
+
const MAX_CUSTOM_LAYOUT_NODES = 1e3;
|
|
71
|
+
const NODE_KEYS = /* @__PURE__ */ new Set([
|
|
72
|
+
"type",
|
|
73
|
+
"key",
|
|
74
|
+
"props",
|
|
75
|
+
"children",
|
|
76
|
+
"$bind",
|
|
77
|
+
"$repeat",
|
|
78
|
+
"$when",
|
|
79
|
+
"$scopes"
|
|
80
|
+
]);
|
|
81
|
+
const isRawNode = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
82
|
+
const rawChildren = (node) => isRawNode(node) && Array.isArray(node.children) ? node.children : [];
|
|
83
|
+
/** Whether the tree nests deeper than `levels`, looking no further down than that. */
|
|
84
|
+
const nestsDeeperThan = (node, levels) => levels === 0 ? isRawNode(node) : rawChildren(node).some((child) => nestsDeeperThan(child, levels - 1));
|
|
85
|
+
/** Nodes in a tree already known to be no deeper than the limit. */
|
|
86
|
+
const countNodes = (node) => rawChildren(node).reduce((total, child) => total + countNodes(child), 1);
|
|
87
|
+
/** Why a custom-block layout is too large to check or render, or null. Safe to call on any value. */
|
|
88
|
+
function customLayoutSizeProblem(layout) {
|
|
89
|
+
if (nestsDeeperThan(layout, 24)) return `The layout nests more than 24 levels deep. Flatten it.`;
|
|
90
|
+
const count = countNodes(layout);
|
|
91
|
+
return count > 1e3 ? `The layout has ${count} nodes, and a custom block takes at most ${MAX_CUSTOM_LAYOUT_NODES}. Use a repeater for repeated items.` : null;
|
|
92
|
+
}
|
|
93
|
+
/** Keys on a node (or any node below it) that `nodeSchema` would strip. */
|
|
94
|
+
function unknownNodeKeys(node, path) {
|
|
95
|
+
if (!isRawNode(node)) return [];
|
|
96
|
+
return [...Object.keys(node).filter((key) => !NODE_KEYS.has(key)).map((key) => ({
|
|
97
|
+
path: [...path, key],
|
|
98
|
+
key
|
|
99
|
+
})), ...rawChildren(node).flatMap((child, index) => unknownNodeKeys(child, [
|
|
100
|
+
...path,
|
|
101
|
+
"children",
|
|
102
|
+
index
|
|
103
|
+
]))];
|
|
104
|
+
}
|
|
105
|
+
function reportRawLayoutShape(layout, ctx) {
|
|
106
|
+
const sizeProblem = customLayoutSizeProblem(layout);
|
|
107
|
+
if (sizeProblem !== null) {
|
|
108
|
+
ctx.addIssue({
|
|
109
|
+
code: "custom",
|
|
110
|
+
message: sizeProblem,
|
|
111
|
+
continue: false
|
|
112
|
+
});
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
unknownNodeKeys(layout, []).forEach(({ path, key }) => ctx.addIssue({
|
|
116
|
+
code: "custom",
|
|
117
|
+
path: [...path],
|
|
118
|
+
message: `"${key}" is not part of a node, so it would be dropped. A node has type, key, props, children, $bind, $repeat, $when and $scopes; put "${key}" under props.`
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* A custom-block layout as its author wrote it. `nodeSchema` strips keys it
|
|
123
|
+
* does not know, which is safe but silent: an author who writes `style` beside
|
|
124
|
+
* `type` loses it without being told. This reports those keys, and refuses a
|
|
125
|
+
* tree too large to walk, before `nodeSchema` parses it.
|
|
126
|
+
*/
|
|
127
|
+
const customBlockLayoutSchema = z.unknown().superRefine(reportRawLayoutShape).pipe(nodeSchema);
|
|
128
|
+
const nodeTreeSchema = z.union([z.array(nodeSchema), nodeSchema]);
|
|
129
|
+
const NodeSchema = nodeSchema;
|
|
130
|
+
const NodeTreeSchema = nodeTreeSchema;
|
|
131
|
+
//#endregion
|
|
7
132
|
//#region ../core/src/rich-text-href.ts
|
|
8
133
|
const SAFE_PROTOCOLS = /* @__PURE__ */ new Set([
|
|
9
134
|
"http:",
|
|
@@ -267,131 +392,6 @@ function createRichTextDocFromMarkdown(markdown) {
|
|
|
267
392
|
};
|
|
268
393
|
}
|
|
269
394
|
//#endregion
|
|
270
|
-
//#region ../site-contracts/src/blocks/nodes.ts
|
|
271
|
-
const transformStepSchema = z.object({
|
|
272
|
-
id: z.string().min(1, "Transform requires an identifier"),
|
|
273
|
-
options: z.record(z.string(), z.unknown()).optional()
|
|
274
|
-
});
|
|
275
|
-
const bindingPathSchema = z.string().min(1, "Binding path is required").regex(/[A-Za-z0-9_\.$\[\]/-]+/, "Binding path contains invalid characters");
|
|
276
|
-
const bindingSchema = z.object({
|
|
277
|
-
from: bindingPathSchema,
|
|
278
|
-
fallback: z.unknown().optional(),
|
|
279
|
-
transforms: transformStepSchema.array().default([]),
|
|
280
|
-
pick: z.enum([
|
|
281
|
-
"value",
|
|
282
|
-
"collection",
|
|
283
|
-
"context"
|
|
284
|
-
]).default("value"),
|
|
285
|
-
coerce: z.enum([
|
|
286
|
-
"number",
|
|
287
|
-
"boolean",
|
|
288
|
-
"string"
|
|
289
|
-
]).optional()
|
|
290
|
-
});
|
|
291
|
-
const repeatSchema = z.object({
|
|
292
|
-
collection: bindingSchema,
|
|
293
|
-
itemName: z.string().min(1).default("item"),
|
|
294
|
-
indexName: z.string().min(1).default("index"),
|
|
295
|
-
limit: z.number().int().positive().optional(),
|
|
296
|
-
sortBy: z.object({
|
|
297
|
-
path: bindingPathSchema,
|
|
298
|
-
direction: z.enum(["asc", "desc"]).default("asc")
|
|
299
|
-
}).optional()
|
|
300
|
-
});
|
|
301
|
-
const conditionalAuthoringPresenceSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("visitor-only") }), z.object({
|
|
302
|
-
kind: z.literal("recover-empty-when-active"),
|
|
303
|
-
placeholder: z.string().min(1).optional()
|
|
304
|
-
})]);
|
|
305
|
-
const conditionSchema = z.object({
|
|
306
|
-
when: bindingSchema,
|
|
307
|
-
equals: z.unknown().optional(),
|
|
308
|
-
not: z.boolean().default(false),
|
|
309
|
-
authoringPresence: conditionalAuthoringPresenceSchema.default({ kind: "visitor-only" })
|
|
310
|
-
});
|
|
311
|
-
const dataScopeSchema = z.object({
|
|
312
|
-
name: z.string().min(1),
|
|
313
|
-
from: bindingSchema
|
|
314
|
-
});
|
|
315
|
-
const nodePropsSchema = z.record(z.string(), z.unknown()).default({});
|
|
316
|
-
/**
|
|
317
|
-
* A plain `z.object`, so a key it does not list is stripped from the parsed
|
|
318
|
-
* node. For custom-block layouts that strip is part of the protection (issue
|
|
319
|
-
* 1185): the renderer treats unknown top-level keys as props, and only the
|
|
320
|
-
* parsed value has been through the layout gate. Store and render the parsed
|
|
321
|
-
* value, never the raw manifest.
|
|
322
|
-
*/
|
|
323
|
-
const nodeSchema = z.object({
|
|
324
|
-
type: z.string().min(1, "Node type is required"),
|
|
325
|
-
key: z.string().optional(),
|
|
326
|
-
props: nodePropsSchema.optional(),
|
|
327
|
-
children: z.lazy(() => z.array(nodeSchema).default([])).optional(),
|
|
328
|
-
$bind: bindingSchema.optional(),
|
|
329
|
-
$repeat: repeatSchema.optional(),
|
|
330
|
-
$when: conditionSchema.optional(),
|
|
331
|
-
$scopes: dataScopeSchema.array().optional()
|
|
332
|
-
});
|
|
333
|
-
const MAX_CUSTOM_LAYOUT_NODES = 1e3;
|
|
334
|
-
const NODE_KEYS = /* @__PURE__ */ new Set([
|
|
335
|
-
"type",
|
|
336
|
-
"key",
|
|
337
|
-
"props",
|
|
338
|
-
"children",
|
|
339
|
-
"$bind",
|
|
340
|
-
"$repeat",
|
|
341
|
-
"$when",
|
|
342
|
-
"$scopes"
|
|
343
|
-
]);
|
|
344
|
-
const isRawNode = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
345
|
-
const rawChildren = (node) => isRawNode(node) && Array.isArray(node.children) ? node.children : [];
|
|
346
|
-
/** Whether the tree nests deeper than `levels`, looking no further down than that. */
|
|
347
|
-
const nestsDeeperThan = (node, levels) => levels === 0 ? isRawNode(node) : rawChildren(node).some((child) => nestsDeeperThan(child, levels - 1));
|
|
348
|
-
/** Nodes in a tree already known to be no deeper than the limit. */
|
|
349
|
-
const countNodes = (node) => rawChildren(node).reduce((total, child) => total + countNodes(child), 1);
|
|
350
|
-
/** Why a custom-block layout is too large to check or render, or null. Safe to call on any value. */
|
|
351
|
-
function customLayoutSizeProblem(layout) {
|
|
352
|
-
if (nestsDeeperThan(layout, 24)) return `The layout nests more than 24 levels deep. Flatten it.`;
|
|
353
|
-
const count = countNodes(layout);
|
|
354
|
-
return count > 1e3 ? `The layout has ${count} nodes, and a custom block takes at most ${MAX_CUSTOM_LAYOUT_NODES}. Use a repeater for repeated items.` : null;
|
|
355
|
-
}
|
|
356
|
-
/** Keys on a node (or any node below it) that `nodeSchema` would strip. */
|
|
357
|
-
function unknownNodeKeys(node, path) {
|
|
358
|
-
if (!isRawNode(node)) return [];
|
|
359
|
-
return [...Object.keys(node).filter((key) => !NODE_KEYS.has(key)).map((key) => ({
|
|
360
|
-
path: [...path, key],
|
|
361
|
-
key
|
|
362
|
-
})), ...rawChildren(node).flatMap((child, index) => unknownNodeKeys(child, [
|
|
363
|
-
...path,
|
|
364
|
-
"children",
|
|
365
|
-
index
|
|
366
|
-
]))];
|
|
367
|
-
}
|
|
368
|
-
function reportRawLayoutShape(layout, ctx) {
|
|
369
|
-
const sizeProblem = customLayoutSizeProblem(layout);
|
|
370
|
-
if (sizeProblem !== null) {
|
|
371
|
-
ctx.addIssue({
|
|
372
|
-
code: "custom",
|
|
373
|
-
message: sizeProblem,
|
|
374
|
-
continue: false
|
|
375
|
-
});
|
|
376
|
-
return;
|
|
377
|
-
}
|
|
378
|
-
unknownNodeKeys(layout, []).forEach(({ path, key }) => ctx.addIssue({
|
|
379
|
-
code: "custom",
|
|
380
|
-
path: [...path],
|
|
381
|
-
message: `"${key}" is not part of a node, so it would be dropped. A node has type, key, props, children, $bind, $repeat, $when and $scopes; put "${key}" under props.`
|
|
382
|
-
}));
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* A custom-block layout as its author wrote it. `nodeSchema` strips keys it
|
|
386
|
-
* does not know, which is safe but silent: an author who writes `style` beside
|
|
387
|
-
* `type` loses it without being told. This reports those keys, and refuses a
|
|
388
|
-
* tree too large to walk, before `nodeSchema` parses it.
|
|
389
|
-
*/
|
|
390
|
-
const customBlockLayoutSchema = z.unknown().superRefine(reportRawLayoutShape).pipe(nodeSchema);
|
|
391
|
-
const nodeTreeSchema = z.union([z.array(nodeSchema), nodeSchema]);
|
|
392
|
-
const NodeSchema = nodeSchema;
|
|
393
|
-
const NodeTreeSchema = nodeTreeSchema;
|
|
394
|
-
//#endregion
|
|
395
395
|
//#region ../blocks/src/lib/typeGuards.ts
|
|
396
396
|
/**
|
|
397
397
|
* Strict record guard: excludes null, primitives, and arrays.
|
|
@@ -410,4 +410,4 @@ function isObjectRecord(value) {
|
|
|
410
410
|
return typeof value === "object" && value !== null;
|
|
411
411
|
}
|
|
412
412
|
//#endregion
|
|
413
|
-
export {
|
|
413
|
+
export { buildRichTextSchema as a, isSafeRichTextHref as c, NodeTreeSchema as d, bindingSchema as f, isRecord$1 as h, RichTextDocSchema as i, sanitizeHref as l, customLayoutSizeProblem as m, isRecord as n, createRichTextDoc as o, customBlockLayoutSchema as p, createRichTextDocFromMarkdown as r, isRichTextDoc as s, isObjectRecord as t, NodeSchema as u };
|