@riverbankcms/sdk 0.182.0 → 0.184.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 +83 -4
- package/dist/_dts/{BlocksIslandsHydrator-Bvw2bUif.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
- package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
- package/dist/_dts/{client-D6T430bk.d.ts → client-DgTRRtl_.d.ts} +14 -1
- package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-DZQJp_ak.d.ts} +9 -16
- package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
- package/dist/_dts/{index-CciRW_w1.d.ts → index-BECaUNYs.d.ts} +2 -2
- package/dist/_dts/{index-CEyYMhLJ.d.ts → index-Cc85KVLW.d.ts} +3 -3
- package/dist/_dts/{index-CQrb3Ccc.d.ts → index-Cni4jykw.d.ts} +4 -4
- package/dist/_dts/{index-DIU-wL1M.d.ts → index-DxxTQ_0V.d.ts} +2 -2
- package/dist/_dts/{index-Cqxis-nv.d.ts → index-W9-7djG3.d.ts} +1 -1
- package/dist/_dts/{index-DqPKdeTk.d.ts → index-ukS-Ffem.d.ts} +1 -1
- package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
- package/dist/_dts/{request-DEwxUSw8.d.ts → request-CZz2BoXJ.d.ts} +89478 -88093
- package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DTwklC_v.d.ts → resolvePageContent-BteMsSGP.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 +10 -2
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +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 +126 -2
- package/dist/_dts/{serviceBookingOutline-DtQuFlID.d.ts → serviceBookingOutline-aTlOvO3U.d.ts} +16 -8
- package/dist/_dts/{types-B3RjeBLV.d.ts → types-Bi7R07RX.d.ts} +45 -4
- package/dist/_dts/{types-BvUSGQrw.d.ts → types-CCcQlRBi.d.ts} +22 -12
- package/dist/_dts/{types-CkRFtBqd.d.ts → types-Du4aMnWC.d.ts} +13 -15
- package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-CjCWVmwe.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +22 -18
- package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-C4LcfwyA.mjs} +8 -8
- package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +2 -2
- package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +25 -8
- package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
- package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-Ct1B3xI4.mjs} +10 -10
- package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DgfNtcgW.mjs} +9 -9
- package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
- package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-KGKkK19N.mjs} +29 -14
- package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
- package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
- package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-Dth9L00x.mjs} +118 -76
- package/dist/client/{Page-sV6BJkXX.mjs → Page-DB5KODiu.mjs} +4491 -1398
- package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +3 -3
- package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
- package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DRyZ8igu.mjs} +7 -7
- package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-C4rCsPCt.mjs} +52 -10
- package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-CqroimVQ.mjs} +1024 -619
- package/dist/client/{accordion-6cuswD_s.mjs → accordion-BQYRP5xV.mjs} +1 -1
- package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-B7ckDuOC.mjs} +191 -71
- package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-BeD4650p.mjs} +7 -6
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
- package/dist/client/buttonParts-C39GC0kz.mjs +1518 -0
- package/dist/client/{carousel-CGyQVV1M.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
- package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
- package/dist/client/{cart-BYOe7MCh.mjs → cart-DdCenbTy.mjs} +3 -3
- package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-BQm06qNw.mjs} +1 -1
- package/dist/client/{checkout-Dwd7Di77.mjs → checkout-45wPQULN.mjs} +3 -3
- package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
- package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
- package/dist/client/client.mjs +460 -119
- package/dist/client/{constants-DdxFG3Ic.mjs → constants-DXV4KR7l.mjs} +1 -1
- package/dist/client/{context-Hi1RuYEM.mjs → context-lCPfX-xe.mjs} +15 -5
- package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
- package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DlPfn4YG.mjs} +52 -29
- package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-CioAdryV.mjs} +4 -4
- package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
- package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-B3H9ifOC.mjs} +4 -4
- package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
- package/dist/client/{form-DWnlEVSK.mjs → form-CsqzgC6v.mjs} +3 -3
- package/dist/client/{form.client-D7zmeqNI.mjs → form.client-DVDB7hY6.mjs} +5 -5
- package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-1q2rzSYt.mjs} +3 -3
- package/dist/client/gifting/client.mjs +16 -9
- package/dist/client/{gifting-Cn0jidP5.mjs → gifting-BrXQGX-k.mjs} +4 -4
- package/dist/client/{gifting.client-DVo1YFLs.mjs → gifting.client--zAjnY5N.mjs} +155 -85
- package/dist/client/gifting.interactive-CrwHpUJG.mjs +207 -0
- package/dist/client/gifting.parts-CcKdDaQq.mjs +124 -0
- package/dist/client/{headerSection-DjQuj_6v.mjs → headerSection-DlcDH4bi.mjs} +2 -2
- package/dist/client/{noop-jesvJXEE.mjs → islands-dMh0Oxli.mjs} +16103 -7965
- package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-BxA1PsdS.mjs} +6 -6
- package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +229 -197
- package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
- package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
- package/dist/client/portal/client.mjs +51 -35
- package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
- package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DiGibcZI.mjs} +31 -9
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
- package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
- package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-D9-fCY6c.mjs} +3 -3
- package/dist/client/{productList-BuLemmod.mjs → productList-PJyxXSac.mjs} +3 -3
- package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-B8lrKGPw.mjs} +4 -2
- package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-CI63JVHW.mjs} +2444 -1078
- package/dist/client/rendering/client.mjs +32 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-Bnng7JFA.mjs → richText-coerce-Jt9hDHdh.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
- package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
- package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
- package/dist/client/{shop-GuMqnDL-.mjs → shop-CbdJlWOw.mjs} +3 -3
- package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-BqLbzUUn.mjs} +47 -28
- package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +2 -2
- package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-0cNErhJT.mjs} +54 -24
- package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-CmXh3JWs.mjs → src-Do_s2lqH.mjs} +11 -18
- package/dist/client/{timetableModel-GA-hn1qM.mjs → timetableModel-DqI6U1BS.mjs} +11 -8
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
- package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-B0mjVhZr.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
- package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Ct4A6iR1.mjs} +14 -16
- package/dist/client/{view-DOyZc-DF.mjs → view-Cj151w4m.mjs} +24 -9
- package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-B3gsXNnb.mjs} +283 -222
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-BI3UCdpu.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +952 -138
- package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +4774 -2040
- package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-BnJ1ughv.mjs} +71 -47
- package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-C7qWzAe4.mjs} +72 -40
- package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +135 -30
- package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-CRgbU75r.mjs} +799 -17
- package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-B4c6U3ZU.mjs} +11 -1
- package/dist/preview-next/client/{previewAssistantSlot-BgiYk3PB.mjs → previewAssistantSlot-DrUoRNu9.mjs} +24203 -9291
- package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-CEYp90mM.mjs} +3 -90
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-B3PwHw2z.mjs} +46 -11
- package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-DrdQ4ier.mjs} +49 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +2008 -448
- package/dist/preview-next/container-responsive.css +469 -2
- 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-BHTBA48n.mjs → route-contract-CwrXkLT3.mjs} +177 -43
- package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DvbqYXdK.mjs} +46 -10
- package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-CAcf1lHT.mjs} +732 -176
- package/dist/server/{accordions-By_0Ykks.mjs → accordions-DjcsqjCK.mjs} +1 -1
- package/dist/server/{bindings-DMJH4bvo.mjs → bindings-CFw4M-gZ.mjs} +69 -248
- package/dist/server/{client-DrwlRNAH.mjs → client-D0XCgITW.mjs} +488 -119
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-CeMywaiD.mjs → constants-BZduY8jG.mjs} +31 -8
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +4 -4
- package/dist/server/{loadContent-D0prFflT.mjs → loadContent-C-qyB8Tq.mjs} +11 -10
- package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-BpKKmi8E.mjs} +3 -3
- package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-wrcuWmgp.mjs → navigation-DYkuiNXa.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-DUgCEH8z.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
- package/dist/server/page-converter.mjs +18 -5
- package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-DRB7cUZ0.mjs} +674 -298
- package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +13 -6
- package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-BdQF875z.mjs} +911 -516
- package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
- package/dist/server/{portal-pG_uhsI2.mjs → portal-BQ8qiQnk.mjs} +22 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-B51QZVNe.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-CppDAfJW.mjs} +4 -4
- package/dist/server/{registry-Cc88-23f.mjs → registry-Bf4W8Qa7.mjs} +7585 -24378
- 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 -10
- package/dist/server/{resolveBlockData-OG3KOkig.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
- package/dist/server/{expandPalette-ehuW8r2g.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1670 -1346
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
- package/dist/server/{schema-CwfxQjc4.mjs → schema-DGaihVwp.mjs} +300 -29
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-BcFuhhD7.mjs → servicePageContent-CRvmreX7.mjs} +40 -16
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-mcy2E1Yd.mjs} +2 -2
- package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-B2qFOUwZ.mjs} +4 -5
- package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
- package/dist/server/{types-BKaBZFjD.mjs → types-C_S0pWbR.mjs} +487 -9
- package/dist/server/{validation-BovmbS8N.mjs → validation-CUtNT_EZ.mjs} +14 -10
- package/dist/server/{version-hws4hgyX.mjs → version-DebJQ4zn.mjs} +1 -1
- package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
- package/dist/styles/index.css +2987 -168
- package/package.json +1 -1
- package/dist/client/gifting.parts-Bak93gD2.mjs +0 -86
- package/dist/client/runtimeResponse-nXT8VAMl.mjs +0 -3
- package/dist/client/types-BEaKfam_.mjs +0 -778
- package/dist/server/customCss-C9kgPHvr.mjs +0 -247
- package/dist/server/lookMediaFrame-H0fi4bJk.mjs +0 -2701
- package/dist/server/media-gvfIw3z8.mjs +0 -216
|
@@ -52,10 +52,11 @@
|
|
|
52
52
|
outline-offset: -1px;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
/* Editor field highlighting
|
|
55
|
+
/* Editor field highlighting: drawn a little outside the field, so its label
|
|
56
|
+
* and help text don't touch the outline. The form's side padding leaves room. */
|
|
56
57
|
[data-editor-field-highlight="true"]:not(:where([data-block-id])) {
|
|
57
58
|
outline: 1px solid var(--ring);
|
|
58
|
-
outline-offset:
|
|
59
|
+
outline-offset: 6px;
|
|
59
60
|
border-radius: 0.5rem;
|
|
60
61
|
}
|
|
61
62
|
|
|
@@ -69,6 +70,16 @@
|
|
|
69
70
|
position: sticky;
|
|
70
71
|
}
|
|
71
72
|
|
|
73
|
+
/*
|
|
74
|
+
* A block visitors can't see may render little or nothing in the preview (an
|
|
75
|
+
* empty audio player, a file download with no file), while its readiness note
|
|
76
|
+
* sits over it. Keep the block tall enough to hold the note, so notes on
|
|
77
|
+
* neighbouring blocks don't stack on top of each other.
|
|
78
|
+
*/
|
|
79
|
+
[data-block-id]:has(> [data-preview-readiness-note-host]) {
|
|
80
|
+
min-height: 14rem;
|
|
81
|
+
}
|
|
82
|
+
|
|
72
83
|
@layer base {
|
|
73
84
|
/* NOTE: Keep editor chrome styles scoped so SDK preview mode doesn't affect site styling. */
|
|
74
85
|
.builder-dashboard-chrome-theme,
|
|
@@ -298,9 +309,19 @@ body:has([aria-modal="true"]:is([data-state="open"], [aria-hidden="false"]):not(
|
|
|
298
309
|
}
|
|
299
310
|
|
|
300
311
|
/* Collapsible animations for editor UI */
|
|
312
|
+
/*
|
|
313
|
+
* Open content has `overflow: visible`, so without a clip it would draw at its
|
|
314
|
+
* full height over whatever sits below while the height is still growing. The
|
|
315
|
+
* clip holds for the run only and is gone at the end, so focus rings and
|
|
316
|
+
* anything else that pokes outside the content draw as usual once it's open.
|
|
317
|
+
*/
|
|
301
318
|
@keyframes collapsible-down {
|
|
302
319
|
from {
|
|
303
320
|
height: 0;
|
|
321
|
+
clip-path: inset(0);
|
|
322
|
+
}
|
|
323
|
+
99% {
|
|
324
|
+
clip-path: inset(0);
|
|
304
325
|
}
|
|
305
326
|
to {
|
|
306
327
|
height: var(--radix-collapsible-content-height);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as PREVIEW_REFRESH_COOKIE_NAME, r as PREVIEW_COOKIE_NAME } from "./constants-Bf-vqdKH.mjs";
|
|
2
|
-
import { n as buildPreviewAuthRefreshUrl, r as setPreviewAuthCookies } from "./route-contract-
|
|
2
|
+
import { n as buildPreviewAuthRefreshUrl, r as setPreviewAuthCookies } from "./route-contract-CwrXkLT3.mjs";
|
|
3
3
|
import { t as decodeJwtPayload } from "./jwt-BHfnwjzx.mjs";
|
|
4
4
|
import { NextResponse } from "next/server";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as PREVIEW_CODE_PARAM } from "./constants-Bf-vqdKH.mjs";
|
|
2
|
-
import { i as setPreviewTilesKeyCookie, r as setPreviewAuthCookies, t as buildPreviewAuthExchangeUrl } from "./route-contract-
|
|
2
|
+
import { i as setPreviewTilesKeyCookie, r as setPreviewAuthCookies, t as buildPreviewAuthExchangeUrl } from "./route-contract-CwrXkLT3.mjs";
|
|
3
3
|
import { NextResponse } from "next/server";
|
|
4
4
|
//#region ../preview-next/src/middleware.ts
|
|
5
5
|
const EXCHANGE_CODE_PATTERN = /^[A-Za-z0-9_-]{40,256}$/;
|
|
@@ -187,6 +187,13 @@ const PAGE_JOURNAL_ENDPOINT_DEFINITIONS = {
|
|
|
187
187
|
responseKind: "json",
|
|
188
188
|
errors: ["validation:invalid_input", "server:internal_error"]
|
|
189
189
|
},
|
|
190
|
+
getEditorSiteFacts: {
|
|
191
|
+
path: "/sites/{siteId}/editor/site-facts",
|
|
192
|
+
method: "GET",
|
|
193
|
+
auth: "user",
|
|
194
|
+
responseKind: "json",
|
|
195
|
+
errors: ["server:internal_error"]
|
|
196
|
+
},
|
|
190
197
|
replayThemeJournalChange: {
|
|
191
198
|
path: "/sites/{siteId}/theme/journal",
|
|
192
199
|
method: "POST",
|
|
@@ -518,20 +525,67 @@ const weekday = z.union([
|
|
|
518
525
|
z.literal(5),
|
|
519
526
|
z.literal(6)
|
|
520
527
|
]);
|
|
521
|
-
const
|
|
528
|
+
const localStart = z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/);
|
|
529
|
+
const everyWeeks = z.union([z.literal(1), z.literal(2)]);
|
|
530
|
+
const nth = z.union([
|
|
531
|
+
z.literal(1),
|
|
532
|
+
z.literal(2),
|
|
533
|
+
z.literal(3),
|
|
534
|
+
z.literal(4),
|
|
535
|
+
z.literal("last")
|
|
536
|
+
]);
|
|
537
|
+
/** A recurring day in an arrangement's week, with the id it keeps in every segment. */
|
|
538
|
+
const arrangementSlotSchema = z.object({
|
|
539
|
+
id: z.string().uuid(),
|
|
540
|
+
weekday,
|
|
541
|
+
localStart
|
|
542
|
+
}).strict();
|
|
543
|
+
/** A saved pattern: weekly (several days, counted in weeks from a Monday anchor) or monthly (one day). */
|
|
544
|
+
const arrangementPatternSchema = z.discriminatedUnion("kind", [z.object({
|
|
522
545
|
kind: z.literal("weekly"),
|
|
523
|
-
everyWeeks
|
|
524
|
-
|
|
546
|
+
everyWeeks,
|
|
547
|
+
anchorMonday: localDate,
|
|
548
|
+
slots: z.array(arrangementSlotSchema).min(1).max(7).readonly()
|
|
525
549
|
}).strict(), z.object({
|
|
526
550
|
kind: z.literal("monthly"),
|
|
551
|
+
nth,
|
|
552
|
+
slot: arrangementSlotSchema
|
|
553
|
+
}).strict()]);
|
|
554
|
+
const slotTime = z.object({
|
|
527
555
|
weekday,
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
556
|
+
localStart
|
|
557
|
+
}).strict();
|
|
558
|
+
const differentDays = (days) => new Set(days.map((day) => day.weekday)).size === days.length;
|
|
559
|
+
/** What setup asks for: the days and times, with no ids or anchor. The server mints those. */
|
|
560
|
+
const arrangementSetUpScheduleSchema = z.object({
|
|
561
|
+
effectiveFrom: localDate,
|
|
562
|
+
pattern: z.discriminatedUnion("kind", [z.object({
|
|
563
|
+
kind: z.literal("weekly"),
|
|
564
|
+
everyWeeks,
|
|
565
|
+
days: z.array(slotTime).min(1).max(7).refine(differentDays, "Each day can only be picked once.")
|
|
566
|
+
}).strict(), z.object({
|
|
567
|
+
kind: z.literal("monthly"),
|
|
568
|
+
nth,
|
|
569
|
+
day: slotTime
|
|
570
|
+
}).strict()])
|
|
571
|
+
}).strict();
|
|
572
|
+
/**
|
|
573
|
+
* A change to the schedule from a date. `move` changes one day's weekday or time. `add` adds a
|
|
574
|
+
* day (weekly patterns only); the server mints its id from the operation, and it books the new
|
|
575
|
+
* day's next `bookAhead` sessions the way setup does.
|
|
576
|
+
*/
|
|
577
|
+
const arrangementScheduleCommandSchema = z.discriminatedUnion("kind", [z.object({
|
|
578
|
+
kind: z.literal("move"),
|
|
579
|
+
slotId: z.string().uuid(),
|
|
580
|
+
weekday,
|
|
581
|
+
localStart,
|
|
582
|
+
effectiveFrom: localDate
|
|
583
|
+
}).strict(), z.object({
|
|
584
|
+
kind: z.literal("add"),
|
|
585
|
+
weekday,
|
|
586
|
+
localStart,
|
|
587
|
+
effectiveFrom: localDate,
|
|
588
|
+
bookAhead: z.number().int().min(0).max(52)
|
|
535
589
|
}).strict()]);
|
|
536
590
|
const arrangementEndSchema = z.discriminatedUnion("kind", [
|
|
537
591
|
z.object({ kind: z.literal("open") }).strict(),
|
|
@@ -544,21 +598,17 @@ const arrangementEndSchema = z.discriminatedUnion("kind", [
|
|
|
544
598
|
sessions: z.number().int().min(1).max(1e4)
|
|
545
599
|
}).strict()
|
|
546
600
|
]);
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
z.
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
}).strict()
|
|
557
|
-
]);
|
|
558
|
-
const arrangementScheduleSchema = z.object({
|
|
601
|
+
/**
|
|
602
|
+
* How a session no package covers gets chased. What pays for each session isn't chosen: it uses a
|
|
603
|
+
* package the client holds that covers it, soonest-expiring first.
|
|
604
|
+
*/
|
|
605
|
+
const arrangementOwedFollowUpSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("direct") }).strict(), z.object({
|
|
606
|
+
kind: z.literal("payment_link"),
|
|
607
|
+
sendOffsetMinutes: z.number().int().min(1).max(525600)
|
|
608
|
+
}).strict()]);
|
|
609
|
+
z.object({
|
|
559
610
|
effectiveFrom: localDate,
|
|
560
|
-
|
|
561
|
-
localStart: z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/)
|
|
611
|
+
pattern: arrangementPatternSchema
|
|
562
612
|
}).strict();
|
|
563
613
|
const recordedReturn = { recordedReturn: z.literal("staff_confirmed").optional() };
|
|
564
614
|
const operation = {
|
|
@@ -573,17 +623,15 @@ const createClientArrangementSchema = z.object({
|
|
|
573
623
|
timezone: z.string().min(1),
|
|
574
624
|
holdsTime: z.boolean(),
|
|
575
625
|
end: arrangementEndSchema,
|
|
576
|
-
|
|
577
|
-
schedule:
|
|
578
|
-
bookAhead: z.number().int().min(0).max(52)
|
|
579
|
-
bookShortfallAsOwed: z.boolean().default(false)
|
|
626
|
+
owedFollowUp: arrangementOwedFollowUpSchema,
|
|
627
|
+
schedule: arrangementSetUpScheduleSchema,
|
|
628
|
+
bookAhead: z.number().int().min(0).max(52)
|
|
580
629
|
}).strict();
|
|
581
630
|
/** The UI selects the next N dates from get.dates, then retains this body for retry. */
|
|
582
631
|
const bookNextArrangementSchema = z.object({
|
|
583
632
|
...operation,
|
|
584
633
|
confirmation: z.string().optional(),
|
|
585
|
-
occurrenceDates: z.array(localDate).min(1).max(52).refine((values) => new Set(values).size === values.length, "Choose each date once.")
|
|
586
|
-
bookShortfallAsOwed: z.boolean().default(false)
|
|
634
|
+
occurrenceDates: z.array(localDate).min(1).max(52).refine((values) => new Set(values).size === values.length, "Choose each date once.")
|
|
587
635
|
}).strict();
|
|
588
636
|
const arrangementAwaySchema = z.object({
|
|
589
637
|
...operation,
|
|
@@ -593,27 +641,38 @@ const arrangementAwaySchema = z.object({
|
|
|
593
641
|
}).strict().refine((value) => value.backOn > value.from, "Choose a return date after the first day away.");
|
|
594
642
|
const arrangementChangeFromSchema = z.object({
|
|
595
643
|
...operation,
|
|
596
|
-
|
|
644
|
+
command: arrangementScheduleCommandSchema
|
|
597
645
|
}).strict();
|
|
598
646
|
const arrangementOneWeekSchema = z.object({
|
|
599
647
|
...operation,
|
|
600
648
|
occurrenceDate: localDate,
|
|
601
|
-
startAt: z.iso.datetime({ offset: true })
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
649
|
+
startAt: z.iso.datetime({ offset: true })
|
|
650
|
+
}).strict();
|
|
651
|
+
/**
|
|
652
|
+
* Ending all of it, or one day: that day stops after `lastDate`, its bookings after then are
|
|
653
|
+
* cancelled, and the other days carry on.
|
|
654
|
+
*/
|
|
655
|
+
const arrangementEndRequestSchema = z.discriminatedUnion("scope", [z.object({
|
|
606
656
|
...operation,
|
|
607
657
|
...recordedReturn,
|
|
658
|
+
scope: z.literal("all"),
|
|
608
659
|
lastDate: localDate
|
|
609
|
-
}).strict()
|
|
660
|
+
}).strict(), z.object({
|
|
661
|
+
...operation,
|
|
662
|
+
...recordedReturn,
|
|
663
|
+
scope: z.literal("day"),
|
|
664
|
+
slotId: z.string().uuid(),
|
|
665
|
+
lastDate: localDate
|
|
666
|
+
}).strict()]);
|
|
610
667
|
/** `expectedUpdatedAt` is the version the dialog was showing, so a save can't overwrite a newer change. */
|
|
668
|
+
/** `confirmation` is the preview's, when booked sessions change with the service. */
|
|
611
669
|
const arrangementEditSchema = z.object({
|
|
612
670
|
...operation,
|
|
671
|
+
confirmation: z.string().optional(),
|
|
613
672
|
expectedUpdatedAt: z.string().min(1),
|
|
614
673
|
serviceId: z.string().uuid(),
|
|
615
674
|
holdsTime: z.boolean(),
|
|
616
|
-
|
|
675
|
+
owedFollowUp: arrangementOwedFollowUpSchema
|
|
617
676
|
}).strict();
|
|
618
677
|
z.discriminatedUnion("kind", [
|
|
619
678
|
z.object({
|
|
@@ -729,6 +788,19 @@ z.intersection(z.object({ occurrenceDate: localDate }), z.union([
|
|
|
729
788
|
})
|
|
730
789
|
])
|
|
731
790
|
}),
|
|
791
|
+
z.object({
|
|
792
|
+
outcome: z.literal("service_changed"),
|
|
793
|
+
appointmentId: z.string(),
|
|
794
|
+
startAt: z.string(),
|
|
795
|
+
endAt: z.string(),
|
|
796
|
+
previousEndAt: z.string(),
|
|
797
|
+
price: z.discriminatedUnion("kind", [z.object({
|
|
798
|
+
kind: z.literal("restated"),
|
|
799
|
+
fromCents: z.number().int(),
|
|
800
|
+
toCents: z.number().int(),
|
|
801
|
+
currency: z.string()
|
|
802
|
+
}), z.object({ kind: z.literal("kept") })])
|
|
803
|
+
}),
|
|
732
804
|
z.object({
|
|
733
805
|
outcome: z.literal("cancelled"),
|
|
734
806
|
appointmentId: z.string(),
|
|
@@ -752,11 +824,7 @@ z.intersection(z.object({ occurrenceDate: localDate }), z.union([
|
|
|
752
824
|
outcome: z.literal("refused"),
|
|
753
825
|
appointmentId: z.string().optional()
|
|
754
826
|
}), z.discriminatedUnion("code", [
|
|
755
|
-
z.object({ code: z.enum([
|
|
756
|
-
"package_shortfall",
|
|
757
|
-
"not_available",
|
|
758
|
-
"client_not_found"
|
|
759
|
-
]) }),
|
|
827
|
+
z.object({ code: z.enum(["not_available", "client_not_found"]) }),
|
|
760
828
|
z.object({
|
|
761
829
|
code: z.literal("clash"),
|
|
762
830
|
customerFirstName: z.string().nullable(),
|
|
@@ -3153,6 +3221,44 @@ const GIFTING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3153
3221
|
"server:internal_error"
|
|
3154
3222
|
]
|
|
3155
3223
|
},
|
|
3224
|
+
getGiftRefund: {
|
|
3225
|
+
path: "/sites/{siteId}/gifting/refunds/{orderItemId}",
|
|
3226
|
+
method: "GET",
|
|
3227
|
+
auth: "user",
|
|
3228
|
+
responseKind: "json",
|
|
3229
|
+
errors: [
|
|
3230
|
+
"auth:forbidden",
|
|
3231
|
+
"resource:conflict",
|
|
3232
|
+
"server:internal_error"
|
|
3233
|
+
]
|
|
3234
|
+
},
|
|
3235
|
+
refundGift: {
|
|
3236
|
+
path: "/sites/{siteId}/gifting/refunds/{orderItemId}",
|
|
3237
|
+
method: "POST",
|
|
3238
|
+
auth: "user",
|
|
3239
|
+
responseKind: "json",
|
|
3240
|
+
tags: ["site-{siteId}", "gifting-gifts-{siteId}"],
|
|
3241
|
+
demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN,
|
|
3242
|
+
errors: [
|
|
3243
|
+
"auth:forbidden",
|
|
3244
|
+
"resource:conflict",
|
|
3245
|
+
"server:internal_error"
|
|
3246
|
+
]
|
|
3247
|
+
},
|
|
3248
|
+
cancelGift: {
|
|
3249
|
+
path: "/sites/{siteId}/gifting/gifts/{giftId}/cancel",
|
|
3250
|
+
method: "POST",
|
|
3251
|
+
tags: ["site-{siteId}", "gifting-gifts-{siteId}"],
|
|
3252
|
+
demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN,
|
|
3253
|
+
auth: "user",
|
|
3254
|
+
responseKind: "json",
|
|
3255
|
+
errors: [
|
|
3256
|
+
"auth:forbidden",
|
|
3257
|
+
"resource:not_found",
|
|
3258
|
+
"resource:conflict",
|
|
3259
|
+
"server:internal_error"
|
|
3260
|
+
]
|
|
3261
|
+
},
|
|
3156
3262
|
changeGiftExpiry: {
|
|
3157
3263
|
path: "/sites/{siteId}/gifting/gifts/{giftId}/expiry",
|
|
3158
3264
|
method: "POST",
|
|
@@ -5716,6 +5822,22 @@ const API_ENDPOINTS = {
|
|
|
5716
5822
|
auth: "user",
|
|
5717
5823
|
responseKind: "json"
|
|
5718
5824
|
},
|
|
5825
|
+
getRegisteredDomainContact: {
|
|
5826
|
+
errors: [
|
|
5827
|
+
"resource:not_found",
|
|
5828
|
+
"auth:forbidden",
|
|
5829
|
+
"validation:invalid_input"
|
|
5830
|
+
],
|
|
5831
|
+
path: "/domains/{domainId}/registrar/contact",
|
|
5832
|
+
method: "GET",
|
|
5833
|
+
auth: "user",
|
|
5834
|
+
tags: [
|
|
5835
|
+
"domains",
|
|
5836
|
+
"domain-{domainId}",
|
|
5837
|
+
"domain-registrar"
|
|
5838
|
+
],
|
|
5839
|
+
responseKind: "json"
|
|
5840
|
+
},
|
|
5719
5841
|
updateRegisteredDomainContact: {
|
|
5720
5842
|
path: "/domains/{domainId}/registrar/contact",
|
|
5721
5843
|
method: "POST",
|
|
@@ -5800,6 +5922,18 @@ const API_ENDPOINTS = {
|
|
|
5800
5922
|
auth: "user",
|
|
5801
5923
|
responseKind: "json"
|
|
5802
5924
|
},
|
|
5925
|
+
retryDomainEmailSending: {
|
|
5926
|
+
errors: [],
|
|
5927
|
+
path: "/sites/{siteId}/domains/{domainId}/email/retry",
|
|
5928
|
+
method: "POST",
|
|
5929
|
+
tags: [
|
|
5930
|
+
"domains",
|
|
5931
|
+
"domain-{domainId}",
|
|
5932
|
+
"domain-dns"
|
|
5933
|
+
],
|
|
5934
|
+
auth: "user",
|
|
5935
|
+
responseKind: "json"
|
|
5936
|
+
},
|
|
5803
5937
|
retryDomainResend: {
|
|
5804
5938
|
path: "/domains/{domainId}/resend",
|
|
5805
5939
|
method: "POST",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Dr as
|
|
2
|
-
import { _ as parseBlocksTheme, a as planLayoutThemeRuntime, b as getDefaultComponentRegistry, c as solvedInksForThemeRuntime, f as PageRenderer, g as buildThemeRuntime, m as toBlocksImageResolveContextInput, o as renderWithOverrideOnlyRuntime, s as renderWithSdkThemeRuntime, v as makeDefaultBlockComponent, y as renderBlock } from "./pageShared-
|
|
3
|
-
import { f as resolveSiteCustomBlocks, n as buildRenderablePageOutline, o as projectRenderablePageOutline } from "./pageRuntimeSupport-
|
|
4
|
-
import { n as buildFooterMenu, r as buildFooterMenuForRole, s as buildMenu, t as buildChromeLogoContent } from "./navigation-
|
|
1
|
+
import { Dr as readRuntimeNow, Ds as toUtcIsoDateTimeString, Or as resolveDateRuntimeContext, ht as setContextResolveImageUrlContext, pt as buildResolveImageUrlContext, t as getBlockDefinition, vr as siteFooterManifest, yr as siteHeaderManifest } from "./registry-Bf4W8Qa7.mjs";
|
|
2
|
+
import { _ as parseBlocksTheme, a as planLayoutThemeRuntime, b as getDefaultComponentRegistry, c as solvedInksForThemeRuntime, f as PageRenderer, g as buildThemeRuntime, m as toBlocksImageResolveContextInput, o as renderWithOverrideOnlyRuntime, s as renderWithSdkThemeRuntime, v as makeDefaultBlockComponent, y as renderBlock } from "./pageShared-BdQF875z.mjs";
|
|
3
|
+
import { f as resolveSiteCustomBlocks, n as buildRenderablePageOutline, o as projectRenderablePageOutline } from "./pageRuntimeSupport-Uv1xDieJ.mjs";
|
|
4
|
+
import { n as buildFooterMenu, r as buildFooterMenuForRole, s as buildMenu, t as buildChromeLogoContent } from "./navigation-DYkuiNXa.mjs";
|
|
5
5
|
import { n as resolveSdkFooterMode, t as resolveFooterRenderPlan } from "./mode-bkFS8glh.mjs";
|
|
6
|
-
import { n as prefetchBlockDataWithFailures, r as planBlockDataRequests, t as SUPPORTED_LOADER_ENDPOINTS } from "./prefetchBlockData-
|
|
6
|
+
import { n as prefetchBlockDataWithFailures, r as planBlockDataRequests, t as SUPPORTED_LOADER_ENDPOINTS } from "./prefetchBlockData-CppDAfJW.mjs";
|
|
7
7
|
import { r as requireSdkTheme } from "./themeAdmission-DGSAlFUK.mjs";
|
|
8
8
|
import { a as defaultOverrideOnlyRuntime, c as getRiverbankEnv } from "./overrides-CD4d-1w7.mjs";
|
|
9
9
|
import "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { $ as parseColorTokenParts, A as surfaceInkDeclarations, C as SURFACE_INK_CSS_VARS, F as cssVarValue, L as rgbColorValue, M as surfaceInkValue, O as surfaceForegroundValue, S as SURFACE_FOREGROUND_CSS_VARS, et as parseThemeColorToken, k as surfaceForegroundValueWithOpacity, x as DEFAULT_SURFACE_TEXT_COLOR } from "./types-C_S0pWbR.mjs";
|
|
2
|
+
import { G as neutralInk, H as resolveConcreteColorHex, R as compositeHex, U as resolveOpaqueSurfaceHex, at as solidPaint, et as ORDINARY_TEXT_MIN_CONTRAST_RATIO, k as SURFACE_SECONDARY_TEXT_TINT_ALPHA, tt as contrastRatio } from "./resolveButtonColourStates-BMtAAPzp.mjs";
|
|
3
|
+
import { H as solveSurfaceInks, R as resolveSurfaceForeground, S as BUTTON_LABEL_CLASS, i as prepareSurfaceIndex, j as actionVariableFallback, s as resolveSurface, z as safeTokenOr } from "./accessibleSurfaces-CAcf1lHT.mjs";
|
|
4
|
+
import { t as generateLookMediaFrameCss, tn as opaqueSurfaceDeclarations } from "./lookMediaFrame-EFws7tAj.mjs";
|
|
5
|
+
import { c as customCssRuleSchema, s as blockCustomCssRuleSchema } from "./schema-DGaihVwp.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region ../theme-core/src/cards/decorations.ts
|
|
@@ -419,7 +419,16 @@ const opaquePanels = [
|
|
|
419
419
|
}
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
|
-
selector: "[data-block=\"gifting\"] .gifting-panel",
|
|
422
|
+
selector: "[data-block=\"gifting\"] .gifting-group[data-slot=\"panel\"]:not([data-surface=\"section\"])",
|
|
423
|
+
contract: "full-surface",
|
|
424
|
+
paint: {
|
|
425
|
+
kind: "solid",
|
|
426
|
+
token: "surface"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
selector: "[data-block=\"gifting\"] .gifting-group:not([data-slot])",
|
|
431
|
+
contract: "full-surface",
|
|
423
432
|
paint: {
|
|
424
433
|
kind: "solid",
|
|
425
434
|
token: "surface"
|
|
@@ -463,7 +472,7 @@ function generateOpaquePanelCss(input) {
|
|
|
463
472
|
preparedSurfaces: index
|
|
464
473
|
};
|
|
465
474
|
return panels.map(({ panel, styledBar, spec }) => {
|
|
466
|
-
const declarations = [...opaqueSurfaceDeclarations(resolveSurface(spec, surface)).filter((declaration) => !("contract" in panel) || Object.values(SURFACE_INK_CSS_VARS).some((variable) => declaration.startsWith(`${variable}:`))), ...styledBar ? bookingBarDeclarations(styledBar) : []];
|
|
475
|
+
const declarations = [...opaqueSurfaceDeclarations(resolveSurface(spec, surface), "contract" in panel && panel.contract === "full-surface").filter((declaration) => !("contract" in panel) || panel.contract !== "inks-only" || Object.values(SURFACE_INK_CSS_VARS).some((variable) => declaration.startsWith(`${variable}:`))), ...styledBar ? bookingBarDeclarations(styledBar) : []];
|
|
467
476
|
return `:where([data-theme-scope="${input.themeId}"]) ${panel.selector} {\n ${renderCssDeclarations(declarations)}\n}`;
|
|
468
477
|
}).join("\n\n");
|
|
469
478
|
}
|
|
@@ -843,11 +852,24 @@ function getResponsiveScopeSpec(mode = DEFAULT_THEME_RESPONSIVE_MODE) {
|
|
|
843
852
|
selector: `[${THEME_RESPONSIVE_MODE_ATTR}="viewport"]`
|
|
844
853
|
};
|
|
845
854
|
}
|
|
855
|
+
function getContainerResponsiveScopeSpec() {
|
|
856
|
+
return {
|
|
857
|
+
kind: "container",
|
|
858
|
+
selector: `[${THEME_RESPONSIVE_MODE_ATTR}="container"]`,
|
|
859
|
+
containerName: THEME_RESPONSIVE_CONTAINER_NAME
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
function buildResponsiveScopeRule(spec, css) {
|
|
863
|
+
return `${buildResponsiveScopePrelude(spec)}\n${css.trim()}\n}`;
|
|
864
|
+
}
|
|
865
|
+
function buildResponsiveScopePrelude(spec) {
|
|
866
|
+
return `@scope (${spec.selector}) to (:scope [${THEME_RESPONSIVE_MODE_ATTR}]) {`;
|
|
867
|
+
}
|
|
846
868
|
function escapeRegExp(value) {
|
|
847
869
|
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
848
870
|
}
|
|
849
|
-
new RegExp(buildResponsiveScopeRulePatternSource(), "g");
|
|
850
|
-
new RegExp(buildResponsiveScopeRulePatternSource(), "y");
|
|
871
|
+
const RESPONSIVE_SCOPE_RULE_PATTERN = new RegExp(buildResponsiveScopeRulePatternSource(), "g");
|
|
872
|
+
const RESPONSIVE_SCOPE_RULE_AT_PATTERN = new RegExp(buildResponsiveScopeRulePatternSource(), "y");
|
|
851
873
|
function buildResponsiveScopeRulePatternSource() {
|
|
852
874
|
return [
|
|
853
875
|
"@scope",
|
|
@@ -861,6 +883,19 @@ function buildResponsiveScopeRulePatternSource() {
|
|
|
861
883
|
"\\{"
|
|
862
884
|
].join("\\s*");
|
|
863
885
|
}
|
|
886
|
+
function findResponsiveScopeRuleAt(css, index) {
|
|
887
|
+
RESPONSIVE_SCOPE_RULE_AT_PATTERN.lastIndex = index;
|
|
888
|
+
if (!RESPONSIVE_SCOPE_RULE_AT_PATTERN.exec(css)) return null;
|
|
889
|
+
return { openBraceIndex: RESPONSIVE_SCOPE_RULE_AT_PATTERN.lastIndex - 1 };
|
|
890
|
+
}
|
|
891
|
+
function hasResponsiveScopeRule(css) {
|
|
892
|
+
RESPONSIVE_SCOPE_RULE_PATTERN.lastIndex = 0;
|
|
893
|
+
return RESPONSIVE_SCOPE_RULE_PATTERN.test(css);
|
|
894
|
+
}
|
|
895
|
+
function retargetResponsiveScopeRules(css, spec) {
|
|
896
|
+
RESPONSIVE_SCOPE_RULE_PATTERN.lastIndex = 0;
|
|
897
|
+
return css.replace(RESPONSIVE_SCOPE_RULE_PATTERN, buildResponsiveScopePrelude(spec));
|
|
898
|
+
}
|
|
864
899
|
//#endregion
|
|
865
900
|
//#region ../theme-core/src/status/statusTones.ts
|
|
866
901
|
/**
|
|
@@ -1348,6 +1383,7 @@ function generateFontWidthCss(root, typography) {
|
|
|
1348
1383
|
].map((level) => rule(`${root} :where(${level})`, typography.headings[level]?.width)),
|
|
1349
1384
|
rule(`${root} :where(h1.rb-heading-level-2)`, typography.headings.h2?.width ?? headingWidth),
|
|
1350
1385
|
`${root} :where(h1, h2, h3, h4, h5, h6) :where(span) { font-stretch: inherit; }`,
|
|
1386
|
+
`${root} :where(.${BUTTON_LABEL_CLASS}, .${BUTTON_LABEL_CLASS} span) { font-stretch: inherit; }`,
|
|
1351
1387
|
rule(`${root} :where(.rb-eyebrow)`, typography.eyebrow ? typography.eyebrow.width ?? 100 : bodyWidth)
|
|
1352
1388
|
].filter(Boolean).join("\n");
|
|
1353
1389
|
}
|
|
@@ -2041,4 +2077,4 @@ function ThemeScopeCore({ cssVars, dataAttrs, responsiveMode = DEFAULT_THEME_RES
|
|
|
2041
2077
|
});
|
|
2042
2078
|
}
|
|
2043
2079
|
//#endregion
|
|
2044
|
-
export {
|
|
2080
|
+
export { generateCheckableCss as A, INPUT_GROUP_ERROR_SELECTOR as C, INPUT_EDGE_COLOR_VAR as D, generateInputGroupCss as E, generateShadowCssVars as F, renderCssDeclarations as I, cardBorderDeclarations as L, RESOLVED_BUTTON_DISABLED_DECLARATIONS as M, resolvedButtonColourDeclarations as N, INPUT_ERROR_BORDER_COLOR_VAR as O, resolvedButtonFocusDeclarations as P, cardDecorationPseudoRules as R, retargetResponsiveScopeRules as S, INPUT_GROUP_SELECTOR as T, buildResponsiveScopeRule as _, escapeStyleContent as a, getResponsiveScopeSpec as b, parseBlockCustomCssRules as c, generateBlockCustomVarsCss as d, generateTypographyCss as f, THEME_RESPONSIVE_CONTAINER_NAME as g, DEFAULT_THEME_RESPONSIVE_MODE as h, compileCustomCssRules as i, generateOpaquePanelCss as j, inputEdgeColorValue as k, parseCustomCssRules as l, generateStatusCss as m, THEME_RADIUS_CSS_VARS as n, prefixSelector as o, generateProgressCss as p, compileBlockCustomCssRules as r, toKebabCase as s, ThemeScopeCore as t, generateAllBlockVarsCss as u, findResponsiveScopeRuleAt as v, INPUT_GROUP_FOCUS_SELECTOR as w, hasResponsiveScopeRule as x, getContainerResponsiveScopeSpec as y };
|