@riverbankcms/sdk 0.166.0 → 0.167.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-Dgb-ptph.d.ts} +1 -1
- package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bs3WxFgr.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-DtUCsaHY.d.ts} +2 -2
- package/dist/_dts/{client-D4BXQEZc.d.ts → client-CwsI23pj.d.ts} +9 -1
- package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-CAeP_-cV.d.ts} +2 -2
- package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-BXHCiF-b.d.ts} +8 -5
- package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-Bb2gbppW.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-DaBBDx7M.d.ts} +2 -2
- package/dist/_dts/{index-ahxQCUc7.d.ts → index-5_jf52sZ.d.ts} +2 -2
- package/dist/_dts/{index-Bmboeb49.d.ts → index-C20yUyob.d.ts} +1 -1
- package/dist/_dts/{index-DdcwPqQN.d.ts → index-CS6b1B-c.d.ts} +4 -4
- package/dist/_dts/{index-wbBZ0awa.d.ts → index-ChpjHK0U.d.ts} +498 -74
- package/dist/_dts/{index-kQ5xkM6X.d.ts → index-D7EbliE3.d.ts} +1 -1
- package/dist/_dts/{index--qflsCiy.d.ts → index-DeHDwMfu.d.ts} +3 -3
- package/dist/_dts/{index-mMMvLLAJ.d.ts → index-RugyUnqR.d.ts} +207 -11
- package/dist/_dts/{index-BgJ2aU5c.d.ts → index-bDln38Hm.d.ts} +2 -2
- package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-CTqcL7CS.d.ts} +7 -7
- package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-C3s9WMPs.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-JPwgRxwh.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 +8 -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-DuiHLiPo.d.ts → types-BlaCuPLr.d.ts} +2 -2
- package/dist/_dts/{types-BX3Y-EW3.d.ts → types-CwtTcaQP.d.ts} +3 -3
- package/dist/_dts/{types-DF54stxv.d.ts → types-D-WElMCy.d.ts} +7 -7
- package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-Y5wD9fGK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DFqkx158.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-DOWOZYlK.mjs → BookingMailingListNote-CCVXX1LN.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-DQwJ7BPx.mjs} +165 -16
- package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-DdkY86qI.mjs} +3 -3
- package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-DAeQPV76.mjs} +10 -29
- package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-Bus9R0bj.mjs} +136 -60
- package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-DPBLjGwj.mjs} +53 -6
- package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-D6cwU82_.mjs} +1 -1
- package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-Bogi_SnJ.mjs} +3 -3
- package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-CEumpN7i.mjs} +13 -40
- package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-CIQw6vNy.mjs} +13 -8
- package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-BVO-qx4q.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-CcGaFawl.mjs} +22 -2
- package/dist/client/{Page-DNDZLRlB.mjs → Page-D4_H_u9V.mjs} +22658 -21604
- package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-Dptantmg.mjs} +1 -1
- package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-BxEGsKUx.mjs} +18 -18
- package/dist/client/{accordion-uVqNowRX.mjs → accordion--EUHmEGa.mjs} +1 -1
- package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-BCXwOnhc.mjs} +9 -9
- package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-sHHcdism.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-Cp9xPBFZ.mjs} +1 -1
- package/dist/client/{cart-DCxjE3Is.mjs → cart-CCZZC-Lq.mjs} +3 -3
- package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-B7JfA19I.mjs} +1 -1
- package/dist/client/{checkout-B0EKbeVv.mjs → checkout-CipmYL4A.mjs} +3 -3
- package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DraalWdH.mjs} +1 -1
- package/dist/client/client.mjs +89 -6
- package/dist/client/{context-n6IZigd3.mjs → context-Cv3QHjAF.mjs} +4 -1
- package/dist/client/{cta-CDeAwYoN.mjs → cta-P2vJVTEn.mjs} +1 -1
- package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-D8D47VT4.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-CXWZoV-d.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-BkAro1DJ.mjs} +3 -3
- package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-dLmyuPap.mjs} +1 -1
- package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-BEhC2_-Y.mjs} +11 -14
- package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-FBMS2Cpb.mjs} +4 -4
- package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-BrBhUvGe.mjs} +4 -4
- package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-C7WUrbZ2.mjs} +2 -2
- package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-Bih-BgQM.mjs} +4 -4
- package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-DfTlqGbl.mjs} +4 -4
- package/dist/client/{form-BeNQiZ2V.mjs → form-Bw1uuiUs.mjs} +3 -3
- package/dist/client/{form.client-BFdCKlp7.mjs → form.client-pZ-9gN33.mjs} +3 -3
- package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-PXlu6XQO.mjs} +1 -1
- package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DI3DP48e.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-CalNAShx.mjs → headerSection-BpJYUMd6.mjs} +2 -2
- package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-CSoP0cGR.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-DDbX_Sj0.mjs} +1 -1
- package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-vCxYRar_.mjs} +3 -3
- package/dist/client/{noop-D-RG9eR3.mjs → noop-ByVtIWf4.mjs} +28 -4
- package/dist/client/portal/client.mjs +8 -8
- package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-7Pi6avM-.mjs} +1 -1
- package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DEad-Pma.mjs} +1 -1
- package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-G1SMXG13.mjs} +3 -3
- package/dist/client/{productList-DjGrjOwD.mjs → productList-B21TGdpT.mjs} +3 -3
- package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-B3vIBkex.mjs} +3 -4
- package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-B8aQhJpO.mjs} +205 -178
- package/dist/client/rendering/client.mjs +25 -25
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-DHkBtO0G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-DbHX4JOS.mjs} +1 -1
- package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-B2UmrQg_.mjs} +9 -9
- package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-B7n-Z7nY.mjs} +1 -1
- package/dist/client/{shop-DLufMauE.mjs → shop-mqyoOvOK.mjs} +3 -3
- package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-BH-BBnA9.mjs} +10 -10
- package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-mdM3UMWG.mjs} +30 -6
- package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-CXF5wxdg.mjs} +2 -2
- package/dist/client/site-styles-CMCUxsIM.mjs +3 -0
- package/dist/client/{site-styles-DELkUk9s.mjs → site-styles-D56hT2u1.mjs} +1637 -406
- package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-CrC80EOG.mjs} +11 -156
- package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-C4LOaI_Z.mjs} +2 -2
- package/dist/client/{useBookingNowIso-Da-f9iHw.mjs → useBookingNowIso-BDmWkYUW.mjs} +1 -1
- package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-6Q0nToVA.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-CM-DTX5X.mjs} +1 -1
- package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-Bcs89BR5.mjs} +5 -5
- package/dist/client/{view-DAVEoe8A.mjs → view-BN-fxyfq.mjs} +16 -11
- package/dist/client/{view-8w4GA8rf.mjs → view-Dh2tGoS0.mjs} +3 -3
- package/dist/client/{wizardSteps-DNpajrAH.mjs → wizardSteps-DtkhwKXK.mjs} +17 -10
- package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-D4VjPs-r.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-Ckr2zk_L.mjs} +309 -111
- package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-KOZgw_gS.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-CyO2V4kB.mjs} +58 -8
- package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-DW3uKvNF.mjs} +7 -7
- package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-CU9VD-7O.mjs} +17439 -16381
- package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-DBi-WybM.mjs} +2014 -381
- package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-BhkUJst9.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-BjCb6lOn.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-CKxTaC3j.mjs} +1 -1
- package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-B7MLTjBX.mjs} +1 -92
- package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-BTUc0g9X.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-Bv3nkdpV.mjs} +83 -0
- package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-4fMqzltx.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-C72VC_lR.mjs} +756 -64
- package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-B_Y_dA20.mjs} +300 -97
- package/dist/server/{bindings-DjdUq9FR.mjs → bindings-ConMYJ2U.mjs} +1 -1
- package/dist/server/{client-07UeMDzA.mjs → client-Cot-H5fQ.mjs} +88 -5
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-BkaWYEwt.mjs} +4 -4
- package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-kviUdH8c.mjs} +2 -2
- package/dist/server/metadata.mjs +5 -1
- package/dist/server/next/revalidate.mjs +9 -4
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BTnS09GS.mjs} +2 -2
- package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-itXZCXs7.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-CDyn7iLy.mjs} +132 -25
- package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-DZ6cLxrM.mjs} +2 -2
- package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Q_Vij87H.mjs} +11752 -11549
- package/dist/server/{parseThemeForPersistence-CJMrEkze.mjs → parseThemeForPersistence-CDrF51tJ.mjs} +2 -2
- package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-DOG4MkOy.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-DlprLLsc.mjs} +3 -33
- package/dist/server/{registry-TFPJdGQi.mjs → registry-BPFcpn6k.mjs} +1326 -181
- 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 +7 -7
- package/dist/server/{resolveBlockData-OHlOXlOE.mjs → resolveBlockData-BHvfGD4y.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-OXFRGn5M.mjs} +15 -5
- package/dist/server/responseMedia-D8J3VAFs.mjs +115 -0
- package/dist/server/{schema-C2PqHrMo.mjs → schema-DEizlyi4.mjs} +4 -3
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-DIBFZeMB.mjs → validation-bl6WcAi_.mjs} +6 -6
- package/dist/server/{version-DZWZM1H6.mjs → version-BLXZ31S-.mjs} +1 -1
- package/dist/styles/index.css +696 -25
- package/package.json +1 -1
- package/dist/client/events-BmqPeeQm.mjs +0 -20
- package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
- 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 { $
|
|
3
|
+
import { $_ as createEditorInsertBlockCommand, $l as isBlockButtonRole, $n as getAtPath, $t as planLeaseNotice, $u as plainTextToInlineText, A as usePreviewRenderReadiness, A_ as DEFAULT_MAILING_LIST_TARGETING, Af as flowRepeaterGridItems, An as manifestFieldSectionOptions, Ap as DialogDescription$1, At as deleteSlotBlock, B_ as publicProfileWeekdays, Bd as offeredSiteStyles, Bf as resolveRepeaterGridSpanFieldId, Bg as resolveMediaTransformForAspect, Bm as buttonStyleHoverPreferenceValue, Bn as enabledBackgroundModes, Bt as getDashboardUrl, Bu as parseGeneratedIconSetId, Cf as isInternalResolvedLinkValue, Cl as buildFormInteractiveIslandProps, Cm as Primitive, Cn as withoutServerVersions, Cp as FIELD_FOCUS_WITHIN_CLASS, Ct as getWidgetKey, Cv as resolveBookingBusinessTimeZone, D_ as mailingListProviderName, Df as planRepeaterGridSpanChange, Dm as cva, Dn as initialBlockDraftValues, Dp as Dialog, Dt as createBlock, Dv as toUtcIsoDateTimeString, E_ as resolveMailingListDefaultDestination, Ef as buildRepeaterGridDropTargets, Em as buttonVariants, Er as buildNewsletterFormInteractiveIslandProps, Et as partitionFieldsByIntent, Ev as parseUtcIsoDateTimeString, F_ as parseMailchimpInterestId, Ff as resolveRepeaterGridAcceptedSpans, Fg as paletteValueKey, Fm as isEdited, Fn as readNumberFieldUiConfig, Ft as reorderSlotBlocks, Fu as getBlockIconSemanticId, Gd as gradientToCss, Gm as updateButtonStyleSelectionChoice, Gn as planBackgroundTransition, Gp as ReactRemoveScroll, Gt as ApiRequestError, Hc as getFeatureCardIconCompletion, Hm as findButtonStyleRecipe, Hv as parseSiteId, I as selectedLookTile, I_ as parseNewsletterListId, If as resolveRepeaterGridBreakpointForWidth, Ig as isRotationDimensionSwap, Im as canWriteLinkedEntry, In as readSliderFieldUiConfig, It as withSlotCompositionHash, Iu as getGeneratedBlockIconStyleState, J as runHeldLifecycle, J_ as displayedValues, Ja as isOfferingsPreviewSourceKey, Ju as inlineTextToPlainText, Kc as suggestSemanticIconForFeatureCard, Kd as GRADIENT_PRESETS, Kf as editorAdmissionIsOpen, Km as buttonStyleSelectionKey, Kn as rankBackgroundImagePoolItems, L_ as knownSocialPlatformLabels, Lf as resolveRepeaterGridColumnFieldId, Lm as readLinkedEntryLease, Lt as blocksKeys, Lu as parseBlockIconValue, Lv as assertNever$1, Mf as isRepeaterGridLayoutInvalid, Mm as cn, Mn as getRepeaterItemDefault, Mp as DialogHeader, Mt as listEntryPageContentSlots, N as lookTilePosition, N_ as parseBrevoListId, Nf as normalizeRepeaterGridSpan, Ng as hexColorSchema, Nm as useShallow, Nn as normalizeFieldForCanonicalValidation, Np as DialogTitle$1, Nt as listPageSurfaceContentSlots, Nu as sanitizeHref, O as usePreviewJoinOutcome, O_ as parseMailingListPlacementTargeting, Of as projectRepeaterGridLayout, Om as createSlot, On as createManifestFormAdapter, Op as DialogClose, Ot as createSlotBlock, Ou as admitLayoutGridForPlan, P_ as parseMailchimpAudienceId, Pd as defaultPolicyPageFlowPresetId, Pf as planRepeaterGridStartNewRow, Pg as paletteColorEntries, Pn as getGroupChildFields, Pp as DialogTrigger, Pt as reorderBlocks, Q_ as valueStatus, Qa as planOfferingPreviewCardSelection, Qd as findCuratedPalette, Ql as BLOCK_BUTTON_ROLE_OPTIONS, Qt as resolveContentTitle, R_ as knownSocialPlatforms, Rd as getCuratedSiteStyle, Rf as resolveRepeaterGridColumnsForBreakpoint, Rm as canEditorWrite, Rn as canCycleBackgroundOverrideValue, Rp as DialogDescription, Rt as normalizeApiError, Rv as parseMediaAssetId, S as setPageDesignBlockBackground, Sm as composeEventHandlers, Sn as toEditorBlockItem, St as getFieldIntent, T_ as assessMailingListTargeting, Tm as Button$1, Tt as isNonEmptyValue, Uc as parseFeatureCardGeneratedIconSizePx, Ug as mediaSchema, Um as resolveButtonStyleSelection, Un as parseBackgroundOverrideFromContent, Uu as coerceInlineTextWithFallback, Uv as unsafeAsSiteId, V as usePreviewAuth, V_ as publishedContactDetails, Vc as createFeatureCardIconKey, Vd as palettesForSiteStyle, Vf as resolveBlockTitle, Vg as getDirectImageUrlForMediaAsset, Vm as buttonStyleSelectionParameterValue, Vn as imagePoolForOverride, Vp as DialogTitle, Vu as parseSiteIconStyleGuideVersionId, W as useEntryController, Wc as resolveFeatureCardGeneratedIconSizePx, Wg as runtimeMediaSchema, Wm as updateButtonStyleHoverPreference, Wv as expectParsedBrandedId, X as useServerRefresh, X_ as pristineValueSync, Xd as getHeaderLayout, Xg as asRecord, Xt as deriveRouteMetadataPresentation, Y_ as knownRevision, Ya as normalizeOfferingsPreviewGroupOrder, Yd as findFooterLook, Yf as editorAdmissionSession, Yg as mediaIdentifierSchema, Yt as routeLifecycleContext, Z as useSessionJournal, Z_ as syncStateOf, Zd as getHeaderStyle, Zf as OPERATION_ID_HEADER, Zt as resolvePageRouteSlug, _i as chooseScheduleScope, _m as useDirection, _p as Callout, _t as collectVisibleWhenWatchPaths, ad as siteOptionSources, am as Portal$1, ap as journalLabels, av as unsafeAsEditorBlockValues, b_ as generateUuidV4, ba as resolveMediaSlotContract, bd as concretePaletteToTheme, bi as writeEventSelectionChips, bp as FieldTrigger, bt as evaluateVisibleWhenPredicate, c_ as buildGoogleFontFamilyQuery, cm as Content, ct as LeaseNoticeButtons, cv as formatDateTime, d as cycleSiteChromeSelectionId, d_ as getSiteFontsStorageUrl, df as sectionTransitionFamilyForBoundaryOptionId, dm as useSize, dn as selectJournalWriteState, dp as SelectItem, dt as JournalWriteRefused, em as hideOthers, en as useEditorUiStore, eo as resolveOfferingsPreviewGroupOrderEntries, er as siblingPath$2, ev as createEditorRemoveBlockCommand, ff as sectionTransitionVariantForBoundaryOptionId, fm as useId$1, fn as journalNoticeMessage, fp as SelectTrigger, gi as chooseAllEvents, gp as clamp, gt as derivePromotedFieldPlan, h_ as authoredValuesEqual, ha as resolveImageUrlWithContext, hi as EVENT_SELECTION_TYPE_OPTIONS, hm as DismissableLayer, hp as usePrevious$1, ht as publishContentEntry, i as usePreviewSidebarNavigation, id as parseFieldDefinition, im as Presence, in as recoveryConflictCopy, ip as sidebarReturnView, iv as unsafeAsEditorBlockId, j_ as mailingListTargetingChoiceIds, jf as isAcceptedRepeaterGridSpan, jm as useComposedRefs, jn as getFieldDefault, jp as DialogFooter, jt as isSurfaceSlotBlockTarget, ju as isRichTextDoc, kf as findFirstAvailableRepeaterGridPlacement, kn as createManifestValidation, kp as DialogContent, kt as deleteBlock, ku as deriveFieldValidationPlan, l_ as generateFontFaceCss, lf as defaultSectionTransitionVariantForFamily, lm as Root2$1, lp as Select$1, ma as resolveImageSourceSetWithContext, mi as EVENT_SELECTION_SCOPE_OPTIONS, mm as useFocusGuards, mt as missingReceiptError, n as usePreviewAssistantSlot, np as extractApiEnvelopeErrorDetails, nv as editorBlockCollectionOwnerKey, o as usePreviewPageDesignEditorState, om as Anchor, on as unfinishedBlockCopy, op as journalTargetKey, ov as formatDate, pm as FocusScope, pn as lifecycleOutcomeMessage, pp as SelectValue, pt as sendPageCommand, q as DONE, qa as inferLegacyOfferingsPreviewGroupOrder, qc as toFeatureCardIconSuggestionInputs, qd as getGradientPreset, qn as resolveBackgroundCapability, rd as PUBLIC_FILE_FIELD_KINDS, rn as useSidebarView, rp as unwrapResponse, rv as editorBlockCollectionOwnersEqual, s as usePreviewPageDesignRenderState, s_ as buildFontPreviewUrl, sm as Arrow$1, sp as journalTrustAt, st as LeaseDiscardedNoticeView, tn as useEditorUiStoreInstance, tr as withValueAtPath, tv as createEditorReorderBlocksCommand, u as useSiteChromeCustomizeOptional, u_ as getFontWidthRange, ua as computeMediaTransformStyle, uf as sectionTransitionFamilies, um as createPopperScope, up as SelectContent, v as buildPageDesignEditorReadModelForBlocks, vi as readEventSelectionChips, vm as createCollection, vp as CalloutDescription, vr as getBlockDefinition, vt as evaluateVisibility, wd as sectionPhotoPresence, wf as planLayoutGridColumnEdit, wn as deriveEditorValuePublicationState, wp as FIELD_SURFACE_CLASS, wt as hasVisibilityConditions, wv as resolveBookingTimeZoneId, x as pageDesignLookTiles, x_ as slugify$1, xa as buildResolveImageUrlContext, xd as resolveVisiblePromotedFieldPathsForEditorBlock, xf as appearancePresets, xm as createContextScope, xn as useStore, xt as getVisibleWhenPredicates, xv as parseBookingLocalDate, yd as concretePaletteFromTheme, yi as toggleEventType, ym as useControllableState, yp as CalloutTitle, yr as listBlockDescriptors, yt as evaluateVisibleWhen, z_ as parsePublicProfile, zc as FEATURE_CARD_GENERATED_ICON_SIZE_PX, zf as resolveRepeaterGridRowFieldId, zg as parseAspectRatioValue, zu as parseGeneratedIconAssetId } from "./previewAssistantSlot-DBi-WybM.mjs";
|
|
4
4
|
import { $ as EyeOff, A as Lock, B as ImageUp, C as Palette, G as GripVertical, Gt as ok, H as ImageOff, I as Link2, M as LoaderCircle, O as Maximize2, S as PanelBottom, V as ImagePlus, Wt as err, _ 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-CPBCf6QT.mjs";
|
|
5
|
-
import { B as resolveFooterLayoutHints, C as isHeaderMenuSurfaceState, Cn as
|
|
5
|
+
import { B as resolveFooterLayoutHints, C as isHeaderMenuSurfaceState, Cn as setFooterSectionSelected, Dn as planFooterArrangement, En as footerArrangementPolicy, F as locationWidgetOverrides, G as getFooterEngagementAuthoringOptions, H as SiteOptionWidgetProvider, J as updateFooterCredit, Jt as themeRuntimeScopeProps, K as getPublicProfile, Kt as buildThemeDataAttrs, L as useSiteEditorAdmission, Q as useMediaEditor, Qt as DEFAULT_THEME_RESPONSIVE_MODE, S as HeaderMenuControls, Sn as resolveFooterSections, Tn as validateFooterComposition, U as useSiteOptionWidgetContext, W as getFooterComposition, X as footerCreditLine, Xt as escapeStyleContent, Y as updatePublicProfile, Yt as buildThemeRuntime, _ as resolvePreviewEditorGuidanceModel, _n as deriveFooterEditorOverview, _t as useField, an as TabsContent, at as useImageResolveContextOptional, bt as ThemeScopeCore, cn as Content$2, ct as BlockContextProvider, dn as Trigger$2, dt as hasEmptyOption, f as canInspectSiteStyle, fn as Content$1, ft as mapCurrentValueForSelect, gn as classifyKnownMimeType, gt as FieldLabelText, h as resolvePreviewDashboardSetupHandoff, ht as FieldFrame, in as Tabs, ln as List, lt as useBlockContext, m as buildPreviewDashboardSetupUrl, mn as Trigger$1, mt as unmapValueFromSelect, n as SiteChromeSurfaceControls, nn as SearchInput, on as TabsList, ot as FormNodeClient, pn as Root$2, pt as mapOptionValueForSelect, q as updateFooterComposition, rn as Input, rt as NewsletterFormClient, sn as TabsTrigger, st as BlockApiProvider, tn as Textarea, u as CustomizeBackgroundControlRows, un as Root2$2, ut as SelectField, vn as normalizeLegacyFooterContentToV1, vt as useLinkedInlineTextField, wn as upsertFooterEngagementSection, x as useSiteFontStorageUrl, xn as removeFooterEngagementSection, y as resolvePreviewSidebarChromeModel, yn as parseFooterEngagementSection, yt as revealEditorElement, z as buildFooterRuntimeViewModel } from "./SiteChromeCustomizeButton-CU9VD-7O.mjs";
|
|
6
6
|
import { U as paletteTokenNameSchema, c as isKnownIconName, d as resolveIconPickerPreset, i as ThemedButtonSpecimen, j as VARIANT_ROLES, o as getIconComponent, s as getIconPickerOptionsForPreset, u as isIconPickerPreset } from "./ThemedButton-C0dgGJ5k.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-
|
|
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-D4VjPs-r.mjs";
|
|
8
8
|
import { n as TZDate } from "./src-DY8JCJdE.mjs";
|
|
9
9
|
import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-D56RD3e_.mjs";
|
|
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-
|
|
10
|
+
import { a as publicationLabel, o as Spinner, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-CKxTaC3j.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-B7MLTjBX.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
|
}
|
|
@@ -12292,9 +12363,9 @@ function RepeaterList({ config, backend, basePath, items, minItems, maxItems, on
|
|
|
12292
12363
|
} : { kind: "fallback" };
|
|
12293
12364
|
onRemove(index);
|
|
12294
12365
|
}, [items, onRemove]);
|
|
12295
|
-
return /* @__PURE__ */ jsx(
|
|
12366
|
+
return /* @__PURE__ */ jsx(EditorItemList, {
|
|
12296
12367
|
ref: linearDnd.containerRef,
|
|
12297
|
-
className: requestAdd ?
|
|
12368
|
+
className: requestAdd ? void 0 : "gap-6",
|
|
12298
12369
|
children: /* @__PURE__ */ jsx(DndContext, {
|
|
12299
12370
|
sensors: linearDnd.sensors,
|
|
12300
12371
|
collisionDetection: linearDnd.collisionDetection,
|
|
@@ -12303,8 +12374,11 @@ function RepeaterList({ config, backend, basePath, items, minItems, maxItems, on
|
|
|
12303
12374
|
items: linearDnd.sortableItemIds,
|
|
12304
12375
|
strategy: linearDnd.sortingStrategy,
|
|
12305
12376
|
children: items.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [requestAdd && index > 0 ? /* @__PURE__ */ jsx(EditorItemInsertDivider, {
|
|
12306
|
-
|
|
12307
|
-
|
|
12377
|
+
touch: "icon",
|
|
12378
|
+
actions: [{
|
|
12379
|
+
label: `Insert ${hostActions?.addLabel ?? "item"}`,
|
|
12380
|
+
onSelect: () => requestAdd(index)
|
|
12381
|
+
}]
|
|
12308
12382
|
}) : null, /* @__PURE__ */ jsx(RepeaterRow, {
|
|
12309
12383
|
id: item.id,
|
|
12310
12384
|
index,
|
|
@@ -23436,7 +23510,7 @@ function FeatureCardIconsPanel({ block, uiStore, currentStyleGuideVersionId, ico
|
|
|
23436
23510
|
//#region ../editor-blocks/src/block-editor/BlockCardBody.tsx
|
|
23437
23511
|
function BlockCardBody({ siteId, renderPreviewLink, block, manifest, uiStore, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, hideThemeV2RawStyleFields = false, pageDesignBlock = null, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet }) {
|
|
23438
23512
|
return /* @__PURE__ */ jsxs(CardContent, {
|
|
23439
|
-
className: "space-y-4 pb-6",
|
|
23513
|
+
className: "space-y-4 pb-6 max-sm:px-3 max-sm:pb-3",
|
|
23440
23514
|
children: [/* @__PURE__ */ jsx(FeatureCardIconsPanel, {
|
|
23441
23515
|
block,
|
|
23442
23516
|
uiStore,
|
|
@@ -24002,8 +24076,11 @@ function BlockListItemBody(props) {
|
|
|
24002
24076
|
//#endregion
|
|
24003
24077
|
//#region ../editor-blocks/src/block-editor/AddBlockDivider.tsx
|
|
24004
24078
|
const AddBlockDivider = ({ onOpen, position }) => /* @__PURE__ */ jsx(EditorItemInsertDivider, {
|
|
24005
|
-
|
|
24006
|
-
|
|
24079
|
+
touch: "icon",
|
|
24080
|
+
actions: [{
|
|
24081
|
+
label: "Insert block",
|
|
24082
|
+
onSelect: () => onOpen(position)
|
|
24083
|
+
}]
|
|
24007
24084
|
});
|
|
24008
24085
|
//#endregion
|
|
24009
24086
|
//#region ../editor-blocks/src/block-editor/BlockListLayoutParts.tsx
|
|
@@ -28559,7 +28636,6 @@ function planFooterEditorView(input) {
|
|
|
28559
28636
|
available: overview.available.map((item) => sectionPlan(item.section, false, false, input.canEdit)),
|
|
28560
28637
|
arrangement: planFooterArrangement(renderable, footerArrangementPolicy({
|
|
28561
28638
|
arrangement: input.arrangement,
|
|
28562
|
-
legalRegion: input.legalRegion,
|
|
28563
28639
|
storedNavigationLayout: input.navigationLayout
|
|
28564
28640
|
}))
|
|
28565
28641
|
};
|
|
@@ -29059,7 +29135,7 @@ function FooterPreviewModule({ module }) {
|
|
|
29059
29135
|
children: module.heading ?? previewModuleLabel(module)
|
|
29060
29136
|
}), /* @__PURE__ */ jsx("div", {
|
|
29061
29137
|
className: "text-xs text-slate-300",
|
|
29062
|
-
children: previewModuleLabel(module)
|
|
29138
|
+
children: module.kind === "copyright" ? "Added automatically, with the current year and your site name" : previewModuleLabel(module)
|
|
29063
29139
|
})]
|
|
29064
29140
|
});
|
|
29065
29141
|
}
|
|
@@ -29091,14 +29167,15 @@ function previewModuleLabel(module) {
|
|
|
29091
29167
|
case "supporting-text": return "Supporting text";
|
|
29092
29168
|
case "legal": return "Legal text";
|
|
29093
29169
|
case "engagement": return engagementLabel(module.engagement);
|
|
29094
|
-
case "
|
|
29170
|
+
case "copyright": return "Copyright";
|
|
29171
|
+
case "attribution": return "Macadamia credit";
|
|
29095
29172
|
default: return assertNever$1(module);
|
|
29096
29173
|
}
|
|
29097
29174
|
}
|
|
29098
29175
|
function engagementLabel(engagement) {
|
|
29099
29176
|
return engagement.kind === "standard-contact" ? "Contact form" : "Mailing list signup";
|
|
29100
29177
|
}
|
|
29101
|
-
function FooterOverview({
|
|
29178
|
+
function FooterOverview({ credit, onCreditHiddenChange, plan, composition, onTarget, onChange, manageLinksHref, manageSettingsHref, navigationLayout, arrangement, onEngagement, onNavigationLayoutChange, navigationLayoutPending, navigationLayoutDisabled }) {
|
|
29102
29179
|
return /* @__PURE__ */ jsxs("div", {
|
|
29103
29180
|
className: "space-y-5",
|
|
29104
29181
|
children: [
|
|
@@ -29114,7 +29191,8 @@ function FooterOverview({ attribution, plan, composition, onTarget, onChange, ma
|
|
|
29114
29191
|
children: "Shown in footer"
|
|
29115
29192
|
}),
|
|
29116
29193
|
/* @__PURE__ */ jsx(ShownFooterSections, {
|
|
29117
|
-
|
|
29194
|
+
credit,
|
|
29195
|
+
onCreditHiddenChange,
|
|
29118
29196
|
items: plan.shown,
|
|
29119
29197
|
composition,
|
|
29120
29198
|
manageLinksHref,
|
|
@@ -29124,6 +29202,8 @@ function FooterOverview({ attribution, plan, composition, onTarget, onChange, ma
|
|
|
29124
29202
|
onTarget
|
|
29125
29203
|
}),
|
|
29126
29204
|
/* @__PURE__ */ jsx(AvailableSections, {
|
|
29205
|
+
credit,
|
|
29206
|
+
onCreditHiddenChange,
|
|
29127
29207
|
composition,
|
|
29128
29208
|
items: plan.available,
|
|
29129
29209
|
onChange
|
|
@@ -29141,7 +29221,11 @@ function ShownFooterSections(props) {
|
|
|
29141
29221
|
children: [props.items.map((item) => /* @__PURE__ */ jsx(ShownFooterSection, {
|
|
29142
29222
|
...props,
|
|
29143
29223
|
item
|
|
29144
|
-
}, item.section.id)),
|
|
29224
|
+
}, item.section.id)), /* @__PURE__ */ jsx(PlatformCreditSection, {
|
|
29225
|
+
place: "shown",
|
|
29226
|
+
credit: props.credit,
|
|
29227
|
+
onHiddenChange: props.onCreditHiddenChange
|
|
29228
|
+
})]
|
|
29145
29229
|
});
|
|
29146
29230
|
}
|
|
29147
29231
|
function AddFooterEngagement({ composition, onEngagement }) {
|
|
@@ -29160,38 +29244,91 @@ function AddFooterEngagement({ composition, onEngagement }) {
|
|
|
29160
29244
|
});
|
|
29161
29245
|
}
|
|
29162
29246
|
/**
|
|
29163
|
-
* The
|
|
29164
|
-
*
|
|
29247
|
+
* The platform credit at the end of the footer. It isn't a composition
|
|
29248
|
+
* section: the plan decides whether it can be hidden, and hiding it is a site
|
|
29249
|
+
* setting saved on its own. A hidden credit sits with the sections available
|
|
29250
|
+
* to add, as a hidden section would.
|
|
29165
29251
|
*/
|
|
29166
|
-
function
|
|
29167
|
-
|
|
29168
|
-
|
|
29169
|
-
|
|
29252
|
+
function PlatformCreditSection({ place, credit, onHiddenChange }) {
|
|
29253
|
+
const [state, setState] = useState("idle");
|
|
29254
|
+
if (credit.kind === "not-shown") return null;
|
|
29255
|
+
const hidden = credit.kind === "optional" && credit.hidden;
|
|
29256
|
+
if (hidden !== (place === "available")) return null;
|
|
29257
|
+
const change = async (nextHidden) => {
|
|
29258
|
+
setState("saving");
|
|
29259
|
+
setState(await onHiddenChange(nextHidden) === "failed" ? "failed" : "idle");
|
|
29260
|
+
};
|
|
29261
|
+
const label = `${credit.line.lead} ${credit.line.link.label}`;
|
|
29262
|
+
const saving = state === "saving";
|
|
29263
|
+
return hidden ? /* @__PURE__ */ jsxs("div", {
|
|
29264
|
+
"data-footer-platform-attribution": "hidden",
|
|
29170
29265
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
29171
|
-
className: "
|
|
29172
|
-
children: [
|
|
29173
|
-
|
|
29174
|
-
|
|
29175
|
-
|
|
29176
|
-
|
|
29177
|
-
|
|
29178
|
-
|
|
29179
|
-
|
|
29180
|
-
|
|
29266
|
+
className: "flex items-center justify-between gap-3 rounded-lg border border-dashed p-3",
|
|
29267
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
29268
|
+
className: "text-sm",
|
|
29269
|
+
children: label
|
|
29270
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
29271
|
+
type: "button",
|
|
29272
|
+
className: buttonClass$1,
|
|
29273
|
+
disabled: saving,
|
|
29274
|
+
onClick: () => void change(false),
|
|
29275
|
+
children: "Add"
|
|
29276
|
+
})]
|
|
29277
|
+
}), /* @__PURE__ */ jsx(CreditSaveFailure, { state })]
|
|
29278
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
29279
|
+
className: "rounded-lg border p-3",
|
|
29280
|
+
"data-footer-platform-attribution": "shown",
|
|
29281
|
+
children: [
|
|
29282
|
+
/* @__PURE__ */ jsx("div", {
|
|
29283
|
+
className: "font-medium",
|
|
29284
|
+
children: label
|
|
29285
|
+
}),
|
|
29286
|
+
/* @__PURE__ */ jsx("div", {
|
|
29287
|
+
className: "mt-1 text-xs text-muted-foreground",
|
|
29288
|
+
children: credit.kind === "optional" ? "Your plan lets you hide this line." : "Included with your Macadamia plan."
|
|
29289
|
+
}),
|
|
29290
|
+
credit.kind === "optional" ? /* @__PURE__ */ jsx("div", {
|
|
29291
|
+
className: "mt-3 flex flex-wrap gap-2",
|
|
29292
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
29293
|
+
className: buttonClass$1,
|
|
29294
|
+
disabled: saving,
|
|
29295
|
+
onClick: () => void change(true),
|
|
29296
|
+
type: "button",
|
|
29297
|
+
children: "Hide"
|
|
29298
|
+
})
|
|
29299
|
+
}) : null,
|
|
29300
|
+
/* @__PURE__ */ jsx(CreditSaveFailure, { state })
|
|
29301
|
+
]
|
|
29181
29302
|
});
|
|
29182
29303
|
}
|
|
29183
|
-
function
|
|
29184
|
-
|
|
29304
|
+
function CreditSaveFailure({ state }) {
|
|
29305
|
+
return state === "failed" ? /* @__PURE__ */ jsx("div", {
|
|
29306
|
+
className: "mt-1 text-xs text-destructive",
|
|
29307
|
+
role: "alert",
|
|
29308
|
+
children: "That didn't save. Please try again."
|
|
29309
|
+
}) : null;
|
|
29310
|
+
}
|
|
29311
|
+
function AvailableSections({ credit, onCreditHiddenChange, composition, items, onChange }) {
|
|
29312
|
+
const creditHidden = credit.kind === "optional" && credit.hidden;
|
|
29313
|
+
if (items.length === 0 && !creditHidden) return null;
|
|
29185
29314
|
return /* @__PURE__ */ jsxs("div", {
|
|
29186
29315
|
className: "space-y-2",
|
|
29187
|
-
children: [
|
|
29188
|
-
|
|
29189
|
-
|
|
29190
|
-
|
|
29191
|
-
|
|
29192
|
-
item,
|
|
29193
|
-
|
|
29194
|
-
|
|
29316
|
+
children: [
|
|
29317
|
+
/* @__PURE__ */ jsx("h3", {
|
|
29318
|
+
className: "text-sm font-semibold",
|
|
29319
|
+
children: "Available to add"
|
|
29320
|
+
}),
|
|
29321
|
+
items.map((item) => /* @__PURE__ */ jsx(AvailableSection, {
|
|
29322
|
+
composition,
|
|
29323
|
+
item,
|
|
29324
|
+
onChange
|
|
29325
|
+
}, item.section.id)),
|
|
29326
|
+
/* @__PURE__ */ jsx(PlatformCreditSection, {
|
|
29327
|
+
place: "available",
|
|
29328
|
+
credit,
|
|
29329
|
+
onHiddenChange: onCreditHiddenChange
|
|
29330
|
+
})
|
|
29331
|
+
]
|
|
29195
29332
|
});
|
|
29196
29333
|
}
|
|
29197
29334
|
function ShownFooterSection({ composition, item, manageLinksHref, manageSettingsHref, onChange, onEngagement, onTarget }) {
|
|
@@ -29385,18 +29522,18 @@ function repairMessage(reason, section, options) {
|
|
|
29385
29522
|
//#endregion
|
|
29386
29523
|
//#region ../content-editor/src/footerPreviewRuntime.ts
|
|
29387
29524
|
function buildFooterPreviewRuntime(input) {
|
|
29388
|
-
return
|
|
29525
|
+
return buildFooterRuntimeViewModel({
|
|
29389
29526
|
composition: input.composition,
|
|
29390
29527
|
publicProfile: input.publicProfile,
|
|
29391
29528
|
businessAddress: input.hasBusinessAddress ? "Business address" : null,
|
|
29392
29529
|
hasLogo: input.hasLogo,
|
|
29393
29530
|
hasFooterNavigation: input.hasMainNavigation,
|
|
29394
29531
|
hasLegalPolicyNavigation: input.hasLegalPolicyNavigation,
|
|
29395
|
-
legalRegion: input.legalRegion,
|
|
29396
29532
|
layoutVariant: input.arrangement,
|
|
29397
29533
|
navigationLayout: input.navigationLayout,
|
|
29398
|
-
engagement: input.engagement
|
|
29399
|
-
|
|
29534
|
+
engagement: input.engagement,
|
|
29535
|
+
attribution: input.attribution
|
|
29536
|
+
});
|
|
29400
29537
|
}
|
|
29401
29538
|
//#endregion
|
|
29402
29539
|
//#region ../content-editor/src/session-journal/useJournalTargetRefresh.ts
|
|
@@ -29489,10 +29626,19 @@ function useFooterComposerState({ apiClient, canEdit, initialTarget, initialTarg
|
|
|
29489
29626
|
setProfileSnapshot: loaded.setProfileSnapshot,
|
|
29490
29627
|
siteId
|
|
29491
29628
|
});
|
|
29629
|
+
const saveCreditHidden = useCreditSaver({
|
|
29630
|
+
apiClient,
|
|
29631
|
+
canEdit,
|
|
29632
|
+
credit: loaded.credit,
|
|
29633
|
+
onSaved,
|
|
29634
|
+
setCredit: loaded.setCredit,
|
|
29635
|
+
siteId
|
|
29636
|
+
});
|
|
29492
29637
|
return {
|
|
29493
29638
|
...loaded,
|
|
29494
29639
|
...session,
|
|
29495
29640
|
navigationLayoutControl,
|
|
29641
|
+
saveCreditHidden,
|
|
29496
29642
|
saveComposition,
|
|
29497
29643
|
saveProfile,
|
|
29498
29644
|
siteId,
|
|
@@ -29500,6 +29646,31 @@ function useFooterComposerState({ apiClient, canEdit, initialTarget, initialTarg
|
|
|
29500
29646
|
setTarget
|
|
29501
29647
|
};
|
|
29502
29648
|
}
|
|
29649
|
+
/**
|
|
29650
|
+
* Hiding the platform credit is a site setting, not part of the composition or
|
|
29651
|
+
* its undo history. The line moves once the save lands, so a failure is
|
|
29652
|
+
* reported where the owner clicked.
|
|
29653
|
+
*/
|
|
29654
|
+
function useCreditSaver(options) {
|
|
29655
|
+
const { apiClient, canEdit, credit, onSaved, setCredit, siteId } = options;
|
|
29656
|
+
return useCallback(async (hidden) => {
|
|
29657
|
+
if (credit.kind !== "optional" || !footerAuthoringAllowed(canEdit, siteId)) return "failed";
|
|
29658
|
+
try {
|
|
29659
|
+
setCredit(await updateFooterCredit(apiClient, siteId, { hidden }));
|
|
29660
|
+
onSaved?.();
|
|
29661
|
+
return "saved";
|
|
29662
|
+
} catch {
|
|
29663
|
+
return "failed";
|
|
29664
|
+
}
|
|
29665
|
+
}, [
|
|
29666
|
+
apiClient,
|
|
29667
|
+
canEdit,
|
|
29668
|
+
credit,
|
|
29669
|
+
onSaved,
|
|
29670
|
+
setCredit,
|
|
29671
|
+
siteId
|
|
29672
|
+
]);
|
|
29673
|
+
}
|
|
29503
29674
|
/** Status and admission are session facts; the only local marker is this mounted visit's start. */
|
|
29504
29675
|
function useFooterSessionState(siteId, canEdit, includeThemeStatus) {
|
|
29505
29676
|
const journal = useSessionJournal();
|
|
@@ -29553,20 +29724,42 @@ async function readFooterAuthoring(apiClient, rawSiteId, siteId) {
|
|
|
29553
29724
|
engagement
|
|
29554
29725
|
};
|
|
29555
29726
|
}
|
|
29727
|
+
/**
|
|
29728
|
+
* The platform credit as last confirmed. A reload that started before a credit
|
|
29729
|
+
* save landed must not undo it, so a read applies only if no save came since.
|
|
29730
|
+
*/
|
|
29731
|
+
function useCreditState() {
|
|
29732
|
+
const [credit, setCreditState] = useState({ kind: "not-shown" });
|
|
29733
|
+
const writes = useRef(0);
|
|
29734
|
+
return {
|
|
29735
|
+
credit,
|
|
29736
|
+
setCredit: useCallback((next) => {
|
|
29737
|
+
writes.current += 1;
|
|
29738
|
+
setCreditState(next);
|
|
29739
|
+
}, []),
|
|
29740
|
+
readCredit: useCallback(() => {
|
|
29741
|
+
const writesAtStart = writes.current;
|
|
29742
|
+
return (read) => {
|
|
29743
|
+
if (writes.current === writesAtStart) setCreditState(read);
|
|
29744
|
+
};
|
|
29745
|
+
}, [])
|
|
29746
|
+
};
|
|
29747
|
+
}
|
|
29556
29748
|
function useFooterLoad(apiClient, rawSiteId, siteId) {
|
|
29557
29749
|
const [compositionSnapshot, setCompositionSnapshot] = useState(null);
|
|
29558
29750
|
const [profileSnapshot, setProfileSnapshot] = useState(null);
|
|
29559
29751
|
const [navigationMenus, setNavigationMenus] = useState(null);
|
|
29560
29752
|
const [engagementOptions, setEngagementOptions] = useState(null);
|
|
29561
|
-
const
|
|
29753
|
+
const { credit, setCredit, readCredit } = useCreditState();
|
|
29562
29754
|
const [loadError, setLoadError] = useState(null);
|
|
29563
29755
|
const baseline = useFooterJournalBaseline(apiClient, rawSiteId, siteId);
|
|
29564
29756
|
const load = useCallback(async () => {
|
|
29565
29757
|
setLoadError(null);
|
|
29566
29758
|
try {
|
|
29759
|
+
const applyCredit = readCredit();
|
|
29567
29760
|
const { composition, profile, navigation, engagement } = await readFooterAuthoring(apiClient, rawSiteId, siteId);
|
|
29568
29761
|
setCompositionSnapshot(composition);
|
|
29569
|
-
|
|
29762
|
+
applyCredit(composition.credit);
|
|
29570
29763
|
setProfileSnapshot(profile);
|
|
29571
29764
|
baseline.observe(composition, profile);
|
|
29572
29765
|
setNavigationMenus(navigation.menus);
|
|
@@ -29578,13 +29771,14 @@ function useFooterLoad(apiClient, rawSiteId, siteId) {
|
|
|
29578
29771
|
apiClient,
|
|
29579
29772
|
baseline,
|
|
29580
29773
|
rawSiteId,
|
|
29774
|
+
readCredit,
|
|
29581
29775
|
siteId
|
|
29582
29776
|
]);
|
|
29583
29777
|
useEffect(() => {
|
|
29584
29778
|
load();
|
|
29585
29779
|
}, [load]);
|
|
29586
29780
|
return {
|
|
29587
|
-
|
|
29781
|
+
credit,
|
|
29588
29782
|
compositionSnapshot,
|
|
29589
29783
|
engagementOptions,
|
|
29590
29784
|
load,
|
|
@@ -29593,6 +29787,7 @@ function useFooterLoad(apiClient, rawSiteId, siteId) {
|
|
|
29593
29787
|
navigationMenus,
|
|
29594
29788
|
profileSnapshot,
|
|
29595
29789
|
setCompositionSnapshot,
|
|
29790
|
+
setCredit,
|
|
29596
29791
|
setProfileSnapshot
|
|
29597
29792
|
};
|
|
29598
29793
|
}
|
|
@@ -29842,8 +30037,8 @@ function fieldsForModule(module) {
|
|
|
29842
30037
|
}];
|
|
29843
30038
|
return [...moduleFieldCatalog];
|
|
29844
30039
|
}
|
|
29845
|
-
function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, manageLinksHref, manageFormsHref = manageLinksHref.replace(/\/navigation$/u, "/forms"), manageNewsletterHref = manageLinksHref.replace(/\/navigation$/u, "/newsletter"), manageSettingsHref, arrangement,
|
|
29846
|
-
const {
|
|
30040
|
+
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 }) {
|
|
30041
|
+
const { authoringAllowed, canEdit: authoringEnabled, compositionSnapshot, engagementOptions, load, loadError, message, navigationLayoutControl, navigationMenus, profileSnapshot, credit, saveComposition, saveCreditHidden, saveProfile, saveState, setCompositionSnapshot, setTarget, siteId, target } = useFooterComposerState({
|
|
29847
30042
|
apiClient,
|
|
29848
30043
|
canEdit,
|
|
29849
30044
|
initialTarget,
|
|
@@ -29874,13 +30069,11 @@ function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, m
|
|
|
29874
30069
|
}
|
|
29875
30070
|
});
|
|
29876
30071
|
return /* @__PURE__ */ jsx(ReadyFooterComposer, {
|
|
29877
|
-
attribution,
|
|
29878
30072
|
canEdit: authoringEnabled,
|
|
29879
30073
|
compositionSnapshot,
|
|
29880
30074
|
customFooterMode,
|
|
29881
30075
|
engagementOptions,
|
|
29882
30076
|
arrangement,
|
|
29883
|
-
legalRegion,
|
|
29884
30077
|
manageFormsHref,
|
|
29885
30078
|
manageLinksHref,
|
|
29886
30079
|
manageNewsletterHref,
|
|
@@ -29889,7 +30082,9 @@ function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, m
|
|
|
29889
30082
|
navigationLayoutControl,
|
|
29890
30083
|
navigationMenus,
|
|
29891
30084
|
profileSnapshot,
|
|
30085
|
+
credit,
|
|
29892
30086
|
saveComposition,
|
|
30087
|
+
saveCreditHidden,
|
|
29893
30088
|
saveProfile,
|
|
29894
30089
|
saveState,
|
|
29895
30090
|
setTarget,
|
|
@@ -29899,7 +30094,7 @@ function FooterComposerPanel({ apiClient, siteId: rawSiteId, customFooterMode, m
|
|
|
29899
30094
|
}
|
|
29900
30095
|
function ReadyFooterComposer(props) {
|
|
29901
30096
|
const [engagementCandidate, setEngagementCandidate] = useState(null);
|
|
29902
|
-
const { canEdit, compositionSnapshot, engagementOptions,
|
|
30097
|
+
const { canEdit, compositionSnapshot, engagementOptions, arrangement, navigationLayoutControl, navigationMenus, profileSnapshot, target } = props;
|
|
29903
30098
|
const candidateComposition = engagementCandidate === null ? null : upsertFooterEngagementSection(compositionSnapshot.composition, engagementCandidate);
|
|
29904
30099
|
const previewComposition = candidateComposition?.ok === true ? candidateComposition.value : compositionSnapshot.composition;
|
|
29905
30100
|
const candidateError = candidateComposition?.ok === false ? candidateComposition.error.message : null;
|
|
@@ -29918,7 +30113,6 @@ function ReadyFooterComposer(props) {
|
|
|
29918
30113
|
hasLegalPolicyNavigation,
|
|
29919
30114
|
hasEngagementSource: resolvedEngagement.kind === "resolved",
|
|
29920
30115
|
canEdit,
|
|
29921
|
-
legalRegion,
|
|
29922
30116
|
arrangement,
|
|
29923
30117
|
navigationLayout: navigationLayoutControl.layout
|
|
29924
30118
|
});
|
|
@@ -29929,11 +30123,10 @@ function ReadyFooterComposer(props) {
|
|
|
29929
30123
|
hasLogo: profileSnapshot.hasLogo,
|
|
29930
30124
|
hasMainNavigation,
|
|
29931
30125
|
hasLegalPolicyNavigation,
|
|
29932
|
-
legalRegion,
|
|
29933
30126
|
arrangement,
|
|
29934
30127
|
navigationLayout: navigationLayoutControl.layout,
|
|
29935
30128
|
engagement: resolvedEngagement,
|
|
29936
|
-
attribution: props.
|
|
30129
|
+
attribution: footerCreditLine(props.credit)
|
|
29937
30130
|
});
|
|
29938
30131
|
const targetModule = target.kind === "module" ? compositionSnapshot.composition.sections.find((section) => section.id === target.moduleId) ?? null : null;
|
|
29939
30132
|
const editingEngagement = target.kind === "engagement" || targetModule?.kind === "engagement";
|
|
@@ -29979,7 +30172,8 @@ function FooterEditorPane(props) {
|
|
|
29979
30172
|
children: "← Footer overview"
|
|
29980
30173
|
}) : null,
|
|
29981
30174
|
props.target.kind === "overview" ? /* @__PURE__ */ jsx(FooterOverview, {
|
|
29982
|
-
|
|
30175
|
+
credit: props.credit,
|
|
30176
|
+
onCreditHiddenChange: props.saveCreditHidden,
|
|
29983
30177
|
composition: props.compositionSnapshot.composition,
|
|
29984
30178
|
manageLinksHref: props.manageLinksHref,
|
|
29985
30179
|
manageSettingsHref: props.manageSettingsHref,
|
|
@@ -30928,6 +31122,7 @@ function AddressField({ prefix, value, refusal, onChange }) {
|
|
|
30928
31122
|
children: [
|
|
30929
31123
|
/* @__PURE__ */ jsx("span", {
|
|
30930
31124
|
className: "min-w-0 truncate text-muted-foreground",
|
|
31125
|
+
title: prefix,
|
|
30931
31126
|
children: prefix.slice(0, -1)
|
|
30932
31127
|
}),
|
|
30933
31128
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -33058,11 +33253,7 @@ function PreviewFooterEditorPanel({ sdkConfig, apiClient, siteId, dashboardBaseU
|
|
|
33058
33253
|
});
|
|
33059
33254
|
}
|
|
33060
33255
|
function footerComposerLayoutProps(theme) {
|
|
33061
|
-
|
|
33062
|
-
return {
|
|
33063
|
-
arrangement: hints.layoutVariant,
|
|
33064
|
-
legalRegion: hints.legalRegion
|
|
33065
|
-
};
|
|
33256
|
+
return { arrangement: resolveFooterLayoutHints(theme).layoutVariant };
|
|
33066
33257
|
}
|
|
33067
33258
|
//#endregion
|
|
33068
33259
|
//#region ../preview-next/src/client/preview/PreviewEditorGuidanceCard.tsx
|
|
@@ -36673,6 +36864,9 @@ function PreviewEditorSidebar(props) {
|
|
|
36673
36864
|
return /* @__PURE__ */ jsxs("div", {
|
|
36674
36865
|
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
36866
|
"data-preview-sidebar-tone": sidebarChrome.tone,
|
|
36867
|
+
"data-testid": "preview-sidebar",
|
|
36868
|
+
"data-preview-sidebar-view": view.kind,
|
|
36869
|
+
"data-preview-sidebar-target": view.kind === "chrome" ? view.target : void 0,
|
|
36676
36870
|
children: [
|
|
36677
36871
|
/* @__PURE__ */ jsx(SidebarHeaderForView, {
|
|
36678
36872
|
view,
|
|
@@ -36691,6 +36885,7 @@ function PreviewEditorSidebar(props) {
|
|
|
36691
36885
|
/* @__PURE__ */ jsxs("div", {
|
|
36692
36886
|
ref: panelRef,
|
|
36693
36887
|
tabIndex: -1,
|
|
36888
|
+
"data-testid": "preview-sidebar-panel",
|
|
36694
36889
|
className: "min-h-0 flex-1 overflow-auto",
|
|
36695
36890
|
children: [/* @__PURE__ */ jsx(SidebarSlotResource, {
|
|
36696
36891
|
props,
|
|
@@ -36708,17 +36903,20 @@ function PreviewEditorSidebar(props) {
|
|
|
36708
36903
|
}
|
|
36709
36904
|
function SidebarSlotResource({ props, visible }) {
|
|
36710
36905
|
if (!props.entryData?.type) return null;
|
|
36711
|
-
return /* @__PURE__ */ jsx(
|
|
36712
|
-
|
|
36713
|
-
|
|
36714
|
-
|
|
36715
|
-
|
|
36716
|
-
|
|
36717
|
-
|
|
36718
|
-
|
|
36719
|
-
|
|
36720
|
-
|
|
36721
|
-
|
|
36906
|
+
return /* @__PURE__ */ jsx("div", {
|
|
36907
|
+
"data-testid": "preview-sidebar-entry-content",
|
|
36908
|
+
children: /* @__PURE__ */ jsx(EntrySlotBlockEditorPanel, {
|
|
36909
|
+
siteId: props.siteId,
|
|
36910
|
+
dashboardBaseUrl: props.dashboardBaseUrl,
|
|
36911
|
+
typeKey: props.entryData.type,
|
|
36912
|
+
entryId: props.entryData.id,
|
|
36913
|
+
pageSurfaceId: props.pageNodeType === "page_surface" ? props.pageId : null,
|
|
36914
|
+
theme: props.theme,
|
|
36915
|
+
apiClient: props.apiClient,
|
|
36916
|
+
sdkConfig: props.sdkConfig,
|
|
36917
|
+
widgets: previewWidgetOverrides,
|
|
36918
|
+
visible
|
|
36919
|
+
})
|
|
36722
36920
|
});
|
|
36723
36921
|
}
|
|
36724
36922
|
function SidebarTaskPanel({ props, view, requestId, uiStoreForBlockEditor, linkedEntry }) {
|