@riverbankcms/sdk 0.182.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-Bvw2bUif.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
- package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-CEqZJZEE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
- package/dist/_dts/{client-D6T430bk.d.ts → client-B_B_amKD.d.ts} +2 -1
- package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
- package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
- package/dist/_dts/{index-CEyYMhLJ.d.ts → index-BOpUh8kO.d.ts} +1 -1
- package/dist/_dts/{index-DIU-wL1M.d.ts → index-Bizdaxji.d.ts} +2 -2
- package/dist/_dts/{index-Cqxis-nv.d.ts → index-BxCmCit0.d.ts} +1 -1
- package/dist/_dts/{index-CQrb3Ccc.d.ts → index-CjAkEWAp.d.ts} +4 -4
- package/dist/_dts/{index-DqPKdeTk.d.ts → index-iuFrbIjt.d.ts} +1 -1
- package/dist/_dts/{index-CciRW_w1.d.ts → index-liuhlOX7.d.ts} +2 -2
- package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
- package/dist/_dts/{request-DEwxUSw8.d.ts → request-Gn0O1blj.d.ts} +24912 -23733
- package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DTwklC_v.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-DtQuFlID.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
- package/dist/_dts/{types-B3RjeBLV.d.ts → types-BoITy0rA.d.ts} +41 -4
- package/dist/_dts/{types-BvUSGQrw.d.ts → types-DBNuMtSk.d.ts} +16 -5
- package/dist/_dts/{types-CkRFtBqd.d.ts → types-DHMcuoeQ.d.ts} +7 -7
- package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-BIPO-XlE.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
- package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
- package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +25 -8
- package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
- package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
- package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
- package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
- package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-Fr2qi2C2.mjs} +29 -14
- package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
- package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
- package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-COuEJzbO.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +21 -42
- package/dist/client/{Page-sV6BJkXX.mjs → Page-CgbQZP5g.mjs} +2786 -927
- package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
- package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
- package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DyXoI3ob.mjs} +7 -7
- package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
- package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-wj4Rloo5.mjs} +336 -119
- package/dist/client/{accordion-6cuswD_s.mjs → accordion-BVXfjnh-.mjs} +1 -1
- package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-DycPGtke.mjs} +191 -71
- package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
- package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
- package/dist/client/{carousel-CGyQVV1M.mjs → carousel-DyCLMP8s.mjs} +2 -2
- package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DffP_Nv0.mjs} +1 -1
- package/dist/client/{cart-BYOe7MCh.mjs → cart-BuEp_cj4.mjs} +3 -3
- package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-CAO39uDG.mjs} +1 -1
- package/dist/client/{checkout-Dwd7Di77.mjs → checkout-BoxzT64s.mjs} +3 -3
- package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
- package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
- package/dist/client/client.mjs +446 -93
- package/dist/client/{constants-DdxFG3Ic.mjs → constants-C_8AxMdm.mjs} +1 -1
- package/dist/client/{context-Hi1RuYEM.mjs → context-D1L0pe__.mjs} +2 -2
- package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
- package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
- package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
- package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
- package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-aTLifOX7.mjs} +4 -4
- package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
- package/dist/client/{form-DWnlEVSK.mjs → form-Dikmc2AO.mjs} +3 -3
- package/dist/client/{form.client-D7zmeqNI.mjs → form.client-zHaQK5I9.mjs} +5 -5
- package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-BLl9n8TH.mjs} +3 -3
- package/dist/client/gifting/client.mjs +16 -9
- package/dist/client/{gifting-Cn0jidP5.mjs → gifting-CufPM38H.mjs} +4 -4
- package/dist/client/{gifting.client-DVo1YFLs.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-DjQuj_6v.mjs → headerSection-BIaBpmk3.mjs} +2 -2
- package/dist/client/{noop-jesvJXEE.mjs → islands-DJDLGQEm.mjs} +14007 -6685
- package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
- package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +226 -195
- package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
- package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
- package/dist/client/portal/client.mjs +31 -27
- package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
- package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DTHlWg_F.mjs} +22 -7
- package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
- package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
- package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-DhZAwo60.mjs} +3 -3
- package/dist/client/{productList-BuLemmod.mjs → productList-BiVpbZK2.mjs} +3 -3
- package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
- package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-C3OBRg7x.mjs} +2027 -781
- 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-Bnng7JFA.mjs → richText-coerce-ms477Z08.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
- package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
- package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
- package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
- package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
- package/dist/client/{shop-GuMqnDL-.mjs → shop-xt4dQ3HH.mjs} +3 -3
- package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
- package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-DS8t6749.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-Dy3nNfTG.mjs} +11 -8
- package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
- package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
- package/dist/client/{view-DOyZc-DF.mjs → view-4gnPcpWJ.mjs} +24 -9
- package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-DDvL3iza.mjs} +76 -159
- 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-BI3UCdpu.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
- package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3864 -1943
- package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
- package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
- package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +12 -8
- 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-BgiYk3PB.mjs → previewAssistantSlot-CqH91EwA.mjs} +17988 -6757
- package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
- package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.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-BHTBA48n.mjs → route-contract-Ch0X99vE.mjs} +163 -17
- package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-B2FmczLO.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DtAyv9qA.mjs} +17 -7
- package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-BtPqb76u.mjs} +418 -31
- package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
- package/dist/server/{bindings-DMJH4bvo.mjs → bindings-B_9JuU66.mjs} +7 -7
- package/dist/server/{client-DrwlRNAH.mjs → client-DC7cjiSw.mjs} +469 -92
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-CeMywaiD.mjs → constants-d6nPNJpe.mjs} +22 -6
- package/dist/server/{customCss-C9kgPHvr.mjs → customCss-rtIfEYwQ.mjs} +1 -18
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{expandPalette-ehuW8r2g.mjs → expandPalette-DxPrNOAB.mjs} +182 -90
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-D0prFflT.mjs → loadContent-hb27HYic.mjs} +11 -10
- package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-JToD8wDD.mjs} +3 -3
- package/dist/server/{lookMediaFrame-H0fi4bJk.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-wrcuWmgp.mjs → navigation-B2WhGofA.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +8 -8
- package/dist/server/{overrideResolution-DUgCEH8z.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +86 -97
- package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
- package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-m80Xu2pd.mjs} +429 -247
- package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
- package/dist/server/{portal-pG_uhsI2.mjs → portal-B2wCQno_.mjs} +1 -1
- package/dist/server/portal.mjs +2 -2
- package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-BWIkFaXq.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
- package/dist/server/{registry-Cc88-23f.mjs → registry-KtsOsAzY.mjs} +20113 -9774
- 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-OG3KOkig.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-BcFuhhD7.mjs → servicePageContent-ChEZDRwU.mjs} +37 -14
- package/dist/server/theme-bridge.mjs +3 -3
- 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-BovmbS8N.mjs → validation-Cvi-1TZZ.mjs} +13 -9
- package/dist/server/{version-hws4hgyX.mjs → version-B-icAIV1.mjs} +1 -1
- package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
- package/dist/styles/index.css +2482 -108
- 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
|
@@ -629,6 +629,398 @@ const letterSpacingSchema = z.enum([
|
|
|
629
629
|
"wide"
|
|
630
630
|
]);
|
|
631
631
|
//#endregion
|
|
632
|
+
//#region ../site-contracts/src/theme/buttonParts.ts
|
|
633
|
+
/**
|
|
634
|
+
* Button parts: what a recipe may draw beyond the button's own box.
|
|
635
|
+
*
|
|
636
|
+
* A recipe state can dress four parts: the button itself (`self`), its label
|
|
637
|
+
* span (`label`), and the two pseudo-elements (`before`, `after`). Each part is
|
|
638
|
+
* a map of CSS declarations from a closed property list. Values are written in
|
|
639
|
+
* a small closed grammar: numbers with units, a fixed list of keywords and
|
|
640
|
+
* functions, and paint placeholders. No colour can be written literally, so
|
|
641
|
+
* every colour a part paints comes from the button's resolved state colours,
|
|
642
|
+
* the surface's mark colour or a named palette token.
|
|
643
|
+
*
|
|
644
|
+
* Placeholders:
|
|
645
|
+
* {ink} the label colour of whichever state is showing
|
|
646
|
+
* {ink:hover} the resolved label colour of a named state
|
|
647
|
+
* {fill:hover} the resolved fill of a named state (transparent for a surface treatment)
|
|
648
|
+
* {token:accent} a palette colour, for decoration only
|
|
649
|
+
* {mark} the surface's mark colour (falls back to the accent)
|
|
650
|
+
* {label} the button's label text, for `content`
|
|
651
|
+
* {shape:Name} a mask shape from the button shape registry
|
|
652
|
+
* {key:name} one of the variant's declared keyframes
|
|
653
|
+
*/
|
|
654
|
+
const BUTTON_PART_NAMES = [
|
|
655
|
+
"self",
|
|
656
|
+
"label",
|
|
657
|
+
"before",
|
|
658
|
+
"after"
|
|
659
|
+
];
|
|
660
|
+
const MOTION_PROPERTIES = [
|
|
661
|
+
"transform",
|
|
662
|
+
"transform-origin",
|
|
663
|
+
"translate",
|
|
664
|
+
"rotate",
|
|
665
|
+
"scale",
|
|
666
|
+
"opacity",
|
|
667
|
+
"transition",
|
|
668
|
+
"animation",
|
|
669
|
+
"filter"
|
|
670
|
+
];
|
|
671
|
+
const BOX_PROPERTIES = [
|
|
672
|
+
"position",
|
|
673
|
+
"inset",
|
|
674
|
+
"top",
|
|
675
|
+
"right",
|
|
676
|
+
"bottom",
|
|
677
|
+
"left",
|
|
678
|
+
"width",
|
|
679
|
+
"height",
|
|
680
|
+
"min-width",
|
|
681
|
+
"min-height",
|
|
682
|
+
"margin",
|
|
683
|
+
"margin-inline-start",
|
|
684
|
+
"margin-inline-end",
|
|
685
|
+
"padding",
|
|
686
|
+
"padding-bottom",
|
|
687
|
+
"display",
|
|
688
|
+
"align-items",
|
|
689
|
+
"align-self",
|
|
690
|
+
"justify-content",
|
|
691
|
+
"flex",
|
|
692
|
+
"z-index",
|
|
693
|
+
"overflow",
|
|
694
|
+
"pointer-events",
|
|
695
|
+
"clip-path",
|
|
696
|
+
"border-radius",
|
|
697
|
+
"background",
|
|
698
|
+
"background-color",
|
|
699
|
+
"background-image",
|
|
700
|
+
"background-size",
|
|
701
|
+
"background-position",
|
|
702
|
+
"background-repeat",
|
|
703
|
+
"box-shadow",
|
|
704
|
+
"mask",
|
|
705
|
+
"mask-position",
|
|
706
|
+
"mask-composite",
|
|
707
|
+
"backdrop-filter",
|
|
708
|
+
"color",
|
|
709
|
+
"white-space",
|
|
710
|
+
"text-shadow"
|
|
711
|
+
];
|
|
712
|
+
const BUTTON_PART_PROPERTIES = {
|
|
713
|
+
self: [
|
|
714
|
+
...MOTION_PROPERTIES,
|
|
715
|
+
"position",
|
|
716
|
+
"isolation",
|
|
717
|
+
"overflow",
|
|
718
|
+
"backdrop-filter",
|
|
719
|
+
"text-shadow",
|
|
720
|
+
"letter-spacing",
|
|
721
|
+
"font-variant-caps",
|
|
722
|
+
"font-stretch",
|
|
723
|
+
"white-space",
|
|
724
|
+
"line-height",
|
|
725
|
+
"min-height",
|
|
726
|
+
"gap",
|
|
727
|
+
"text-decoration-line",
|
|
728
|
+
"text-decoration-thickness",
|
|
729
|
+
"text-underline-offset"
|
|
730
|
+
],
|
|
731
|
+
label: [
|
|
732
|
+
...MOTION_PROPERTIES,
|
|
733
|
+
...BOX_PROPERTIES,
|
|
734
|
+
"word-spacing"
|
|
735
|
+
],
|
|
736
|
+
before: [
|
|
737
|
+
...MOTION_PROPERTIES,
|
|
738
|
+
...BOX_PROPERTIES,
|
|
739
|
+
"content"
|
|
740
|
+
],
|
|
741
|
+
after: [
|
|
742
|
+
...MOTION_PROPERTIES,
|
|
743
|
+
...BOX_PROPERTIES,
|
|
744
|
+
"content"
|
|
745
|
+
]
|
|
746
|
+
};
|
|
747
|
+
const KEYFRAME_PROPERTIES = [
|
|
748
|
+
"transform",
|
|
749
|
+
"translate",
|
|
750
|
+
"rotate",
|
|
751
|
+
"scale",
|
|
752
|
+
"opacity",
|
|
753
|
+
"border-radius",
|
|
754
|
+
"clip-path",
|
|
755
|
+
"background-position",
|
|
756
|
+
"background-size",
|
|
757
|
+
"mask-position",
|
|
758
|
+
"filter",
|
|
759
|
+
"animation-timing-function"
|
|
760
|
+
];
|
|
761
|
+
const UNITS = [
|
|
762
|
+
"",
|
|
763
|
+
"px",
|
|
764
|
+
"em",
|
|
765
|
+
"rem",
|
|
766
|
+
"%",
|
|
767
|
+
"ms",
|
|
768
|
+
"s",
|
|
769
|
+
"deg",
|
|
770
|
+
"fr"
|
|
771
|
+
];
|
|
772
|
+
/** Every bare word a value may contain. Colour names are deliberately absent. */
|
|
773
|
+
const KEYWORDS = /* @__PURE__ */ new Set([
|
|
774
|
+
"none",
|
|
775
|
+
"auto",
|
|
776
|
+
"inherit",
|
|
777
|
+
"initial",
|
|
778
|
+
"normal",
|
|
779
|
+
"absolute",
|
|
780
|
+
"relative",
|
|
781
|
+
"static",
|
|
782
|
+
"hidden",
|
|
783
|
+
"visible",
|
|
784
|
+
"isolate",
|
|
785
|
+
"block",
|
|
786
|
+
"inline-block",
|
|
787
|
+
"inline-flex",
|
|
788
|
+
"flex",
|
|
789
|
+
"grid",
|
|
790
|
+
"center",
|
|
791
|
+
"stretch",
|
|
792
|
+
"flex-start",
|
|
793
|
+
"flex-end",
|
|
794
|
+
"start",
|
|
795
|
+
"end",
|
|
796
|
+
"nowrap",
|
|
797
|
+
"underline",
|
|
798
|
+
"transparent",
|
|
799
|
+
"top",
|
|
800
|
+
"right",
|
|
801
|
+
"bottom",
|
|
802
|
+
"left",
|
|
803
|
+
"no-repeat",
|
|
804
|
+
"repeat-x",
|
|
805
|
+
"repeat-y",
|
|
806
|
+
"repeat",
|
|
807
|
+
"content-box",
|
|
808
|
+
"border-box",
|
|
809
|
+
"padding-box",
|
|
810
|
+
"exclude",
|
|
811
|
+
"cover",
|
|
812
|
+
"contain",
|
|
813
|
+
"to",
|
|
814
|
+
"from",
|
|
815
|
+
"at",
|
|
816
|
+
"in",
|
|
817
|
+
"srgb",
|
|
818
|
+
"oklab",
|
|
819
|
+
"circle",
|
|
820
|
+
"closest-side",
|
|
821
|
+
"farthest-side",
|
|
822
|
+
"all",
|
|
823
|
+
"ease",
|
|
824
|
+
"ease-in",
|
|
825
|
+
"ease-out",
|
|
826
|
+
"ease-in-out",
|
|
827
|
+
"linear",
|
|
828
|
+
"step-end",
|
|
829
|
+
"step-start",
|
|
830
|
+
"infinite",
|
|
831
|
+
"alternate",
|
|
832
|
+
"both",
|
|
833
|
+
"forwards",
|
|
834
|
+
"backwards",
|
|
835
|
+
"all-small-caps",
|
|
836
|
+
"small-caps",
|
|
837
|
+
"transform",
|
|
838
|
+
"translate",
|
|
839
|
+
"rotate",
|
|
840
|
+
"scale",
|
|
841
|
+
"opacity",
|
|
842
|
+
"filter",
|
|
843
|
+
"clip-path",
|
|
844
|
+
"inset",
|
|
845
|
+
"color",
|
|
846
|
+
"background-color",
|
|
847
|
+
"background-size",
|
|
848
|
+
"background-position",
|
|
849
|
+
"box-shadow",
|
|
850
|
+
"border-radius",
|
|
851
|
+
"text-shadow",
|
|
852
|
+
"width",
|
|
853
|
+
"height",
|
|
854
|
+
"bottom",
|
|
855
|
+
"mask-position",
|
|
856
|
+
"backdrop-filter",
|
|
857
|
+
"text-decoration-thickness",
|
|
858
|
+
"text-underline-offset",
|
|
859
|
+
"calc",
|
|
860
|
+
"translateX",
|
|
861
|
+
"translateY",
|
|
862
|
+
"scaleX",
|
|
863
|
+
"scaleY",
|
|
864
|
+
"skewX",
|
|
865
|
+
"polygon",
|
|
866
|
+
"cubic-bezier",
|
|
867
|
+
"steps",
|
|
868
|
+
"linear-gradient",
|
|
869
|
+
"radial-gradient",
|
|
870
|
+
"repeating-linear-gradient",
|
|
871
|
+
"repeating-conic-gradient",
|
|
872
|
+
"conic-gradient",
|
|
873
|
+
"color-mix",
|
|
874
|
+
"blur",
|
|
875
|
+
"brightness",
|
|
876
|
+
"saturate"
|
|
877
|
+
]);
|
|
878
|
+
/**
|
|
879
|
+
* The mask shapes a part may name with `{shape:Name}`: the affordance icons and
|
|
880
|
+
* the filled shapes. theme-core draws them (`buttonShapeMaskUrl`), and its tests
|
|
881
|
+
* check that every name here has a drawing.
|
|
882
|
+
*/
|
|
883
|
+
const BUTTON_SHAPE_IDS = [
|
|
884
|
+
"ArrowRight",
|
|
885
|
+
"ArrowLeft",
|
|
886
|
+
"ChevronRight",
|
|
887
|
+
"ChevronLeft",
|
|
888
|
+
"ChevronDown",
|
|
889
|
+
"ArrowUpRight",
|
|
890
|
+
"Wave"
|
|
891
|
+
];
|
|
892
|
+
function isButtonShapeId(value) {
|
|
893
|
+
return value !== void 0 && BUTTON_SHAPE_IDS.includes(value);
|
|
894
|
+
}
|
|
895
|
+
const PAINT_STATES = [
|
|
896
|
+
"base",
|
|
897
|
+
"hover",
|
|
898
|
+
"active",
|
|
899
|
+
"disabled"
|
|
900
|
+
];
|
|
901
|
+
const TOKEN_PATTERN = /\{[^{}]*\}|-?(?:\d+\.?\d*|\.\d+)[a-z%]*|[a-zA-Z][a-zA-Z0-9-]*|[ ,()/+*-]/g;
|
|
902
|
+
const NUMBER_PATTERN = /^-?(?:\d+\.?\d*|\.\d+)([a-z%]*)$/;
|
|
903
|
+
const NAME_PATTERN = /^[a-z][a-z0-9-]{0,39}$/;
|
|
904
|
+
function isPaintState(value) {
|
|
905
|
+
return value !== void 0 && PAINT_STATES.includes(value);
|
|
906
|
+
}
|
|
907
|
+
function opaqueToken(argument) {
|
|
908
|
+
const token = parseThemeColorToken(argument);
|
|
909
|
+
if (token === null) return null;
|
|
910
|
+
const parts = parseColorTokenParts(token);
|
|
911
|
+
return parts.kind === "token" && parts.opacityPercent === null ? token : null;
|
|
912
|
+
}
|
|
913
|
+
function bare(token) {
|
|
914
|
+
return (argument) => argument === void 0 ? token : null;
|
|
915
|
+
}
|
|
916
|
+
/** One parser per placeholder kind; each is handed the text after the colon, if any. */
|
|
917
|
+
const PLACEHOLDERS = {
|
|
918
|
+
ink: (argument) => argument === void 0 ? {
|
|
919
|
+
kind: "ink",
|
|
920
|
+
state: null
|
|
921
|
+
} : isPaintState(argument) ? {
|
|
922
|
+
kind: "ink",
|
|
923
|
+
state: argument
|
|
924
|
+
} : null,
|
|
925
|
+
fill: (argument) => isPaintState(argument) ? {
|
|
926
|
+
kind: "fill",
|
|
927
|
+
state: argument
|
|
928
|
+
} : null,
|
|
929
|
+
token: (argument) => {
|
|
930
|
+
const token = opaqueToken(argument);
|
|
931
|
+
return token === null ? null : {
|
|
932
|
+
kind: "token",
|
|
933
|
+
token
|
|
934
|
+
};
|
|
935
|
+
},
|
|
936
|
+
mark: bare({ kind: "mark" }),
|
|
937
|
+
label: bare({ kind: "label" }),
|
|
938
|
+
shape: (argument) => isButtonShapeId(argument) ? {
|
|
939
|
+
kind: "shape",
|
|
940
|
+
id: argument
|
|
941
|
+
} : null,
|
|
942
|
+
key: (argument) => argument !== void 0 && NAME_PATTERN.test(argument) ? {
|
|
943
|
+
kind: "key",
|
|
944
|
+
name: argument
|
|
945
|
+
} : null
|
|
946
|
+
};
|
|
947
|
+
function parsePlaceholder(body) {
|
|
948
|
+
const [kind = "", argument, ...rest] = body.split(":");
|
|
949
|
+
const parse = Object.prototype.hasOwnProperty.call(PLACEHOLDERS, kind) ? PLACEHOLDERS[kind] : void 0;
|
|
950
|
+
return rest.length > 0 || parse === void 0 ? null : parse(argument);
|
|
951
|
+
}
|
|
952
|
+
function isAllowedWord(text) {
|
|
953
|
+
const number = NUMBER_PATTERN.exec(text);
|
|
954
|
+
if (number) return UNITS.includes(number[1] ?? "");
|
|
955
|
+
return !/^[a-zA-Z]/.test(text) || KEYWORDS.has(text);
|
|
956
|
+
}
|
|
957
|
+
function parsePiece(text) {
|
|
958
|
+
if (text.startsWith("{")) return parsePlaceholder(text.slice(1, -1));
|
|
959
|
+
return isAllowedWord(text) ? {
|
|
960
|
+
kind: "text",
|
|
961
|
+
text
|
|
962
|
+
} : null;
|
|
963
|
+
}
|
|
964
|
+
/** Every bracket closes one that was opened, and none is left open: an unclosed one would swallow the `;` and `}` after it. */
|
|
965
|
+
function hasBalancedBrackets(pieces) {
|
|
966
|
+
return pieces.reduce((open, piece) => open < 0 ? open : piece === "(" ? open + 1 : piece === ")" ? open - 1 : open, 0) === 0;
|
|
967
|
+
}
|
|
968
|
+
/** Split a part value into literal text and placeholders; null when it leaves the grammar. */
|
|
969
|
+
function parseButtonPartValue(value) {
|
|
970
|
+
if (value.length === 0 || value.length > 400) return null;
|
|
971
|
+
if (value.includes("/*") || value.includes("*/")) return null;
|
|
972
|
+
const pieces = [...value.matchAll(TOKEN_PATTERN)].map((match) => match[0]);
|
|
973
|
+
if (pieces.join("") !== value || !hasBalancedBrackets(pieces)) return null;
|
|
974
|
+
const tokens = pieces.map(parsePiece);
|
|
975
|
+
return tokens.every((token) => token !== null) ? tokens : null;
|
|
976
|
+
}
|
|
977
|
+
const partValueSchema = z.string().refine((value) => parseButtonPartValue(value) !== null, { message: "Button part values use numbers, the listed keywords and paint placeholders only" });
|
|
978
|
+
function declarationsSchema(properties) {
|
|
979
|
+
return z.record(z.string(), partValueSchema).superRefine((declarations, ctx) => {
|
|
980
|
+
Object.entries(declarations).forEach(([property, value]) => {
|
|
981
|
+
if (!properties.includes(property)) {
|
|
982
|
+
ctx.addIssue({
|
|
983
|
+
code: "custom",
|
|
984
|
+
path: [property],
|
|
985
|
+
message: `"${property}" is not a property this button part may set`
|
|
986
|
+
});
|
|
987
|
+
return;
|
|
988
|
+
}
|
|
989
|
+
if ((parseButtonPartValue(value)?.some((token) => token.kind === "label") ?? false) !== (property === "content")) ctx.addIssue({
|
|
990
|
+
code: "custom",
|
|
991
|
+
path: [property],
|
|
992
|
+
message: "`content` takes {label}, and nothing else does"
|
|
993
|
+
});
|
|
994
|
+
});
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
const buttonPartsSchema = z.strictObject({
|
|
998
|
+
self: declarationsSchema(BUTTON_PART_PROPERTIES.self).optional(),
|
|
999
|
+
label: declarationsSchema(BUTTON_PART_PROPERTIES.label).optional(),
|
|
1000
|
+
before: declarationsSchema(BUTTON_PART_PROPERTIES.before).optional(),
|
|
1001
|
+
after: declarationsSchema(BUTTON_PART_PROPERTIES.after).optional()
|
|
1002
|
+
});
|
|
1003
|
+
/** One layer of a state's box-shadow. Lengths are pixels; `paint` is a part value. */
|
|
1004
|
+
const buttonShadowLayerSchema = z.strictObject({
|
|
1005
|
+
inset: z.literal(true).optional(),
|
|
1006
|
+
x: z.number().finite().min(-64).max(64),
|
|
1007
|
+
y: z.number().finite().min(-64).max(64),
|
|
1008
|
+
blur: z.number().finite().min(0).max(96),
|
|
1009
|
+
spread: z.number().finite().min(-48).max(48),
|
|
1010
|
+
paint: partValueSchema
|
|
1011
|
+
});
|
|
1012
|
+
/** Named keyframes a variant's parts may run, e.g. `animation: {key:sweep} 900ms ease 1 both`. */
|
|
1013
|
+
const buttonKeyframesSchema = z.record(z.string().regex(NAME_PATTERN), z.record(z.string().regex(/^(?:from|to|\d{1,3}(?:\.\d{1,2})?%)$/), declarationsSchema(KEYFRAME_PROPERTIES)));
|
|
1014
|
+
/**
|
|
1015
|
+
* A free border radius: one to four lengths or percentages, optionally a
|
|
1016
|
+
* second set after a slash. Tailwind radius tokens stay valid beside it.
|
|
1017
|
+
*/
|
|
1018
|
+
const RADIUS_LENGTH = String.raw`(?:0|\d+(?:\.\d+)?(?:px|rem|em|%))`;
|
|
1019
|
+
const FREE_RADIUS_PATTERN = new RegExp(String.raw`^${RADIUS_LENGTH}(?: ${RADIUS_LENGTH}){0,3}(?: \/ ${RADIUS_LENGTH}(?: ${RADIUS_LENGTH}){0,3})?$`);
|
|
1020
|
+
function isFreeButtonRadius(value) {
|
|
1021
|
+
return FREE_RADIUS_PATTERN.test(value);
|
|
1022
|
+
}
|
|
1023
|
+
//#endregion
|
|
632
1024
|
//#region ../site-contracts/src/theme/buttons.ts
|
|
633
1025
|
/**
|
|
634
1026
|
* Canonical persisted/CSS-safe button variant identifier.
|
|
@@ -810,10 +1202,25 @@ const prioritySchema = z.union([
|
|
|
810
1202
|
z.literal(2),
|
|
811
1203
|
z.literal(3)
|
|
812
1204
|
]);
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
1205
|
+
/**
|
|
1206
|
+
* What a role becomes on a ground where its own colours fail.
|
|
1207
|
+
* `surface-outline` is an outline in the ground's ink that fills on hover.
|
|
1208
|
+
* `surface-solid` is its mirror: filled with the ground's ink. Its hover either
|
|
1209
|
+
* keeps that fill (`steady`, for a button whose hover is movement or decoration)
|
|
1210
|
+
* or takes the ground's own colour (`swap`, for a button whose hover is a change
|
|
1211
|
+
* of fill). Both kinds use the surface's checked colour pair.
|
|
1212
|
+
*/
|
|
1213
|
+
const buttonSurfaceFallbackSchema = z.discriminatedUnion("kind", [
|
|
1214
|
+
z.strictObject({ kind: z.literal("surface-outline") }),
|
|
1215
|
+
z.strictObject({
|
|
1216
|
+
kind: z.literal("surface-solid"),
|
|
1217
|
+
hover: z.enum(["steady", "swap"])
|
|
1218
|
+
}),
|
|
1219
|
+
z.strictObject({
|
|
1220
|
+
kind: z.literal("variant"),
|
|
1221
|
+
role: variantRoleSchema
|
|
1222
|
+
})
|
|
1223
|
+
]);
|
|
817
1224
|
const buttonSurfacePolicyShape = Object.fromEntries(VARIANT_ROLES.map((role) => [role, z.array(buttonSurfaceFallbackSchema).max(VARIANT_ROLES.length)]));
|
|
818
1225
|
const buttonSurfacePolicySchema = z.strictObject(buttonSurfacePolicyShape);
|
|
819
1226
|
/**
|
|
@@ -956,9 +1363,13 @@ const buttonVisualAppearanceSchema = z.strictObject({
|
|
|
956
1363
|
}),
|
|
957
1364
|
effects: z.array(buttonEffectApplicationSchema),
|
|
958
1365
|
transform: z.literal("none").optional(),
|
|
959
|
-
contextualHover: contextualButtonHoverSchema.optional()
|
|
1366
|
+
contextualHover: contextualButtonHoverSchema.optional(),
|
|
1367
|
+
/** The state's whole box-shadow, as layers. `shadow` stays flat beside it. */
|
|
1368
|
+
shadowLayers: z.array(buttonShadowLayerSchema).max(4).optional(),
|
|
1369
|
+
/** Declarations for the button, its label span and its two pseudo-elements. See buttonParts.ts. */
|
|
1370
|
+
parts: buttonPartsSchema.optional()
|
|
960
1371
|
});
|
|
961
|
-
const
|
|
1372
|
+
const buttonVisualStatesObjectSchema = z.strictObject({
|
|
962
1373
|
base: buttonVisualAppearanceSchema.extend({ shadow: variantShadowSchema }),
|
|
963
1374
|
hover: buttonVisualAppearanceSchema.extend({ shadow: variantShadowSchema }),
|
|
964
1375
|
focus: buttonVisualAppearanceSchema.extend({
|
|
@@ -972,6 +1383,46 @@ const buttonVisualStatesSchema = z.strictObject({
|
|
|
972
1383
|
active: buttonVisualAppearanceSchema.extend({ shadow: variantShadowSchema }),
|
|
973
1384
|
disabled: buttonVisualAppearanceSchema.extend({ shadow: variantShadowSchema })
|
|
974
1385
|
});
|
|
1386
|
+
const BUTTON_STATE_NAMES = [
|
|
1387
|
+
"base",
|
|
1388
|
+
"hover",
|
|
1389
|
+
"focus",
|
|
1390
|
+
"active",
|
|
1391
|
+
"disabled"
|
|
1392
|
+
];
|
|
1393
|
+
/**
|
|
1394
|
+
* Parts are explicit like everything else in a recipe: a part declared in one
|
|
1395
|
+
* state is declared in all five, with the same properties, so no state inherits
|
|
1396
|
+
* a value from another. Shadow layers replace the flat shadow; they never sit on top of one.
|
|
1397
|
+
*/
|
|
1398
|
+
const buttonVisualStatesSchema = buttonVisualStatesObjectSchema.superRefine((states, ctx) => {
|
|
1399
|
+
BUTTON_STATE_NAMES.forEach((state) => {
|
|
1400
|
+
const appearance = states[state];
|
|
1401
|
+
if (appearance.shadowLayers && appearance.shadow !== "focus-indicator" && appearance.shadow.elevation !== "none") ctx.addIssue({
|
|
1402
|
+
code: "custom",
|
|
1403
|
+
path: [state, "shadowLayers"],
|
|
1404
|
+
message: "A state with shadow layers declares a flat `shadow`"
|
|
1405
|
+
});
|
|
1406
|
+
});
|
|
1407
|
+
BUTTON_PART_NAMES.forEach((part) => {
|
|
1408
|
+
const keys = (state) => {
|
|
1409
|
+
const declarations = states[state].parts?.[part];
|
|
1410
|
+
return declarations === void 0 ? null : Object.keys(declarations).sort().join(" ");
|
|
1411
|
+
};
|
|
1412
|
+
const base = keys("base");
|
|
1413
|
+
BUTTON_STATE_NAMES.forEach((state) => {
|
|
1414
|
+
if (keys(state) !== base) ctx.addIssue({
|
|
1415
|
+
code: "custom",
|
|
1416
|
+
path: [
|
|
1417
|
+
state,
|
|
1418
|
+
"parts",
|
|
1419
|
+
part
|
|
1420
|
+
],
|
|
1421
|
+
message: `The ${part} part must declare the same properties in every state`
|
|
1422
|
+
});
|
|
1423
|
+
});
|
|
1424
|
+
});
|
|
1425
|
+
});
|
|
975
1426
|
const variantEffectsSchema = z.strictObject({
|
|
976
1427
|
base: z.array(buttonEffectApplicationSchema).optional(),
|
|
977
1428
|
hover: z.array(buttonEffectApplicationSchema).optional(),
|
|
@@ -1012,7 +1463,27 @@ const buttonVariantSchema = z.strictObject({
|
|
|
1012
1463
|
contextualHover: contextualButtonHoverSchema.optional(),
|
|
1013
1464
|
effects: variantEffectsSchema.optional(),
|
|
1014
1465
|
sizes: variantSizeOverridesSchema.optional(),
|
|
1015
|
-
affordance: buttonVariantAffordanceSchema.optional()
|
|
1466
|
+
affordance: buttonVariantAffordanceSchema.optional(),
|
|
1467
|
+
keyframes: buttonKeyframesSchema.optional()
|
|
1468
|
+
}).superRefine((variant, ctx) => {
|
|
1469
|
+
const declared = Object.keys(variant.keyframes ?? {});
|
|
1470
|
+
BUTTON_STATE_NAMES.forEach((state) => {
|
|
1471
|
+
Object.entries(variant.visualStates?.[state].parts ?? {}).forEach(([part, declarations]) => {
|
|
1472
|
+
Object.entries(declarations ?? {}).forEach(([property, value]) => {
|
|
1473
|
+
(parseButtonPartValue(value) ?? []).flatMap((token) => token.kind === "key" && !declared.includes(token.name) ? [token.name] : []).forEach((name) => ctx.addIssue({
|
|
1474
|
+
code: "custom",
|
|
1475
|
+
path: [
|
|
1476
|
+
"visualStates",
|
|
1477
|
+
state,
|
|
1478
|
+
"parts",
|
|
1479
|
+
part,
|
|
1480
|
+
property
|
|
1481
|
+
],
|
|
1482
|
+
message: `No keyframes named "${name}" are declared for this variant`
|
|
1483
|
+
}));
|
|
1484
|
+
});
|
|
1485
|
+
});
|
|
1486
|
+
});
|
|
1016
1487
|
});
|
|
1017
1488
|
const buttonSystemSchema = z.strictObject({
|
|
1018
1489
|
global: buttonGlobalSettingsSchema,
|
|
@@ -1082,4 +1553,4 @@ const buttonSizeNameSchema = z.enum([
|
|
|
1082
1553
|
"xl"
|
|
1083
1554
|
]);
|
|
1084
1555
|
//#endregion
|
|
1085
|
-
export {
|
|
1556
|
+
export { parseThemeColorToken as $, surfaceInkDeclarations as A, CSS_LOADING_FUNCTIONS as B, SURFACE_INK_CSS_VARS as C, surfaceForegroundStyle as D, surfaceForegroundInputFromResolved as E, cssVarValue as F, hexColorSchema as G, staysInsideDeclaration as H, mergeStyles as I, paletteColorEntries as J, isThemeColorToken as K, rgbColorValue as L, surfaceInkValue as M, backgroundColorStyle as N, surfaceForegroundValue as O, borderColorStyle as P, parseColorTokenParts as Q, textColorStyle as R, SURFACE_FOREGROUND_CSS_VARS as S, surfaceForegroundDeclarations as T, PALETTE_TOKEN_NAMES as U, callsCssLoadingFunction as V, blockColorTokenNames as W, paletteColorsSchema as X, paletteColorsFromEntries as Y, paletteModeSchema as Z, isFreeButtonRadius as _, createStandardButtonSurfacePolicy as a, VARIANT_ROLES as b, buttonEffectApplicationSchema as c, buttonVariantIdSchema as d, themeColorTokenSchema as et, buttonVisualStatesSchema as f, buttonKeyframesSchema as g, BUTTON_PART_NAMES as h, buttonSizeNameSchema as i, surfaceInkStyle as j, surfaceForegroundValueWithOpacity as k, buttonPressOffsetSchema as l, parseOpaqueButtonColourToken as m, STANDARD_BUTTON_SURFACE_POLICY as n, isVariantRole as o, opaqueButtonColourTokenSchema as p, normalizePaletteHex as q, asSpecialVariantId as r, unsafeAsOpaqueButtonColourToken as s, DEFAULT_VARIANT_ALIAS_ID as t, buttonSystemSchema as u, parseButtonPartValue as v, completeSurfaceForegrounds as w, DEFAULT_SURFACE_TEXT_COLOR as x, SYSTEM_BLOCK_KINDS as y, textColorValue as z };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { f as builtinTransformDefinitions } from "./pageRenderPlan-
|
|
2
|
-
import {
|
|
1
|
+
import { f as builtinTransformDefinitions } from "./pageRenderPlan-CdqJ1NQZ.mjs";
|
|
2
|
+
import { $s as parseMailingListProviderScope, As as blockEditingExtensionShape, Fs as builtInBlockKindsSchema, Is as fieldSchema, Ls as validateManifestLookField, Ns as blockCategoryEnum, Ps as blockLookFieldShape, ks as blockEditingDeclarationShape, t as getBlockDefinition, xs as RESOLVED_INTERNAL_LINK_ENTITY_TYPES } from "./registry-KtsOsAzY.mjs";
|
|
3
3
|
import { c as SUPPORTED_LOADER_ENDPOINTS } from "./responseMedia-IfH65QAH.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { p as customBlockLayoutSchema } from "./typeGuards-DZOaGTEv.mjs";
|
|
5
5
|
import { r as footerModeSchema } from "./mode-bkFS8glh.mjs";
|
|
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-
|
|
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-DybHErxH.mjs";
|
|
7
7
|
import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-Cqp13TKc.mjs";
|
|
8
|
-
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-
|
|
8
|
+
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-D1PHU-K9.mjs";
|
|
9
9
|
import { n as BINDING_TRANSFORM_VALUES$1 } from "./bindings-DhmIW3Er.mjs";
|
|
10
10
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
11
11
|
import { i as safeParseRouteTemplate, t as describeRouteTemplateParseError } from "./routeTemplate-AsKQwa47.mjs";
|
|
@@ -231,11 +231,13 @@ const sdkCustomBlockInputSchema = z.object({
|
|
|
231
231
|
dataLoaders: sdkDataLoadersSchema$1,
|
|
232
232
|
layout: z.optional(customBlockLayoutSchema),
|
|
233
233
|
...sdkBlockPresentationShape,
|
|
234
|
-
...
|
|
234
|
+
...blockLookFieldShape,
|
|
235
|
+
...blockEditingDeclarationShape
|
|
235
236
|
}).superRefine(validateManifestLookField).superRefine(validateSdkBlockDeclaration);
|
|
236
237
|
const sdkBlockFieldExtensionInputSchema = z.object({
|
|
237
238
|
fields: z.array(fieldDefinitionInputSchema).min(1),
|
|
238
|
-
...
|
|
239
|
+
...blockLookFieldShape,
|
|
240
|
+
...blockEditingExtensionShape
|
|
239
241
|
}).superRefine(validateManifestLookField);
|
|
240
242
|
const sdkBlockFieldExtensionsInputSchema = z.record(z.string().min(1), sdkBlockFieldExtensionInputSchema);
|
|
241
243
|
const sdkThemePaletteSchema$1 = z.record(z.string(), z.string());
|
|
@@ -1130,7 +1132,8 @@ const blockFieldOptionsSchema = z.record(z.string().regex(/^(block\.|custom\.)[a
|
|
|
1130
1132
|
*/
|
|
1131
1133
|
const blockFieldExtensionSchema = z.object({
|
|
1132
1134
|
fields: fieldSchema.array().min(1, "At least one field is required"),
|
|
1133
|
-
...
|
|
1135
|
+
...blockLookFieldShape,
|
|
1136
|
+
...blockEditingExtensionShape
|
|
1134
1137
|
}).superRefine(validateManifestLookField).refine((data) => {
|
|
1135
1138
|
return data.fields.every((field) => {
|
|
1136
1139
|
if (!field.required) return true;
|
|
@@ -1246,7 +1249,8 @@ const sdkCustomBlockSchema = z.object({
|
|
|
1246
1249
|
dataLoaders: sdkDataLoadersSchema,
|
|
1247
1250
|
layout: z.optional(customBlockLayoutSchema),
|
|
1248
1251
|
...sdkBlockPresentationShape,
|
|
1249
|
-
...
|
|
1252
|
+
...blockLookFieldShape,
|
|
1253
|
+
...blockEditingDeclarationShape
|
|
1250
1254
|
}).superRefine(validateManifestLookField).superRefine(validateSdkBlockDeclaration).superRefine(validateCustomBlockPresentation);
|
|
1251
1255
|
/**
|
|
1252
1256
|
* Schema for the complete SDK site configuration.
|