@riverbankcms/sdk 0.164.0 → 0.166.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-CubPwupc.d.ts → BlocksIslandsHydrator-CPvN6RBW.d.ts} +1 -1
- package/dist/_dts/{Page-CDzsagB2.d.ts → Page-rW0xgQCA.d.ts} +18 -256
- package/dist/_dts/{SdkPreviewMode-CPRQbRCI.d.ts → SdkPreviewMode-BWZh2WCk.d.ts} +107 -72
- package/dist/_dts/{client-CbeYTSry.d.ts → client-D4BXQEZc.d.ts} +5 -1
- package/dist/_dts/{content-types--uYRIcIF.d.ts → content-types-MUzta0l9.d.ts} +3 -3
- package/dist/_dts/{contracts-DJQYAOsv.d.ts → contracts-Cl9Xh1DO.d.ts} +4 -4
- package/dist/_dts/{footerPageOutline-CKkhBwgJ.d.ts → footerPageOutline-4BgLKehl.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata--qd7NCIA.d.ts → generatePageMetadata-BsmJ0qKh.d.ts} +2 -2
- package/dist/_dts/{index-wegfy7lf.d.ts → index--qflsCiy.d.ts} +4 -3
- package/dist/_dts/{index-CjdIn9-_.d.ts → index-BgJ2aU5c.d.ts} +2 -2
- package/dist/_dts/{index-BZE-1azr.d.ts → index-Bmboeb49.d.ts} +2 -2
- package/dist/_dts/{index-BpEbwDM7.d.ts → index-DdcwPqQN.d.ts} +4 -4
- package/dist/_dts/{index-DriYVLfT.d.ts → index-ahxQCUc7.d.ts} +2 -2
- package/dist/_dts/{index-DYQFmf--.d.ts → index-kQ5xkM6X.d.ts} +1 -1
- package/dist/_dts/{index-JS8WYgD3.d.ts → index-mMMvLLAJ.d.ts} +2996 -3079
- package/dist/_dts/{index-D_pQO-AS.d.ts → index-wbBZ0awa.d.ts} +49398 -48202
- package/dist/_dts/{loadContent-DUi94Qfk.d.ts → loadContent-BG5IAV-V.d.ts} +9 -6
- package/dist/_dts/resolveBlockData-Cmcle_zV.d.ts +136 -0
- package/dist/_dts/{resolvePageContent-JDE0ry6T.d.ts → resolvePageContent-BRJUTFoH.d.ts} +3 -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 -6
- 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 +20 -0
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +2 -0
- package/dist/_dts/sdk/src/data/types.d.ts +54 -0
- 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 +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +9 -8
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +36 -48
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +3 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +257 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +8 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/{themeAdmission-D_qtGYAT.d.ts → sdk/src/rendering/themeAdmission.d.ts} +3 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +7 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-DiciZDrk.d.ts → types-BX3Y-EW3.d.ts} +3 -3
- package/dist/_dts/{types-DubJnBnI.d.ts → types-DF54stxv.d.ts} +8 -7
- package/dist/_dts/{types-W40f2olO.d.ts → types-DuiHLiPo.d.ts} +2 -2
- package/dist/_dts/{validation-BF4_zNkR.d.ts → validation-Bxi0f81D.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-64hFxF02.mjs → BlocksIslandsHydrator-DwiRGtgh.mjs} +31 -24
- package/dist/client/{BookingMailingListNote-CSQyFm9J.mjs → BookingMailingListNote-DOWOZYlK.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-Bvkx8Z7Y.mjs → CalendarNavigationChevron-5a0x0vcC.mjs} +7 -7
- package/dist/client/{CheckboxChoice-3PhxDxgR.mjs → CheckboxChoice-CZ-anOqV.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-pt2xXBQp.mjs → DemoBookingPortalAccess-B2qLkPRB.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-Qw780EfW.mjs → DemoPortalSignInLink-B9YrzZt2.mjs} +1 -1
- package/dist/client/{EventCalendar.client-DWoboRW5.mjs → EventCalendar.client-BhADnDCg.mjs} +17 -10
- package/dist/client/{EventCombined.client-C98ucpcP.mjs → EventCombined.client-jik34zTb.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-DHRlFfkp.mjs → EventEmbeddedCheckoutStep-D_14yqAU.mjs} +27 -2
- package/dist/client/{EventItem-hrSyTApW.mjs → EventItem-CMKrtkT7.mjs} +33 -12
- package/dist/client/{EventListWeekNavigation-C3t7H13W.mjs → EventListWeekNavigation-AGHjxy6C.mjs} +1 -1
- package/dist/client/{EventListing.client-Cp11sBX_.mjs → EventListing.client-DZeDM0Qt.mjs} +3 -3
- package/dist/client/{EventListing.view-Dd5QHIAf.mjs → EventListing.view-3BBRdNVa.mjs} +70 -15
- package/dist/client/{EventRegistrationPayment-ByT88VHR.mjs → EventRegistrationPayment-CpNcpga4.mjs} +108 -11
- package/dist/client/{LocationMapActions-BsepG5Vv.mjs → LocationMapActions-D5-H9ooQ.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-R4JMT4yd.mjs → MapDrawingSvg-C30geMl-.mjs} +1 -1
- package/dist/client/{Page-Dub71o3c.mjs → Page-DNDZLRlB.mjs} +3388 -11530
- package/dist/client/{ProtectedSubmitButton-DGbgGvdh.mjs → ProtectedSubmitButton-8DuDw2ag.mjs} +1 -1
- package/dist/client/{SpamProtectionWidget-CRsKTQV-.mjs → SpamProtectionWidget-CCF6YLUX.mjs} +5 -3
- package/dist/client/{StepIndicator-Bp7MyutT.mjs → StepIndicator-Bin7YR0A.mjs} +3 -3
- package/dist/client/{TabBarFragment-C4WJyybx.mjs → TabBarFragment-_IAthZVM.mjs} +1 -1
- package/dist/client/{ThemedButton-BGVwNwE-.mjs → ThemedButton-8jUc02mZ.mjs} +64 -2
- package/dist/client/{accordion-vCG_JC5t.mjs → accordion-uVqNowRX.mjs} +1 -1
- package/dist/client/{altchaProtection-BWchRM3v.mjs → altchaProtection-DjIV9A5n.mjs} +1 -1
- package/dist/client/{booking-form.client-CHTbcZJM.mjs → booking-form.client-w-PvyWBv.mjs} +19 -14
- package/dist/client/{bookingForm-BxbUbzUr.mjs → bookingForm-DNMojb6A.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-FM1mkkL0.mjs → carousel-C8kxI3Dm.mjs} +2 -2
- package/dist/client/{carousel.client-ChoLiWwD.mjs → carousel.client-BO7sCEpH.mjs} +1 -1
- package/dist/client/{cart-BDFhbh9j.mjs → cart-DCxjE3Is.mjs} +3 -3
- package/dist/client/{cart.client-x3HOke6T.mjs → cart.client-Ceeng8fB.mjs} +1 -1
- package/dist/client/{checkout-BibhwnTd.mjs → checkout-B0EKbeVv.mjs} +3 -3
- package/dist/client/{checkout.client-CE4jUi0G.mjs → checkout.client-DtPj3fYk.mjs} +1 -1
- package/dist/client/client.mjs +9465 -15
- package/dist/client/{context-BNAM7NsW.mjs → context-n6IZigd3.mjs} +8 -6
- package/dist/client/cta-CDeAwYoN.mjs +121 -0
- package/dist/client/{dateFormatting-QwBSo0hK.mjs → dateFormatting-BWPzdeZE.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-NwKJk6gn.mjs → demoPortalMagicLink-BdXu0fj-.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-D4zqEBDl.mjs → enhanceHeaderSection-VHfv8M6-.mjs} +3 -3
- package/dist/client/{event-details.client-jFyFjOIC.mjs → event-details.client-Cfr1_Cj4.mjs} +2 -2
- package/dist/client/{event-registration.client-BK_jVv3R.mjs → event-registration.client-BhygihpQ.mjs} +43 -17
- package/dist/client/{eventCalendar-DSkzejQh.mjs → eventCalendar-B4XCL9u6.mjs} +4 -4
- package/dist/client/{eventCombined-BG-BEaYh.mjs → eventCombined-DVjz4wdf.mjs} +4 -4
- package/dist/client/{eventDetails-BhIwXAKe.mjs → eventDetails-B0DA1Nw1.mjs} +2 -2
- package/dist/client/{eventListing-DQtyO1Xj.mjs → eventListing-2-xjn2nz.mjs} +4 -4
- package/dist/client/{eventRegistration-DRTz8X0M.mjs → eventRegistration-ng4iGo9O.mjs} +4 -4
- package/dist/client/{form-GXqjObPC.mjs → form-BeNQiZ2V.mjs} +3 -3
- package/dist/client/{form.client-CoKNba2e.mjs → form.client-BFdCKlp7.mjs} +7 -7
- package/dist/client/{form.parts-magB_epJ.mjs → form.parts-C7gLK3jh.mjs} +3 -3
- package/dist/client/{formatDate-BiloOyjS.mjs → formatDate-CWfelfMt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -5
- package/dist/client/{headerSection-BMQCPHT3.mjs → headerSection-CalNAShx.mjs} +2 -2
- package/dist/client/{mediaAssets-BX-vWwQc.mjs → mediaAssets-DpPauppt.mjs} +1 -1
- package/dist/client/{mediaContext-CdqGYlWl.mjs → mediaContext-BLo4NtjP.mjs} +25 -19
- package/dist/client/{newsletter-form.client-8orCez1z.mjs → newsletter-form.client-Dq7GHGXU.mjs} +9 -9
- package/dist/client/{newsletter-form.parts-D8NgHY_F.mjs → newsletter-form.parts-BSMDYQiS.mjs} +2 -2
- package/dist/client/{newsletterForm-BhBNsS3n.mjs → newsletterForm-snzZ4L6i.mjs} +3 -3
- package/dist/client/{noop-C2vZse15.mjs → noop-D-RG9eR3.mjs} +399 -169
- package/dist/client/portal/client.mjs +13 -14
- package/dist/client/{product-detail.client-CQ0k0fbH.mjs → product-detail.client-Gu0INDb7.mjs} +1 -1
- package/dist/client/{product-list.client-Xlr1P0x9.mjs → product-list.client-BmH40fNf.mjs} +1 -1
- package/dist/client/{productDetail-BsCao6X4.mjs → productDetail-DsPUmJ0z.mjs} +3 -3
- package/dist/client/{productList-Cc-PmbEe.mjs → productList-DjGrjOwD.mjs} +3 -3
- package/dist/client/{propsDecoder-DikkDJ9x.mjs → propsDecoder-kTVPMnfD.mjs} +4 -4
- package/dist/client/{registry.server-BpLZo3bC.mjs → registry.server-CKK_RXZo.mjs} +350 -424
- package/dist/client/rendering/client.mjs +29 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +70 -8
- package/dist/client/{richText-coerce-WuMYrBm3.mjs → richText-coerce-BcjTX-7h.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DNx6b07x.mjs → routeIslandApiConfig-CaXesATK.mjs} +1 -1
- package/dist/client/{shop-DyXtB5TD.mjs → shop-DLufMauE.mjs} +3 -3
- package/dist/client/{shop-commerce-xjWH7-Ym.mjs → shop-commerce-BxYYXLNK.mjs} +12 -12
- package/dist/client/{shop-commerce-store-CbBsS1kD.mjs → shop-commerce-store-Dp3Nl5YK.mjs} +1 -1
- package/dist/client/{shop.client-QOKqQPgK.mjs → shop.client-CBy9_alG.mjs} +13 -13
- package/dist/client/{shop.interactive-BQdm441g.mjs → shop.interactive-BM0NRsFQ.mjs} +265 -24
- package/dist/client/{shopShared-CyW6MU48.mjs → shopShared-lS23OQE-.mjs} +2 -2
- package/dist/client/site-styles-D8jEPGxA.mjs +3 -0
- package/dist/{preview-next/client/ThemedButton-g7NPrsGp.mjs → client/site-styles-DELkUk9s.mjs} +25654 -17259
- package/dist/client/spam-protection.mjs +2 -2
- package/dist/client/src-DjnxOjXG.mjs +217 -0
- package/dist/client/surfaceTransportMarker-BXepAVF6.mjs +152 -0
- package/dist/client/{timetableModel-BgdkhRuA.mjs → timetableModel-DzRWikCU.mjs} +157 -139
- package/dist/client/types-sF-IrGQr.mjs +633 -0
- package/dist/client/{useAvailableSlots-wmdo6uZ8.mjs → useAvailableSlots-C3LphWDX.mjs} +8 -5
- package/dist/client/{useBookingNowIso-CUExAee1.mjs → useBookingNowIso-Da-f9iHw.mjs} +1 -1
- package/dist/client/{useDiscountApply-BRM-OoTN.mjs → useDiscountApply-SLoWhcen.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-BEIvL31G.mjs → useDiscountCodeUi-D6a2BJij.mjs} +1 -1
- package/dist/client/{useEventPagination-Dk3g64we.mjs → useEventPagination-Ccr4TZlm.mjs} +12 -159
- package/dist/client/{view-BnaOmrap.mjs → view-8w4GA8rf.mjs} +4 -4
- package/dist/client/{view-vhKGFfC3.mjs → view-DAVEoe8A.mjs} +310 -247
- package/dist/client/{wizardSteps-xqU4q63H.mjs → wizardSteps-DNpajrAH.mjs} +495 -173
- package/dist/preview-next/before-render.mjs +4 -141
- package/dist/preview-next/client/ArrangementLookControls-DY5TzhEa.mjs +31197 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-43wIAWr4.mjs → EventEmbeddedCheckoutStep-C_h1cMYm.mjs} +33 -4
- package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-D56RD3e_.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-DFnyCckr.mjs} +2 -2
- package/dist/preview-next/client/PreviewEditorSidebar-DdnhmdFO.mjs +37049 -0
- package/dist/preview-next/client/PreviewEditorUI-C7ZmYE33.mjs +1189 -0
- package/dist/preview-next/client/PreviewShell-DnO38NaL.mjs +4707 -0
- package/dist/preview-next/client/SdkPreviewModeRuntime-D2OtoRMB.mjs +4258 -0
- package/dist/preview-next/client/SiteChromeCustomizeButton-eIu2RejJ.mjs +71144 -0
- package/dist/preview-next/client/ThemedButton-C0dgGJ5k.mjs +2006 -0
- package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CPBCf6QT.mjs} +15 -2
- package/dist/preview-next/client/previewAssistantSlot-Bp1AlAxx.mjs +110560 -0
- package/dist/preview-next/client/previewChromeSurface-D2cREDJ5.mjs +190 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/sdk-runtime-DK0PUhLL.mjs +5 -0
- package/dist/preview-next/client/useAutosaveStatus--Pw8vnef.mjs +138 -0
- package/dist/preview-next/client/useBlockCustomizeControls-C1Rl73N4.mjs +2724 -0
- package/dist/preview-next/client/useOpenBlockForSetup-CL3842FM.mjs +28 -0
- package/dist/preview-next/keepAlive.mjs +27 -4
- package/dist/preview-next/middleware.mjs +2 -2
- package/dist/preview-next/{route-contract-D5tHZEz5.mjs → route-contract-Bq7SUX3K.mjs} +143 -126
- package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-Iy7g11iP.mjs → Block.shared-wXr7Iwhs.mjs} +7 -4
- package/dist/server/{src-cbbK3Bho.mjs → ThemeScopeCore-BI2mld9R.mjs} +1153 -2523
- package/dist/server/accessibleSurfaces-CuN8U_iU.mjs +2102 -0
- package/dist/server/{bindings-BVJGgUT0.mjs → bindings-DjdUq9FR.mjs} +2 -3
- package/dist/server/{publicProducts-D3Fc5TKk.mjs → client-07UeMDzA.mjs} +2492 -357
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +33 -2
- package/dist/server/data/dataLoaderContext.mjs +2 -0
- package/dist/server/data/resolveBlockData.mjs +2 -0
- package/dist/server/data/types.mjs +1 -0
- package/dist/server/dataLoaderContext-B3fXA54R.mjs +47 -0
- package/dist/server/identity-Bn9OQiT1.mjs +6 -0
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BuintpdO.mjs → loadContent-ClpaSlBb.mjs} +6 -5
- package/dist/server/{loadPage-Dk4wea8M.mjs → loadPage-BwtVqpaA.mjs} +4 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/media-DnlczCMA.mjs +231 -0
- package/dist/server/mode-Cv_TG9gP.mjs +63 -0
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next/revalidate.mjs +1 -1
- package/dist/server/next.mjs +13 -13
- package/dist/server/opaqueSurface-3YSDPtDe.mjs +54 -0
- package/dist/server/{overrideResolution-BDiQWM7D.mjs → overrideResolution-Du_w3LY4.mjs} +2 -1
- package/dist/server/overrides-CD4d-1w7.mjs +177 -0
- package/dist/server/page-converter.mjs +243 -91
- package/dist/server/pageRenderPlan-BShULdc2.mjs +4055 -0
- package/dist/server/{themeAdmission-BdY8lP-K.mjs → pageRuntimeSupport-C4Dh5-mB.mjs} +13 -28
- package/dist/server/{overrides-DVemf-GV.mjs → pageShared-HdKFBpaX.mjs} +3594 -1726
- package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +52 -0
- package/dist/server/{prebuild-DubLNgRH.mjs → prebuild-Cl-bkaMA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/prefetchBlockData-C4yUmz-r.mjs +786 -0
- package/dist/server/publicProducts-W9hDRwjz.mjs +64 -0
- package/dist/server/{registry-zjd1P2Dl.mjs → registry-TFPJdGQi.mjs} +20901 -792
- package/dist/server/rendering/components/pageShared.mjs +2 -0
- package/dist/server/rendering/helpers/loadPage.mjs +2 -0
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -0
- package/dist/server/rendering/server.mjs +5 -4
- package/dist/server/rendering/themeAdmission.mjs +2 -0
- package/dist/server/rendering.mjs +11 -10
- package/dist/server/repeaterFields-MIz7r1ez.mjs +9 -0
- package/dist/server/{resolveBlockData-CZJ--nH6.mjs → resolveBlockData-OHlOXlOE.mjs} +6 -48
- package/dist/server/resolveButtonColourStates-lry2ORwX.mjs +2672 -0
- package/dist/server/{richTextSchema-YYc85FX4.mjs → richTextSchema-Euhuj-7V.mjs} +26 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/schema-C2PqHrMo.mjs +2523 -0
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1031 -1
- package/dist/server/theme.mjs +2 -1
- package/dist/server/themeAdmission-DGSAlFUK.mjs +18 -0
- package/dist/server/{three-pass-converter-Chnb1XD-.mjs → three-pass-converter-_j2UE2tR.mjs} +1 -1
- package/dist/server/validation-CDd6m8Ry.mjs +140 -0
- package/dist/server/{validation-CGH-Xs4E.mjs → validation-DIBFZeMB.mjs} +419 -3
- package/dist/server/{version-DoOG6F13.mjs → version-DZWZM1H6.mjs} +1 -1
- package/dist/styles/index.css +924 -10
- package/package.json +39 -1
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
- package/dist/client/cta-ChiN1Vgg.mjs +0 -80
- package/dist/client/purchase-BMsWpx8y.mjs +0 -894
- package/dist/client/schema-DMUkBtIO.mjs +0 -15915
- package/dist/client/site-styles-BLHYJ8S7.mjs +0 -12339
- package/dist/client/src-VIsPY-kw.mjs +0 -62
- package/dist/preview-next/client/PreviewEditorSidebar-C3AQVxQt.mjs +0 -5441
- package/dist/preview-next/client/PreviewEditorUI-C-1zDCR_.mjs +0 -756
- package/dist/preview-next/client/SdkPreviewModeRuntime-B47yHFL0.mjs +0 -9130
- package/dist/preview-next/client/SdkPreviewModeRuntime-C6Rhm2NQ.mjs +0 -3
- package/dist/preview-next/client/previewAuthStore-By_zfrS5.mjs +0 -212195
- package/dist/preview-next/client/previewChromeSurface-Cjwxv90x.mjs +0 -85
- package/dist/preview-next/client/result-BjJUoxUF.mjs +0 -16
- package/dist/preview-next/client/sdk-runtime-BG2HYvQj.mjs +0 -4
- package/dist/preview-next/client/siteStyleAccess-BiSyYyyr.mjs +0 -14178
- package/dist/preview-next/client/spinner-DnWpeDp2.mjs +0 -67
- package/dist/preview-next/refresh-contract-uQ6BXgLJ.mjs +0 -25
- package/dist/server/bindings-Dgt_0goJ.mjs +0 -17
- package/dist/server/client-CiKaE8ms.mjs +0 -2330
- package/dist/server/effectiveNavLinkStyle-EDSdd_oK.mjs +0 -11574
- package/dist/server/loadPage-BwjncpJf.mjs +0 -2
- package/dist/server/prefetchBlockData-Bnbwoe5n.mjs +0 -4156
- package/dist/server/schema-BlTWmTSl.mjs +0 -16142
- package/dist/server/site-styles-yHytcXIB.mjs +0 -768
- package/dist/server/siteChromeOverlayClearance-D0uCNZ7E.mjs +0 -802
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
//#region src/env.ts
|
|
2
|
+
/**
|
|
3
|
+
* Error thrown when required environment variables are missing
|
|
4
|
+
*/
|
|
5
|
+
var RiverbankEnvError = class extends Error {
|
|
6
|
+
constructor(message, missingVars) {
|
|
7
|
+
super(message);
|
|
8
|
+
this.missingVars = missingVars;
|
|
9
|
+
this.name = "RiverbankEnvError";
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Get the environment variable prefix based on target
|
|
14
|
+
*/
|
|
15
|
+
function getEnvPrefix(target) {
|
|
16
|
+
return target === "remote" ? "RIVERBANK_REMOTE" : "RIVERBANK_LOCAL";
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Detect the environment target from RIVERBANK_ENV
|
|
20
|
+
*/
|
|
21
|
+
function detectTarget() {
|
|
22
|
+
const env = process.env.RIVERBANK_ENV?.toLowerCase();
|
|
23
|
+
if (env === "remote" || env === "production" || env === "prod") return "remote";
|
|
24
|
+
return "local";
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Detect if preview mode is enabled.
|
|
28
|
+
* Uses RIVERBANK_PREVIEW_MODE first, then falls back to RIVERBANK_PREVIEW for backward compat.
|
|
29
|
+
*/
|
|
30
|
+
function detectPreviewMode() {
|
|
31
|
+
const previewMode = process.env.RIVERBANK_PREVIEW_MODE;
|
|
32
|
+
if (previewMode !== void 0 && previewMode !== "") return previewMode === "true";
|
|
33
|
+
const previewLegacy = process.env.RIVERBANK_PREVIEW;
|
|
34
|
+
if (previewLegacy !== void 0 && previewLegacy !== "") return previewLegacy === "true";
|
|
35
|
+
return process.env.VERCEL_ENV === "preview";
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Validate that an API key matches the expected format for its type
|
|
39
|
+
*/
|
|
40
|
+
function validateKeyType(key, expectedType) {
|
|
41
|
+
const isPreviewKey = key.startsWith("bld_preview_sk_");
|
|
42
|
+
const isContentKey = key.startsWith("bld_live_sk_");
|
|
43
|
+
if (expectedType === "preview" && !isPreviewKey) {
|
|
44
|
+
if (isContentKey) throw new RiverbankEnvError("Preview mode is enabled (RIVERBANK_PREVIEW_MODE=true) but a content key was provided. Preview mode requires a preview API key (bld_preview_sk_...) to access draft content. Either:\n 1. Set RIVERBANK_*_PREVIEW_API_KEY with your preview key, or\n 2. Set RIVERBANK_PREVIEW_MODE=false to fetch published content instead.", []);
|
|
45
|
+
throw new RiverbankEnvError(`Invalid API key format for preview mode. Expected key starting with bld_preview_sk_`, []);
|
|
46
|
+
}
|
|
47
|
+
if (expectedType === "content" && !isContentKey) {
|
|
48
|
+
if (isPreviewKey) {
|
|
49
|
+
console.debug("[getRiverbankEnv] Using preview key for published content. Consider using a content key (bld_live_sk_...) for production.");
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
throw new RiverbankEnvError(`Invalid API key format for content access. Expected key starting with bld_live_sk_ or bld_preview_sk_`, []);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Detects if the current environment is in preview mode.
|
|
57
|
+
*
|
|
58
|
+
* Precedence:
|
|
59
|
+
* 1. RIVERBANK_PREVIEW_MODE env var (explicit override) - 'true' or 'false'
|
|
60
|
+
* 2. RIVERBANK_PREVIEW env var (legacy) - 'true' or 'false'
|
|
61
|
+
* 3. VERCEL_ENV === 'preview' (Vercel preview deployments)
|
|
62
|
+
* 4. Default: false (production behavior)
|
|
63
|
+
*
|
|
64
|
+
* In preview mode:
|
|
65
|
+
* - Draft content is visible
|
|
66
|
+
* - ISR revalidation is more aggressive
|
|
67
|
+
* - Cache bypass may be enabled
|
|
68
|
+
*
|
|
69
|
+
* @returns true if in preview mode, false otherwise
|
|
70
|
+
*/
|
|
71
|
+
function isPreviewMode() {
|
|
72
|
+
return detectPreviewMode();
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get runtime environment configuration with automatic API key selection.
|
|
76
|
+
*
|
|
77
|
+
* This helper reads environment variables and automatically selects the correct
|
|
78
|
+
* API key based on the current environment and preview mode:
|
|
79
|
+
*
|
|
80
|
+
* - When `RIVERBANK_PREVIEW_MODE=true`: Uses preview API key (bld_preview_sk_...)
|
|
81
|
+
* - When `RIVERBANK_PREVIEW_MODE=false` (default): Uses content API key (bld_live_sk_...)
|
|
82
|
+
*
|
|
83
|
+
* Environment variable patterns:
|
|
84
|
+
* - `RIVERBANK_ENV`: 'local' (default) or 'remote'
|
|
85
|
+
* - `RIVERBANK_PREVIEW_MODE`: 'true' or 'false' (default)
|
|
86
|
+
* - `RIVERBANK_{LOCAL|REMOTE}_SITE_ID`: Site ID
|
|
87
|
+
* - `RIVERBANK_{LOCAL|REMOTE}_DASHBOARD_URL`: Dashboard URL
|
|
88
|
+
* - `RIVERBANK_{LOCAL|REMOTE}_API_KEY`: Content/live API key
|
|
89
|
+
* - `RIVERBANK_{LOCAL|REMOTE}_PREVIEW_API_KEY`: Preview API key
|
|
90
|
+
*
|
|
91
|
+
* @returns Environment configuration with auto-selected API key
|
|
92
|
+
* @throws {RiverbankEnvError} If required environment variables are missing
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* // lib/builder-client.ts
|
|
97
|
+
* import { getRiverbankEnv } from './env';
|
|
98
|
+
* import { createRiverbankClient } from '@riverbankcms/sdk';
|
|
99
|
+
*
|
|
100
|
+
* const env = getRiverbankEnv();
|
|
101
|
+
*
|
|
102
|
+
* export const client = createRiverbankClient({
|
|
103
|
+
* apiKey: env.apiKey,
|
|
104
|
+
* baseUrl: env.baseUrl,
|
|
105
|
+
* });
|
|
106
|
+
*
|
|
107
|
+
* export const siteId = env.siteId;
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
function getRiverbankEnv() {
|
|
111
|
+
const target = detectTarget();
|
|
112
|
+
const previewMode = detectPreviewMode();
|
|
113
|
+
const prefix = getEnvPrefix(target);
|
|
114
|
+
const siteId = process.env[`${prefix}_SITE_ID`];
|
|
115
|
+
const dashboardUrl = process.env[`${prefix}_DASHBOARD_URL`];
|
|
116
|
+
const contentKey = process.env[`${prefix}_API_KEY`];
|
|
117
|
+
const previewKey = process.env[`${prefix}_PREVIEW_API_KEY`];
|
|
118
|
+
const missingVars = [];
|
|
119
|
+
if (!siteId) missingVars.push(`${prefix}_SITE_ID`);
|
|
120
|
+
if (!dashboardUrl) missingVars.push(`${prefix}_DASHBOARD_URL`);
|
|
121
|
+
let apiKey;
|
|
122
|
+
let keyType;
|
|
123
|
+
if (previewMode) {
|
|
124
|
+
apiKey = previewKey;
|
|
125
|
+
keyType = "preview";
|
|
126
|
+
if (!apiKey) missingVars.push(`${prefix}_PREVIEW_API_KEY`);
|
|
127
|
+
} else {
|
|
128
|
+
apiKey = contentKey || previewKey;
|
|
129
|
+
keyType = contentKey ? "content" : "preview";
|
|
130
|
+
if (!apiKey) missingVars.push(`${prefix}_API_KEY`);
|
|
131
|
+
}
|
|
132
|
+
if (missingVars.length > 0) throw new RiverbankEnvError(`Missing required environment variables for Riverbank SDK:\n` + missingVars.map((v) => ` - ${v}`).join("\n") + `\n\nCurrent settings: RIVERBANK_ENV=${process.env.RIVERBANK_ENV || "local"}, RIVERBANK_PREVIEW_MODE=${process.env.RIVERBANK_PREVIEW_MODE || "false"}`, missingVars);
|
|
133
|
+
if (!apiKey || !dashboardUrl || !siteId) throw new RiverbankEnvError("Required environment variables missing", missingVars);
|
|
134
|
+
validateKeyType(apiKey, keyType);
|
|
135
|
+
let baseUrl = dashboardUrl;
|
|
136
|
+
if (!baseUrl.endsWith("/api")) baseUrl = baseUrl.replace(/\/$/, "") + "/api";
|
|
137
|
+
return {
|
|
138
|
+
target,
|
|
139
|
+
previewMode,
|
|
140
|
+
siteId,
|
|
141
|
+
baseUrl,
|
|
142
|
+
apiKey,
|
|
143
|
+
keyType
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/rendering/renderingMode.ts
|
|
148
|
+
const defaultOverrideOnlyRuntime = { kind: "responsive-only" };
|
|
149
|
+
function normalizeSdkRenderingMode(input) {
|
|
150
|
+
return input.rendering?.kind === "overrides-only" ? {
|
|
151
|
+
kind: "overrides-only",
|
|
152
|
+
runtime: input.rendering.runtime ?? defaultOverrideOnlyRuntime
|
|
153
|
+
} : {
|
|
154
|
+
kind: "themed",
|
|
155
|
+
themeRuntime: input.themeRuntime
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function themeRuntimeForRendering(rendering) {
|
|
159
|
+
return rendering.kind === "themed" ? rendering.themeRuntime : rendering.runtime;
|
|
160
|
+
}
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region src/rendering/overrides.ts
|
|
163
|
+
const lazyBlockOverrideSymbol = Symbol.for("riverbankcms.sdk.lazyBlockOverride");
|
|
164
|
+
function defineLazyBlockOverride(load) {
|
|
165
|
+
return {
|
|
166
|
+
[lazyBlockOverrideSymbol]: true,
|
|
167
|
+
load
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function defineBlockOverrides(overrides) {
|
|
171
|
+
return overrides;
|
|
172
|
+
}
|
|
173
|
+
function defineBlockOverrideRegistrations(registrations) {
|
|
174
|
+
return registrations;
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
export { defaultOverrideOnlyRuntime as a, getRiverbankEnv as c, lazyBlockOverrideSymbol as i, isPreviewMode as l, defineBlockOverrides as n, normalizeSdkRenderingMode as o, defineLazyBlockOverride as r, themeRuntimeForRendering as s, defineBlockOverrideRegistrations as t };
|
|
@@ -1,143 +1,295 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Br as parseBackgroundContent, n as listBlockDescriptors } from "./registry-TFPJdGQi.mjs";
|
|
2
|
+
import { n as createRichTextDoc } from "./richTextSchema-Euhuj-7V.mjs";
|
|
3
|
+
import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
|
|
2
4
|
import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
|
|
3
|
-
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-_j2UE2tR.mjs";
|
|
4
6
|
import { z } from "zod";
|
|
5
|
-
//#region src/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
//#region ../blocks/src/assistantSectionCatalog.ts
|
|
8
|
+
const words = (text) => createRichTextDoc([text]);
|
|
9
|
+
const button = {
|
|
10
|
+
label: "Get in touch",
|
|
11
|
+
link: {
|
|
12
|
+
kind: "external",
|
|
13
|
+
href: "https://example.com/contact"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const image = {
|
|
17
|
+
identifier: "studio-photo",
|
|
18
|
+
alt: "Our light and welcoming studio"
|
|
19
|
+
};
|
|
20
|
+
/** Short, complete content examples. Media identifiers must be replaced with this site's library results. */
|
|
21
|
+
const ASSISTANT_SECTION_EXAMPLES = {
|
|
22
|
+
"block.hero": {
|
|
23
|
+
headline: "Make time for yourself",
|
|
24
|
+
headlineInline: [{ text: "Make time for yourself" }],
|
|
25
|
+
subheadline: "A welcoming place to begin.",
|
|
26
|
+
ctas: [button]
|
|
27
|
+
},
|
|
28
|
+
"block.intro": {
|
|
29
|
+
title: "Welcome",
|
|
30
|
+
body: words("Come as you are. We will help you find your next step.")
|
|
31
|
+
},
|
|
32
|
+
"block.body-text": {
|
|
33
|
+
heading: "About us",
|
|
34
|
+
body: words("We bring people together to learn and grow.")
|
|
35
|
+
},
|
|
36
|
+
"block.columns": { columns: [{
|
|
37
|
+
_type: "card",
|
|
38
|
+
title: "Find your space",
|
|
39
|
+
body: words("A place to feel at home.")
|
|
40
|
+
}] },
|
|
41
|
+
"block.feature-cards": {
|
|
42
|
+
title: "What you can expect",
|
|
43
|
+
cards: [{
|
|
44
|
+
title: "A warm welcome",
|
|
45
|
+
body: words("Friendly guidance from your first visit.")
|
|
46
|
+
}]
|
|
47
|
+
},
|
|
48
|
+
"block.media-text": {
|
|
49
|
+
title: "Our space",
|
|
50
|
+
images: [{ image }],
|
|
51
|
+
text: words("A bright studio with room to breathe.")
|
|
52
|
+
},
|
|
53
|
+
"block.cta-full": {
|
|
54
|
+
title: "Take your first step",
|
|
55
|
+
content: words("We would love to meet you."),
|
|
56
|
+
ctas: [button]
|
|
57
|
+
},
|
|
58
|
+
"block.single-button": {
|
|
59
|
+
title: "Have a question?",
|
|
60
|
+
button
|
|
61
|
+
},
|
|
62
|
+
"block.faq": {
|
|
63
|
+
title: "Questions people ask",
|
|
64
|
+
items: [{
|
|
65
|
+
question: "What should I bring?",
|
|
66
|
+
answer: words("Comfortable clothes and a bottle of water.")
|
|
67
|
+
}]
|
|
68
|
+
},
|
|
69
|
+
"block.image-gallery": { images: [{
|
|
70
|
+
image,
|
|
71
|
+
caption: "A look around our studio"
|
|
72
|
+
}] },
|
|
73
|
+
"block.location-map": {
|
|
74
|
+
heading: "Visit us",
|
|
75
|
+
locationSource: "custom",
|
|
76
|
+
location: {
|
|
77
|
+
address: {
|
|
78
|
+
street: "10 High Street",
|
|
79
|
+
locality: "London"
|
|
80
|
+
},
|
|
81
|
+
pin: {
|
|
82
|
+
lat: 51.5074,
|
|
83
|
+
lng: -.1278
|
|
84
|
+
},
|
|
85
|
+
ownerConfirmedPinAndAddress: true
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"block.testimonials": { heading: "What people say" },
|
|
89
|
+
"block.team-members": {
|
|
90
|
+
heading: "Meet the team",
|
|
91
|
+
source: "site_staff"
|
|
92
|
+
},
|
|
93
|
+
"block.event-listing": {
|
|
94
|
+
heading: "Coming up",
|
|
95
|
+
emptyMessage: "More events will be announced soon."
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region ../blocks/src/manifestGuide.ts
|
|
100
|
+
/** Pure manifest-to-model projection. Record values are resolved by the caller's read tool. */
|
|
101
|
+
function entryPickerDetails(field) {
|
|
14
102
|
return {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
required: input.required,
|
|
20
|
-
options: input.options,
|
|
21
|
-
...input.type === "repeater" ? { itemFields: nested } : { fields: nested }
|
|
103
|
+
kind: "entry",
|
|
104
|
+
contentType: field.fixedContentType ?? field.ui?.fixedContentType,
|
|
105
|
+
contentTypeField: field.contentTypeField ?? field.ui?.contentTypeField,
|
|
106
|
+
valueFrom: field.valueFrom ?? field.ui?.valueFrom
|
|
22
107
|
};
|
|
23
108
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
109
|
+
function recordPickerDetails(field) {
|
|
110
|
+
if (field.type === "reference") return { recordPicker: { kind: field.referenceKind } };
|
|
111
|
+
if (field.type === "entryPicker") return { recordPicker: entryPickerDetails(field) };
|
|
112
|
+
if (field.type === "contentTypeSelect") return { recordPicker: { kind: "content-type" } };
|
|
113
|
+
if (field.type === "select" && field.source?.kind === "site") return { recordPicker: {
|
|
114
|
+
kind: "site",
|
|
115
|
+
contentType: field.source.optionSource
|
|
116
|
+
} };
|
|
117
|
+
if (field.type === "select" && field.source?.kind === "sdk") return { recordPicker: { kind: "sdk" } };
|
|
118
|
+
return {};
|
|
119
|
+
}
|
|
120
|
+
function fieldDetails(field) {
|
|
121
|
+
if (field.type === "inlineText") return { format: "Styled inline text runs: [{\"text\":\"Your words\",\"marks\":[{\"kind\":\"strong\"}]}]" };
|
|
122
|
+
if (field.type === "richText") return { format: "TipTap JSON: {\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"Your words\"}]}]}" };
|
|
123
|
+
if (field.type === "select") return {
|
|
124
|
+
options: field.options,
|
|
125
|
+
multiple: field.multiple,
|
|
126
|
+
...recordPickerDetails(field)
|
|
127
|
+
};
|
|
128
|
+
if (field.type === "presetOrCustom") return { options: field.presets };
|
|
129
|
+
if (field.type === "link") return { format: "Link object: {kind:\"internal\",routeId:\"site route ID\"} or {kind:\"external\",href:\"https://example.com\"}" };
|
|
130
|
+
if (field.type === "media") return { format: "Site media library value: {identifier:\"library identifier\",alt:\"Description\"}" };
|
|
131
|
+
return recordPickerDetails(field);
|
|
132
|
+
}
|
|
133
|
+
function nestedFields(field, path) {
|
|
134
|
+
if (field.type === "repeater") return {
|
|
135
|
+
itemFields: getFlattenedRepeaterFields(field.schema?.fields ?? []).map((item) => projectField(item, `${path}[]`)),
|
|
136
|
+
...field.itemTypes ? { itemTypes: Object.fromEntries(Object.entries(field.itemTypes).map(([key, item]) => [key, {
|
|
137
|
+
label: item.label,
|
|
138
|
+
fields: getFlattenedRepeaterFields(item.fields).map((child) => projectField(child, `${path}[]`))
|
|
139
|
+
}])) } : {}
|
|
140
|
+
};
|
|
141
|
+
if (field.type === "group" || field.type === "modal") return field.ui?.valueContract === "location" ? { format: "Confirmed location: {address:{street:\"10 High Street\",locality:\"London\"},pin:{lat:51.5074,lng:-0.1278},ownerConfirmedPinAndAddress:true}" } : { fields: field.schema.fields.map((child) => projectField(child, path)) };
|
|
142
|
+
if (field.type === "tabGroup") return { fields: field.tabs.flatMap((tab) => tab.fields.map((child) => projectField(child, path))) };
|
|
143
|
+
return {};
|
|
144
|
+
}
|
|
145
|
+
function projectField(field, parent = "") {
|
|
146
|
+
const path = parent ? `${parent}.${field.id}` : field.id;
|
|
147
|
+
const limits = {
|
|
148
|
+
..."min" in field ? { min: field.min } : {},
|
|
149
|
+
..."max" in field ? { max: field.max } : {},
|
|
150
|
+
..."step" in field ? { step: field.step } : {},
|
|
151
|
+
..."maxLength" in field ? { maxLength: field.maxLength } : {},
|
|
152
|
+
..."minItems" in field ? { minItems: field.minItems } : {},
|
|
153
|
+
..."maxItems" in field ? { maxItems: field.maxItems } : {}
|
|
154
|
+
};
|
|
155
|
+
return {
|
|
31
156
|
id: field.id,
|
|
157
|
+
path,
|
|
32
158
|
type: field.type,
|
|
33
159
|
label: field.label,
|
|
34
160
|
description: field.description,
|
|
35
161
|
required: field.required,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
162
|
+
...Object.keys(limits).length ? { limits } : {},
|
|
163
|
+
...fieldDetails(field),
|
|
164
|
+
...nestedFields(field, path)
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
const contentPatterns = [
|
|
168
|
+
{
|
|
169
|
+
"type": "events",
|
|
170
|
+
"tags": ["events", "event"],
|
|
171
|
+
"signals": [
|
|
44
172
|
"dates",
|
|
45
173
|
"venues",
|
|
46
174
|
"registration"
|
|
47
175
|
]
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
type: "blog",
|
|
51
|
-
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "blog",
|
|
179
|
+
"tags": ["blog", "posts"],
|
|
180
|
+
"signals": [
|
|
52
181
|
"articles",
|
|
53
182
|
"author",
|
|
54
183
|
"publish date"
|
|
55
184
|
]
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
type: "testimonials",
|
|
59
|
-
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "testimonials",
|
|
188
|
+
"tags": ["testimonials", "reviews"],
|
|
189
|
+
"signals": [
|
|
60
190
|
"quotes",
|
|
61
191
|
"author",
|
|
62
192
|
"company"
|
|
63
193
|
]
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
type: "faq",
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"type": "faq",
|
|
197
|
+
"tags": ["faq", "accordion"],
|
|
198
|
+
"signals": ["questions", "answers"]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"type": "gallery",
|
|
202
|
+
"tags": ["gallery", "images"],
|
|
203
|
+
"signals": ["image grid", "lightbox"]
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"type": "hero",
|
|
207
|
+
"tags": ["hero", "banner"],
|
|
208
|
+
"signals": [
|
|
76
209
|
"headline",
|
|
77
210
|
"CTA",
|
|
78
211
|
"background"
|
|
79
212
|
]
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
type: "pricing",
|
|
83
|
-
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "pricing",
|
|
216
|
+
"tags": ["pricing", "plans"],
|
|
217
|
+
"signals": [
|
|
84
218
|
"prices",
|
|
85
219
|
"plans",
|
|
86
220
|
"features"
|
|
87
221
|
]
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
type: "features",
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"type": "features",
|
|
225
|
+
"tags": ["features", "benefits"],
|
|
226
|
+
"signals": ["icons", "feature cards"]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"type": "team",
|
|
230
|
+
"tags": ["team", "staff"],
|
|
231
|
+
"signals": [
|
|
96
232
|
"avatars",
|
|
97
233
|
"roles",
|
|
98
234
|
"names"
|
|
99
235
|
]
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
type: "contact",
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"type": "contact",
|
|
239
|
+
"tags": ["contact", "form"],
|
|
240
|
+
"signals": ["form fields", "submit"]
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"type": "cta",
|
|
244
|
+
"tags": ["cta", "call-to-action"],
|
|
245
|
+
"signals": ["heading", "button"]
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"type": "footer",
|
|
249
|
+
"tags": ["footer"],
|
|
250
|
+
"signals": [
|
|
112
251
|
"copyright",
|
|
113
252
|
"links",
|
|
114
253
|
"social"
|
|
115
|
-
]
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
254
|
+
],
|
|
255
|
+
"matchName": "footer"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"type": "header",
|
|
259
|
+
"tags": ["header", "navigation"],
|
|
260
|
+
"signals": [
|
|
120
261
|
"logo",
|
|
121
262
|
"navigation",
|
|
122
263
|
"menu"
|
|
123
|
-
]
|
|
124
|
-
|
|
264
|
+
],
|
|
265
|
+
"matchName": "header"
|
|
266
|
+
}
|
|
267
|
+
];
|
|
268
|
+
function blockDescriptorToSummary(descriptor) {
|
|
269
|
+
const manifest = descriptor.definition.manifest;
|
|
270
|
+
const example = Object.entries(ASSISTANT_SECTION_EXAMPLES).find(([kind]) => kind === manifest.name)?.[1];
|
|
271
|
+
const tags = manifest.tags ?? [];
|
|
272
|
+
const matchPatterns = contentPatterns.filter((pattern) => pattern.tags.some((tag) => tags.includes(tag)) || Boolean(pattern.matchName && manifest.name.includes(pattern.matchName))).map(({ type, signals }) => ({
|
|
273
|
+
type,
|
|
274
|
+
signals
|
|
275
|
+
}));
|
|
125
276
|
return {
|
|
126
277
|
name: manifest.name,
|
|
127
278
|
title: manifest.title,
|
|
128
279
|
description: manifest.description,
|
|
129
|
-
category: manifest.category
|
|
280
|
+
category: manifest.category ?? "content",
|
|
130
281
|
contentTypes: manifest.contentTypes,
|
|
131
282
|
tags: manifest.tags,
|
|
132
|
-
fieldSummary,
|
|
133
|
-
matchPatterns: matchPatterns.length > 0 ? matchPatterns : void 0
|
|
283
|
+
fieldSummary: manifest.fields.map((field) => projectField(field)),
|
|
284
|
+
matchPatterns: matchPatterns.length > 0 ? matchPatterns : void 0,
|
|
285
|
+
...example ? { example } : {}
|
|
134
286
|
};
|
|
135
287
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
*/
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region src/page-converter/block-summaries.ts
|
|
290
|
+
/** Built-in definitions are static; the projection itself stays pure. */
|
|
139
291
|
function getAvailableBlockSummaries() {
|
|
140
|
-
cachedBlockSummaries ?? (cachedBlockSummaries = listBlockDescriptors().map(blockDescriptorToSummary));
|
|
292
|
+
cachedBlockSummaries ?? (cachedBlockSummaries = listBlockDescriptors().map((descriptor) => blockDescriptorToSummary(descriptor)));
|
|
141
293
|
return cachedBlockSummaries;
|
|
142
294
|
}
|
|
143
295
|
let cachedBlockSummaries;
|