@riverbankcms/sdk 0.173.0 → 0.174.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/_dts/{BlocksIslandsHydrator-O50mTMCY.d.ts → BlocksIslandsHydrator-YRmc-Yxz.d.ts} +1 -1
- package/dist/_dts/{Page-Bk99sJwV.d.ts → Page-Du0zX1B-.d.ts} +27 -16
- package/dist/_dts/{SdkPreviewMode-DzAue6Kj.d.ts → SdkPreviewMode-4L8v3FkY.d.ts} +14 -7
- package/dist/_dts/{client-ZlNEIvlU.d.ts → client-B1J6Akyf.d.ts} +1 -1
- package/dist/_dts/{content-types-DBXPNc0h.d.ts → content-types-CGGYI0u_.d.ts} +2 -2
- package/dist/_dts/{contracts-D9bhu0bb.d.ts → contracts-CHMlw9hT.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-Bfap3soN.d.ts → footerPageOutline-DIHSU1Vr.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DwCdg31h.d.ts → generatePageMetadata-JITXD6BU.d.ts} +2 -2
- package/dist/_dts/{index-Dq_AboWN.d.ts → index-BLEKFHt1.d.ts} +1 -1
- package/dist/_dts/{index-BnatulTs.d.ts → index-BgOr1Xyz.d.ts} +3 -3
- package/dist/_dts/{index-KXh8FQ2s.d.ts → index-CF62FntA.d.ts} +2 -2
- package/dist/_dts/{index-CJzs-yIJ.d.ts → index-CXZSy_9M.d.ts} +2 -2
- package/dist/_dts/{index-DutLU2d2.d.ts → index-D9ZYmGAJ.d.ts} +2 -1
- package/dist/_dts/{index-DW3eeNph.d.ts → index-DpJm0NpL.d.ts} +4 -4
- package/dist/_dts/{index-C611wjIL.d.ts → index-yWDbUojb.d.ts} +1 -1
- package/dist/_dts/{loadContent-Bde2y870.d.ts → loadContent-M-s0p0rq.d.ts} +11 -11
- package/dist/_dts/{request-Bysk4QPI.d.ts → request-BK-pHf0P.d.ts} +3685 -1762
- package/dist/_dts/{resolveBlockData-ChbNvpSF.d.ts → resolveBlockData-DZAlnhwt.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-CGa6QMgc.d.ts → resolvePageContent-DXUCWJ3y.d.ts} +2 -2
- 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 +9 -9
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/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 +4 -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 +13 -8
- 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 +5 -5
- 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 +36 -204
- package/dist/_dts/{types-BwitGNTl.d.ts → types-CwmB2NHU.d.ts} +7 -7
- package/dist/_dts/{types-BoEk9ZON.d.ts → types-DjVNADXR.d.ts} +3 -3
- package/dist/_dts/{types-kpp8XyXv.d.ts → types-Dmow_FI6.d.ts} +2 -2
- package/dist/_dts/{validation-ChftKX-o.d.ts → validation-h8t1HLlL.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-BnUeSE3d.mjs → BlocksIslandsHydrator-DRVx_XLi.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-LHQMODqB.mjs → BookingMailingListNote-CwrMzj-k.mjs} +10 -10
- package/dist/client/{BookingPanelArrangement-Be704P85.mjs → BookingPanelArrangement-C2_hFT6K.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BewbU_cV.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-BMZp3RS3.mjs → CalendarNavigationChevron-Az1-TIEI.mjs} +6 -6
- package/dist/client/{DemoBookingPortalAccess-CARUWQ_E.mjs → DemoBookingPortalAccess-1p-pJ1lg.mjs} +5 -5
- package/dist/client/{EventCalendar.client-CaI6upCX.mjs → EventCalendar.client-CDkkP-Lv.mjs} +9 -9
- package/dist/client/{EventCombined.client-CoRUaYHY.mjs → EventCombined.client-DK3aaz62.mjs} +7 -7
- package/dist/client/{EventItem-Doe4KodB.mjs → EventItem-WeUipfIP.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-CXWLKDfa.mjs → EventListWeekNavigation-D3sbAeDo.mjs} +1 -1
- package/dist/client/{EventListing.client-DvJ5tGTx.mjs → EventListing.client-DL3gGGmF.mjs} +3 -3
- package/dist/client/{EventListing.view-BmfyK7S5.mjs → EventListing.view-DKFImKOx.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-DwMlJB2V.mjs → EventRegistrationPayment-Dn9TpWyL.mjs} +45 -18
- package/dist/client/{LocationMapActions-CdRPU6gp.mjs → LocationMapActions-BJT7MqP2.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCLtxOnt.mjs → MapDrawingSvg-DCIwlON6.mjs} +1 -1
- package/dist/client/{Page-D46Dmr7b.mjs → Page-BpeP9xdt.mjs} +731 -1549
- package/dist/client/{StepIndicator-CrSZCZn1.mjs → StepIndicator-CP6zrwkl.mjs} +6 -242
- package/dist/client/{accessibleSurfaces-D4DhWo9j.mjs → accessibleSurfaces-DN8it_Cx.mjs} +35 -7
- package/dist/client/{accordion-P8xcfKxq.mjs → accordion-nR7D4m1a.mjs} +1 -1
- package/dist/client/{booking-form.client-BM2s-NqR.mjs → booking-form.client-Ce-mQZ7W.mjs} +362 -47
- package/dist/client/{bookingForm-JnaZPZge.mjs → bookingForm-B-qT_AQB.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{boxStyleClassNames-Cahps5kR.mjs → boxStyleClassNames-CrE3TDpW.mjs} +2 -29
- package/dist/client/{carousel-CQQ_m0KA.mjs → carousel-CVUOatsY.mjs} +1 -1
- package/dist/client/{cart-0Q4fjw_K.mjs → cart-DE0K6E0R.mjs} +3 -3
- package/dist/client/{cart.client-BI0IaHX3.mjs → cart.client-C23E6WQ5.mjs} +1 -1
- package/dist/client/{checkout-1J-3ftxF.mjs → checkout-76cdHyPL.mjs} +3 -3
- package/dist/client/{checkout.client-DOGYDlDk.mjs → checkout.client-DJOzqb26.mjs} +1 -1
- package/dist/client/{checkoutUrls-CwHqcqzP.mjs → checkoutUrls-CvIP5DCO.mjs} +1 -1
- package/dist/client/client.mjs +159 -7
- package/dist/client/{context-D0KCgbOq.mjs → context-CNlesLfF.mjs} +1 -1
- package/dist/client/{course-CmOuoZHN.mjs → course-DHIrXqNT.mjs} +2 -2
- package/dist/client/{creditProducts-BTRX4edc.mjs → creditProducts-KYMVIH3J.mjs} +2 -84
- package/dist/client/{dateFormatting-Dmfaczzq.mjs → dateFormatting-B73Ll0s4.mjs} +9 -1
- package/dist/client/{demoPortalMagicLink-CL7KGRta.mjs → demoPortalMagicLink-BVbLD4pi.mjs} +1 -1
- package/dist/client/{display-lL-YRApN.mjs → display-Cf_j5stk.mjs} +2574 -763
- package/dist/client/{enhanceHeaderSection-B-eLGs2C.mjs → enhanceHeaderSection-5GD5o4Mt.mjs} +3 -3
- package/dist/client/{event-details.client-DH1-Jxsh.mjs → event-details.client-D7Oz1q2L.mjs} +1 -1
- package/dist/client/{event-registration.client-GuuElczW.mjs → event-registration.client-zbuX36aA.mjs} +137 -131
- package/dist/client/{eventCalendar-BiCINPkV.mjs → eventCalendar-uZrksODt.mjs} +4 -4
- package/dist/client/{eventCombined-BtzmH6FW.mjs → eventCombined-DxhvNAx8.mjs} +4 -4
- package/dist/client/{eventDetails-BJpAD10-.mjs → eventDetails-DCIH4BYG.mjs} +2 -2
- package/dist/client/{eventListing-jLB8iRqp.mjs → eventListing-B9KrnPvc.mjs} +4 -4
- package/dist/client/{eventRegistration-WhtpDEbq.mjs → eventRegistration-TjnURMKl.mjs} +4 -4
- package/dist/client/{form-DO6qKH3M.mjs → form-CfqIAhfN.mjs} +3 -3
- package/dist/client/{form.client-D12ljYiX.mjs → form.client-CL6fF0cW.mjs} +6 -6
- package/dist/client/{form.parts-C8QHaQOI.mjs → form.parts-Bf-L66Gg.mjs} +1 -1
- package/dist/client/{formatDate-BnhfIpCa.mjs → formatDate-Dp7POa9Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BtFWtoUm.mjs → headerSection-WVXtOcuW.mjs} +2 -2
- package/dist/client/{newsletter-form.client-oHrqM_Ao.mjs → newsletter-form.client-Bb7GAZpO.mjs} +9 -7
- package/dist/client/{newsletter-form.parts-D5U-FuVy.mjs → newsletter-form.parts-BqOVRdIc.mjs} +1 -1
- package/dist/client/{newsletterForm-CBYbFxSx.mjs → newsletterForm-DOVe-qY3.mjs} +3 -3
- package/dist/client/{noop-CN0o0yjH.mjs → noop-D5mFWXtN.mjs} +30 -6
- package/dist/client/portal/client.mjs +346 -272
- package/dist/client/{product-detail.client-d_sNCapC.mjs → product-detail.client-CNzeFnFf.mjs} +1 -1
- package/dist/client/{product-list.client-DkSpw6WQ.mjs → product-list.client-LKpzC7pj.mjs} +1 -1
- package/dist/client/{productDetail-DaqM-LgL.mjs → productDetail-D2JNeEgx.mjs} +3 -3
- package/dist/client/{productList-CMx4-XlG.mjs → productList-DTgZXOEq.mjs} +3 -3
- package/dist/client/{propsDecoder-BZbUKstC.mjs → propsDecoder-mpBQt2AT.mjs} +3 -3
- package/dist/client/{registry.server-Cdot3dMk.mjs → registry.server-DdTJyar2.mjs} +31 -47
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +16 -13
- package/dist/client/{richText-coerce-ByApwB4q.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DTET8f__.mjs → routeIslandApiConfig-8cfSgT0E.mjs} +1 -1
- package/dist/client/{runtimeResponse-IkOwKZD0.mjs → runtimeResponse-9v8q2NBc.mjs} +1 -1
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +3 -0
- package/dist/client/{shop-Cy6xXDM7.mjs → shop-5LBhftWx.mjs} +3 -3
- package/dist/client/{shop-commerce-oDR76k1q.mjs → shop-commerce-DkValjZj.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DjoUpL3a.mjs → shop-commerce-store-BOmXFmk_.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-WsGb9DD8.mjs → shop-discount-apply.state-D0ifS6KX.mjs} +2 -2
- package/dist/client/{shop.client-Brha4BSM.mjs → shop.client-BTtZqNmv.mjs} +13 -13
- package/dist/client/{shop.interactive-CXhYl0DW.mjs → shop.interactive-DNRqG4aX.mjs} +18 -24
- package/dist/client/{shopShared-JCa_SRhP.mjs → shopShared-Nky6kPYr.mjs} +2 -2
- package/dist/client/{timetableModel-CZeJwMxP.mjs → timetableModel-DZArznD_.mjs} +25 -152
- package/dist/client/{useAvailableSlots-DfbSkWop.mjs → useAvailableSlots-CUVRD1nx.mjs} +24 -4
- package/dist/client/{useDiscountApply-Dq-wjb1d.mjs → useDiscountApply-BBnStWXU.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-Cyy0meCH.mjs → useDiscountCodeUi-d7viY_mu.mjs} +1 -1
- package/dist/client/{useEventPagination-CCAGQHsD.mjs → useEventPagination-Da2JqxGC.mjs} +6 -6
- package/dist/client/{view-Sw075FOY.mjs → view-BvuYmQJ5.mjs} +2 -2
- package/dist/client/{view-D6yebI4r.mjs → view-D9ObkFtz.mjs} +12 -11
- package/dist/preview-next/client/{LocationPickerEnvironment-D4F_5rnr.mjs → LocationPickerEnvironment-8iKKoYZr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-BKMNxSEJ.mjs → MapLibreEditMap-AIUPN1Zx.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-DG2rXUmo.mjs → PageSectionToolbar-DwxHT-2k.mjs} +57 -144
- package/dist/preview-next/client/{PreviewEditorSidebar-BDY5vdHU.mjs → PreviewEditorSidebar-D4SBxGU6.mjs} +758 -1279
- package/dist/preview-next/client/{PreviewEditorUI-CqZCfOaz.mjs → PreviewEditorUI-D8mUct32.mjs} +29 -26
- package/dist/preview-next/client/{PreviewShell-Bv2HZ7JY.mjs → PreviewShell-L2AEdNUQ.mjs} +50 -30
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BMTcR-MW.mjs → SdkPreviewModeRuntime-bhVAU2D2.mjs} +47 -19
- package/dist/preview-next/client/{lucide-react-BCNn8dEQ.mjs → lucide-react-Dfgl3Vtq.mjs} +7 -1
- package/dist/preview-next/client/{previewAssistantSlot-La6MerV_.mjs → previewAssistantSlot-Jpj_HDra.mjs} +101003 -51855
- package/dist/preview-next/client/{previewChromeRoot-BcOQqJIP.mjs → previewChromeRoot-CYTDvx4u.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BkckHox4.mjs → sdk-runtime-CZHX6J_4.mjs} +2 -2
- package/dist/preview-next/client/siteStyleAccess-DmGIG9Hk.mjs +9356 -0
- package/dist/preview-next/client/{useAutosaveStatus-CPAHgGqI.mjs → useAutosaveStatus-DQCyswQ-.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BDkuSZxQ.mjs → useOpenBlockForSetup-LwE5yXvL.mjs} +19 -4
- package/dist/preview-next/container-responsive.css +117 -32
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-CPV30ABr.mjs → route-contract-BOuNcOcN.mjs} +153 -2
- package/dist/server/{Block.shared-BaMMstO1.mjs → Block.shared-wfJfhs08.mjs} +10 -5
- package/dist/server/{ThemeScopeCore-D1NTXZdX.mjs → ThemeScopeCore-BtrJNHTB.mjs} +23 -6
- package/dist/server/{accessibleSurfaces-Dbd2__Le.mjs → accessibleSurfaces-CM3QANtw.mjs} +22 -5
- package/dist/server/{bindings-Dge4sqel.mjs → bindings-P1CF2Gm6.mjs} +6 -4
- package/dist/server/{client-VVIQjC4r.mjs → client-CGtU5fHI.mjs} +156 -4
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/customCss-BGB8gMVb.mjs +210 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BIJb3WAK.mjs → loadContent-ChnkJSay.mjs} +8 -9
- package/dist/server/{loadPage-DjTU19y7.mjs → loadPage-DesHhgxj.mjs} +3 -3
- package/dist/server/lookMediaFrame-BBr0mkze.mjs +2626 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/next.mjs +9 -8
- package/dist/server/{overrideResolution-1Ru3NMQj.mjs → overrideResolution-DHEkHcZs.mjs} +3 -4
- package/dist/server/page-converter.mjs +2 -2
- package/dist/server/{pageRenderPlan-CytPhrI9.mjs → pageRenderPlan-0jvm0RBk.mjs} +29 -331
- package/dist/server/{pageRuntimeSupport-DWspU5EZ.mjs → pageRuntimeSupport-8-f1Zr9e.mjs} +14 -6
- package/dist/server/{pageShared-Bhx8bVe1.mjs → pageShared-CuVFoV4z.mjs} +370 -291
- package/dist/server/{parseThemeForPersistence-CtgRtvo3.mjs → parseThemeForPersistence-Cwqb5pZx.mjs} +2 -2
- package/dist/server/{portal-Ce1Prfl3.mjs → portal-BjVHMAUC.mjs} +1 -1
- package/dist/server/portal.mjs +1 -1
- package/dist/server/{prebuild-BjvFb0CA.mjs → prebuild-Bms_Y7wQ.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Db3stNpp.mjs → prefetchBlockData-5oC5kyHe.mjs} +2 -2
- package/dist/server/{registry-BMCfcev6.mjs → registry-DmqxC8th.mjs} +1258 -3166
- 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 +2 -2
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData--yUbI-Ll.mjs → resolveBlockData-EYogtwQc.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-CCPUY9Xh.mjs → resolveButtonColourStates--6yJp9Tq.mjs} +15 -4
- package/dist/server/{schema-D5Vfmqzw.mjs → schema-CUDHMirj.mjs} +46 -153
- package/dist/server/server.mjs +3 -3
- package/dist/server/{src-Cxucn-1P.mjs → src-DHK4JUlp.mjs} +4 -1
- package/dist/server/theme-bridge.mjs +21 -15
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-Bsfdy_ZV.mjs → three-pass-converter-39SXCCnh.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DwKJfMYb.mjs → titleSourceSchema-Cu-3PRvv.mjs} +0 -1
- package/dist/server/{validation-EgTtnTcY.mjs → validation-Bt_8IL1g.mjs} +4 -4
- package/dist/server/{version-LjgU0Cq1.mjs → version-DT_efohp.mjs} +1 -1
- package/dist/styles/index.css +989 -279
- package/package.json +1 -1
- package/dist/client/bookability-SargNwlO.mjs +0 -17
- package/dist/client/runtimeResponse-Wd6kwhE_.mjs +0 -3
- package/dist/preview-next/client/SiteChromeCustomizeButton-D1MGyN_Z.mjs +0 -55403
- package/dist/server/customCss-QymcmOZ-.mjs +0 -97
- package/dist/server/opaqueSurface-COEKXVwk.mjs +0 -54
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as deriveSurfaceMutedColor, B as preparePaletteColourIndex, Ct as paletteColorsFromEntries, D as colourFamily, Dt as parseThemeColorToken, E as VARIANT_ROLES, Et as parseColorTokenParts, F as pickBlackOrWhiteTextColor, G as hexToRgb, H as solidPaint, I as ORDINARY_TEXT_MIN_CONTRAST_RATIO, L as assertContrastRatio, N as onColorTokenName, O as oklabDistance, R as contrastRatio, Tt as paletteModeSchema, U as worstContrast, V as relativeLuminance, W as featuresFromHex, X as rgbToHex, Y as oklchToOklab, _t as PALETTE_TOKEN_NAMES, d as generateShadowValue, j as expandPalette, k as deriveSurfaceDecorationColors, l as ELEVATION_OFFSET, n as compileButtonColourStates, o as BORDER_RADIUS_MAP, p as STANDARD_BUTTON_SURFACE_POLICY,
|
|
1
|
+
import { A as deriveSurfaceMutedColor, B as preparePaletteColourIndex, Ct as paletteColorsFromEntries, D as colourFamily, Dt as parseThemeColorToken, E as VARIANT_ROLES, Et as parseColorTokenParts, F as pickBlackOrWhiteTextColor, G as hexToRgb, H as solidPaint, I as ORDINARY_TEXT_MIN_CONTRAST_RATIO, L as assertContrastRatio, N as onColorTokenName, O as oklabDistance, R as contrastRatio, Tt as paletteModeSchema, U as worstContrast, V as relativeLuminance, W as featuresFromHex, X as rgbToHex, Y as oklchToOklab, _t as PALETTE_TOKEN_NAMES, d as generateShadowValue, j as expandPalette, k as deriveSurfaceDecorationColors, l as ELEVATION_OFFSET, mt as rgbColorValue, n as compileButtonColourStates, o as BORDER_RADIUS_MAP, p as STANDARD_BUTTON_SURFACE_POLICY, q as oklabToSrgb, s as BORDER_WIDTH_MAP, t as buttonStateBorder, tt as completeSurfaceForegrounds, u as FONT_SIZE_MAP, w as opaqueButtonColourTokenSchema, x as buttonSystemSchema, xt as normalizePaletteHex, yt as hexColorSchema, z as maxContrastBlackOrWhite } from "./resolveButtonColourStates--6yJp9Tq.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region ../theme-core/src/palette/colors.ts
|
|
4
4
|
const PALETTE_VALUE_KEY_PREFIX = "palette-value:v1|";
|
|
@@ -342,6 +342,14 @@ function inkFrom(family, paint, ratio, maxDistance = BRAND_INK_MAX_DELTA_E) {
|
|
|
342
342
|
}
|
|
343
343
|
//#endregion
|
|
344
344
|
//#region ../theme-core/src/surfaces/surfaceInks.ts
|
|
345
|
+
/** Lines and focus rings are graphics: WCAG non-text contrast. */
|
|
346
|
+
const GRAPHIC_MIN_CONTRAST_RATIO = 3;
|
|
347
|
+
/**
|
|
348
|
+
* The palette token the control edge ink is solved from. Input styles whose
|
|
349
|
+
* border uses another token keep their own colour, since this ink would carry
|
|
350
|
+
* the wrong hue for them.
|
|
351
|
+
*/
|
|
352
|
+
const CONTROL_EDGE_SEED_TOKEN = "border";
|
|
345
353
|
const INK_SEEDS = {
|
|
346
354
|
brand: {
|
|
347
355
|
token: "primary",
|
|
@@ -353,11 +361,16 @@ const INK_SEEDS = {
|
|
|
353
361
|
},
|
|
354
362
|
focus: {
|
|
355
363
|
token: "primary",
|
|
356
|
-
ratio:
|
|
364
|
+
ratio: GRAPHIC_MIN_CONTRAST_RATIO
|
|
365
|
+
},
|
|
366
|
+
control: {
|
|
367
|
+
token: CONTROL_EDGE_SEED_TOKEN,
|
|
368
|
+
ratio: GRAPHIC_MIN_CONTRAST_RATIO,
|
|
369
|
+
maxDistance: 2
|
|
357
370
|
}
|
|
358
371
|
};
|
|
359
372
|
/**
|
|
360
|
-
* Solve the
|
|
373
|
+
* Solve the inks for a measured solid paint. `textInk` is the surface's
|
|
361
374
|
* own (already certified) text ink: it stands in when the owner's colour is
|
|
362
375
|
* missing, or can only clear the paint by drifting too far from itself.
|
|
363
376
|
* A block owner can supply an authored shade candidate for a local ink.
|
|
@@ -377,6 +390,10 @@ function solveSurfaceInks(backdropHex, textInk, palette, candidates = {}) {
|
|
|
377
390
|
focus: solveInk({
|
|
378
391
|
...INK_SEEDS.focus,
|
|
379
392
|
token: candidates.focus ?? INK_SEEDS.focus.token
|
|
393
|
+
}, paint, palette, fallback),
|
|
394
|
+
control: solveInk({
|
|
395
|
+
...INK_SEEDS.control,
|
|
396
|
+
token: candidates.control ?? INK_SEEDS.control.token
|
|
380
397
|
}, paint, palette, fallback)
|
|
381
398
|
};
|
|
382
399
|
}
|
|
@@ -384,7 +401,7 @@ function solveInk(seed, paint, palette, fallback) {
|
|
|
384
401
|
const token = parseThemeColorToken(seed.token);
|
|
385
402
|
const seedHex = hexColorSchema.safeParse(resolveConcreteColorHex(seed.token, palette));
|
|
386
403
|
if (!token || !seedHex.success) return fallback;
|
|
387
|
-
const solved = inkFrom(familyOf(seedHex.data), paint, seed.ratio);
|
|
404
|
+
const solved = inkFrom(familyOf(seedHex.data), paint, seed.ratio, seed.maxDistance);
|
|
388
405
|
switch (solved.kind) {
|
|
389
406
|
case "ink": return solved.source === "exact" ? token : literalInk(solved.hex);
|
|
390
407
|
case "too-far":
|
|
@@ -2589,4 +2606,4 @@ function mapSurfaceTreeChildren(value, map) {
|
|
|
2589
2606
|
return isSurfaceTreeRecord(value) ? Object.fromEntries(Object.entries(value).map(([key, item]) => [key, map(item)])) : value;
|
|
2590
2607
|
}
|
|
2591
2608
|
//#endregion
|
|
2592
|
-
export { resolveOnColorForThemeToken as A,
|
|
2609
|
+
export { resolveOnColorForThemeToken as A, HOVER_TEXT_THRESHOLD as B, materializeRuntimeButtonAppearance as C, mapButtonRoleAppearances as D, defineButtonStyleRecipe as E, resolveSurfaceForeground as F, resolveConcreteColorHex as G, contrastThresholdByPolicy as H, safeTokenOr as I, paletteValueKeySchema as J, resolveOpaqueSurfaceHex as K, surfaceInkPublication as L, resolveTokenOrCssColorValue as M, freezeOwnedThemeValue as N, mapButtonVisualAppearances as O, ownedThemeSnapshot as P, CONTROL_EDGE_SEED_TOKEN as R, buttonTypographyDeclarations as S, PUBLIC_BUTTON_ROLES as T, inkReference as U, certifyPaint as V, planForegroundHover as W, requirePaletteColorsFromEntries as Y, contextualButtonSurfaceResetStyles as _, requireResolvedSurface as a, buttonShadow as b, surfaceButtonRequest as c, toAccessibleColorSurfaceIntent as d, compositeHex as f, actionVariableFallback as g, scrimTone as h, prepareThemeSurfaceRevision as i, resolveThemeColorReferenceValue as j, isCssColorLiteral as k, surfaceDecorationColors as l, minimumScrimOpacity as m, parseSurfaceTree as n, resolveSurface as o, gradientScrimSamples as p, paletteValueKey as q, prepareSurfaceIndex as r, serializeSurfaceTree as s, parseResolvedSurface as t, surfaceTransportContext as u, buttonBorder as v, paddingDeclarations as w, buttonStateAppearanceDeclarations as x, buttonRadius as y, solveSurfaceInks as z };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { E as
|
|
4
|
-
import {
|
|
1
|
+
import { et as parseStoredVariant, nt as lookFillPartsFromContent, rt as resolveRuntimeSection, t as buildPageRenderPlan } from "./pageRenderPlan-0jvm0RBk.mjs";
|
|
2
|
+
import { $a as filterLookIdsForPolicy, Ao as transitionIntentForTreatment, Ba as compileArrangementLookRuntime, Co as boundaryOptions, Do as noneBoundaryOption, Eo as isDecorativeTransitionIntent, Fi as plainTextToInlineText, Fo as parseCanonicalRuntimeBackground, Ha as resolveArrangementLookForBlock, Ia as arrangementAppearancePresets, Io as resolveSectionBackground, Ka as readStoredMode, Oo as softBoundaryOption, Qa as filterLayoutProfilesForPolicy, Ra as arrangementStyleAvailability, So as boundaryOptionForTransitionIntent, Sr as resolveDeclaredBlockDesignCapability, To as boundaryTreatmentForBoundaryOptionId, Ua as resolveLookForBlock, Va as getCompatibleBlockAppearancePresets, Za as deriveSiteStyleBlockPolicy, _o as resolvePageDesignBlockLookChoice, ao as stripCompiledRuntimeStyleFields, ba as isRecord, ct as systemCustomizeFacetDefinitionsForBlock, io as compilePageRuntimeFields, ko as spaciousBoundaryOption, no as getCuratedSiteStyle, nr as formatDate, qa as resolveEffectiveArrangement, t as getBlockDefinition, vo as resolvePageDesignBoundaryChoice, za as automaticArrangementLook } from "./registry-DmqxC8th.mjs";
|
|
3
|
+
import { E as asPageFlowPresetId, O as makeBoundaryId, T as asLayoutVariantKey, _ as isArrangementMode } from "./customCss-BGB8gMVb.mjs";
|
|
4
|
+
import { r as sectionStylesOverrideSchema } from "./schema-CUDHMirj.mjs";
|
|
5
|
+
import { h as registeredManifestContentContract, p as admitTransportedRenderableManifestContent } from "./pageRuntimeSupport-8-f1Zr9e.mjs";
|
|
5
6
|
import { a as isRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
|
|
7
|
+
import { E as sectionBackgroundPaintValues, O as toNonEmptyReadonlyArray, _ as designIssueSeverityForPolicy, d as lookModes, f as assertNever, p as defineBlockDesignCapability, w as plainFrame } from "./lookMediaFrame-BBr0mkze.mjs";
|
|
6
8
|
import { t as BINDING_TRANSFORMS } from "./bindings-DhmIW3Er.mjs";
|
|
7
9
|
//#region ../theme-core/src/site-styles/resolver.ts
|
|
8
10
|
const repairActionsByIssueKind = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as parseSurfaceTree } from "./accessibleSurfaces-
|
|
1
|
+
import { n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
2
2
|
import { o as isSupportedLoaderEndpoint, r as encodePublicProductCategorySelector, t as materializeEntriesMedia } from "./responseMedia-DpBC1hTM.mjs";
|
|
3
3
|
import { t as parseSiteId } from "./identity-DQD_8lNO.mjs";
|
|
4
|
-
import { t as SDK_VERSION } from "./version-
|
|
4
|
+
import { t as SDK_VERSION } from "./version-DT_efohp.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
|
|
7
7
|
function availability(fetchTags, transport) {
|
|
@@ -35,6 +35,7 @@ const PUBLIC_READ_CACHE_POLICIES = {
|
|
|
35
35
|
"public_passes",
|
|
36
36
|
"public_memberships"
|
|
37
37
|
], "batch_only"),
|
|
38
|
+
getPublicMapLocation: availability(["public_events", "public_event_filters"], "batch_only"),
|
|
38
39
|
resolveEventSubroute: availability(["public_events", "public_event_filters"], "direct"),
|
|
39
40
|
listPublicRouteCandidates: content(["published_content"], "batch_only"),
|
|
40
41
|
listPublicTeamMembers: content(["public_team_members"]),
|
|
@@ -810,6 +811,7 @@ const createClientArrangementSchema = z.object({
|
|
|
810
811
|
/** The UI selects the next N dates from get.dates, then retains this body for retry. */
|
|
811
812
|
const bookNextArrangementSchema = z.object({
|
|
812
813
|
...operation,
|
|
814
|
+
confirmation: z.string().optional(),
|
|
813
815
|
occurrenceDates: z.array(localDate).min(1).max(52).refine((values) => new Set(values).size === values.length, "Choose each date once."),
|
|
814
816
|
bookShortfallAsOwed: z.boolean().default(false)
|
|
815
817
|
}).strict();
|
|
@@ -976,7 +978,6 @@ z.intersection(z.object({ occurrenceDate: localDate }), z.union([
|
|
|
976
978
|
z.object({ code: z.enum([
|
|
977
979
|
"package_shortfall",
|
|
978
980
|
"not_available",
|
|
979
|
-
"needs_recorded_return",
|
|
980
981
|
"client_not_found"
|
|
981
982
|
]) }),
|
|
982
983
|
z.object({
|
|
@@ -1259,7 +1260,11 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1259
1260
|
method: "DELETE",
|
|
1260
1261
|
auth: "user",
|
|
1261
1262
|
responseKind: "json",
|
|
1262
|
-
errors: [
|
|
1263
|
+
errors: [
|
|
1264
|
+
"resource:not_found",
|
|
1265
|
+
"resource:conflict",
|
|
1266
|
+
"server:internal_error"
|
|
1267
|
+
]
|
|
1263
1268
|
},
|
|
1264
1269
|
createTeamMemberProfile: {
|
|
1265
1270
|
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile",
|
|
@@ -1560,6 +1565,17 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1560
1565
|
"server:internal_error"
|
|
1561
1566
|
]
|
|
1562
1567
|
},
|
|
1568
|
+
previewWeeklyAvailabilityImpact: {
|
|
1569
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/weekly-availability/impact",
|
|
1570
|
+
method: "POST",
|
|
1571
|
+
auth: "user",
|
|
1572
|
+
responseKind: "json",
|
|
1573
|
+
errors: [
|
|
1574
|
+
"validation:invalid_input",
|
|
1575
|
+
"resource:not_found",
|
|
1576
|
+
"server:internal_error"
|
|
1577
|
+
]
|
|
1578
|
+
},
|
|
1563
1579
|
setServiceSpecificAvailability: {
|
|
1564
1580
|
path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
|
|
1565
1581
|
method: "PUT",
|
|
@@ -3055,6 +3071,13 @@ const EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3055
3071
|
"server:internal_error"
|
|
3056
3072
|
]
|
|
3057
3073
|
},
|
|
3074
|
+
getEventGoLivePage: {
|
|
3075
|
+
path: "/sites/{siteId}/bookings/events/{eventId}/go-live-page",
|
|
3076
|
+
method: "GET",
|
|
3077
|
+
auth: "user",
|
|
3078
|
+
responseKind: "json",
|
|
3079
|
+
errors: ["validation:invalid_input", "server:internal_error"]
|
|
3080
|
+
},
|
|
3058
3081
|
updateEventIdentity: {
|
|
3059
3082
|
path: "/sites/{siteId}/bookings/events/{eventId}",
|
|
3060
3083
|
method: "PATCH",
|
|
@@ -3645,6 +3668,30 @@ const PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
|
|
|
3645
3668
|
//#endregion
|
|
3646
3669
|
//#region ../api/src/billingEndpointDefinitions.ts
|
|
3647
3670
|
const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
3671
|
+
adminSendSiteHandover: {
|
|
3672
|
+
path: "/admin/sites/{siteId}/handover",
|
|
3673
|
+
method: "POST",
|
|
3674
|
+
tags: ["admin"],
|
|
3675
|
+
auth: "admin",
|
|
3676
|
+
responseKind: "json",
|
|
3677
|
+
errors: []
|
|
3678
|
+
},
|
|
3679
|
+
adminResendSiteHandover: {
|
|
3680
|
+
path: "/admin/sites/{siteId}/handover/resend",
|
|
3681
|
+
method: "POST",
|
|
3682
|
+
tags: ["admin"],
|
|
3683
|
+
auth: "admin",
|
|
3684
|
+
responseKind: "json",
|
|
3685
|
+
errors: []
|
|
3686
|
+
},
|
|
3687
|
+
adminWithdrawSiteHandover: {
|
|
3688
|
+
path: "/admin/sites/{siteId}/handover/withdraw",
|
|
3689
|
+
method: "POST",
|
|
3690
|
+
tags: ["admin"],
|
|
3691
|
+
auth: "admin",
|
|
3692
|
+
responseKind: "json",
|
|
3693
|
+
errors: []
|
|
3694
|
+
},
|
|
3648
3695
|
adminChangePlan: {
|
|
3649
3696
|
path: "/admin/billing/plan",
|
|
3650
3697
|
method: "POST",
|
|
@@ -4635,6 +4682,18 @@ const API_ENDPOINTS$1 = {
|
|
|
4635
4682
|
"server:internal_error"
|
|
4636
4683
|
]
|
|
4637
4684
|
},
|
|
4685
|
+
turnOnCourses: {
|
|
4686
|
+
path: "/sites/{siteId}/bookings/settings/courses",
|
|
4687
|
+
method: "POST",
|
|
4688
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteBookingSettings],
|
|
4689
|
+
auth: "user",
|
|
4690
|
+
responseKind: "json",
|
|
4691
|
+
errors: [
|
|
4692
|
+
"auth:forbidden",
|
|
4693
|
+
"resource:conflict",
|
|
4694
|
+
"server:internal_error"
|
|
4695
|
+
]
|
|
4696
|
+
},
|
|
4638
4697
|
sendTestEmail: {
|
|
4639
4698
|
path: "/sites/{siteId}/settings/emails/test",
|
|
4640
4699
|
method: "POST",
|
|
@@ -4717,6 +4776,30 @@ const API_ENDPOINTS$1 = {
|
|
|
4717
4776
|
responseKind: "json",
|
|
4718
4777
|
errors: ["auth:forbidden", "server:internal_error"]
|
|
4719
4778
|
},
|
|
4779
|
+
authEmailCodeSend: {
|
|
4780
|
+
path: "/auth/email-code/send",
|
|
4781
|
+
method: "POST",
|
|
4782
|
+
tags: ["auth"],
|
|
4783
|
+
auth: "public",
|
|
4784
|
+
responseKind: "json",
|
|
4785
|
+
errors: []
|
|
4786
|
+
},
|
|
4787
|
+
authEmailCodeVerify: {
|
|
4788
|
+
path: "/auth/email-code/verify",
|
|
4789
|
+
method: "POST",
|
|
4790
|
+
tags: ["auth"],
|
|
4791
|
+
auth: "public",
|
|
4792
|
+
responseKind: "json",
|
|
4793
|
+
errors: []
|
|
4794
|
+
},
|
|
4795
|
+
authForgetEmail: {
|
|
4796
|
+
path: "/auth/remembered-email/clear",
|
|
4797
|
+
method: "POST",
|
|
4798
|
+
tags: ["auth"],
|
|
4799
|
+
auth: "public",
|
|
4800
|
+
responseKind: "json",
|
|
4801
|
+
errors: []
|
|
4802
|
+
},
|
|
4720
4803
|
authLogin: {
|
|
4721
4804
|
path: "/auth/login/submit",
|
|
4722
4805
|
method: "POST",
|
|
@@ -4745,6 +4828,22 @@ const API_ENDPOINTS$1 = {
|
|
|
4745
4828
|
auth: "public",
|
|
4746
4829
|
responseKind: "json"
|
|
4747
4830
|
},
|
|
4831
|
+
authReauthEmailCodeSend: {
|
|
4832
|
+
path: "/auth/reauth/email-code",
|
|
4833
|
+
method: "POST",
|
|
4834
|
+
tags: ["auth"],
|
|
4835
|
+
auth: "user",
|
|
4836
|
+
errors: [],
|
|
4837
|
+
responseKind: "json"
|
|
4838
|
+
},
|
|
4839
|
+
authReauthEmailCodeVerify: {
|
|
4840
|
+
path: "/auth/reauth/email-code/verify",
|
|
4841
|
+
method: "POST",
|
|
4842
|
+
tags: ["auth"],
|
|
4843
|
+
auth: "user",
|
|
4844
|
+
errors: [],
|
|
4845
|
+
responseKind: "json"
|
|
4846
|
+
},
|
|
4748
4847
|
authStatus: {
|
|
4749
4848
|
path: "/auth/status",
|
|
4750
4849
|
method: "GET",
|
|
@@ -4802,6 +4901,14 @@ const API_ENDPOINTS$1 = {
|
|
|
4802
4901
|
auth: "user",
|
|
4803
4902
|
responseKind: "json"
|
|
4804
4903
|
},
|
|
4904
|
+
dismissSiteInviteWelcome: {
|
|
4905
|
+
path: "/sites/{siteId}/members/invite-welcome/dismiss",
|
|
4906
|
+
method: "POST",
|
|
4907
|
+
auth: "user",
|
|
4908
|
+
responseKind: "json",
|
|
4909
|
+
errors: ["auth:forbidden", "server:internal_error"],
|
|
4910
|
+
tags: ["site-{siteId}"]
|
|
4911
|
+
},
|
|
4805
4912
|
revokeSiteInvitation: {
|
|
4806
4913
|
path: "/sites/{siteId}/members/invitations/{invitationId}",
|
|
4807
4914
|
method: "DELETE",
|
|
@@ -5914,6 +6021,22 @@ const API_ENDPOINTS$1 = {
|
|
|
5914
6021
|
auth: "user",
|
|
5915
6022
|
responseKind: "json"
|
|
5916
6023
|
},
|
|
6024
|
+
mfaRenameFactor: {
|
|
6025
|
+
path: "/auth/mfa/factors/{factorId}",
|
|
6026
|
+
method: "PATCH",
|
|
6027
|
+
tags: ["mfa"],
|
|
6028
|
+
auth: "user",
|
|
6029
|
+
errors: [],
|
|
6030
|
+
responseKind: "json"
|
|
6031
|
+
},
|
|
6032
|
+
mfaTurnOff: {
|
|
6033
|
+
path: "/auth/mfa/turn-off",
|
|
6034
|
+
method: "POST",
|
|
6035
|
+
tags: ["mfa"],
|
|
6036
|
+
auth: "user",
|
|
6037
|
+
errors: [],
|
|
6038
|
+
responseKind: "json"
|
|
6039
|
+
},
|
|
5917
6040
|
mfaBackupCodesGet: {
|
|
5918
6041
|
path: "/auth/mfa/backup-codes",
|
|
5919
6042
|
method: "GET",
|
|
@@ -5968,6 +6091,18 @@ const API_ENDPOINTS$1 = {
|
|
|
5968
6091
|
],
|
|
5969
6092
|
responseKind: "json"
|
|
5970
6093
|
},
|
|
6094
|
+
accountDismissTwoStepPrompt: {
|
|
6095
|
+
path: "/account/two-step-prompt/dismiss",
|
|
6096
|
+
method: "POST",
|
|
6097
|
+
tags: ["account"],
|
|
6098
|
+
auth: "user",
|
|
6099
|
+
errors: [
|
|
6100
|
+
"auth:unauthenticated",
|
|
6101
|
+
"validation:invalid_input",
|
|
6102
|
+
"server:internal_error"
|
|
6103
|
+
],
|
|
6104
|
+
responseKind: "json"
|
|
6105
|
+
},
|
|
5971
6106
|
accountRevokeSessions: {
|
|
5972
6107
|
path: "/account/sessions/revoke",
|
|
5973
6108
|
method: "POST",
|
|
@@ -5975,6 +6110,22 @@ const API_ENDPOINTS$1 = {
|
|
|
5975
6110
|
auth: "user",
|
|
5976
6111
|
responseKind: "json"
|
|
5977
6112
|
},
|
|
6113
|
+
accountRevokeSession: {
|
|
6114
|
+
path: "/account/sessions/{sessionId}",
|
|
6115
|
+
method: "DELETE",
|
|
6116
|
+
tags: ["account"],
|
|
6117
|
+
auth: "user",
|
|
6118
|
+
errors: [],
|
|
6119
|
+
responseKind: "json"
|
|
6120
|
+
},
|
|
6121
|
+
accountUnlinkGoogle: {
|
|
6122
|
+
path: "/account/identities/google",
|
|
6123
|
+
method: "DELETE",
|
|
6124
|
+
tags: ["account"],
|
|
6125
|
+
auth: "user",
|
|
6126
|
+
errors: [],
|
|
6127
|
+
responseKind: "json"
|
|
6128
|
+
},
|
|
5978
6129
|
adminListInvites: {
|
|
5979
6130
|
path: "/admin/invites",
|
|
5980
6131
|
method: "GET",
|
|
@@ -9794,6 +9945,7 @@ const API_ERROR_CODE_SET = /* @__PURE__ */ new Set([
|
|
|
9794
9945
|
"auth:token_invalid",
|
|
9795
9946
|
"auth:forbidden",
|
|
9796
9947
|
"auth:mfa_required",
|
|
9948
|
+
"auth:mfa_setup_required",
|
|
9797
9949
|
"auth:sudo_required",
|
|
9798
9950
|
"auth:insufficient_permissions",
|
|
9799
9951
|
"auth:impersonation_restricted",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-
|
|
1
|
+
import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-Bt_8IL1g.mjs";
|
|
2
2
|
export { activeThemeSchema, blockFieldConfigSchema, blockFieldExtensionSchema, blockFieldExtensionsSchema, blockFieldOptionsSchema, containerAlignmentSchema, containerMaxWidthSchema, containerOptionsSchema, contentConfigSchema, deployConfigSchema, fieldSelectOptionSchema, layoutConfigSchema, loaderParamBindingSchema, loaderParamValueSchema, loaderWhenValueSchema, riverbankSiteConfigSchema, sdkConfigLoaderSchema, sdkCustomBlockSchema, sdkDataLoadersSchema, sdkLoaderEndpointSchema, sdkSiteUrlSchema, sdkThemeConfigSchema, sdkThemePaletteSchema, sdkWorkflowConfigSchema, sdkWorkflowConfirmationSchema, sdkWorkflowEndpointSchema, sdkWorkflowIdSchema, sdkWorkflowTriggerSchema, sdkWorkflowsSchema, sectionBackgroundSchema, sectionOptionsSchema, sectionSpacingSchema, siteStyleConfigSchema, syncConfigSchema, themeSourceSchema, validateFieldIdConflicts };
|
package/dist/server/config.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-
|
|
1
|
+
import { _s as isCanonicalRichTextDoc } from "./registry-DmqxC8th.mjs";
|
|
2
|
+
import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-Bt_8IL1g.mjs";
|
|
3
3
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
4
4
|
//#region src/config/bindings.ts
|
|
5
5
|
function fieldBinding(path) {
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region ../site-contracts/src/identity/designIds.ts
|
|
3
|
+
function asDesignBlockId(value) {
|
|
4
|
+
return brandNonEmptyString(value, "DesignBlockId");
|
|
5
|
+
}
|
|
6
|
+
function asDesignBoundaryId(value) {
|
|
7
|
+
const boundaryId = brandNonEmptyString(value, "DesignBoundaryId");
|
|
8
|
+
if (!boundaryId.startsWith("boundary:")) throw new Error(`DesignBoundaryId must start with "boundary:". Received: ${value}`);
|
|
9
|
+
return boundaryId;
|
|
10
|
+
}
|
|
11
|
+
function asLayoutVariantKey(value) {
|
|
12
|
+
return brandNonEmptyString(value, "LayoutVariantKey");
|
|
13
|
+
}
|
|
14
|
+
function asAppearancePresetId(value) {
|
|
15
|
+
return brandNonEmptyString(value, "AppearancePresetId");
|
|
16
|
+
}
|
|
17
|
+
function asBoundaryOptionId(value) {
|
|
18
|
+
return brandNonEmptyString(value, "BoundaryOptionId");
|
|
19
|
+
}
|
|
20
|
+
function asPageFlowPresetId(value) {
|
|
21
|
+
return brandNonEmptyString(value, "PageFlowPresetId");
|
|
22
|
+
}
|
|
23
|
+
function asSiteStyleId(value) {
|
|
24
|
+
const siteStyleId = brandNonEmptyString(value, "SiteStyleId");
|
|
25
|
+
if (!siteStyleId.startsWith("site-style:")) throw new Error(`SiteStyleId must start with "site-style:". Received: ${value}`);
|
|
26
|
+
return siteStyleId;
|
|
27
|
+
}
|
|
28
|
+
function asDesignSystemTemplateId(value) {
|
|
29
|
+
return brandNonEmptyString(value, "DesignSystemTemplateId");
|
|
30
|
+
}
|
|
31
|
+
function makeBoundaryId(previousBlockId, nextBlockId) {
|
|
32
|
+
return asDesignBoundaryId(`boundary:${encodeURIComponent(previousBlockId)}:${encodeURIComponent(nextBlockId)}`);
|
|
33
|
+
}
|
|
34
|
+
function brandNonEmptyString(value, label) {
|
|
35
|
+
if (value.length === 0) throw new Error(`${label} must be a non-empty string.`);
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region ../site-contracts/src/identity/presentationVocabulary.ts
|
|
40
|
+
const arrangementModes = [
|
|
41
|
+
"list",
|
|
42
|
+
"calendar",
|
|
43
|
+
"week",
|
|
44
|
+
"combined"
|
|
45
|
+
];
|
|
46
|
+
function isArrangementMode(value) {
|
|
47
|
+
return value === "list" || value === "calendar" || value === "week" || value === "combined";
|
|
48
|
+
}
|
|
49
|
+
/** Every transition that draws something; `none` is the absence of a join. */
|
|
50
|
+
const decorativeTransitionIntentValues = [
|
|
51
|
+
"soft-fade-short",
|
|
52
|
+
"soft-fade-long",
|
|
53
|
+
"soft-fade-expansive",
|
|
54
|
+
"wave-edge",
|
|
55
|
+
"wave-edge-balanced",
|
|
56
|
+
"wave-edge-gentle",
|
|
57
|
+
"wave-edge-bold",
|
|
58
|
+
"wave-edge-drift",
|
|
59
|
+
"wave-edge-echo",
|
|
60
|
+
"arc-edge-echo",
|
|
61
|
+
"angle-edge",
|
|
62
|
+
"angle-edge-subtle",
|
|
63
|
+
"angle-edge-steep"
|
|
64
|
+
];
|
|
65
|
+
const tileTreatmentValues = [
|
|
66
|
+
"default",
|
|
67
|
+
"quiet",
|
|
68
|
+
"brand-depth"
|
|
69
|
+
];
|
|
70
|
+
const eventListTreatmentValues = [
|
|
71
|
+
"plain",
|
|
72
|
+
"lined-panel",
|
|
73
|
+
"ruled-register",
|
|
74
|
+
"editorial-register",
|
|
75
|
+
"dense-index"
|
|
76
|
+
];
|
|
77
|
+
const eyebrowTreatmentValues = [
|
|
78
|
+
"plain",
|
|
79
|
+
"accent",
|
|
80
|
+
"pill",
|
|
81
|
+
"accent-pill",
|
|
82
|
+
"pill-bounce",
|
|
83
|
+
"accent-pill-bounce"
|
|
84
|
+
];
|
|
85
|
+
const visibleHeadingDecorationFamilyValues = ["organic-squiggle", "short-center-rule"];
|
|
86
|
+
const headingDecorationOverrideValues = ["site-default", "off"];
|
|
87
|
+
const headingDecorationColorTokenValues = [
|
|
88
|
+
"text",
|
|
89
|
+
"primary",
|
|
90
|
+
"secondary",
|
|
91
|
+
"accent",
|
|
92
|
+
"border",
|
|
93
|
+
"muted"
|
|
94
|
+
];
|
|
95
|
+
const accordionIconSetValues = [
|
|
96
|
+
"plus",
|
|
97
|
+
"chevron",
|
|
98
|
+
"caret",
|
|
99
|
+
"minimal-cross"
|
|
100
|
+
];
|
|
101
|
+
const accordionIconColorTokenValues = [
|
|
102
|
+
"text",
|
|
103
|
+
"muted",
|
|
104
|
+
"primary",
|
|
105
|
+
"secondary",
|
|
106
|
+
"accent",
|
|
107
|
+
"current"
|
|
108
|
+
];
|
|
109
|
+
const accordionIconMotionValues = [
|
|
110
|
+
"none",
|
|
111
|
+
"rotate",
|
|
112
|
+
"swap"
|
|
113
|
+
];
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region ../site-contracts/src/theme/customCss.ts
|
|
116
|
+
/** Global selectors that could affect elements outside theme scope */
|
|
117
|
+
const FORBIDDEN_SELECTORS = [
|
|
118
|
+
":root",
|
|
119
|
+
"html",
|
|
120
|
+
"body"
|
|
121
|
+
];
|
|
122
|
+
/** Universal selector - forbidden because it affects everything */
|
|
123
|
+
const UNIVERSAL_SELECTOR = "*";
|
|
124
|
+
/** Pattern to detect remote URL references (http://, https://, //) */
|
|
125
|
+
const REMOTE_URL_PATTERN = /url\s*\(\s*['"]?(https?:|\/\/)/i;
|
|
126
|
+
/** Pattern to detect javascript: URLs */
|
|
127
|
+
const JAVASCRIPT_URL_PATTERN = /javascript\s*:/i;
|
|
128
|
+
/**
|
|
129
|
+
* Check if a single selector part (no commas) is forbidden.
|
|
130
|
+
*/
|
|
131
|
+
function isForbiddenSelectorPart(part) {
|
|
132
|
+
const normalized = part.toLowerCase().trim();
|
|
133
|
+
if (!normalized) return true;
|
|
134
|
+
if (normalized === UNIVERSAL_SELECTOR || normalized.startsWith("* ") || normalized.endsWith(" *") || normalized.includes(" * ")) return true;
|
|
135
|
+
return FORBIDDEN_SELECTORS.some((forbidden) => normalized === forbidden || [
|
|
136
|
+
" ",
|
|
137
|
+
">",
|
|
138
|
+
"+",
|
|
139
|
+
"~",
|
|
140
|
+
".",
|
|
141
|
+
"#",
|
|
142
|
+
"["
|
|
143
|
+
].some((suffix) => normalized.startsWith(forbidden + suffix)) || normalized.startsWith(forbidden + ":") && !normalized.startsWith(forbidden + "::"));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Check if a selector uses sibling combinators with & that could escape scope.
|
|
147
|
+
* Patterns like "& ~ .outside" or "& + .sibling" can select elements outside the scope.
|
|
148
|
+
*/
|
|
149
|
+
function hasScopeEscapingSiblingCombinator(selector) {
|
|
150
|
+
const normalized = selector.trim();
|
|
151
|
+
return /&\s*[+~]/.test(normalized);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Check if a selector contains forbidden global selectors.
|
|
155
|
+
* Handles selectors like ":root", "html body", "body.class", "body, .x", etc.
|
|
156
|
+
*/
|
|
157
|
+
function containsForbiddenSelector(selector) {
|
|
158
|
+
const normalized = selector.toLowerCase().trim();
|
|
159
|
+
if (!normalized) return true;
|
|
160
|
+
if (hasScopeEscapingSiblingCombinator(selector)) return true;
|
|
161
|
+
return normalized.split(",").some(isForbiddenSelectorPart);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Validates a CSS selector for safety.
|
|
165
|
+
*/
|
|
166
|
+
const selectorSchema = z.string().min(1, "Selector cannot be empty").max(200, "Selector too long (max 200 characters)").refine((s) => !containsForbiddenSelector(s), { message: "Global selectors (:root, html, body, *) are not allowed" });
|
|
167
|
+
/**
|
|
168
|
+
* Check if a CSS value contains a remote URL.
|
|
169
|
+
*/
|
|
170
|
+
function containsRemoteUrl(value) {
|
|
171
|
+
return REMOTE_URL_PATTERN.test(value);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Check if a CSS value contains a javascript: URL.
|
|
175
|
+
*/
|
|
176
|
+
function containsJavascriptUrl(value) {
|
|
177
|
+
return JAVASCRIPT_URL_PATTERN.test(value);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Validates a CSS declaration value for safety.
|
|
181
|
+
* Allows: url(#id), url(data:...), url(/path), var(--)
|
|
182
|
+
* Forbids: url(http...), url(//...), javascript:
|
|
183
|
+
*/
|
|
184
|
+
const declarationValueSchema = z.string().max(500, "Declaration value too long (max 500 characters)").refine((v) => !containsRemoteUrl(v), { message: "Remote url() references are not allowed. Use local paths, data URIs, or fragment IDs." }).refine((v) => !containsJavascriptUrl(v), { message: "javascript: URLs are not allowed" });
|
|
185
|
+
/**
|
|
186
|
+
* Schema for CSS declarations object (property -> value map).
|
|
187
|
+
*/
|
|
188
|
+
const declarationsSchema = z.record(z.string().min(1).max(100), declarationValueSchema);
|
|
189
|
+
/**
|
|
190
|
+
* Schema for a single custom CSS rule.
|
|
191
|
+
*/
|
|
192
|
+
const customCssRuleSchema = z.object({
|
|
193
|
+
id: z.string().min(1, "Rule ID is required").max(50, "Rule ID too long"),
|
|
194
|
+
selector: selectorSchema,
|
|
195
|
+
declarations: declarationsSchema
|
|
196
|
+
});
|
|
197
|
+
/**
|
|
198
|
+
* Schema for block-specific CSS rule.
|
|
199
|
+
*/
|
|
200
|
+
const blockCustomCssRuleSchema = customCssRuleSchema.extend({ blockKind: z.string().min(1, "Block kind is required").max(50, "Block kind too long") });
|
|
201
|
+
/**
|
|
202
|
+
* Array of custom CSS rules for theme-level styling.
|
|
203
|
+
*/
|
|
204
|
+
const customCssRulesSchema = z.array(customCssRuleSchema).optional();
|
|
205
|
+
/**
|
|
206
|
+
* Array of block-specific CSS rules.
|
|
207
|
+
*/
|
|
208
|
+
const blockCustomCssRulesSchema = z.array(blockCustomCssRuleSchema).optional();
|
|
209
|
+
//#endregion
|
|
210
|
+
export { asDesignBoundaryId as C, asSiteStyleId as D, asPageFlowPresetId as E, makeBoundaryId as O, asDesignBlockId as S, asLayoutVariantKey as T, isArrangementMode as _, declarationValueSchema as a, asAppearancePresetId as b, accordionIconColorTokenValues as c, arrangementModes as d, decorativeTransitionIntentValues as f, headingDecorationOverrideValues as g, headingDecorationColorTokenValues as h, customCssRulesSchema as i, accordionIconMotionValues as l, eyebrowTreatmentValues as m, blockCustomCssRulesSchema as n, declarationsSchema as o, eventListTreatmentValues as p, customCssRuleSchema as r, selectorSchema as s, blockCustomCssRuleSchema as t, accordionIconSetValues as u, tileTreatmentValues as v, asDesignSystemTemplateId as w, asBoundaryOptionId as x, visibleHeadingDecorationFamilyValues as y };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData
|
|
1
|
+
import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-EYogtwQc.mjs";
|
|
2
2
|
export { CONFIG_ONLY_BLOCK_DATA_POLICY, DEFAULT_RESOLVE_BLOCK_DATA_DEPS, createBlockDataLoadPolicy, hasRegisteredDataLoaders, resolveBlockData, resolveBlockDataWithDeps, warnHostDataLoaderFailure };
|
package/dist/server/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as parseMediaIdentifier, a as persistableMediaSchema, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, g as parseCanonicalMediaIdentifier, h as mediaIdentifierSchema, i as mediaSchema, l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
2
|
-
import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, g as getResilienceStatusFromError, h as RiverbankApiError, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-
|
|
2
|
+
import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, g as getResilienceStatusFromError, h as RiverbankApiError, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-CGtU5fHI.mjs";
|
|
3
3
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
4
4
|
import { t as SDK_CORRELATION_HEADER_NAMES } from "./types-C2eBBV6E.mjs";
|
|
5
|
-
import { t as prebuildCache } from "./prebuild-
|
|
5
|
+
import { t as prebuildCache } from "./prebuild-Bms_Y7wQ.mjs";
|
|
6
6
|
import * as path from "path";
|
|
7
7
|
import * as fs from "fs";
|
|
8
8
|
//#region src/prebuild/loader.ts
|