@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
package/dist/server/manifest.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as ALLOWED_TRANSFORM_IDS, n as ALLOWED_NODE_TYPES } from "./titleSourceSchema-
|
|
2
|
-
import { _ as formatThemeSummaryForPrompt, a as collectValidationErrors, c as llmAtRuleSchema, d as llmMediaAtRuleSchema, f as llmNestedRuleSchema, g as normalizeLlmMediaAtRule, h as normalizeLlmCssRule, l as llmCustomBlockSchema, m as normalizeDeclarationsArrayToRecord, n as validateManifestOutput, o as formatValidationFeedback, p as llmThemePatchOpSchema, s as htmlToManifestOutputSchema, t as convertHtmlToManifest, u as llmCustomCssRuleSchema, v as summarizeThemeForLLM } from "./three-pass-converter-
|
|
1
|
+
import { i as ALLOWED_TRANSFORM_IDS, n as ALLOWED_NODE_TYPES } from "./titleSourceSchema-Cu-3PRvv.mjs";
|
|
2
|
+
import { _ as formatThemeSummaryForPrompt, a as collectValidationErrors, c as llmAtRuleSchema, d as llmMediaAtRuleSchema, f as llmNestedRuleSchema, g as normalizeLlmMediaAtRule, h as normalizeLlmCssRule, l as llmCustomBlockSchema, m as normalizeDeclarationsArrayToRecord, n as validateManifestOutput, o as formatValidationFeedback, p as llmThemePatchOpSchema, s as htmlToManifestOutputSchema, t as convertHtmlToManifest, u as llmCustomCssRuleSchema, v as summarizeThemeForLLM } from "./three-pass-converter-39SXCCnh.mjs";
|
|
3
3
|
//#region src/manifest/prompt/knowledge-base.ts
|
|
4
4
|
/**
|
|
5
5
|
* LLM Knowledge Base for HTML-to-Manifest Conversion
|
package/dist/server/next.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-
|
|
3
|
-
import { _ as createBearerAPIClient, h as RiverbankApiError, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient, v as ApiRequestError, y as unwrapResponse } from "./client-
|
|
4
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-
|
|
1
|
+
import { Is as resolveBookingBusinessTimeZone, Os as inferSiteDateLocale, Rs as toUtcIsoDateTimeString } from "./registry-DmqxC8th.mjs";
|
|
2
|
+
import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-CuVFoV4z.mjs";
|
|
3
|
+
import { _ as createBearerAPIClient, h as RiverbankApiError, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient, v as ApiRequestError, y as unwrapResponse } from "./client-CGtU5fHI.mjs";
|
|
4
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-ChnkJSay.mjs";
|
|
5
5
|
import { n as MissingSdkThemeError, r as requireSdkTheme, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
|
|
6
6
|
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
|
|
7
7
|
import { l as isPreviewMode, o as normalizeSdkRenderingMode, s as themeRuntimeForRendering } from "./overrides-CD4d-1w7.mjs";
|
|
8
8
|
import { n as generatePreviewMetadata, r as applyPageSurfaceIndexing, t as generatePageMetadata } from "./generatePageMetadata-DB_lbrZ7.mjs";
|
|
9
|
-
import { t as getPortalToken } from "./portal-
|
|
9
|
+
import { t as getPortalToken } from "./portal-BjVHMAUC.mjs";
|
|
10
10
|
import { _ as toRoutingInfo, a as resolvePageContent, i as contentNotFound, n as contentFound, o as defaultShouldAttemptEntrySubroute, t as RiverbankContentLoadError } from "./resolvePageContent-CAELMBEJ.mjs";
|
|
11
|
-
import { t as SDK_VERSION } from "./version-
|
|
11
|
+
import { t as SDK_VERSION } from "./version-DT_efohp.mjs";
|
|
12
12
|
import { t as appendSearchToRedirectDestination } from "./redirect-destination-Bee5ZEon.mjs";
|
|
13
|
-
import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-
|
|
13
|
+
import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-DHEkHcZs.mjs";
|
|
14
14
|
import "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
@@ -1204,7 +1204,8 @@ async function loadPortalPageHost(options, path, searchParams) {
|
|
|
1204
1204
|
portalToken: getPortalToken(await cookies()),
|
|
1205
1205
|
callbackPath: options.portal?.callbackPath,
|
|
1206
1206
|
demoEmailSuppressed: site.demoEmailSuppressed === true,
|
|
1207
|
-
siteTitle: site.site.title
|
|
1207
|
+
siteTitle: site.site.title,
|
|
1208
|
+
businessPerson: site.bookingPerson ?? null
|
|
1208
1209
|
}
|
|
1209
1210
|
};
|
|
1210
1211
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PageContent } from "./pageShared-
|
|
1
|
+
import { t as PageContent } from "./pageShared-CuVFoV4z.mjs";
|
|
2
2
|
import { t as allOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
3
3
|
import { i as lazyBlockOverrideSymbol } from "./overrides-CD4d-1w7.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -66,11 +66,10 @@ function selectOverrideKeysForUsedKinds(usedKinds, entries) {
|
|
|
66
66
|
return selectedKeys;
|
|
67
67
|
}
|
|
68
68
|
function isLazyRegistration(registration) {
|
|
69
|
-
return isRecord(registration) && registration[lazyBlockOverrideSymbol] === true;
|
|
69
|
+
return isRecord(registration) && lazyBlockOverrideSymbol in registration && registration[lazyBlockOverrideSymbol] === true;
|
|
70
70
|
}
|
|
71
71
|
async function resolveOverrideComponent(registration) {
|
|
72
|
-
|
|
73
|
-
return registration;
|
|
72
|
+
return isLazyRegistration(registration) ? registration.load() : registration;
|
|
74
73
|
}
|
|
75
74
|
/**
|
|
76
75
|
* Resolve only override registrations used by the current page or template.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $r as parseBackgroundContent, n as listBlockDescriptors } from "./registry-DmqxC8th.mjs";
|
|
2
2
|
import { i as createRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
|
|
3
3
|
import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
|
|
4
4
|
import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
|
|
5
|
-
import { i as getJsonFromAiText, r as getJsonFromAi, t as convertHtmlToManifest } from "./three-pass-converter-
|
|
5
|
+
import { i as getJsonFromAiText, r as getJsonFromAi, t as convertHtmlToManifest } from "./three-pass-converter-39SXCCnh.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region ../blocks/src/assistantSectionCatalog.ts
|
|
8
8
|
const words = (text) => createRichTextDoc([text]);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Dt as parseThemeColorToken, G as hexToRgb, J as oklchToHexGamut, K as oklabToOklch, P as getTextColorForBackground, R as contrastRatio, X as rgbToHex, Z as srgbToOklab, q as oklabToSrgb } from "./resolveButtonColourStates
|
|
2
|
-
import { $
|
|
3
|
-
import { A as resolveOnColorForThemeToken,
|
|
4
|
-
import {
|
|
1
|
+
import { Dt as parseThemeColorToken, G as hexToRgb, J as oklchToHexGamut, K as oklabToOklch, P as getTextColorForBackground, R as contrastRatio, X as rgbToHex, Z as srgbToOklab, q as oklabToSrgb } from "./resolveButtonColourStates--6yJp9Tq.mjs";
|
|
2
|
+
import { $r as parseBackgroundContent, $t as formatEventCompactDateRail, An as formatTotalCapacity, Ar as formatEventStartingPrice, Bi as augmentManifest, Bs as formatBookingPriceDisplay, Cr as classPricesCopySchema, Dn as isBookableEvent, Dr as formatEventPrice, Ds as formatDateTimeRange, Dt as groupOfferingRunsByCourse, Ea as resolveLookSurfacePresentation, Er as formatCoursePrice, Es as formatDateRange, Fo as parseCanonicalRuntimeBackground, Ga as arrangementManifestFromVariants, Gi as eventDiscoveryFilterKeys, Gs as resolveExactOrFreePriceDisplay, Gt as weekColumnDays, Hi as eventReadinessQuery, I as combinedLookSchema, Ia as arrangementAppearancePresets, Io as resolveSectionBackground, Is as resolveBookingBusinessTimeZone, J as CardListLeadDate, Ja as resolveModeArrangement, Ji as eventScopeQueryKeys, Jt as eventDateOptions, Ka as readStoredMode, Ki as eventScopeLoaderParam, Ks as resolvePricingOptionsPriceDisplay, Lo as sectionSurfaceBase, Lt as ThemedButtonLink, Ma as heroPhotoPaintsGround, Mn as getEventAvailabilityStatus, Mr as getAnchorClasses, Nn as isEventFull, No as applyLookPhotoTreatment, Ns as getLocalScheduleDate, On as canJoinEventWaitlistOnAnyMode, Po as deriveSectionGround, Ps as parseBookingLocalDate, Q as MediaNodeServer, Qi as resolveEventCalendarReadPlan, Qn as layoutTransforms, Ro as stripStaleTransitionStyleGroup, Rs as toUtcIsoDateTimeString, Ta as lookPresentationOnPalette, Ti as ClockIcon, Tr as resolveClassPriceItems, Ts as formatDate, Ui as eventReadinessQueryKeys, Un as contentTransforms, Vi as eventReadinessLoaderKey, Vt as buildEventListWeek, Wa as styleSectionBackgroundForColour, Wt as groupEventsByWeek, X as resolveCardListSchedule, Xi as resolveCalendarReadProfile, Xn as headerRuntimeTransforms, Xs as parseGradientPresetId, Ya as resolvePublishedLook, Yi as resolveEventScope, Yn as mediaTransforms, Yr as boxStylesTransforms, Yt as eventLocalDateKey, Z as selectCardListPresentation, Za as deriveSiteStyleBlockPolicy, Zi as eventCalendarListGroupingDecision, Zn as chromeLogoTransforms, Zs as arrangementSlotNames, an as formatEventWeekdayTime, bo as sectionShapeFromContent, ca as isToday, cn as resolveEventTimeZone, co as getGradientPreset, ct as systemCustomizeFacetDefinitionsForBlock, di as lookQuoteLimitTransform, dr as listItemPresentation, ds as resolveWholeSeriesBookingPhase, ei as parseBackgroundOverlay, en as formatEventDateParts, er as uiTransforms, et as ImagePresets, fi as lookSkinSlotTransform, ft as EventQuickFacts, hn as closedRunCopy, ii as resolveBackgroundColorValue, in as formatEventTimeRange, jn as getEventAvailability, jr as BACKGROUND_POSITION_PRESET_VALUES, js as compareLocalScheduleDates, kn as formatEventRemainingPlaces, kr as formatEventPriceDisplay, li as lookCarouselRegionTransform, ln as resolveRuntimeEventDestination, ls as nextLiveRunSessionStartMs, mi as createTransformRegistry, na as formatDateKey, ni as resolveSectionSurfaceForeground, nt as computeMediaTransformStyle, oi as isSemanticSpacing, on as formatTime, pi as asPartialObject, pr as listLookSlot, q as CardListContentPart, qa as resolveEffectiveArrangement, qi as eventScopeQuery, qn as readRuntimeNow, qt as eventCalendarWeekStart, ri as resolveSurfaceForegroundStyles, rn as formatEventRunDates, sn as groupEventsByDate, so as gradientToCss, st as resolveArrangementKnobs, t as getBlockDefinition, ti as parseRuntimeBackgroundContent, tr as formattingTransforms, ui as lookLeadSlotTransform, un as formatBookingSchedulePresentation, us as orderedLiveRunSessions, wo as boundaryRuntimeMetricsForDecorativeTransition, wr as classPricesDataSchema, xo as sectionShapeHook, ya as isObjectRecord, yo as sectionShapeForGround, yr as heroMorePhotoCount, zo as themeV2CompilerOwnedFieldNames } from "./registry-DmqxC8th.mjs";
|
|
3
|
+
import { A as resolveOnColorForThemeToken, G as resolveConcreteColorHex, M as resolveTokenOrCssColorValue, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
4
|
+
import { D as asSiteStyleId, O as makeBoundaryId, S as asDesignBlockId, T as asLayoutVariantKey } from "./customCss-BGB8gMVb.mjs";
|
|
5
5
|
import { o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
6
|
-
import { t as assertNever
|
|
6
|
+
import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
|
|
7
7
|
import { o as isRecord$2 } from "./richTextSchema-QLaQrbII.mjs";
|
|
8
|
+
import { f as assertNever$1, n as resolveLookMediaFrame } from "./lookMediaFrame-BBr0mkze.mjs";
|
|
8
9
|
import { i as outlineRegions, n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
9
10
|
import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
|
|
10
11
|
import React from "react";
|
|
@@ -533,7 +534,7 @@ function boundaryEndpointForSectionContent(content) {
|
|
|
533
534
|
kind: "unpainted",
|
|
534
535
|
reason: "media"
|
|
535
536
|
};
|
|
536
|
-
default: return assertNever(effective, "Unhandled section background type");
|
|
537
|
+
default: return assertNever$1(effective, "Unhandled section background type");
|
|
537
538
|
}
|
|
538
539
|
}
|
|
539
540
|
/**
|
|
@@ -670,7 +671,7 @@ function boundaryLayout(intent, composition) {
|
|
|
670
671
|
shape: composition.from
|
|
671
672
|
}
|
|
672
673
|
};
|
|
673
|
-
default: return assertNever(composition, "Unhandled boundary composition");
|
|
674
|
+
default: return assertNever$1(composition, "Unhandled boundary composition");
|
|
674
675
|
}
|
|
675
676
|
}
|
|
676
677
|
function requireThemeColorToken(value) {
|
|
@@ -807,20 +808,6 @@ function parseStoredVariant(manifest, content) {
|
|
|
807
808
|
} : { kind: "absent" };
|
|
808
809
|
}
|
|
809
810
|
//#endregion
|
|
810
|
-
//#region ../blocks/src/system/runtime/nodes/events/domain/bookability.ts
|
|
811
|
-
/**
|
|
812
|
-
* Whether a public event has a registration path a visitor can take.
|
|
813
|
-
*
|
|
814
|
-
* Lifecycle admission comes from the public booking-availability contract;
|
|
815
|
-
* capacity comes from the shared event-domain helpers so uncapped, fallback,
|
|
816
|
-
* and hybrid attendance-mode cases agree with the registration runtime.
|
|
817
|
-
*/
|
|
818
|
-
function isBookableEvent(event) {
|
|
819
|
-
if (!event.requiresRegistration) return false;
|
|
820
|
-
if (event.bookingAvailability.kind !== "open") return false;
|
|
821
|
-
return !isEventFull(event) || canJoinEventWaitlistOnAnyMode(event);
|
|
822
|
-
}
|
|
823
|
-
//#endregion
|
|
824
811
|
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
825
812
|
/**
|
|
826
813
|
* Booking call-to-action resolution for events: where an event links to and
|
|
@@ -839,7 +826,7 @@ function closedEventBookingLabel(reason) {
|
|
|
839
826
|
case "parent_inconsistent":
|
|
840
827
|
case "already_started":
|
|
841
828
|
case "enrollment_closed": return "Registration closed";
|
|
842
|
-
default: return assertNever
|
|
829
|
+
default: return assertNever(reason);
|
|
843
830
|
}
|
|
844
831
|
}
|
|
845
832
|
function resolveEventHref(event) {
|
|
@@ -944,7 +931,7 @@ function seriesBookingClosed(event) {
|
|
|
944
931
|
case "parent_archived":
|
|
945
932
|
case "parent_inconsistent":
|
|
946
933
|
case "enrollment_closed": return true;
|
|
947
|
-
default: return assertNever
|
|
934
|
+
default: return assertNever(event.bookingAvailability.reason);
|
|
948
935
|
}
|
|
949
936
|
}
|
|
950
937
|
function occurrenceCardAvailability(event, count) {
|
|
@@ -971,7 +958,7 @@ function renderClockClosedCta(event, now) {
|
|
|
971
958
|
case "in-progress":
|
|
972
959
|
case "enrolment-closed":
|
|
973
960
|
case "no-sessions": return "Registration closed";
|
|
974
|
-
default: return assertNever
|
|
961
|
+
default: return assertNever(phase.reason);
|
|
975
962
|
}
|
|
976
963
|
})(),
|
|
977
964
|
href: resolveEventHref(event),
|
|
@@ -1911,7 +1898,7 @@ function eventCardListContent(event, context, buttonText) {
|
|
|
1911
1898
|
...offeringSchedule(event, context.now),
|
|
1912
1899
|
...event.bookingScope === "whole_series" ? offeringRunDates(event, context.now) : {}
|
|
1913
1900
|
};
|
|
1914
|
-
default: return assertNever
|
|
1901
|
+
default: return assertNever(context);
|
|
1915
1902
|
}
|
|
1916
1903
|
}
|
|
1917
1904
|
function cardProjectionBase(event, buttonText, context) {
|
|
@@ -1945,7 +1932,7 @@ function cardBooking(event, buttonText, context) {
|
|
|
1945
1932
|
now: context.now,
|
|
1946
1933
|
count: context.count
|
|
1947
1934
|
});
|
|
1948
|
-
default: return assertNever
|
|
1935
|
+
default: return assertNever(context);
|
|
1949
1936
|
}
|
|
1950
1937
|
}
|
|
1951
1938
|
function offeringLeadDate(event, startMs) {
|
|
@@ -2817,299 +2804,6 @@ function arrangementSlotParentsForManifest(manifest, target, arrangement, eventR
|
|
|
2817
2804
|
});
|
|
2818
2805
|
}
|
|
2819
2806
|
//#endregion
|
|
2820
|
-
//#region ../blocks/src/system/customize/arrangementKnobs.ts
|
|
2821
|
-
/**
|
|
2822
|
-
* Content stage for knobs, shared by the renderer and the editor so what the
|
|
2823
|
-
* options show and what renders can't disagree. Knob buffets are the block's
|
|
2824
|
-
* customise facets; the Look exposes, forces or narrows them and the style's
|
|
2825
|
-
* offer can only remove or narrow further.
|
|
2826
|
-
*/
|
|
2827
|
-
function resolveArrangementKnobs(input) {
|
|
2828
|
-
const length = input.blockKind === "block.hero" ? resolveHeroTitleLength({ ...input.content }, "look") : null;
|
|
2829
|
-
const exposure = arrangementKnobExposure(input.blockKind, input.look, length, storedSplitPhotoSide(input.blockKind, input.content));
|
|
2830
|
-
return {
|
|
2831
|
-
length,
|
|
2832
|
-
exposure,
|
|
2833
|
-
knobs: resolveEffectiveKnobs({
|
|
2834
|
-
exposure,
|
|
2835
|
-
content: normalizedHeadlinePreference(input.content)
|
|
2836
|
-
})
|
|
2837
|
-
};
|
|
2838
|
-
}
|
|
2839
|
-
function arrangementKnobExposure(blockKind, look, length, splitPhotoSide) {
|
|
2840
|
-
return systemCustomizeFacetDefinitionsForBlock(blockKind).flatMap((facet) => {
|
|
2841
|
-
if (facet.knob === void 0 || facet.target.kind !== "content-field") return [];
|
|
2842
|
-
const id = facet.target.field;
|
|
2843
|
-
const defaults = look.look.structure.knobDefaults ?? {};
|
|
2844
|
-
const storedDefault = id === "imagePosition" ? splitPhotoSide : null;
|
|
2845
|
-
return [{
|
|
2846
|
-
definition: {
|
|
2847
|
-
id,
|
|
2848
|
-
defaultValue: defaults[id] ?? storedDefault ?? facet.defaultValue,
|
|
2849
|
-
values: facet.values.map((value) => value.value),
|
|
2850
|
-
...knobKindMetadata(facet.knob)
|
|
2851
|
-
},
|
|
2852
|
-
exposed: exposedKnobIds(look).includes(id),
|
|
2853
|
-
forced: look.look.structure.forcedKnobs?.[id],
|
|
2854
|
-
lookValues: look.look.structure.knobValues?.[id],
|
|
2855
|
-
styleValues: look.knobValues[id],
|
|
2856
|
-
lengthValues: id === "titleSize" ? headlineAllowedValues(length) : void 0
|
|
2857
|
-
}];
|
|
2858
|
-
});
|
|
2859
|
-
}
|
|
2860
|
-
/**
|
|
2861
|
-
* A hero stored as "Split, photo on the left" or "Split, photo on the right"
|
|
2862
|
-
* already says which side its photo is on. Under a Look that side is the Photo
|
|
2863
|
-
* side default, so the photo stays where it was until the owner picks a side.
|
|
2864
|
-
*/
|
|
2865
|
-
function storedSplitPhotoSide(blockKind, content) {
|
|
2866
|
-
if (blockKind !== "block.hero") return null;
|
|
2867
|
-
switch (content.variant) {
|
|
2868
|
-
case "split": return "left";
|
|
2869
|
-
case "splitReverse": return "right";
|
|
2870
|
-
default: return null;
|
|
2871
|
-
}
|
|
2872
|
-
}
|
|
2873
|
-
function knobKindMetadata(knob) {
|
|
2874
|
-
return knob.kind === "fixed" ? { ordered: knob.ordered } : {
|
|
2875
|
-
ordered: false,
|
|
2876
|
-
textMaxLength: knob.maxLength
|
|
2877
|
-
};
|
|
2878
|
-
}
|
|
2879
|
-
function headlineAllowedValues(length) {
|
|
2880
|
-
switch (length) {
|
|
2881
|
-
case "long": return ["quiet"];
|
|
2882
|
-
case "medium": return ["quiet", "auto"];
|
|
2883
|
-
case "short": return [
|
|
2884
|
-
"quiet",
|
|
2885
|
-
"auto",
|
|
2886
|
-
"display"
|
|
2887
|
-
];
|
|
2888
|
-
case null: return;
|
|
2889
|
-
}
|
|
2890
|
-
}
|
|
2891
|
-
/** `titleSize` keeps its five stored values; under a Look they read as three steps. */
|
|
2892
|
-
function normalizedHeadlinePreference(content) {
|
|
2893
|
-
switch (content.titleSize) {
|
|
2894
|
-
case "editorial": return {
|
|
2895
|
-
...content,
|
|
2896
|
-
titleSize: "auto"
|
|
2897
|
-
};
|
|
2898
|
-
case "poster": return {
|
|
2899
|
-
...content,
|
|
2900
|
-
titleSize: "display"
|
|
2901
|
-
};
|
|
2902
|
-
default: return content;
|
|
2903
|
-
}
|
|
2904
|
-
}
|
|
2905
|
-
function exposedKnobIds(look) {
|
|
2906
|
-
return [...look.look.structure.knobs, ...look.addKnobs ?? []].filter((id) => !look.removeKnobs.some((removed) => removed === id));
|
|
2907
|
-
}
|
|
2908
|
-
//#endregion
|
|
2909
|
-
//#region ../blocks/src/system/customize/facets.ts
|
|
2910
|
-
function defineCustomizeFacet(definition) {
|
|
2911
|
-
return definition;
|
|
2912
|
-
}
|
|
2913
|
-
const eventCalendarListLayoutFacet = defineCustomizeFacet({
|
|
2914
|
-
blockKind: "block.event-calendar",
|
|
2915
|
-
id: "eventCalendar.listLayout",
|
|
2916
|
-
label: "List style",
|
|
2917
|
-
legacyOnly: true,
|
|
2918
|
-
values: eventCalendarListLayoutOptions.map((option) => ({
|
|
2919
|
-
value: option.id,
|
|
2920
|
-
label: option.label
|
|
2921
|
-
})),
|
|
2922
|
-
defaultValue: "stack",
|
|
2923
|
-
target: { kind: "event-calendar-list-layout-content" },
|
|
2924
|
-
appliesToLayoutVariants: eventCalendarListLayoutCompatibleDisplayModeValues
|
|
2925
|
-
});
|
|
2926
|
-
const fixedKnob = (blockKind, id, label, values, defaultValue, ordered = false, boolean = false) => ({
|
|
2927
|
-
blockKind,
|
|
2928
|
-
id,
|
|
2929
|
-
label,
|
|
2930
|
-
values,
|
|
2931
|
-
defaultValue,
|
|
2932
|
-
knob: {
|
|
2933
|
-
kind: "fixed",
|
|
2934
|
-
ordered
|
|
2935
|
-
},
|
|
2936
|
-
target: {
|
|
2937
|
-
kind: "content-field",
|
|
2938
|
-
field: id,
|
|
2939
|
-
...boolean ? { boolean: true } : {}
|
|
2940
|
-
}
|
|
2941
|
-
});
|
|
2942
|
-
const textKnob = (id, label, maxLength) => ({
|
|
2943
|
-
blockKind: "block.hero",
|
|
2944
|
-
id,
|
|
2945
|
-
label,
|
|
2946
|
-
values: [],
|
|
2947
|
-
defaultValue: "",
|
|
2948
|
-
knob: {
|
|
2949
|
-
kind: "text",
|
|
2950
|
-
maxLength
|
|
2951
|
-
},
|
|
2952
|
-
target: {
|
|
2953
|
-
kind: "content-field",
|
|
2954
|
-
field: id
|
|
2955
|
-
}
|
|
2956
|
-
});
|
|
2957
|
-
const onOff = [{
|
|
2958
|
-
value: "true",
|
|
2959
|
-
label: "On"
|
|
2960
|
-
}, {
|
|
2961
|
-
value: "false",
|
|
2962
|
-
label: "Off"
|
|
2963
|
-
}];
|
|
2964
|
-
const columnCounts = [
|
|
2965
|
-
{
|
|
2966
|
-
value: "2",
|
|
2967
|
-
label: "2"
|
|
2968
|
-
},
|
|
2969
|
-
{
|
|
2970
|
-
value: "3",
|
|
2971
|
-
label: "3"
|
|
2972
|
-
},
|
|
2973
|
-
{
|
|
2974
|
-
value: "4",
|
|
2975
|
-
label: "4"
|
|
2976
|
-
}
|
|
2977
|
-
];
|
|
2978
|
-
const systemCustomizeFacetDefinitions = [
|
|
2979
|
-
eventCalendarListLayoutFacet,
|
|
2980
|
-
fixedKnob("block.offerings-preview", "dates", "Dates", [{
|
|
2981
|
-
value: "summary",
|
|
2982
|
-
label: "Summary"
|
|
2983
|
-
}, {
|
|
2984
|
-
value: "next-dates",
|
|
2985
|
-
label: "Next dates"
|
|
2986
|
-
}], "summary"),
|
|
2987
|
-
{
|
|
2988
|
-
...fixedKnob("block.feature-cards", "actionStyle", "Item actions", [{
|
|
2989
|
-
value: "button",
|
|
2990
|
-
label: "Button"
|
|
2991
|
-
}, {
|
|
2992
|
-
value: "link",
|
|
2993
|
-
label: "Link"
|
|
2994
|
-
}], "button"),
|
|
2995
|
-
blockKinds: cardListKnobBlocks
|
|
2996
|
-
},
|
|
2997
|
-
fixedKnob("block.testimonials", "quoteCount", "How many quotes", [
|
|
2998
|
-
{
|
|
2999
|
-
value: "1",
|
|
3000
|
-
label: "1"
|
|
3001
|
-
},
|
|
3002
|
-
{
|
|
3003
|
-
value: "2",
|
|
3004
|
-
label: "2"
|
|
3005
|
-
},
|
|
3006
|
-
{
|
|
3007
|
-
value: "3",
|
|
3008
|
-
label: "3"
|
|
3009
|
-
},
|
|
3010
|
-
{
|
|
3011
|
-
value: "all",
|
|
3012
|
-
label: "All"
|
|
3013
|
-
}
|
|
3014
|
-
], "3", true),
|
|
3015
|
-
{
|
|
3016
|
-
...fixedKnob("block.testimonials", "autoAdvance", "Moves on by itself", onOff, "false", false, true),
|
|
3017
|
-
description: "Moves to the next quote every few seconds, and stops while someone's reading."
|
|
3018
|
-
},
|
|
3019
|
-
fixedKnob("block.testimonials", "tilt", "Tilt the small cards", onOff, "true", false, true),
|
|
3020
|
-
{
|
|
3021
|
-
...fixedKnob("block.testimonials", "archFrame", "Arch frame", onOff, "true", false, true),
|
|
3022
|
-
blockKinds: [
|
|
3023
|
-
"block.testimonials",
|
|
3024
|
-
"block.newsletter-signup",
|
|
3025
|
-
"block.form"
|
|
3026
|
-
]
|
|
3027
|
-
},
|
|
3028
|
-
fixedKnob("block.hero", "photoTint", "Photo tint", [{
|
|
3029
|
-
value: "dark",
|
|
3030
|
-
label: "Dark"
|
|
3031
|
-
}, {
|
|
3032
|
-
value: "brand",
|
|
3033
|
-
label: "Brand colour"
|
|
3034
|
-
}], "dark"),
|
|
3035
|
-
fixedKnob("block.hero", "candleGlow", "Candle glow", onOff, "true", false, true),
|
|
3036
|
-
fixedKnob("block.hero", "columnGuides", "Column guides", onOff, "true", false, true),
|
|
3037
|
-
fixedKnob("block.hero", "titleSize", "Headline size", heroTitleSizeOptions, "auto", true),
|
|
3038
|
-
fixedKnob("block.hero", "imagePosition", "Photo side", [{
|
|
3039
|
-
value: "left",
|
|
3040
|
-
label: "Left"
|
|
3041
|
-
}, {
|
|
3042
|
-
value: "right",
|
|
3043
|
-
label: "Right"
|
|
3044
|
-
}], "right"),
|
|
3045
|
-
fixedKnob("block.intro", "imageShape", "Media shape", standardImageShapeOptions, "default"),
|
|
3046
|
-
fixedKnob("block.intro", "imagePosition", "Photo side", [{
|
|
3047
|
-
value: "left",
|
|
3048
|
-
label: "Left"
|
|
3049
|
-
}, {
|
|
3050
|
-
value: "right",
|
|
3051
|
-
label: "Right"
|
|
3052
|
-
}], "left"),
|
|
3053
|
-
fixedKnob("block.media-text", "imagePosition", "Photo side", [{
|
|
3054
|
-
value: "left",
|
|
3055
|
-
label: "Left"
|
|
3056
|
-
}, {
|
|
3057
|
-
value: "right",
|
|
3058
|
-
label: "Right"
|
|
3059
|
-
}], "left"),
|
|
3060
|
-
fixedKnob("block.media-text", "imageShape", "Media shape", standardImageShapeOptions, "default"),
|
|
3061
|
-
fixedKnob("block.media-text", "aspectRatio", "Media aspect ratio", standardAspectRatioOptions, "auto"),
|
|
3062
|
-
textKnob("stickerLine", "Sticker line", 32),
|
|
3063
|
-
textKnob("smallCaption", "Small caption", 24),
|
|
3064
|
-
{
|
|
3065
|
-
...fixedKnob("block.feature-cards", "showPhotos", "Show photos", onOff, "true", false, true),
|
|
3066
|
-
blockKinds: cardListFamilyBlocks
|
|
3067
|
-
},
|
|
3068
|
-
fixedKnob("block.feature-cards", "columns", "Columns", columnCounts, "3", true),
|
|
3069
|
-
fixedKnob("block.image-gallery", "blackAndWhite", "Black and white", onOff, "false", false, true),
|
|
3070
|
-
fixedKnob("block.event-calendar", "listColumns", "Columns", columnCounts, "3", true),
|
|
3071
|
-
fixedKnob("block.event-calendar", "showPhotos", "Photos", [{
|
|
3072
|
-
value: "true",
|
|
3073
|
-
label: "Show"
|
|
3074
|
-
}, {
|
|
3075
|
-
value: "false",
|
|
3076
|
-
label: "Hide"
|
|
3077
|
-
}], "true", false, true),
|
|
3078
|
-
{
|
|
3079
|
-
...fixedKnob("block.feature-cards", "cardMarker", "Item markers", [
|
|
3080
|
-
{
|
|
3081
|
-
value: "icons",
|
|
3082
|
-
label: "Icons"
|
|
3083
|
-
},
|
|
3084
|
-
{
|
|
3085
|
-
value: "numbers",
|
|
3086
|
-
label: "Numbers"
|
|
3087
|
-
},
|
|
3088
|
-
{
|
|
3089
|
-
value: "none",
|
|
3090
|
-
label: "None"
|
|
3091
|
-
}
|
|
3092
|
-
], "icons"),
|
|
3093
|
-
blockKinds: cardListFamilyBlocks
|
|
3094
|
-
},
|
|
3095
|
-
fixedKnob("block.body-text", "alignment", "Text alignment", [{
|
|
3096
|
-
value: "left",
|
|
3097
|
-
label: "Left"
|
|
3098
|
-
}, {
|
|
3099
|
-
value: "center",
|
|
3100
|
-
label: "Centre"
|
|
3101
|
-
}], "left"),
|
|
3102
|
-
{
|
|
3103
|
-
...fixedKnob("block.event-calendar", "showCapacity", "Places left", onOff, "true", false, true),
|
|
3104
|
-
description: "Show how many places are left on each event"
|
|
3105
|
-
}
|
|
3106
|
-
];
|
|
3107
|
-
systemCustomizeFacetDefinitions.map((definition) => definition.id);
|
|
3108
|
-
Array.from(new Set(systemCustomizeFacetDefinitions.flatMap((definition) => definition.values.map((option) => option.value))));
|
|
3109
|
-
function systemCustomizeFacetDefinitionsForBlock(blockKind) {
|
|
3110
|
-
return systemCustomizeFacetDefinitions.filter((definition) => definition.blockKind === blockKind || "blockKinds" in definition && definition.blockKinds?.some((kind) => kind === blockKind));
|
|
3111
|
-
}
|
|
3112
|
-
//#endregion
|
|
3113
2807
|
//#region ../blocks/src/system/customize/fieldOwnership.ts
|
|
3114
2808
|
/**
|
|
3115
2809
|
* Values with their own owner, whatever their fields are tagged: the Background
|
|
@@ -3693,7 +3387,7 @@ function formatAppointmentLocation(location) {
|
|
|
3693
3387
|
const venue = formatVenue(location.venue);
|
|
3694
3388
|
return venue ? `${venue} or online` : "In person or online";
|
|
3695
3389
|
}
|
|
3696
|
-
default: return assertNever
|
|
3390
|
+
default: return assertNever(location);
|
|
3697
3391
|
}
|
|
3698
3392
|
}
|
|
3699
3393
|
function formatVenue(venue) {
|
|
@@ -3739,7 +3433,7 @@ function appointmentPricingDisplay(pricing) {
|
|
|
3739
3433
|
maxAmount: pricing.slidingMaxAmount,
|
|
3740
3434
|
currency: pricing.currency
|
|
3741
3435
|
};
|
|
3742
|
-
default: return assertNever
|
|
3436
|
+
default: return assertNever(pricing.pricingStrategy);
|
|
3743
3437
|
}
|
|
3744
3438
|
}
|
|
3745
3439
|
//#endregion
|
|
@@ -3799,7 +3493,7 @@ function serviceDetailsFacts(service) {
|
|
|
3799
3493
|
value: describePublicRefundPolicy(service.cancellationPolicy.refunds)
|
|
3800
3494
|
},
|
|
3801
3495
|
...practitioners.length ? [{
|
|
3802
|
-
label:
|
|
3496
|
+
label: "With",
|
|
3803
3497
|
value: practitioners.map((person) => person.roleLabel ? `${person.name}, ${person.roleLabel}` : person.name).join("; ")
|
|
3804
3498
|
}] : []
|
|
3805
3499
|
];
|
|
@@ -4126,7 +3820,7 @@ function resolveLinkedContentEditSupport(contentType) {
|
|
|
4126
3820
|
kind: "unsupported-domain-backed",
|
|
4127
3821
|
reason: metadata.reason
|
|
4128
3822
|
};
|
|
4129
|
-
default: return assertNever
|
|
3823
|
+
default: return assertNever(metadata);
|
|
4130
3824
|
}
|
|
4131
3825
|
}
|
|
4132
3826
|
function contentTypeKeyToLabel(key) {
|
|
@@ -4352,7 +4046,7 @@ function sourceLabel(source) {
|
|
|
4352
4046
|
case "managed-database": return "DB";
|
|
4353
4047
|
case "sdk-synced": return "SDK-synced DB";
|
|
4354
4048
|
case "sdk-config": return "SDK config";
|
|
4355
|
-
default: return assertNever
|
|
4049
|
+
default: return assertNever(source);
|
|
4356
4050
|
}
|
|
4357
4051
|
}
|
|
4358
4052
|
//#endregion
|
|
@@ -4727,7 +4421,7 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
|
|
|
4727
4421
|
...mode !== null ? { variant: mode } : {},
|
|
4728
4422
|
...effectiveContent,
|
|
4729
4423
|
...photoContent,
|
|
4730
|
-
...
|
|
4424
|
+
...arrangementMediaFrameContent(blockKind, effective, values, authored),
|
|
4731
4425
|
...arrangementPanelContent(activeContent, effective, mode),
|
|
4732
4426
|
...arrangementQuoteContent(blockKind, effective, values),
|
|
4733
4427
|
_arrangementLooks: runtime,
|
|
@@ -4779,11 +4473,15 @@ function arrangementPhotoTreatmentContent(content, look, palette, tint) {
|
|
|
4779
4473
|
function arrangementContentSlots(blockKind) {
|
|
4780
4474
|
return Object.fromEntries(arrangementSlotNames.filter((slot) => (!slot.startsWith("price-") || blockKind === "block.shop") && slot !== "schedule-section" && slot !== "shop-section" && (slot !== "background" || blockKind === "block.hero")).map((slot) => [slot, slot]));
|
|
4781
4475
|
}
|
|
4782
|
-
/**
|
|
4783
|
-
function
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4476
|
+
/** One frame declaration owns shape crops and keeps authored ratios for variable layouts. */
|
|
4477
|
+
function arrangementMediaFrameContent(blockKind, look, knobs, authored) {
|
|
4478
|
+
if (blockKind !== "block.intro" && blockKind !== "block.media-text") return {};
|
|
4479
|
+
const frame = resolveLookMediaFrame(look.look.structure.mediaFrame, look.skin, knobs);
|
|
4480
|
+
if (!frame) return {};
|
|
4481
|
+
return frame.kind === "fixed" ? {
|
|
4482
|
+
aspectRatio: frame.aspectRatio,
|
|
4483
|
+
_lookMediaFrame: frame
|
|
4484
|
+
} : { aspectRatio: typeof authored.aspectRatio === "string" ? authored.aspectRatio : frame.aspectRatio };
|
|
4787
4485
|
}
|
|
4788
4486
|
function arrangementQuoteContent(blockKind, effective, values) {
|
|
4789
4487
|
if (blockKind !== "block.testimonials") return {};
|
|
@@ -5010,4 +4708,4 @@ function plannedSlotParents(entry, look) {
|
|
|
5010
4708
|
return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement, look.look.structure.eventRows);
|
|
5011
4709
|
}
|
|
5012
4710
|
//#endregion
|
|
5013
|
-
export {
|
|
4711
|
+
export { resolveEventLinkProps as $, deriveEventScheduleSummary as A, MapPinIcon as B, EventHeader as C, OfferingCourseCards as D, EventListingFrameView as E, CardListCollection as F, buildMonthDay as G, eventDisplayTitleText as H, CardListItems as I, selectQuickDateEvents as J, resolveMonthSelectedDay as K, EventItem as L, createEditorPresentationPageReader as M, createPresentationPageReader as N, eventCardListContent as O, EmptyState as P, resolveEventCta as Q, eventCategoryBadge as R, lookPartShown as S, MonthLookView as T, formatCourseDatesAfter as U, eventDisplayTitle as V, formatCourseSessions as W, formatEventDuration as X, formatEventTeacherLine as Y, resolveEventCardBooking as Z, publicAppointmentPricingSchema as _, joinSlotKey as a, defaultThemeTokens as at, resolvePageRouteTarget as b, buildLinkedContentEditTarget as c, builtinTransformDefinitions as d, parseStoredVariant as et, defaultTransforms as f, publicAppointmentLocationSchema as g, formatAppointmentPrice as h, composePageJoins as i, buildThemeTokens as it, derivePreviewRunSchedule as j, offeringDatesBySeries as k, coerceLinkedContentEntriesPayload as l, formatAppointmentLocation as m, createPageRenderPlanReader as n, lookFillPartsFromContent as nt, renderedJoinLayout as o, formatAppointmentDuration as p, formatEventQuickDate as q, planArrangementContent as r, resolveRuntimeSection as rt, retargetJoinsAcrossOmissions as s, buildPageRenderPlan as t, selectBlockContent as tt, resolveLinkedEntryInlineFieldEligibility as u, resolveAuthoredLinkHref as v, EVENT_REGISTRATION_ANCHOR_ID as w, resolveRouteTarget as x, resolveEntryRouteTarget as y, CalendarIcon as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $o as
|
|
2
|
-
import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-
|
|
1
|
+
import { $o as resolveRepeaterGridSpanFieldId, Cs as trimmedStringOrNull, Fi as plainTextToInlineText, Ii as normalizeSelectSource, Is as resolveBookingBusinessTimeZone, Mi as inlineTextToPlainText, Pi as parseInlineTextFromUnknown, Qo as resolveRepeaterGridRowFieldId, Ri as parseFieldDefinitions, Rs as toUtcIsoDateTimeString, Ss as publicLocationSchema, Uo as DEFAULT_MEDIA_FIELD_KINDS, Xo as parseRepeaterGridInteger, Yo as isAcceptedRepeaterGridSpan, Zo as resolveRepeaterGridColumnFieldId, _a as linkSchema, l as sanitizeNewsletterSignupPublicContent, os as isRecord$1, qs as parseContentVersionId, t as getBlockDefinition, xs as projectPublicLocation, yi as parseBlockIconValue, ys as locationValueSchema } from "./registry-DmqxC8th.mjs";
|
|
2
|
+
import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-CUDHMirj.mjs";
|
|
3
3
|
import { f as PUBLIC_FILE_FIELD_KINDS, h as mediaIdentifierSchema, i as mediaSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
4
4
|
import { a as isRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
|
|
5
5
|
import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
|
|
@@ -1749,6 +1749,14 @@ function resolveSiteCustomBlocks(site) {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
//#endregion
|
|
1751
1751
|
//#region src/rendering/helpers/pageRuntimeSupport.ts
|
|
1752
|
+
/** The booking-related site runtime, with its defaults. */
|
|
1753
|
+
function siteBookingRenderSupport(site) {
|
|
1754
|
+
return {
|
|
1755
|
+
bookingOfferingPresets: site.bookingOfferingPresets ?? [],
|
|
1756
|
+
bookingTimeZone: resolveBookingBusinessTimeZone(site.bookingTimeZone),
|
|
1757
|
+
businessPerson: site.bookingPerson ?? null
|
|
1758
|
+
};
|
|
1759
|
+
}
|
|
1752
1760
|
function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
1753
1761
|
const customBlocks = resolveSiteCustomBlocks(site);
|
|
1754
1762
|
return {
|
|
@@ -1758,14 +1766,13 @@ function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
|
1758
1766
|
venuesById: locationMapSupport.venuesById
|
|
1759
1767
|
} : site.site,
|
|
1760
1768
|
sdkConfig: site.sdkConfig ?? null,
|
|
1761
|
-
bookingOfferingPresets: site.bookingOfferingPresets ?? [],
|
|
1762
1769
|
openingHours: site.businessDetails?.openingHours ?? null,
|
|
1763
1770
|
siteTerms: site.siteTerms,
|
|
1764
1771
|
mailingList: site.mailingList,
|
|
1765
1772
|
interactionContext: site.interactionContext,
|
|
1766
1773
|
businessLocationPermission: site.site.businessLocationPermission,
|
|
1767
1774
|
businessAddressVisibility: site.businessDetails?.addressVisibility ?? "hidden",
|
|
1768
|
-
|
|
1775
|
+
...siteBookingRenderSupport(site),
|
|
1769
1776
|
now: toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString()),
|
|
1770
1777
|
...customBlocks ? { customBlocks } : {},
|
|
1771
1778
|
supabaseUrl: site.supabaseUrl,
|
|
@@ -1776,8 +1783,9 @@ function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
|
1776
1783
|
};
|
|
1777
1784
|
}
|
|
1778
1785
|
/** Only already-permitted projections reach the block runtime. */
|
|
1779
|
-
function
|
|
1786
|
+
function siteBlockRenderContext(support) {
|
|
1780
1787
|
return {
|
|
1788
|
+
businessPerson: support.businessPerson,
|
|
1781
1789
|
businessLocationPermission: support.site.businessLocationPermission,
|
|
1782
1790
|
businessAddressVisibility: support.businessAddressVisibility ?? "hidden",
|
|
1783
1791
|
businessLocation: support.site.businessLocation ?? null,
|
|
@@ -1923,4 +1931,4 @@ function sanitizeNullableSdkRuntimeBlockContent(blockKind, content) {
|
|
|
1923
1931
|
return content ? sanitizeSdkRuntimeBlockContent(blockKind, content) : null;
|
|
1924
1932
|
}
|
|
1925
1933
|
//#endregion
|
|
1926
|
-
export { MQ_TABLET_ONLY as A, normalizeRepeaterGridSpan as C, MQ_MD_UP as D, MQ_MD_DOWN as E, MQ_SM_DOWN as O, flowRepeaterGridItems as S, MQ_LG_UP as T, admitLayoutGridForPlan as _, invalidRenderableBlock as a, projectRepeaterGridLayout as b, readSdkPreviewPublishedPlacement as c,
|
|
1934
|
+
export { MQ_TABLET_ONLY as A, normalizeRepeaterGridSpan as C, MQ_MD_UP as D, MQ_MD_DOWN as E, MQ_SM_DOWN as O, flowRepeaterGridItems as S, MQ_LG_UP as T, admitLayoutGridForPlan as _, invalidRenderableBlock as a, projectRepeaterGridLayout as b, readSdkPreviewPublishedPlacement as c, siteBlockRenderContext as d, resolveSiteCustomBlocks as f, validateManifestDraft as g, registeredManifestContentContract as h, collectMediaAssetSidecar as i, readPublishedBlockPlacement as j, MQ_SM_UP as k, resolveSdkBlockManifest as l, compileManifestContentContract as m, buildRenderablePageOutline as n, projectRenderablePageOutline as o, admitTransportedRenderableManifestContent as p, buildSiteRenderSupport as r, readInvalidBlockAdmission as s, buildPageOutline as t, sanitizeSdkRuntimeBlockContent as u, deriveFieldValidationPlan as v, resolveRepeaterGridAcceptedSpans as w, projectRepeaterGridLayoutForRendering as x, fieldPlanToZod as y };
|