@riverbankcms/sdk 0.166.0 → 0.168.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +5 -0
- package/dist/_dts/{BlocksIslandsHydrator-CPvN6RBW.d.ts → BlocksIslandsHydrator-CiD_VVGM.d.ts} +1 -1
- package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bj6VJRS5.d.ts} +9 -8
- package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-ChpsnwDX.d.ts} +2 -2
- package/dist/_dts/{client-D4BXQEZc.d.ts → client-C8mfUxrJ.d.ts} +73 -35
- package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-_vXZyR4H.d.ts} +2 -2
- package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-CJFfrVKU.d.ts} +9 -5
- package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-CMegb23G.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-D9YdAIMh.d.ts} +2 -2
- package/dist/_dts/{index-DdcwPqQN.d.ts → index-BQXaZ7aY.d.ts} +4 -4
- package/dist/_dts/{index-ahxQCUc7.d.ts → index-Bpr-wT5k.d.ts} +2 -2
- package/dist/_dts/{index--qflsCiy.d.ts → index-C7_Rz8EY.d.ts} +3 -3
- package/dist/_dts/{index-kQ5xkM6X.d.ts → index-Cx2BQlHL.d.ts} +3 -3
- package/dist/_dts/{index-Bmboeb49.d.ts → index-Dgz6yhsy.d.ts} +1 -1
- package/dist/_dts/index-Vh8B9FSa.d.ts +14 -0
- package/dist/_dts/{index-BgJ2aU5c.d.ts → index-vR3p9Bu-.d.ts} +2 -2
- package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-dhWSgLeS.d.ts} +7 -7
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
- package/dist/_dts/{index-wbBZ0awa.d.ts → request-BrYhNV9Z.d.ts} +81287 -47810
- package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-BfSHm8Ms.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-gZJ4i1wN.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 +7 -7
- 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 +6 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/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 +7 -5
- 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 +1 -1
- package/dist/_dts/{types-BX3Y-EW3.d.ts → types-BB33-Spd.d.ts} +3 -3
- package/dist/_dts/{types-DF54stxv.d.ts → types-BVFXYtRg.d.ts} +7 -7
- package/dist/_dts/{types-DuiHLiPo.d.ts → types-FOsJ-KYb.d.ts} +4 -2
- package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-DckTc6TQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DcwEaliO.mjs} +21 -21
- package/dist/client/BookingMailingListNote-Dsugoe-n.mjs +946 -0
- package/dist/client/BookingQuestionFields-Bhh0cvsl.mjs +359 -0
- package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-CNe3ZjdC.mjs} +166 -17
- package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-BeiZxEUJ.mjs} +7 -7
- package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-BL943-tl.mjs} +11 -30
- package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-BFVxECTp.mjs} +137 -61
- package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
- package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-BIc4gjiD.mjs} +86 -17
- package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-a0QEIEf0.mjs} +1 -1
- package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-CEFTC3jH.mjs} +3 -3
- package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-Bt2sBBms.mjs} +41 -50
- package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-D9YBNb_E.mjs} +255 -40
- package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-gqzt5gkW.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-13JQI7_z.mjs} +22 -2
- package/dist/client/{Page-DNDZLRlB.mjs → Page-D_M2Vxz3.mjs} +26063 -22139
- package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
- package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-CaN8snZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-DkVKtK5a.mjs} +19 -19
- package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
- package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
- package/dist/client/{accordion-uVqNowRX.mjs → accordion-DE7OG--d.mjs} +1 -1
- package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-CS1PPjw7.mjs} +842 -374
- package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-DE2CwIU9.mjs} +5 -4
- package/dist/client/{src-DjnxOjXG.mjs → bookingQuestionValues-BjcyCru5.mjs} +88 -1
- package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
- package/dist/client/bookings.mjs +18 -13
- package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-DZyUdnFh.mjs} +3 -3
- package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
- package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
- package/dist/client/{cart-DCxjE3Is.mjs → cart-D7HkkNwe.mjs} +3 -3
- package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-H4sv2TpD.mjs} +1 -1
- package/dist/client/{checkout-B0EKbeVv.mjs → checkout-2qVyG-Sh.mjs} +3 -3
- package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DAjrBZ74.mjs} +1 -1
- package/dist/client/client.mjs +325 -65
- package/dist/client/{context-n6IZigd3.mjs → context-DXmIbXCK.mjs} +300 -3
- package/dist/client/{cta-CDeAwYoN.mjs → cta-DP_IBnq3.mjs} +2 -2
- package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-CwrkFZTr.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-DQXK-Fh6.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-DheQj7rg.mjs} +4 -4
- package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-C5UufcRp.mjs} +1 -1
- package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-CMGg63IU.mjs} +73 -239
- package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-DlD0GCEy.mjs} +4 -4
- package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-DoSi8p_l.mjs} +4 -4
- package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-DzuQYgmO.mjs} +2 -2
- package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-CkiMjl0g.mjs} +4 -4
- package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-CjS3Zpjp.mjs} +4 -4
- package/dist/client/{form-BeNQiZ2V.mjs → form-DgQqm7T2.mjs} +3 -3
- package/dist/client/{form.client-BFdCKlp7.mjs → form.client-BI9Dcsq5.mjs} +5 -5
- package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-DevF0L_A.mjs} +3 -3
- package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DDyURjoe.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CalNAShx.mjs → headerSection-DYIG6Pwb.mjs} +2 -2
- package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
- package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
- package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-BWp7Y1e1.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-Dg8s9NwJ.mjs} +2 -2
- package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-DnPraMzx.mjs} +3 -3
- package/dist/client/{noop-D-RG9eR3.mjs → noop-ByFRHYQ2.mjs} +456 -491
- package/dist/client/portal/client.mjs +76 -229
- package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-BFAgHrdg.mjs} +1 -1
- package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DVrs_DyY.mjs} +1 -1
- package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-D4rvl6Xg.mjs} +3 -3
- package/dist/client/{productList-DjGrjOwD.mjs → productList-B8o5AOMX.mjs} +3 -3
- package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-hhotPP6P.mjs} +5 -5
- package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-Ch3EpupA.mjs} +2296 -2489
- package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
- package/dist/client/rendering/client.mjs +30 -30
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +10 -9
- package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-C3LabQ1O.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-CQGlxId8.mjs} +1 -1
- package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
- package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
- package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-VDbVaKY-.mjs} +12 -12
- package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-DqdgJ8Zw.mjs} +1 -1
- package/dist/client/{shop-DLufMauE.mjs → shop-rRXplPGZ.mjs} +3 -3
- package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-DdwvMvaK.mjs} +13 -13
- package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-C8OvFY06.mjs} +167 -68
- package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-BeuJiGPU.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
- package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-Cko9LRKy.mjs} +13 -158
- package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
- package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-M6QIEiWf.mjs} +3 -3
- package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-BJSnyO0f.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-D3XnOSCi.mjs} +1 -1
- package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-PhTIoFVX.mjs} +7 -7
- package/dist/client/{view-DAVEoe8A.mjs → view-448wvvEY.mjs} +21 -12
- package/dist/client/{view-8w4GA8rf.mjs → view-L_mkgtnk.mjs} +4 -4
- package/dist/client/{site-styles-DELkUk9s.mjs → wizardSteps-CFulHWnT.mjs} +19371 -17045
- package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-BpvnOGlN.mjs} +26 -17
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-C0OtdWu_.mjs} +432 -127
- package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-Csc5vH5k.mjs} +6 -6
- package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-BOLH_pm-.mjs} +252 -158
- package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-CKodLReY.mjs} +31 -32
- package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-BeEZpeKn.mjs} +19484 -18082
- package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
- package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-BBdN5kfY.mjs} +21470 -16697
- package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-VZtGwPuH.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-kiZkMcuR.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-BiIHEeE0.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-BuFLIpmX.mjs} +2 -93
- package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-DlxYgmh_.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Bq7SUX3K.mjs → route-contract-C0sCvCYL.mjs} +248 -0
- package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-Dnhc0Wu5.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-NAQ_zsFu.mjs} +1173 -148
- package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-108nxyGc.mjs} +520 -129
- package/dist/server/{bindings-DjdUq9FR.mjs → bindings-DLoZYUxG.mjs} +2 -2
- package/dist/server/{client-07UeMDzA.mjs → client-Bc8jI8zN.mjs} +346 -63
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/headerVariant-BwR9NV4b.mjs +463 -0
- package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-D61gpqHB.mjs} +4 -5
- package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-B4ZYpIcd.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
- package/dist/server/metadata.mjs +5 -1
- package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
- package/dist/server/next/revalidate.mjs +9 -4
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
- package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-CDReKy2P.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-ByVTA7-4.mjs} +375 -171
- package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-Dzz_Dze6.mjs} +291 -5
- package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Dk5Ku6hs.mjs} +12184 -11593
- package/dist/server/{schema-C2PqHrMo.mjs → parseThemeForPersistence-pJPGfMrf.mjs} +593 -1591
- package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-CW4M0WEZ.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-Bvx0SiIM.mjs} +5 -34
- package/dist/server/{registry-TFPJdGQi.mjs → registry-Bh0Y25zH.mjs} +6041 -4562
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-OHlOXlOE.mjs → resolveBlockData-CnHHst9r.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +393 -502
- package/dist/server/responseMedia-t6gs0cB7.mjs +115 -0
- package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -3
- package/dist/server/theme.mjs +1 -2
- package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
- package/dist/server/{validation-DIBFZeMB.mjs → validation-D2bHWSxJ.mjs} +59 -10
- package/dist/server/{version-DZWZM1H6.mjs → version-DkM1eAxG.mjs} +1 -1
- package/dist/styles/index.css +991 -48
- package/package.json +4 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-mMMvLLAJ.d.ts +0 -31339
- package/dist/client/BookingMailingListNote-DOWOZYlK.mjs +0 -331
- package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
- package/dist/client/events-BmqPeeQm.mjs +0 -20
- package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
- package/dist/client/useBookingNowIso-Da-f9iHw.mjs +0 -58
- package/dist/client/wizardSteps-DNpajrAH.mjs +0 -6926
- package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +0 -52
- package/dist/server/publicProducts-W9hDRwjz.mjs +0 -64
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as __exportAll } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { $
|
|
4
|
-
import { $ as EyeOff, A as Lock, B as ImageUp, C as Palette, G as GripVertical, Gt as
|
|
5
|
-
import { B as resolveFooterLayoutHints, C as isHeaderMenuSurfaceState,
|
|
6
|
-
import {
|
|
7
|
-
import { C as useRichTextEditor, E as InlineTextEditor, F as ScrollableDialogContent, I as ScrollableDialogShell, L as emitMediaCropDebug, N as Switch, O as resolveSdkFooterMode, P as Badge, R as resolveVideoSelectionIntentForMediaField, S as insertOrReplaceRichTextImage, _ as MediaEditor, b as RichTextEditorSurface, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as getUnresolvedRichTextImageWarnings, h as useRichTextImageProjection, i as ArrangementOptionsBody, l as BackgroundPreviewSwatch, m as useSiteColourVariables, o as lookIsAutomatic, p as siteColourCss, s as useArrangementToolbar, t as ArrangementLookNote, u as formatTokenLabel, v as MediaPickerMiniDialog, w as EMPTY_DOC, x as getRichTextImagePositionFromTarget, y as MediaPickerMini, z as isSvgMimeType } from "./ArrangementLookControls-
|
|
3
|
+
import { $m as useFocusGuards, $t as planLeaseNotice, $v as unsafeAsSiteId, A as usePreviewRenderReadiness, A_ as generateUuidV4, Ad as parseSiteIconStyleGuideVersionId, Af as findCuratedPalette, Ah as resolveRepeaterGridSpanFieldId, Ai as readEventSelectionChips, Al as createFeatureCardIconKey, Am as ReactRemoveScroll, An as manifestFieldSectionOptions, At as deleteSlotBlock, B_ as DEFAULT_MAILING_LIST_TARGETING, Bn as enabledBackgroundModes, Bt as getDashboardUrl, Ca as computeMediaTransformStyle, Ch as readLinkedEntryLease, Cm as DialogDescription, Cn as withoutServerVersions, Cp as resolveBlockTitle, Ct as getWidgetKey, Da as resolveImageSourceSetWithContext, Df as getGradientPreset, Dh as isAcceptedRepeaterGridSpan, Di as EVENT_SELECTION_TYPE_OPTIONS, Dn as initialBlockDraftValues, Dt as createBlock, Ed as parseBlockIconValue, Ef as GRADIENT_PRESETS, Ei as EVENT_SELECTION_SCOPE_OPTIONS, Em as DialogTitle, Et as partitionFieldsByIntent, F_ as assessMailingListTargeting, Fh as resolveButtonStyleSelection, Fl as suggestSemanticIconForFeatureCard, Fn as readNumberFieldUiConfig, Ft as reorderSlotBlocks, Fv as toUtcIsoDateTimeString, G_ as parseMailchimpInterestId, Gm as Anchor, Gn as planBackgroundTransition, Gp as journalTargetKey, Gt as ApiRequestError, Hd as plainTextToInlineText, Hf as sectionTransitionFamilies, Hp as unwrapResponse, Hu as isBlockButtonRole, I as selectedLookTile, I_ as resolveMailingListDefaultDestination, Ih as updateButtonStyleHoverPreference, Il as toFeatureCardIconSuggestionInputs, In as readSliderFieldUiConfig, It as withSlotCompositionHash, J as runHeldLifecycle, J_ as knownSocialPlatforms, Jm as Root2$1, Jp as Select$1, Jv as parseMediaAssetId, K_ as parseNewsletterListId, Kd as parseFieldDefinition, Km as Arrow$1, Kn as rankBackgroundImagePoolItems, Kp as journalTrustAt, L_ as mailingListProviderName, Ld as inlineTextToPlainText, Lh as updateButtonStyleSelectionChoice, Lt as blocksKeys, Md as coerceInlineTextWithFallback, Mh as buttonStyleHoverPreferenceValue, Mi as writeEventSelectionChips, Ml as parseFeatureCardGeneratedIconSizePx, Mn as getRepeaterItemDefault, Mr as listBlockDescriptors, Mt as listEntryPageContentSlots, Mv as resolveBookingTimeZoneId, N as lookTilePosition, Na as resolveMediaSlotContract, Nf as findFooterLook, Nh as buttonStyleSelectionParameterValue, Nl as resolveFeatureCardGeneratedIconSizePx, Nn as normalizeFieldForCanonicalValidation, Np as OPERATION_ID_HEADER, Nt as listPageSurfaceContentSlots, O as usePreviewJoinOutcome, Oa as resolveImageUrlWithContext, Od as parseGeneratedIconAssetId, Of as getHeaderLayout, Oh as resolveRepeaterGridColumnFieldId, Oi as chooseAllEvents, Ol as FEATURE_CARD_GENERATED_ICON_SIZE_PX, On as createManifestFormAdapter, Op as editorAdmissionIsOpen, Ot as createSlotBlock, Pa as buildResolveImageUrlContext, Ph as findButtonStyleRecipe, Pn as getGroupChildFields, Pt as reorderBlocks, Pv as parseUtcIsoDateTimeString, Qg as isRotationDimensionSwap, Qm as FocusScope, Qp as SelectValue, Qt as resolveContentTitle, Qv as parseSiteId, R_ as parseMailingListPlacementTargeting, Rg as paletteValueKey, Rh as buttonStyleSelectionKey, Rn as canCycleBackgroundOverrideValue, Rt as normalizeApiError, S as setPageDesignBlockBackground, Sd as sanitizeHref, Sh as canWriteLinkedEntry, Sn as toEditorBlockItem, St as getFieldIntent, T_ as authoredValuesEqual, Td as getGeneratedBlockIconStyleState, Tf as gradientToCss, Tt as isNonEmptyValue, U_ as parseBrevoListId, Uf as sectionTransitionFamilyForBoundaryOptionId, Um as Presence, Un as parseBackgroundOverrideFromContent, Up as sidebarReturnView, V as usePreviewAuth, V_ as mailingListTargetingChoiceIds, Vf as defaultSectionTransitionVariantForFamily, Vn as imagePoolForOverride, Vp as extractApiEnvelopeErrorDetails, Vu as BLOCK_BUTTON_ROLE_OPTIONS, W as useEntryController, W_ as parseMailchimpAudienceId, Wf as sectionTransitionVariantForBoundaryOptionId, Wm as Portal$1, Wp as journalLabels, X as useServerRefresh, X_ as publicProfileWeekdays, Xf as appearancePresets, Xm as useSize, Xp as SelectItem, Xt as deriveRouteMetadataPresentation, Y_ as parsePublicProfile, Ym as createPopperScope, Yp as SelectContent, Yt as routeLifecycleContext, Z as useSessionJournal, Z_ as publishedContactDetails, Zd as resolveVisiblePromotedFieldPathsForEditorBlock, Zm as useId$1, Zp as SelectTrigger, Zt as resolvePageRouteSlug, _d as admitLayoutGridForPlan, _h as useComposedRefs, _m as DialogHeader, _t as collectVisibleWhenWatchPaths, _v as formatDateTime, a_ as mediaSchema, am as FieldTrigger, ao as normalizeOfferingsPreviewGroupOrder, ar as getAtPath, av as knownRevision, bd as isRichTextDoc, bf as offeredSiteStyles, bt as evaluateVisibleWhenPredicate, cf as concretePaletteFromTheme, ch as Primitive, cm as FIELD_FOCUS_WITHIN_CLASS, co as planOfferingPreviewCardSelection, cp as projectRepeaterGridLayout, ct as LeaseNoticeButtons, cv as valueStatus, d as cycleSiteChromeSelectionId, d_ as PUBLIC_FILE_FIELD_KINDS, dh as buttonVariants, dn as selectJournalWriteState, dp as isRepeaterGridLayoutInvalid, dt as JournalWriteRefused, dv as createEditorReorderBlocksCommand, ef as sectionPhotoPresence, eh as DismissableLayer, em as usePrevious$1, en as useEditorUiStore, ey as expectParsedBrandedId, f_ as mediaIdentifierSchema, fm as Dialog, fn as journalNoticeMessage, fp as normalizeRepeaterGridSpan, fu as buildFormInteractiveIslandProps, fv as editorBlockCollectionOwnerKey, gm as DialogFooter, gp as resolveRepeaterGridColumnsForBreakpoint, gt as derivePromotedFieldPlan, gv as formatDate, hf as defaultPolicyPageFlowPresetId, hm as DialogDescription$1, hp as resolveRepeaterGridBreakpointForWidth, ht as publishContentEntry, hv as unsafeAsEditorBlockValues, i as usePreviewSidebarNavigation, ih as useControllableState, im as CalloutTitle, in as recoveryConflictCopy, io as isOfferingsPreviewSourceKey, ip as planLayoutGridColumnEdit, iv as displayedValues, j_ as slugify$1, jh as siteOptionSources, ji as toggleEventType, jl as getFeatureCardIconCompletion, jn as getFieldDefault, jp as editorAdmissionSession, jr as getBlockDefinition, jt as isSurfaceSlotBlockTarget, jv as resolveBookingBusinessTimeZone, kd as parseGeneratedIconSetId, kf as getHeaderStyle, kh as resolveRepeaterGridRowFieldId, ki as chooseScheduleScope, kn as createManifestValidation, kt as deleteBlock, kv as parseBookingLocalDate, lf as concretePaletteToTheme, lm as FIELD_SURFACE_CLASS, lp as findFirstAvailableRepeaterGridPlacement, lv as createEditorInsertBlockCommand, m_ as getFontWidthRange, mh as createSlot, mm as DialogContent, mp as resolveRepeaterGridAcceptedSpans, mt as missingReceiptError, mv as unsafeAsEditorBlockId, n as usePreviewAssistantSlot, n_ as resolveMediaTransformForAspect, nh as useDirection, nm as Callout, o as usePreviewPageDesignEditorState, o_ as runtimeMediaSchema, oh as createContextScope, on as unfinishedBlockCopy, op as buildRepeaterGridDropTargets, or as siblingPath$2, ov as pristineValueSync, p_ as asRecord, ph as cva, pm as DialogClose, pn as lifecycleOutcomeMessage, pp as planRepeaterGridStartNewRow, pt as sendPageCommand, pv as editorBlockCollectionOwnersEqual, q as DONE, q_ as knownSocialPlatformLabels, qm as Content, qn as resolveBackgroundCapability, qv as assertNever$1, r_ as getDirectImageUrlForMediaAsset, rh as createCollection, rm as CalloutDescription, rn as useSidebarView, ro as inferLegacyOfferingsPreviewGroupOrder, rp as isInternalResolvedLinkValue, s as usePreviewPageDesignRenderState, sh as composeEventHandlers, sp as planRepeaterGridSpanChange, sr as withValueAtPath, st as LeaseDiscardedNoticeView, sv as syncStateOf, t_ as parseAspectRatioValue, tm as clamp, tn as useEditorUiStoreInstance, u as useSiteChromeCustomizeOptional, uh as Button$1, uo as resolveOfferingsPreviewGroupOrderEntries, up as flowRepeaterGridItems, uv as createEditorRemoveBlockCommand, v as buildPageDesignEditorReadModelForBlocks, vd as deriveFieldValidationPlan, vf as getCuratedSiteStyle, vh as cn, vm as DialogTitle$1, vt as evaluateVisibility, wd as getBlockIconSemanticId, wh as canEditorWrite, wn as deriveEditorValuePublicationState, wt as hasVisibilityConditions, x as pageDesignLookTiles, xf as palettesForSiteStyle, xh as isEdited, xn as useStore, xt as getVisibleWhenPredicates, yh as useShallow, ym as DialogTrigger, yt as evaluateVisibleWhen, zm as hideOthers, zr as buildNewsletterFormInteractiveIslandProps } from "./previewAssistantSlot-BBdN5kfY.mjs";
|
|
4
|
+
import { $ as EyeOff, A as Lock, B as ImageUp, C as Palette, G as GripVertical, Gt as err, H as ImageOff, I as Link2, Kt as ok, M as LoaderCircle, O as Maximize2, S as PanelBottom, V as ImagePlus, _ as RotateCcw, at as Clock3, b as Pencil, bt as ArrowUp, c as Trash2, d as Sparkles, et as EllipsisVertical, ft as ChevronRight, gt as Calendar$1, ht as Check, i as Video, it as Clock, m as Settings, mt as ChevronDown, n as X$1, nt as Crop, p as SlidersHorizontal, pt as ChevronLeft, q as FileText, rt as Copy, s as TriangleAlert, t as lucide_react_exports, ut as CircleAlert, vt as Box$1, x as PanelTop, xt as ArrowDown, y as Plus, z as Image } from "./lucide-react-DkZ8fO-G.mjs";
|
|
5
|
+
import { $t as TabsList, B as resolveFooterLayoutHints, C as isHeaderMenuSurfaceState, F as locationWidgetOverrides, G as getFooterEngagementAuthoringOptions, Gt as DEFAULT_THEME_RESPONSIVE_MODE, H as SiteOptionWidgetProvider, Ht as buildThemeRuntime, J as updateFooterCredit, Jt as Textarea, K as getPublicProfile, L as useSiteEditorAdmission, Q as useMediaEditor, Qt as TabsContent, S as HeaderMenuControls, U as useSiteOptionWidgetContext, Ut as escapeStyleContent, Vt as themeRuntimeScopeProps, W as getFooterComposition, X as footerCreditLine, Xt as Input, Y as updatePublicProfile, Yt as SearchInput, Zt as Tabs, _ as resolvePreviewEditorGuidanceModel, _n as upsertFooterEngagementSection, _t as useField, an as Content$1, at as useImageResolveContextOptional, bn as planFooterArrangement, bt as ThemeScopeCore, ct as BlockContextProvider, dn as normalizeLegacyFooterContentToV1, dt as hasEmptyOption, en as TabsTrigger, f as canInspectSiteStyle, fn as parseFooterEngagementSection, ft as mapCurrentValueForSelect, gn as setFooterSectionSelected, gt as FieldLabelText, h as resolvePreviewDashboardSetupHandoff, hn as resolveFooterSections, ht as FieldFrame, in as Trigger$2, ln as classifyKnownMimeType, lt as useBlockContext, m as buildPreviewDashboardSetupUrl, mn as removeFooterEngagementSection, mt as unmapValueFromSelect, n as SiteChromeSurfaceControls, nn as List, on as Root$2, ot as FormNodeClient, pt as mapOptionValueForSelect, q as updateFooterComposition, rn as Root2$2, rt as NewsletterFormClient, sn as Trigger$1, st as BlockApiProvider, tn as Content$2, u as CustomizeBackgroundControlRows, un as deriveFooterEditorOverview, ut as SelectField, vn as validateFooterComposition, vt as useLinkedInlineTextField, x as useSiteFontStorageUrl, y as resolvePreviewSidebarChromeModel, yn as footerArrangementPolicy, yt as revealEditorElement, z as buildFooterRuntimeViewModel, zt as buildThemeDataAttrs } from "./SiteChromeCustomizeButton-BeEZpeKn.mjs";
|
|
6
|
+
import { J as paletteTokenNameSchema, V as hexColorSchema, W as paletteColorEntries, c as isKnownIconName, i as ThemedButtonSpecimen, l as isIconPickerPreset, o as getIconComponent, s as getIconPickerOptionsForPreset, tt as VARIANT_ROLES, u as resolveIconPickerPreset } from "./ThemedButton-BQU45t-E.mjs";
|
|
7
|
+
import { C as useRichTextEditor, E as InlineTextEditor, F as ScrollableDialogContent, I as ScrollableDialogShell, L as emitMediaCropDebug, N as Switch, O as resolveSdkFooterMode, P as Badge, R as resolveVideoSelectionIntentForMediaField, S as insertOrReplaceRichTextImage, _ as MediaEditor, b as RichTextEditorSurface, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as getUnresolvedRichTextImageWarnings, h as useRichTextImageProjection, i as ArrangementOptionsBody, l as BackgroundPreviewSwatch, m as useSiteColourVariables, o as lookIsAutomatic, p as siteColourCss, s as useArrangementToolbar, t as ArrangementLookNote, u as formatTokenLabel, v as MediaPickerMiniDialog, w as EMPTY_DOC, x as getRichTextImagePositionFromTarget, y as MediaPickerMini, z as isSvgMimeType } from "./ArrangementLookControls-BpvnOGlN.mjs";
|
|
8
8
|
import { n as TZDate } from "./src-DY8JCJdE.mjs";
|
|
9
|
-
import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-
|
|
10
|
-
import { a as publicationLabel, o as Spinner, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus
|
|
11
|
-
import { A as TooltipTrigger, C as prepareBlockEditorManifest, D as Tooltip, E as mergeBlockDescriptors, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, P as DropdownMenuSeparator, S as hideThemeV2RawStyleFields, T as getBlockManifestFromSdkConfig, _ as arrangementLookResolution, a as needsSetupMessage, b as blockLookOwnedFieldPaths, d as createStoreBackend, f as isObjectRecord, g as useSdkConfig, h as SdkConfigProvider, j as DropdownMenu, k as TooltipProvider, l as arrangementBlockControlsFor, m as createFieldObservation, n as useBlockCustomizeControls, o as needsSetupOf, p as isRecord$1, r as NEEDS_SETUP_LABEL, s as useBlockNeedsSetup, t as resolveBlockManifest, u as arrangementLookNameFor, v as arrangementOwnedFieldIds, w as showRawStyleFields, x as lookNotShownFieldIds, y as arrangementVisibilityValues } from "./useBlockCustomizeControls-
|
|
9
|
+
import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-CZQ4vkRe.mjs";
|
|
10
|
+
import { a as publicationLabel, o as Spinner, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-BiIHEeE0.mjs";
|
|
11
|
+
import { A as TooltipTrigger, C as prepareBlockEditorManifest, D as Tooltip, E as mergeBlockDescriptors, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, P as DropdownMenuSeparator, S as hideThemeV2RawStyleFields, T as getBlockManifestFromSdkConfig, _ as arrangementLookResolution, a as needsSetupMessage, b as blockLookOwnedFieldPaths, d as createStoreBackend, f as isObjectRecord, g as useSdkConfig, h as SdkConfigProvider, j as DropdownMenu, k as TooltipProvider, l as arrangementBlockControlsFor, m as createFieldObservation, n as useBlockCustomizeControls, o as needsSetupOf, p as isRecord$1, r as NEEDS_SETUP_LABEL, s as useBlockNeedsSetup, t as resolveBlockManifest, u as arrangementLookNameFor, v as arrangementOwnedFieldIds, w as showRawStyleFields, x as lookNotShownFieldIds, y as arrangementVisibilityValues } from "./useBlockCustomizeControls-BuFLIpmX.mjs";
|
|
12
12
|
import * as React$1 from "react";
|
|
13
13
|
import React, { Fragment, createContext, forwardRef, memo, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
14
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -153,24 +153,61 @@ const CollapsibleContent = React$1.forwardRef(({ className, ...props }, ref) =>
|
|
|
153
153
|
CollapsibleContent.displayName = Content$1.displayName;
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region ../ui/src/editor-item-card.tsx
|
|
156
|
-
|
|
156
|
+
const EditorItemContainerContext = React$1.createContext(false);
|
|
157
|
+
const EditorItemListContext = React$1.createContext(false);
|
|
158
|
+
/**
|
|
159
|
+
* The list an editor's item cards sit in, with any insert dividers between
|
|
160
|
+
* them. From 640px up the items are cards. Inside a container below 640px
|
|
161
|
+
* they become rows split by lines that run to the container's edges, and the
|
|
162
|
+
* open row is shaded with an accent line down its left, so a phone never
|
|
163
|
+
* shows a card inside a card. A list straight on the page keeps its cards.
|
|
164
|
+
*/
|
|
165
|
+
function EditorItemList({ className, children, ...props }) {
|
|
166
|
+
const rows = React$1.useContext(EditorItemContainerContext);
|
|
167
|
+
return /* @__PURE__ */ jsx(EditorItemListContext.Provider, {
|
|
168
|
+
value: rows,
|
|
169
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
170
|
+
...props,
|
|
171
|
+
"data-slot": "editor-item-list",
|
|
172
|
+
"data-phone-rows": rows ? "" : void 0,
|
|
173
|
+
className: cn("flex flex-col", className, rows && "max-sm:-mx-3 max-sm:gap-0 max-sm:border-b"),
|
|
174
|
+
children
|
|
175
|
+
})
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
const PHONE_ROW = "max-sm:rounded-none max-sm:border-t max-sm:border-border max-sm:shadow-none max-sm:ring-inset";
|
|
179
|
+
const PHONE_ROW_CLOSED = "max-sm:bg-transparent";
|
|
180
|
+
const PHONE_ROW_OPEN = "max-sm:border-l-[3px] max-sm:border-l-primary max-sm:bg-muted/60";
|
|
181
|
+
function editorItemCardClassName(input) {
|
|
182
|
+
const open = input.disclosure.kind === "collapsible" && input.disclosure.open;
|
|
183
|
+
return cn("w-full p-0 transition-colors", input.state === "error" && "ring-2 ring-destructive", input.phoneRow && [PHONE_ROW, open ? PHONE_ROW_OPEN : PHONE_ROW_CLOSED], input.className);
|
|
184
|
+
}
|
|
185
|
+
function EditorItemCard({ title, subtitle, icon, titleAdornment, state = "default", disclosure: requestedDisclosure, affordances, interactive = true, testIdPrefix = "editor-item-card", children, className, ...rootProps }) {
|
|
157
186
|
const generatedContentId = React$1.useId();
|
|
158
187
|
const hasContent = children !== void 0 && children !== null && children !== false;
|
|
159
188
|
const disclosure = hasContent ? requestedDisclosure : { kind: "static" };
|
|
160
189
|
const contentId = disclosure.kind === "collapsible" ? disclosure.contentId ?? generatedContentId : void 0;
|
|
190
|
+
const phoneRow = React$1.useContext(EditorItemListContext);
|
|
161
191
|
return /* @__PURE__ */ jsx(Card, {
|
|
162
192
|
...rootProps,
|
|
163
193
|
size: "none",
|
|
164
194
|
"data-editor-item-card": "",
|
|
195
|
+
"data-phone-row": phoneRow ? "" : void 0,
|
|
165
196
|
"data-error": state === "error" ? "true" : void 0,
|
|
166
197
|
"data-editor-block-highlight": state === "highlighted" ? "true" : void 0,
|
|
167
|
-
className:
|
|
198
|
+
className: editorItemCardClassName({
|
|
199
|
+
state,
|
|
200
|
+
phoneRow,
|
|
201
|
+
disclosure,
|
|
202
|
+
className
|
|
203
|
+
}),
|
|
168
204
|
children: /* @__PURE__ */ jsx(EditorItemCardBody, {
|
|
169
205
|
disclosure,
|
|
170
206
|
contentId,
|
|
171
207
|
header: /* @__PURE__ */ jsx(EditorItemCardHeader, {
|
|
172
208
|
title,
|
|
173
209
|
subtitle,
|
|
210
|
+
icon,
|
|
174
211
|
titleAdornment,
|
|
175
212
|
disclosure,
|
|
176
213
|
contentId,
|
|
@@ -183,39 +220,62 @@ function EditorItemCard({ title, subtitle, titleAdornment, state = "default", di
|
|
|
183
220
|
});
|
|
184
221
|
}
|
|
185
222
|
function EditorItemCardBody({ disclosure, contentId, header, children }) {
|
|
186
|
-
|
|
223
|
+
const content = children ? /* @__PURE__ */ jsx(EditorItemContainerContext.Provider, {
|
|
224
|
+
value: true,
|
|
225
|
+
children: /* @__PURE__ */ jsx(EditorItemListContext.Provider, {
|
|
226
|
+
value: false,
|
|
227
|
+
children
|
|
228
|
+
})
|
|
229
|
+
}) : null;
|
|
230
|
+
if (disclosure.kind === "static") return /* @__PURE__ */ jsxs(Fragment$1, { children: [header, content] });
|
|
187
231
|
return /* @__PURE__ */ jsxs(Collapsible, {
|
|
188
232
|
open: disclosure.open,
|
|
189
233
|
onOpenChange: disclosure.onOpenChange,
|
|
190
|
-
children: [header,
|
|
234
|
+
children: [header, content ? /* @__PURE__ */ jsx(CollapsibleContent, {
|
|
191
235
|
id: contentId,
|
|
192
|
-
children
|
|
236
|
+
children: content
|
|
193
237
|
}) : null]
|
|
194
238
|
});
|
|
195
239
|
}
|
|
196
|
-
function
|
|
240
|
+
function EditorItemCardIcon({ icon, testIdPrefix }) {
|
|
241
|
+
if (!icon) return null;
|
|
242
|
+
return /* @__PURE__ */ jsx("span", {
|
|
243
|
+
"aria-hidden": "true",
|
|
244
|
+
className: "shrink-0 text-muted-foreground",
|
|
245
|
+
"data-testid": `${testIdPrefix}-icon`,
|
|
246
|
+
children: icon
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
function EditorItemCardHeader({ title, subtitle, icon, titleAdornment, disclosure, contentId, affordances, interactive, testIdPrefix }) {
|
|
197
250
|
const subtitleId = React$1.useId();
|
|
198
251
|
const adornmentId = React$1.useId();
|
|
199
252
|
const describedBy = [subtitle ? subtitleId : null, titleAdornment ? adornmentId : null].filter(Boolean).join(" ") || void 0;
|
|
200
|
-
const titleBlock = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
"
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
253
|
+
const titleBlock = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
254
|
+
/* @__PURE__ */ jsx(EditorItemCardIcon, {
|
|
255
|
+
icon,
|
|
256
|
+
testIdPrefix
|
|
257
|
+
}),
|
|
258
|
+
/* @__PURE__ */ jsxs("span", {
|
|
259
|
+
className: "block min-w-0 flex-1 overflow-hidden",
|
|
260
|
+
"data-testid": `${testIdPrefix}-title-shell`,
|
|
261
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
262
|
+
"data-slot": "card-title",
|
|
263
|
+
className: "block truncate text-base font-semibold leading-none",
|
|
264
|
+
"data-testid": `${testIdPrefix}-title`,
|
|
265
|
+
children: title
|
|
266
|
+
}), subtitle ? /* @__PURE__ */ jsx("span", {
|
|
267
|
+
id: subtitleId,
|
|
268
|
+
className: "block truncate text-xs text-muted-foreground",
|
|
269
|
+
"data-testid": `${testIdPrefix}-subtitle`,
|
|
270
|
+
children: subtitle
|
|
271
|
+
}) : null]
|
|
272
|
+
}),
|
|
273
|
+
titleAdornment ? /* @__PURE__ */ jsx("span", {
|
|
274
|
+
id: adornmentId,
|
|
275
|
+
className: "shrink-0",
|
|
276
|
+
children: titleAdornment
|
|
277
|
+
}) : null
|
|
278
|
+
] });
|
|
219
279
|
return /* @__PURE__ */ jsx("fieldset", {
|
|
220
280
|
className: "contents",
|
|
221
281
|
disabled: !interactive,
|
|
@@ -322,23 +382,34 @@ const EditorItemCardDragHandle = React$1.forwardRef(function EditorItemCardDragH
|
|
|
322
382
|
});
|
|
323
383
|
});
|
|
324
384
|
/**
|
|
325
|
-
* The gap between two items in an editor
|
|
326
|
-
*
|
|
385
|
+
* The gap between two items in an editor. Its insert actions appear when the
|
|
386
|
+
* gap is hovered or when keyboard focus reaches it. Touch screens can't
|
|
387
|
+
* hover, so there they always show.
|
|
388
|
+
* Inside an EditorItemList on a phone the rows sit edge to edge, so there's
|
|
389
|
+
* no gap and the list's own add button does the inserting.
|
|
327
390
|
*/
|
|
328
|
-
function EditorItemInsertDivider({
|
|
391
|
+
function EditorItemInsertDivider({ actions, touch = "label" }) {
|
|
392
|
+
const inList = React$1.useContext(EditorItemListContext);
|
|
393
|
+
const iconOnlyOnTouch = touch === "icon" && actions.length === 1;
|
|
329
394
|
return /* @__PURE__ */ jsxs("div", {
|
|
330
395
|
"data-slot": "editor-item-insert-divider",
|
|
331
|
-
className: "relative flex h-8 w-full items-center justify-center opacity-0 transition-opacity focus-within:opacity-100 hover:opacity-100",
|
|
396
|
+
className: cn("relative flex h-8 w-full items-center justify-center opacity-0 transition-opacity focus-within:opacity-100 hover:opacity-100 pointer-coarse:opacity-100", inList && "max-sm:hidden"),
|
|
332
397
|
children: [/* @__PURE__ */ jsx("div", { className: "w-full border-b" }), /* @__PURE__ */ jsx("div", {
|
|
333
|
-
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
334
|
-
children: /* @__PURE__ */ jsxs(Button$1, {
|
|
398
|
+
className: "pointer-events-none absolute inset-0 flex flex-wrap items-center justify-center gap-2",
|
|
399
|
+
children: actions.map((action) => /* @__PURE__ */ jsxs(Button$1, {
|
|
335
400
|
type: "button",
|
|
336
401
|
size: "sm",
|
|
337
402
|
variant: "secondary",
|
|
338
|
-
className: "pointer-events-auto",
|
|
339
|
-
onClick: onSelect,
|
|
340
|
-
children: [/* @__PURE__ */ jsx(Plus, {
|
|
341
|
-
|
|
403
|
+
className: cn("pointer-events-auto", iconOnlyOnTouch && "pointer-coarse:size-9 pointer-coarse:rounded-full pointer-coarse:p-0"),
|
|
404
|
+
onClick: action.onSelect,
|
|
405
|
+
children: [/* @__PURE__ */ jsx(Plus, {
|
|
406
|
+
className: cn("mr-2 h-4 w-4", iconOnlyOnTouch && "pointer-coarse:mr-0"),
|
|
407
|
+
"aria-hidden": "true"
|
|
408
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
409
|
+
className: cn(iconOnlyOnTouch && "pointer-coarse:sr-only"),
|
|
410
|
+
children: action.label
|
|
411
|
+
})]
|
|
412
|
+
}, action.label))
|
|
342
413
|
})]
|
|
343
414
|
});
|
|
344
415
|
}
|
|
@@ -4591,6 +4662,106 @@ const automaticPageDocumentIntent = {
|
|
|
4591
4662
|
boundaryPins: []
|
|
4592
4663
|
};
|
|
4593
4664
|
//#endregion
|
|
4665
|
+
//#region ../theme-core/src/fonts/types.ts
|
|
4666
|
+
/**
|
|
4667
|
+
* The Supabase storage bucket name for site fonts
|
|
4668
|
+
*/
|
|
4669
|
+
const SITE_FONTS_BUCKET = "site-fonts";
|
|
4670
|
+
/**
|
|
4671
|
+
* Construct the storage base URL for site fonts
|
|
4672
|
+
*
|
|
4673
|
+
* @param supabaseUrl - The Supabase project URL (e.g., https://xxx.supabase.co)
|
|
4674
|
+
* @returns The full storage URL for the site-fonts bucket
|
|
4675
|
+
*
|
|
4676
|
+
* @example
|
|
4677
|
+
* ```ts
|
|
4678
|
+
* const storageUrl = getSiteFontsStorageUrl('https://xxx.supabase.co')
|
|
4679
|
+
* // Returns: 'https://xxx.supabase.co/storage/v1/object/public/site-fonts'
|
|
4680
|
+
* ```
|
|
4681
|
+
*/
|
|
4682
|
+
function getSiteFontsStorageUrl(supabaseUrl) {
|
|
4683
|
+
return `${supabaseUrl}/storage/v1/object/public/${SITE_FONTS_BUCKET}`;
|
|
4684
|
+
}
|
|
4685
|
+
/**
|
|
4686
|
+
* Build a lightweight Google Fonts stylesheet URL for a family-name preview.
|
|
4687
|
+
* The text subset keeps catalog rows cheap while still rendering the name in
|
|
4688
|
+
* the typeface being chosen. Pass `text` when the preview draws something
|
|
4689
|
+
* other than the name (a sample heading, "Aa"); its letters are deduplicated.
|
|
4690
|
+
*/
|
|
4691
|
+
function buildFontPreviewUrl(family, text = family) {
|
|
4692
|
+
return `https://fonts.googleapis.com/css2?family=${encodeURIComponent(family).replace(/%20/gu, "+")}&display=swap&text=${encodeURIComponent(text === family ? family : [...new Set(text)].join(""))}`;
|
|
4693
|
+
}
|
|
4694
|
+
/**
|
|
4695
|
+
* Escape a string for use in CSS font-family declaration
|
|
4696
|
+
* Escapes quotes, backslashes, and newlines
|
|
4697
|
+
*/
|
|
4698
|
+
function escapeCssFontFamily(name) {
|
|
4699
|
+
return name.replace(/\\/g, "\\\\").replace(/'/g, "\\'").replace(/"/g, "\\\"").replace(/\n/g, "\\n").replace(/\r/g, "\\r");
|
|
4700
|
+
}
|
|
4701
|
+
/**
|
|
4702
|
+
* Encode storage path segments for use in URLs
|
|
4703
|
+
* Encodes each path segment individually to handle special characters
|
|
4704
|
+
*/
|
|
4705
|
+
function encodeStoragePath(storagePath) {
|
|
4706
|
+
return storagePath.split("/").map((segment) => encodeURIComponent(segment)).join("/");
|
|
4707
|
+
}
|
|
4708
|
+
/**
|
|
4709
|
+
* Generate @font-face CSS for a single font file
|
|
4710
|
+
*/
|
|
4711
|
+
function generateFontFaceForFile(familyName, file, storageBaseUrl) {
|
|
4712
|
+
return `@font-face {
|
|
4713
|
+
font-family: '${escapeCssFontFamily(familyName)}';
|
|
4714
|
+
src: url('${`${storageBaseUrl}/${encodeStoragePath(file.storagePath)}`}') format('woff2');
|
|
4715
|
+
font-weight: ${file.weight};
|
|
4716
|
+
font-style: ${file.style};
|
|
4717
|
+
font-display: swap;
|
|
4718
|
+
}`;
|
|
4719
|
+
}
|
|
4720
|
+
/**
|
|
4721
|
+
* Generate @font-face CSS for a variable font
|
|
4722
|
+
*/
|
|
4723
|
+
function generateFontFaceForVariableFont(familyName, file, weightMin, weightMax, storageBaseUrl) {
|
|
4724
|
+
return `@font-face {
|
|
4725
|
+
font-family: '${escapeCssFontFamily(familyName)}';
|
|
4726
|
+
src: url('${`${storageBaseUrl}/${encodeStoragePath(file.storagePath)}`}') format('woff2');
|
|
4727
|
+
font-weight: ${weightMin} ${weightMax};
|
|
4728
|
+
font-style: ${file.style};
|
|
4729
|
+
font-display: swap;
|
|
4730
|
+
}`;
|
|
4731
|
+
}
|
|
4732
|
+
/**
|
|
4733
|
+
* Generate all @font-face rules for custom fonts
|
|
4734
|
+
*
|
|
4735
|
+
* @param fonts - Array of custom fonts
|
|
4736
|
+
* @param storageBaseUrl - Base URL for storage (e.g., https://xxx.supabase.co/storage/v1/object/public/site-fonts)
|
|
4737
|
+
* @returns CSS string with all @font-face rules
|
|
4738
|
+
*/
|
|
4739
|
+
function generateFontFaceCss(fonts, storageBaseUrl) {
|
|
4740
|
+
const rules = [];
|
|
4741
|
+
const seenFamilies = /* @__PURE__ */ new Set();
|
|
4742
|
+
for (const font of fonts) {
|
|
4743
|
+
if (seenFamilies.has(font.familyName)) continue;
|
|
4744
|
+
seenFamilies.add(font.familyName);
|
|
4745
|
+
if (font.isVariable && font.variableWeightMin && font.variableWeightMax) {
|
|
4746
|
+
const normalFile = font.files.find((f) => f.style === "normal");
|
|
4747
|
+
const italicFile = font.files.find((f) => f.style === "italic");
|
|
4748
|
+
if (normalFile) rules.push(generateFontFaceForVariableFont(font.familyName, normalFile, font.variableWeightMin, font.variableWeightMax, storageBaseUrl));
|
|
4749
|
+
if (italicFile) rules.push(generateFontFaceForVariableFont(font.familyName, italicFile, font.variableWeightMin, font.variableWeightMax, storageBaseUrl));
|
|
4750
|
+
} else for (const file of font.files) rules.push(generateFontFaceForFile(font.familyName, file, storageBaseUrl));
|
|
4751
|
+
}
|
|
4752
|
+
return rules.join("\n\n");
|
|
4753
|
+
}
|
|
4754
|
+
/** CSS2 axis tuples are sorted normal-first, then real italic weights. */
|
|
4755
|
+
function buildGoogleFontFamilyQuery(family, weights, italics = [], widthRange) {
|
|
4756
|
+
const name = encodeURIComponent(family.replace(/\s+/g, "+")).replace(/%2B/g, "+");
|
|
4757
|
+
const normal = [...new Set(weights)].sort((a, b) => a - b);
|
|
4758
|
+
const width = widthRange ? `${widthRange.min}..${widthRange.max},` : "";
|
|
4759
|
+
const axes = widthRange ? "wdth,wght" : "wght";
|
|
4760
|
+
if (italics.length === 0) return `family=${name}:${axes}@${normal.map((weight) => `${width}${weight}`).join(";")}`;
|
|
4761
|
+
const italic = [...new Set(italics)].sort((a, b) => a - b);
|
|
4762
|
+
return `family=${name}:ital,${axes}@${[...normal.map((weight) => `0,${width}${weight}`), ...italic.map((weight) => `1,${width}${weight}`)].join(";")}`;
|
|
4763
|
+
}
|
|
4764
|
+
//#endregion
|
|
4594
4765
|
//#region ../blocks/src/subroutes/formatDate.ts
|
|
4595
4766
|
/** Occurrence instants name the occurrence-local day; civil keys preserve their day. */
|
|
4596
4767
|
function formatOccurrenceDate(iso, context) {
|
|
@@ -12292,9 +12463,9 @@ function RepeaterList({ config, backend, basePath, items, minItems, maxItems, on
|
|
|
12292
12463
|
} : { kind: "fallback" };
|
|
12293
12464
|
onRemove(index);
|
|
12294
12465
|
}, [items, onRemove]);
|
|
12295
|
-
return /* @__PURE__ */ jsx(
|
|
12466
|
+
return /* @__PURE__ */ jsx(EditorItemList, {
|
|
12296
12467
|
ref: linearDnd.containerRef,
|
|
12297
|
-
className: requestAdd ?
|
|
12468
|
+
className: requestAdd ? void 0 : "gap-6",
|
|
12298
12469
|
children: /* @__PURE__ */ jsx(DndContext, {
|
|
12299
12470
|
sensors: linearDnd.sensors,
|
|
12300
12471
|
collisionDetection: linearDnd.collisionDetection,
|
|
@@ -12303,8 +12474,11 @@ function RepeaterList({ config, backend, basePath, items, minItems, maxItems, on
|
|
|
12303
12474
|
items: linearDnd.sortableItemIds,
|
|
12304
12475
|
strategy: linearDnd.sortingStrategy,
|
|
12305
12476
|
children: items.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [requestAdd && index > 0 ? /* @__PURE__ */ jsx(EditorItemInsertDivider, {
|
|
12306
|
-
|
|
12307
|
-
|
|
12477
|
+
touch: "icon",
|
|
12478
|
+
actions: [{
|
|
12479
|
+
label: `Insert ${hostActions?.addLabel ?? "item"}`,
|
|
12480
|
+
onSelect: () => requestAdd(index)
|
|
12481
|
+
}]
|
|
12308
12482
|
}) : null, /* @__PURE__ */ jsx(RepeaterRow, {
|
|
12309
12483
|
id: item.id,
|
|
12310
12484
|
index,
|
|
@@ -23436,7 +23610,7 @@ function FeatureCardIconsPanel({ block, uiStore, currentStyleGuideVersionId, ico
|
|
|
23436
23610
|
//#region ../editor-blocks/src/block-editor/BlockCardBody.tsx
|
|
23437
23611
|
function BlockCardBody({ siteId, renderPreviewLink, block, manifest, uiStore, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, hideThemeV2RawStyleFields = false, pageDesignBlock = null, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet }) {
|
|
23438
23612
|
return /* @__PURE__ */ jsxs(CardContent, {
|
|
23439
|
-
className: "space-y-4 pb-6",
|
|
23613
|
+
className: "space-y-4 pb-6 max-sm:px-3 max-sm:pb-3",
|
|
23440
23614
|
children: [/* @__PURE__ */ jsx(FeatureCardIconsPanel, {
|
|
23441
23615
|
block,
|
|
23442
23616
|
uiStore,
|
|
@@ -24002,8 +24176,11 @@ function BlockListItemBody(props) {
|
|
|
24002
24176
|
//#endregion
|
|
24003
24177
|
//#region ../editor-blocks/src/block-editor/AddBlockDivider.tsx
|
|
24004
24178
|
const AddBlockDivider = ({ onOpen, position }) => /* @__PURE__ */ jsx(EditorItemInsertDivider, {
|
|
24005
|
-
|
|
24006
|
-
|
|
24179
|
+
touch: "icon",
|
|
24180
|
+
actions: [{
|
|
24181
|
+
label: "Insert block",
|
|
24182
|
+
onSelect: () => onOpen(position)
|
|
24183
|
+
}]
|
|
24007
24184
|
});
|
|
24008
24185
|
//#endregion
|
|
24009
24186
|
//#region ../editor-blocks/src/block-editor/BlockListLayoutParts.tsx
|
|
@@ -28559,7 +28736,6 @@ function planFooterEditorView(input) {
|
|
|
28559
28736
|
available: overview.available.map((item) => sectionPlan(item.section, false, false, input.canEdit)),
|
|
28560
28737
|
arrangement: planFooterArrangement(renderable, footerArrangementPolicy({
|
|
28561
28738
|
arrangement: input.arrangement,
|
|
28562
|
-
legalRegion: input.legalRegion,
|
|
28563
28739
|
storedNavigationLayout: input.navigationLayout
|
|
28564
28740
|
}))
|
|
28565
28741
|
};
|
|
@@ -29059,7 +29235,7 @@ function FooterPreviewModule({ module }) {
|
|
|
29059
29235
|
children: module.heading ?? previewModuleLabel(module)
|
|
29060
29236
|
}), /* @__PURE__ */ jsx("div", {
|
|
29061
29237
|
className: "text-xs text-slate-300",
|
|
29062
|
-
children: previewModuleLabel(module)
|
|
29238
|
+
children: module.kind === "copyright" ? "Added automatically, with the current year and your site name" : previewModuleLabel(module)
|
|
29063
29239
|
})]
|
|
29064
29240
|
});
|
|
29065
29241
|
}
|
|
@@ -29091,14 +29267,15 @@ function previewModuleLabel(module) {
|
|
|
29091
29267
|
case "supporting-text": return "Supporting text";
|
|
29092
29268
|
case "legal": return "Legal text";
|
|
29093
29269
|
case "engagement": return engagementLabel(module.engagement);
|
|
29094
|
-
case "
|
|
29270
|
+
case "copyright": return "Copyright";
|
|
29271
|
+
case "attribution": return "Macadamia credit";
|
|
29095
29272
|
default: return assertNever$1(module);
|
|
29096
29273
|
}
|
|
29097
29274
|
}
|
|
29098
29275
|
function engagementLabel(engagement) {
|
|
29099
29276
|
return engagement.kind === "standard-contact" ? "Contact form" : "Mailing list signup";
|
|
29100
29277
|
}
|
|
29101
|
-
function FooterOverview({
|
|
29278
|
+
function FooterOverview({ credit, onCreditHiddenChange, plan, composition, onTarget, onChange, manageLinksHref, manageSettingsHref, navigationLayout, arrangement, onEngagement, onNavigationLayoutChange, navigationLayoutPending, navigationLayoutDisabled }) {
|
|
29102
29279
|
return /* @__PURE__ */ jsxs("div", {
|
|
29103
29280
|
className: "space-y-5",
|
|
29104
29281
|
children: [
|
|
@@ -29114,7 +29291,8 @@ function FooterOverview({ attribution, plan, composition, onTarget, onChange, ma
|
|
|
29114
29291
|
children: "Shown in footer"
|
|
29115
29292
|
}),
|
|
29116
29293
|
/* @__PURE__ */ jsx(ShownFooterSections, {
|
|
29117
|
-
|
|
29294
|
+
credit,
|
|
29295
|
+
onCreditHiddenChange,
|
|
29118
29296
|
items: plan.shown,
|
|
29119
29297
|
composition,
|
|
29120
29298
|
manageLinksHref,
|
|
@@ -29124,6 +29302,8 @@ function FooterOverview({ attribution, plan, composition, onTarget, onChange, ma
|
|
|
29124
29302
|
onTarget
|
|
29125
29303
|
}),
|
|
29126
29304
|
/* @__PURE__ */ jsx(AvailableSections, {
|
|
29305
|
+
credit,
|
|
29306
|
+
onCreditHiddenChange,
|
|
29127
29307
|
composition,
|
|
29128
29308
|
items: plan.available,
|
|
29129
29309
|
onChange
|
|
@@ -29141,7 +29321,11 @@ function ShownFooterSections(props) {
|
|
|
29141
29321
|
children: [props.items.map((item) => /* @__PURE__ */ jsx(ShownFooterSection, {
|
|
29142
29322
|
...props,
|
|
29143
29323
|
item
|
|
29144
|
-
}, item.section.id)),
|
|
29324
|
+
}, item.section.id)), /* @__PURE__ */ jsx(PlatformCreditSection, {
|
|
29325
|
+
place: "shown",
|
|
29326
|
+
credit: props.credit,
|
|
29327
|
+
onHiddenChange: props.onCreditHiddenChange
|
|
29328
|
+
})]
|
|
29145
29329
|
});
|
|
29146
29330
|
}
|
|
29147
29331
|
function AddFooterEngagement({ composition, onEngagement }) {
|
|
@@ -29160,38 +29344,91 @@ function AddFooterEngagement({ composition, onEngagement }) {
|
|
|
29160
29344
|
});
|
|
29161
29345
|
}
|
|
29162
29346
|
/**
|
|
29163
|
-
* The
|
|
29164
|
-
*
|
|
29347
|
+
* The platform credit at the end of the footer. It isn't a composition
|
|
29348
|
+
* section: the plan decides whether it can be hidden, and hiding it is a site
|
|
29349
|
+
* setting saved on its own. A hidden credit sits with the sections available
|
|
29350
|
+
* to add, as a hidden section would.
|
|
29165
29351
|
*/
|
|
29166
|
-
function
|
|
29167
|
-
|
|
29168
|
-
|
|
29169
|
-
|
|
29352
|
+
function PlatformCreditSection({ place, credit, onHiddenChange }) {
|
|
29353
|
+
const [state, setState] = useState("idle");
|
|
29354
|
+
if (credit.kind === "not-shown") return null;
|
|
29355
|
+
const hidden = credit.kind === "optional" && credit.hidden;
|
|
29356
|
+
if (hidden !== (place === "available")) return null;
|
|
29357
|
+
const change = async (nextHidden) => {
|
|
29358
|
+
setState("saving");
|
|
29359
|
+
setState(await onHiddenChange(nextHidden) === "failed" ? "failed" : "idle");
|
|
29360
|
+
};
|
|
29361
|
+
const label = `${credit.line.lead} ${credit.line.link.label}`;
|
|
29362
|
+
const saving = state === "saving";
|
|
29363
|
+
return hidden ? /* @__PURE__ */ jsxs("div", {
|
|
29364
|
+
"data-footer-platform-attribution": "hidden",
|
|
29170
29365
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
29171
|
-
className: "
|
|
29172
|
-
children: [
|
|
29173
|
-
|
|
29174
|
-
|
|
29175
|
-
|
|
29176
|
-
|
|
29177
|
-
|
|
29178
|
-
|
|
29179
|
-
|
|
29180
|
-
|
|
29366
|
+
className: "flex items-center justify-between gap-3 rounded-lg border border-dashed p-3",
|
|
29367
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
29368
|
+
className: "text-sm",
|
|
29369
|
+
children: label
|
|
29370
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
29371
|
+
type: "button",
|
|
29372
|
+
className: buttonClass$1,
|
|
29373
|
+
disabled: saving,
|
|
29374
|
+
onClick: () => void change(false),
|
|
29375
|
+
children: "Add"
|
|
29376
|
+
})]
|
|
29377
|
+
}), /* @__PURE__ */ jsx(CreditSaveFailure, { state })]
|
|
29378
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
29379
|
+
className: "rounded-lg border p-3",
|
|
29380
|
+
"data-footer-platform-attribution": "shown",
|
|
29381
|
+
children: [
|
|
29382
|
+
/* @__PURE__ */ jsx("div", {
|
|
29383
|
+
className: "font-medium",
|
|
29384
|
+
children: label
|
|
29385
|
+
}),
|
|
29386
|
+
/* @__PURE__ */ jsx("div", {
|
|
29387
|
+
className: "mt-1 text-xs text-muted-foreground",
|
|
29388
|
+
children: credit.kind === "optional" ? "Your plan lets you hide this line." : "Included with your Macadamia plan."
|
|
29389
|
+
}),
|
|
29390
|
+
credit.kind === "optional" ? /* @__PURE__ */ jsx("div", {
|
|
29391
|
+
className: "mt-3 flex flex-wrap gap-2",
|
|
29392
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
29393
|
+
className: buttonClass$1,
|
|
29394
|
+
disabled: saving,
|
|
29395
|
+
onClick: () => void change(true),
|
|
29396
|
+
type: "button",
|
|
29397
|
+
children: "Hide"
|
|
29398
|
+
})
|
|
29399
|
+
}) : null,
|
|
29400
|
+
/* @__PURE__ */ jsx(CreditSaveFailure, { state })
|
|
29401
|
+
]
|
|
29181
29402
|
});
|
|
29182
29403
|
}
|
|
29183
|
-
function
|
|
29184
|
-
|
|
29404
|
+
function CreditSaveFailure({ state }) {
|
|
29405
|
+
return state === "failed" ? /* @__PURE__ */ jsx("div", {
|
|
29406
|
+
className: "mt-1 text-xs text-destructive",
|
|
29407
|
+
role: "alert",
|
|
29408
|
+
children: "That didn't save. Please try again."
|
|
29409
|
+
}) : null;
|
|
29410
|
+
}
|
|
29411
|
+
function AvailableSections({ credit, onCreditHiddenChange, composition, items, onChange }) {
|
|
29412
|
+
const creditHidden = credit.kind === "optional" && credit.hidden;
|
|
29413
|
+
if (items.length === 0 && !creditHidden) return null;
|
|
29185
29414
|
return /* @__PURE__ */ jsxs("div", {
|
|
29186
29415
|
className: "space-y-2",
|
|
29187
|
-
children: [
|
|
29188
|
-
|
|
29189
|
-
|
|
29190
|
-
|
|
29191
|
-
|
|
29192
|
-
item,
|
|
29193
|
-
|
|
29194
|
-
|
|
29416
|
+
children: [
|
|
29417
|
+
/* @__PURE__ */ jsx("h3", {
|
|
29418
|
+
className: "text-sm font-semibold",
|
|
29419
|
+
children: "Available to add"
|
|
29420
|
+
}),
|
|
29421
|
+
items.map((item) => /* @__PURE__ */ jsx(AvailableSection, {
|
|
29422
|
+
composition,
|
|
29423
|
+
item,
|
|
29424
|
+
onChange
|
|
29425
|
+
}, item.section.id)),
|
|
29426
|
+
/* @__PURE__ */ jsx(PlatformCreditSection, {
|
|
29427
|
+
place: "available",
|
|
29428
|
+
credit,
|
|
29429
|
+
onHiddenChange: onCreditHiddenChange
|
|
29430
|
+
})
|
|
29431
|
+
]
|
|
29195
29432
|
});
|
|
29196
29433
|
}
|
|
29197
29434
|
function ShownFooterSection({ composition, item, manageLinksHref, manageSettingsHref, onChange, onEngagement, onTarget }) {
|
|
@@ -29385,18 +29622,18 @@ function repairMessage(reason, section, options) {
|
|
|
29385
29622
|
//#endregion
|
|
29386
29623
|
//#region ../content-editor/src/footerPreviewRuntime.ts
|
|
29387
29624
|
function buildFooterPreviewRuntime(input) {
|
|
29388
|
-
return
|
|
29625
|
+
return buildFooterRuntimeViewModel({
|
|
29389
29626
|
composition: input.composition,
|
|
29390
29627
|
publicProfile: input.publicProfile,
|
|
29391
29628
|
businessAddress: input.hasBusinessAddress ? "Business address" : null,
|
|
29392
29629
|
hasLogo: input.hasLogo,
|
|
29393
29630
|
hasFooterNavigation: input.hasMainNavigation,
|
|
29394
29631
|
hasLegalPolicyNavigation: input.hasLegalPolicyNavigation,
|
|
29395
|
-
legalRegion: input.legalRegion,
|
|
29396
29632
|
layoutVariant: input.arrangement,
|
|
29397
29633
|
navigationLayout: input.navigationLayout,
|
|
29398
|
-
engagement: input.engagement
|
|
29399
|
-
|
|
29634
|
+
engagement: input.engagement,
|
|
29635
|
+
attribution: input.attribution
|
|
29636
|
+
});
|
|
29400
29637
|
}
|
|
29401
29638
|
//#endregion
|
|
29402
29639
|
//#region ../content-editor/src/session-journal/useJournalTargetRefresh.ts
|
|
@@ -29489,10 +29726,19 @@ function useFooterComposerState({ apiClient, canEdit, initialTarget, initialTarg
|
|
|
29489
29726
|
setProfileSnapshot: loaded.setProfileSnapshot,
|
|
29490
29727
|
siteId
|
|
29491
29728
|
});
|
|
29729
|
+
const saveCreditHidden = useCreditSaver({
|
|
29730
|
+
apiClient,
|
|
29731
|
+
canEdit,
|
|
29732
|
+
credit: loaded.credit,
|
|
29733
|
+
onSaved,
|
|
29734
|
+
setCredit: loaded.setCredit,
|
|
29735
|
+
siteId
|
|
29736
|
+
});
|
|
29492
29737
|
return {
|
|
29493
29738
|
...loaded,
|
|
29494
29739
|
...session,
|
|
29495
29740
|
navigationLayoutControl,
|
|
29741
|
+
saveCreditHidden,
|
|
29496
29742
|
saveComposition,
|
|
29497
29743
|
saveProfile,
|
|
29498
29744
|
siteId,
|
|
@@ -29500,6 +29746,31 @@ function useFooterComposerState({ apiClient, canEdit, initialTarget, initialTarg
|
|
|
29500
29746
|
setTarget
|
|
29501
29747
|
};
|
|
29502
29748
|
}
|
|
29749
|
+
/**
|
|
29750
|
+
* Hiding the platform credit is a site setting, not part of the composition or
|
|
29751
|
+
* its undo history. The line moves once the save lands, so a failure is
|
|
29752
|
+
* reported where the owner clicked.
|
|
29753
|
+
*/
|
|
29754
|
+
function useCreditSaver(options) {
|
|
29755
|
+
const { apiClient, canEdit, credit, onSaved, setCredit, siteId } = options;
|
|
29756
|
+
return useCallback(async (hidden) => {
|
|
29757
|
+
if (credit.kind !== "optional" || !footerAuthoringAllowed(canEdit, siteId)) return "failed";
|
|
29758
|
+
try {
|
|
29759
|
+
setCredit(await updateFooterCredit(apiClient, siteId, { hidden }));
|
|
29760
|
+
onSaved?.();
|
|
29761
|
+
return "saved";
|
|
29762
|
+
} catch {
|
|
29763
|
+
return "failed";
|
|
29764
|
+
}
|
|
29765
|
+
}, [
|
|
29766
|
+
apiClient,
|
|
29767
|
+
canEdit,
|
|
29768
|
+
credit,
|
|
29769
|
+
onSaved,
|
|
29770
|
+
setCredit,
|
|
29771
|
+
siteId
|
|
29772
|
+
]);
|
|
29773
|
+
}
|
|
29503
29774
|
/** Status and admission are session facts; the only local marker is this mounted visit's start. */
|
|
29504
29775
|
function useFooterSessionState(siteId, canEdit, includeThemeStatus) {
|
|
29505
29776
|
const journal = useSessionJournal();
|
|
@@ -29553,20 +29824,42 @@ async function readFooterAuthoring(apiClient, rawSiteId, siteId) {
|
|
|
29553
29824
|
engagement
|
|
29554
29825
|
};
|
|
29555
29826
|
}
|
|
29827
|
+
/**
|
|
29828
|
+
* The platform credit as last confirmed. A reload that started before a credit
|
|
29829
|
+
* save landed must not undo it, so a read applies only if no save came since.
|
|
29830
|
+
*/
|
|
29831
|
+
function useCreditState() {
|
|
29832
|
+
const [credit, setCreditState] = useState({ kind: "not-shown" });
|
|
29833
|
+
const writes = useRef(0);
|
|
29834
|
+
return {
|
|
29835
|
+
credit,
|
|
29836
|
+
setCredit: useCallback((next) => {
|
|
29837
|
+
writes.current += 1;
|
|
29838
|
+
setCreditState(next);
|
|
29839
|
+
}, []),
|
|
29840
|
+
readCredit: useCallback(() => {
|
|
29841
|
+
const writesAtStart = writes.current;
|
|
29842
|
+
return (read) => {
|
|
29843
|
+
if (writes.current === writesAtStart) setCreditState(read);
|
|
29844
|
+
};
|
|
29845
|
+
}, [])
|
|
29846
|
+
};
|
|
29847
|
+
}
|
|
29556
29848
|
function useFooterLoad(apiClient, rawSiteId, siteId) {
|
|
29557
29849
|
const [compositionSnapshot, setCompositionSnapshot] = useState(null);
|
|
29558
29850
|
const [profileSnapshot, setProfileSnapshot] = useState(null);
|
|
29559
29851
|
const [navigationMenus, setNavigationMenus] = useState(null);
|
|
29560
29852
|
const [engagementOptions, setEngagementOptions] = useState(null);
|
|
29561
|
-
const
|
|
29853
|
+
const { credit, setCredit, readCredit } = useCreditState();
|
|
29562
29854
|
const [loadError, setLoadError] = useState(null);
|
|
29563
29855
|
const baseline = useFooterJournalBaseline(apiClient, rawSiteId, siteId);
|
|
29564
29856
|
const load = useCallback(async () => {
|
|
29565
29857
|
setLoadError(null);
|
|
29566
29858
|
try {
|
|
29859
|
+
const applyCredit = readCredit();
|
|
29567
29860
|
const { composition, profile, navigation, engagement } = await readFooterAuthoring(apiClient, rawSiteId, siteId);
|
|
29568
29861
|
setCompositionSnapshot(composition);
|
|
29569
|
-
|
|
29862
|
+
applyCredit(composition.credit);
|
|
29570
29863
|
setProfileSnapshot(profile);
|
|
29571
29864
|
baseline.observe(composition, profile);
|
|
29572
29865
|
setNavigationMenus(navigation.menus);
|
|
@@ -29578,13 +29871,14 @@ function useFooterLoad(apiClient, rawSiteId, siteId) {
|
|
|
29578
29871
|
apiClient,
|
|
29579
29872
|
baseline,
|
|
29580
29873
|
rawSiteId,
|
|
29874
|
+
readCredit,
|
|
29581
29875
|
siteId
|
|
29582
29876
|
]);
|
|
29583
29877
|
useEffect(() => {
|
|
29584
29878
|
load();
|
|
29585
29879
|
}, [load]);
|
|
29586
29880
|
return {
|
|
29587
|
-
|
|
29881
|
+
credit,
|
|
29588
29882
|
compositionSnapshot,
|
|
29589
29883
|
engagementOptions,
|
|
29590
29884
|
load,
|
|
@@ -29593,6 +29887,7 @@ function useFooterLoad(apiClient, rawSiteId, siteId) {
|
|
|
29593
29887
|
navigationMenus,
|
|
29594
29888
|
profileSnapshot,
|
|
29595
29889
|
setCompositionSnapshot,
|
|
29890
|
+
setCredit,
|
|
29596
29891
|
setProfileSnapshot
|
|
29597
29892
|
};
|
|
29598
29893
|
}
|
|
@@ -29842,8 +30137,8 @@ function fieldsForModule(module) {
|
|
|
29842
30137
|
}];
|
|
29843
30138
|
return [...moduleFieldCatalog];
|
|
29844
30139
|
}
|
|
29845
|
-
function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, manageLinksHref, manageFormsHref = manageLinksHref.replace(/\/navigation$/u, "/forms"), manageNewsletterHref = manageLinksHref.replace(/\/navigation$/u, "/newsletter"), manageSettingsHref, arrangement,
|
|
29846
|
-
const {
|
|
30140
|
+
function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, manageLinksHref, manageFormsHref = manageLinksHref.replace(/\/navigation$/u, "/forms"), manageNewsletterHref = manageLinksHref.replace(/\/navigation$/u, "/newsletter"), manageSettingsHref, arrangement, navigationLayoutControl: suppliedNavigationControl, initialTarget, initialTargetRequestId, variant = "full", canEdit = true, onSaved, loadingFallback }) {
|
|
30141
|
+
const { authoringAllowed, canEdit: authoringEnabled, compositionSnapshot, engagementOptions, load, loadError, message, navigationLayoutControl, navigationMenus, profileSnapshot, credit, saveComposition, saveCreditHidden, saveProfile, saveState, setCompositionSnapshot, setTarget, siteId, target } = useFooterComposerState({
|
|
29847
30142
|
apiClient,
|
|
29848
30143
|
canEdit,
|
|
29849
30144
|
initialTarget,
|
|
@@ -29874,13 +30169,11 @@ function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, m
|
|
|
29874
30169
|
}
|
|
29875
30170
|
});
|
|
29876
30171
|
return /* @__PURE__ */ jsx(ReadyFooterComposer, {
|
|
29877
|
-
attribution,
|
|
29878
30172
|
canEdit: authoringEnabled,
|
|
29879
30173
|
compositionSnapshot,
|
|
29880
30174
|
customFooterMode,
|
|
29881
30175
|
engagementOptions,
|
|
29882
30176
|
arrangement,
|
|
29883
|
-
legalRegion,
|
|
29884
30177
|
manageFormsHref,
|
|
29885
30178
|
manageLinksHref,
|
|
29886
30179
|
manageNewsletterHref,
|
|
@@ -29889,7 +30182,9 @@ function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, m
|
|
|
29889
30182
|
navigationLayoutControl,
|
|
29890
30183
|
navigationMenus,
|
|
29891
30184
|
profileSnapshot,
|
|
30185
|
+
credit,
|
|
29892
30186
|
saveComposition,
|
|
30187
|
+
saveCreditHidden,
|
|
29893
30188
|
saveProfile,
|
|
29894
30189
|
saveState,
|
|
29895
30190
|
setTarget,
|
|
@@ -29899,7 +30194,7 @@ function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, m
|
|
|
29899
30194
|
}
|
|
29900
30195
|
function ReadyFooterComposer(props) {
|
|
29901
30196
|
const [engagementCandidate, setEngagementCandidate] = useState(null);
|
|
29902
|
-
const { canEdit, compositionSnapshot, engagementOptions,
|
|
30197
|
+
const { canEdit, compositionSnapshot, engagementOptions, arrangement, navigationLayoutControl, navigationMenus, profileSnapshot, target } = props;
|
|
29903
30198
|
const candidateComposition = engagementCandidate === null ? null : upsertFooterEngagementSection(compositionSnapshot.composition, engagementCandidate);
|
|
29904
30199
|
const previewComposition = candidateComposition?.ok === true ? candidateComposition.value : compositionSnapshot.composition;
|
|
29905
30200
|
const candidateError = candidateComposition?.ok === false ? candidateComposition.error.message : null;
|
|
@@ -29918,7 +30213,6 @@ function ReadyFooterComposer(props) {
|
|
|
29918
30213
|
hasLegalPolicyNavigation,
|
|
29919
30214
|
hasEngagementSource: resolvedEngagement.kind === "resolved",
|
|
29920
30215
|
canEdit,
|
|
29921
|
-
legalRegion,
|
|
29922
30216
|
arrangement,
|
|
29923
30217
|
navigationLayout: navigationLayoutControl.layout
|
|
29924
30218
|
});
|
|
@@ -29929,11 +30223,10 @@ function ReadyFooterComposer(props) {
|
|
|
29929
30223
|
hasLogo: profileSnapshot.hasLogo,
|
|
29930
30224
|
hasMainNavigation,
|
|
29931
30225
|
hasLegalPolicyNavigation,
|
|
29932
|
-
legalRegion,
|
|
29933
30226
|
arrangement,
|
|
29934
30227
|
navigationLayout: navigationLayoutControl.layout,
|
|
29935
30228
|
engagement: resolvedEngagement,
|
|
29936
|
-
attribution: props.
|
|
30229
|
+
attribution: footerCreditLine(props.credit)
|
|
29937
30230
|
});
|
|
29938
30231
|
const targetModule = target.kind === "module" ? compositionSnapshot.composition.sections.find((section) => section.id === target.moduleId) ?? null : null;
|
|
29939
30232
|
const editingEngagement = target.kind === "engagement" || targetModule?.kind === "engagement";
|
|
@@ -29979,7 +30272,8 @@ function FooterEditorPane(props) {
|
|
|
29979
30272
|
children: "← Footer overview"
|
|
29980
30273
|
}) : null,
|
|
29981
30274
|
props.target.kind === "overview" ? /* @__PURE__ */ jsx(FooterOverview, {
|
|
29982
|
-
|
|
30275
|
+
credit: props.credit,
|
|
30276
|
+
onCreditHiddenChange: props.saveCreditHidden,
|
|
29983
30277
|
composition: props.compositionSnapshot.composition,
|
|
29984
30278
|
manageLinksHref: props.manageLinksHref,
|
|
29985
30279
|
manageSettingsHref: props.manageSettingsHref,
|
|
@@ -30928,6 +31222,7 @@ function AddressField({ prefix, value, refusal, onChange }) {
|
|
|
30928
31222
|
children: [
|
|
30929
31223
|
/* @__PURE__ */ jsx("span", {
|
|
30930
31224
|
className: "min-w-0 truncate text-muted-foreground",
|
|
31225
|
+
title: prefix,
|
|
30931
31226
|
children: prefix.slice(0, -1)
|
|
30932
31227
|
}),
|
|
30933
31228
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -31966,8 +32261,7 @@ function useSlotBlockSave({ uiStore, queryClient, queryKey, requestServerRefresh
|
|
|
31966
32261
|
uiStore
|
|
31967
32262
|
]);
|
|
31968
32263
|
}
|
|
31969
|
-
function EntrySlotBlockEditorPanel({ siteId, dashboardBaseUrl, typeKey, entryId, pageSurfaceId, theme = null, apiClient, sdkConfig = null, widgets, visible = true }) {
|
|
31970
|
-
const { displayContext } = useEntryController();
|
|
32264
|
+
function EntrySlotBlockEditorPanel({ siteId, dashboardBaseUrl, typeKey, entryId, pageSurfaceId, theme = null, apiClient, sdkConfig = null, widgets, visible = true, displayContext }) {
|
|
31971
32265
|
const { requestServerRefresh } = useServerRefresh();
|
|
31972
32266
|
const queryClient = useQueryClient();
|
|
31973
32267
|
const uiStore = useEditorUiStoreInstance();
|
|
@@ -32185,20 +32479,23 @@ function resolveSubrouteNotice(ctx, args) {
|
|
|
32185
32479
|
}
|
|
32186
32480
|
//#endregion
|
|
32187
32481
|
//#region ../preview-next/src/client/preview/EntryEditorPanel.tsx
|
|
32188
|
-
|
|
32189
|
-
|
|
32190
|
-
|
|
32191
|
-
const contentFormFields = useMemo(() => contentTypeSchema ? mapContentSchemaToFormFields(contentTypeSchema, { referenceContentTypeKeys }) : [], [contentTypeSchema, referenceContentTypeKeys]);
|
|
32192
|
-
const contentFormSpec = useMemo(() => ({
|
|
32482
|
+
/** The entry's content fields as a block-form manifest, resolving references against the site's content types. */
|
|
32483
|
+
function entryContentForm(contentTypeSchema, referenceContentTypeKeys) {
|
|
32484
|
+
return {
|
|
32193
32485
|
variantMeaning: { kind: "arrangement" },
|
|
32194
32486
|
name: "content-fields",
|
|
32195
32487
|
version: "1.0",
|
|
32196
32488
|
title: "Content",
|
|
32197
32489
|
component: "content-form",
|
|
32198
32490
|
description: "",
|
|
32199
|
-
fields:
|
|
32491
|
+
fields: contentTypeSchema ? mapContentSchemaToFormFields(contentTypeSchema, { referenceContentTypeKeys }) : [],
|
|
32200
32492
|
slots: []
|
|
32201
|
-
}
|
|
32493
|
+
};
|
|
32494
|
+
}
|
|
32495
|
+
function EntryEditorPanel({ siteId, entryData, contentTypeSchema, referenceContentTypeKeys, draftContent, currentTemplate, theme, apiClient, entrySubrouteContext, widgets }) {
|
|
32496
|
+
const [contentOpen, setContentOpen] = useState(true);
|
|
32497
|
+
const [templateOpen, setTemplateOpen] = useState(false);
|
|
32498
|
+
const contentFormSpec = useMemo(() => entryContentForm(contentTypeSchema, referenceContentTypeKeys), [contentTypeSchema, referenceContentTypeKeys]);
|
|
32202
32499
|
const contentInitialValues = useMemo(() => draftContent ?? {}, [draftContent]);
|
|
32203
32500
|
const subrouteNotice = useMemo(() => resolveSubrouteNotice(entrySubrouteContext ?? null, { siteId }), [entrySubrouteContext, siteId]);
|
|
32204
32501
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -32810,6 +33107,7 @@ const NEW_BLOCK_ID = "new-block";
|
|
|
32810
33107
|
function newBlockLookTiles(model, blockKind) {
|
|
32811
33108
|
const content = {};
|
|
32812
33109
|
const block = buildPageDesignEditorReadModelForBlocks({
|
|
33110
|
+
surfaceResolutionContext: null,
|
|
32813
33111
|
siteStyleId: model.siteStyleId,
|
|
32814
33112
|
intent: {
|
|
32815
33113
|
...automaticPageDocumentIntent,
|
|
@@ -32917,7 +33215,6 @@ const OUTLINE_COPY = {
|
|
|
32917
33215
|
};
|
|
32918
33216
|
/** The page view's outline: the page's blocks between the site header and footer, each opening its own view. */
|
|
32919
33217
|
function PageBlockEditorPanel(props) {
|
|
32920
|
-
const { displayContext } = useEntryController();
|
|
32921
33218
|
const describeLook = useOutlineLookNames();
|
|
32922
33219
|
const attentionFor = useOutlineAttention();
|
|
32923
33220
|
const openBlock = props.uiStoreForBlockEditor.getState().openSidebarBlock;
|
|
@@ -32944,7 +33241,7 @@ function PageBlockEditorPanel(props) {
|
|
|
32944
33241
|
bookingOfferingPresets: props.bookingOfferingPresets,
|
|
32945
33242
|
sdkConfig: props.sdkConfig ?? null,
|
|
32946
33243
|
children: /* @__PURE__ */ jsx(BlockEditor, {
|
|
32947
|
-
displayContext,
|
|
33244
|
+
displayContext: props.displayContext,
|
|
32948
33245
|
ref: props.blockEditorRef,
|
|
32949
33246
|
siteId: props.siteId,
|
|
32950
33247
|
dashboardBaseUrl: props.dashboardBaseUrl,
|
|
@@ -33058,11 +33355,7 @@ function PreviewFooterEditorPanel({ sdkConfig, apiClient, siteId, dashboardBaseU
|
|
|
33058
33355
|
});
|
|
33059
33356
|
}
|
|
33060
33357
|
function footerComposerLayoutProps(theme) {
|
|
33061
|
-
|
|
33062
|
-
return {
|
|
33063
|
-
arrangement: hints.layoutVariant,
|
|
33064
|
-
legalRegion: hints.legalRegion
|
|
33065
|
-
};
|
|
33358
|
+
return { arrangement: resolveFooterLayoutHints(theme).layoutVariant };
|
|
33066
33359
|
}
|
|
33067
33360
|
//#endregion
|
|
33068
33361
|
//#region ../preview-next/src/client/preview/PreviewEditorGuidanceCard.tsx
|
|
@@ -35990,6 +36283,8 @@ function sectionBreakSource(boundary) {
|
|
|
35990
36283
|
}
|
|
35991
36284
|
/** Approved copy (issue 1422) for a join the renderer didn't draw. */
|
|
35992
36285
|
const NOT_SHOWN_COPY = {
|
|
36286
|
+
"same-paint": "This break won't show here, because both sections have the same background color. It'll appear if you give one of them a different background.",
|
|
36287
|
+
"photo-required": "This break won't show here, because the wave with echo is drawn over a photo. It'll appear if the section above it has a photo background.",
|
|
35993
36288
|
"both-unpainted": "This break won't show here, because both sections have an image or video background. It'll appear if you give one of them a color background.",
|
|
35994
36289
|
"flush-panel": "This break won't show here, because one of these sections has an image that runs right to its edge. It'll appear if you pick a different look for that section.",
|
|
35995
36290
|
field: "This break won't show here, because one of these sections is drawn as a rounded panel set in from the page edge. It'll appear if you give that section a different background."
|
|
@@ -36069,9 +36364,9 @@ function useBreakAbove(blockId) {
|
|
|
36069
36364
|
return boundary && boundary.availableBreaks.length > 1 ? boundary : null;
|
|
36070
36365
|
}
|
|
36071
36366
|
function useJoinedSectionNames(aboveId, hereId, sdkConfig) {
|
|
36072
|
-
const
|
|
36367
|
+
const blocks = useEditorUiStore((state) => state.structure.getList());
|
|
36073
36368
|
const nameOf = (id) => {
|
|
36074
|
-
const block = id ? blocks.
|
|
36369
|
+
const block = id ? blocks.find((candidate) => String(candidate.id) === id) : void 0;
|
|
36075
36370
|
return block ? resolveBlockTitle(resolveBlockManifest(block.kind, sdkConfig), block.content, block.kind).displayTitle : null;
|
|
36076
36371
|
};
|
|
36077
36372
|
return {
|
|
@@ -36673,6 +36968,9 @@ function PreviewEditorSidebar(props) {
|
|
|
36673
36968
|
return /* @__PURE__ */ jsxs("div", {
|
|
36674
36969
|
className: `flex h-full min-h-0 flex-col overflow-hidden pb-[calc(var(--builder-editor-chrome-offset,0px)+var(--builder-preview-banner-offset,0px))] ${sidebarChrome.rootClassName}`,
|
|
36675
36970
|
"data-preview-sidebar-tone": sidebarChrome.tone,
|
|
36971
|
+
"data-testid": "preview-sidebar",
|
|
36972
|
+
"data-preview-sidebar-view": view.kind,
|
|
36973
|
+
"data-preview-sidebar-target": view.kind === "chrome" ? view.target : void 0,
|
|
36676
36974
|
children: [
|
|
36677
36975
|
/* @__PURE__ */ jsx(SidebarHeaderForView, {
|
|
36678
36976
|
view,
|
|
@@ -36691,6 +36989,7 @@ function PreviewEditorSidebar(props) {
|
|
|
36691
36989
|
/* @__PURE__ */ jsxs("div", {
|
|
36692
36990
|
ref: panelRef,
|
|
36693
36991
|
tabIndex: -1,
|
|
36992
|
+
"data-testid": "preview-sidebar-panel",
|
|
36694
36993
|
className: "min-h-0 flex-1 overflow-auto",
|
|
36695
36994
|
children: [/* @__PURE__ */ jsx(SidebarSlotResource, {
|
|
36696
36995
|
props,
|
|
@@ -36707,18 +37006,23 @@ function PreviewEditorSidebar(props) {
|
|
|
36707
37006
|
});
|
|
36708
37007
|
}
|
|
36709
37008
|
function SidebarSlotResource({ props, visible }) {
|
|
37009
|
+
const { displayContext } = useEntryController();
|
|
36710
37010
|
if (!props.entryData?.type) return null;
|
|
36711
|
-
return /* @__PURE__ */ jsx(
|
|
36712
|
-
|
|
36713
|
-
|
|
36714
|
-
|
|
36715
|
-
|
|
36716
|
-
|
|
36717
|
-
|
|
36718
|
-
|
|
36719
|
-
|
|
36720
|
-
|
|
36721
|
-
|
|
37011
|
+
return /* @__PURE__ */ jsx("div", {
|
|
37012
|
+
"data-testid": "preview-sidebar-entry-content",
|
|
37013
|
+
children: /* @__PURE__ */ jsx(EntrySlotBlockEditorPanel, {
|
|
37014
|
+
siteId: props.siteId,
|
|
37015
|
+
displayContext,
|
|
37016
|
+
dashboardBaseUrl: props.dashboardBaseUrl,
|
|
37017
|
+
typeKey: props.entryData.type,
|
|
37018
|
+
entryId: props.entryData.id,
|
|
37019
|
+
pageSurfaceId: props.pageNodeType === "page_surface" ? props.pageId : null,
|
|
37020
|
+
theme: props.theme,
|
|
37021
|
+
apiClient: props.apiClient,
|
|
37022
|
+
sdkConfig: props.sdkConfig,
|
|
37023
|
+
widgets: previewWidgetOverrides,
|
|
37024
|
+
visible
|
|
37025
|
+
})
|
|
36722
37026
|
});
|
|
36723
37027
|
}
|
|
36724
37028
|
function SidebarTaskPanel({ props, view, requestId, uiStoreForBlockEditor, linkedEntry }) {
|
|
@@ -36837,6 +37141,7 @@ function SidebarPagePanel({ props, uiStoreForBlockEditor, picking }) {
|
|
|
36837
37141
|
if (!props.pageId) return null;
|
|
36838
37142
|
const outline = /* @__PURE__ */ jsx(PageBlockEditorPanel, {
|
|
36839
37143
|
...props,
|
|
37144
|
+
displayContext: controller.displayContext,
|
|
36840
37145
|
pageId: props.pageId,
|
|
36841
37146
|
blockItems: controller.blocks.list,
|
|
36842
37147
|
uiStoreForBlockEditor,
|