@riverbankcms/sdk 0.173.0 → 0.174.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/README.md +6 -1
- package/dist/_dts/{BlocksIslandsHydrator-O50mTMCY.d.ts → BlocksIslandsHydrator-GqVX3I8E.d.ts} +1 -1
- package/dist/_dts/{Page-Bk99sJwV.d.ts → Page-BhUH31M-.d.ts} +27 -16
- package/dist/_dts/{SdkPreviewMode-DzAue6Kj.d.ts → SdkPreviewMode-DBn2x0UL.d.ts} +14 -7
- package/dist/_dts/{client-ZlNEIvlU.d.ts → client-Cr-sOeSl.d.ts} +1 -1
- package/dist/_dts/{content-types-DBXPNc0h.d.ts → content-types-DKw1yJdN.d.ts} +2 -2
- package/dist/_dts/{contracts-D9bhu0bb.d.ts → contracts-CJ2O03nB.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-Bfap3soN.d.ts → footerPageOutline-DoGHHKr_.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DwCdg31h.d.ts → generatePageMetadata-CJGu4hoa.d.ts} +2 -2
- package/dist/_dts/{index-C611wjIL.d.ts → index--39uLjrr.d.ts} +1 -1
- package/dist/_dts/{index-CJzs-yIJ.d.ts → index-3GzargmS.d.ts} +2 -2
- package/dist/_dts/{index-Dq_AboWN.d.ts → index-Bq-488M7.d.ts} +1 -1
- package/dist/_dts/{index-KXh8FQ2s.d.ts → index-DQZ5L0Gb.d.ts} +2 -2
- package/dist/_dts/{index-DutLU2d2.d.ts → index-DYlfdT1O.d.ts} +2 -1
- package/dist/_dts/{index-BnatulTs.d.ts → index-DYsP4k6S.d.ts} +3 -3
- package/dist/_dts/{index-DW3eeNph.d.ts → index-DdEi2iXd.d.ts} +4 -4
- package/dist/_dts/{loadContent-Bde2y870.d.ts → loadContent-BVPagYmy.d.ts} +11 -11
- package/dist/_dts/{request-Bysk4QPI.d.ts → request-Be1E-H-V.d.ts} +3559 -1967
- package/dist/_dts/{resolveBlockData-ChbNvpSF.d.ts → resolveBlockData-D1pL25bD.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-CGa6QMgc.d.ts → resolvePageContent-B4sbTf96.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +9 -9
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +4 -2
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +13 -8
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +36 -204
- package/dist/_dts/{types-BwitGNTl.d.ts → types-5MeDI1w8.d.ts} +7 -7
- package/dist/_dts/{types-BoEk9ZON.d.ts → types-Bm5_3VEd.d.ts} +3 -3
- package/dist/_dts/{types-kpp8XyXv.d.ts → types-CVoCc_Ia.d.ts} +2 -2
- package/dist/_dts/{validation-ChftKX-o.d.ts → validation-lEtYD-Rh.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-BnUeSE3d.mjs → BlocksIslandsHydrator-DkflFLGQ.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-LHQMODqB.mjs → BookingMailingListNote-CAyoiAGD.mjs} +10 -10
- package/dist/client/{BookingPanelArrangement-Be704P85.mjs → BookingPanelArrangement-C7yiJrxm.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BewbU_cV.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-BMZp3RS3.mjs → CalendarNavigationChevron-BPQU5Snc.mjs} +6 -6
- package/dist/client/{DemoBookingPortalAccess-CARUWQ_E.mjs → DemoBookingPortalAccess-BnEgvJas.mjs} +5 -5
- package/dist/client/{EventCalendar.client-CaI6upCX.mjs → EventCalendar.client-BiWQc28-.mjs} +9 -9
- package/dist/client/{EventCombined.client-CoRUaYHY.mjs → EventCombined.client-B_ytWQtn.mjs} +7 -7
- package/dist/client/{EventItem-Doe4KodB.mjs → EventItem-C-mxXpX_.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-CXWLKDfa.mjs → EventListWeekNavigation-Bm3Ap1Rd.mjs} +1 -1
- package/dist/client/{EventListing.client-DvJ5tGTx.mjs → EventListing.client-Bs_8im5_.mjs} +3 -3
- package/dist/client/{EventListing.view-BmfyK7S5.mjs → EventListing.view-CN7BjGgC.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-DwMlJB2V.mjs → EventRegistrationPayment-DPkRcSdw.mjs} +11 -10
- package/dist/client/{LocationMapActions-CdRPU6gp.mjs → LocationMapActions-BJT7MqP2.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCLtxOnt.mjs → MapDrawingSvg-DCIwlON6.mjs} +1 -1
- package/dist/client/{Page-D46Dmr7b.mjs → Page--xJ23nA5.mjs} +629 -494
- package/dist/client/{StepIndicator-CrSZCZn1.mjs → StepIndicator-D391QRNc.mjs} +9 -8
- package/dist/client/{accessibleSurfaces-D4DhWo9j.mjs → accessibleSurfaces-DN8it_Cx.mjs} +35 -7
- package/dist/client/{accordion-P8xcfKxq.mjs → accordion-BQtTkDN8.mjs} +1 -1
- package/dist/client/{bookability-SargNwlO.mjs → bookability-CE637yDE.mjs} +1 -1
- package/dist/client/{booking-form.client-BM2s-NqR.mjs → booking-form.client-D9M7TKGV.mjs} +362 -47
- package/dist/client/{bookingForm-JnaZPZge.mjs → bookingForm-BsOS0sl9.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{boxStyleClassNames-Cahps5kR.mjs → boxStyleClassNames-CNDLpT06.mjs} +1 -1
- package/dist/client/{carousel-CQQ_m0KA.mjs → carousel-CPsW-FPh.mjs} +1 -1
- package/dist/client/{cart-0Q4fjw_K.mjs → cart-CwElmocm.mjs} +3 -3
- package/dist/client/{cart.client-BI0IaHX3.mjs → cart.client-RpqI56w8.mjs} +1 -1
- package/dist/client/{checkout-1J-3ftxF.mjs → checkout-CfMgqY8H.mjs} +3 -3
- package/dist/client/{checkout.client-DOGYDlDk.mjs → checkout.client-BpuPyOuJ.mjs} +1 -1
- package/dist/client/{checkoutUrls-CwHqcqzP.mjs → checkoutUrls-VeHY6WYj.mjs} +1 -1
- package/dist/client/client.mjs +158 -7
- package/dist/client/{context-D0KCgbOq.mjs → context-CNlesLfF.mjs} +1 -1
- package/dist/client/{course-CmOuoZHN.mjs → course-q1sA4Cj-.mjs} +2 -2
- package/dist/client/{creditProducts-BTRX4edc.mjs → creditProducts-KYMVIH3J.mjs} +2 -84
- package/dist/client/{dateFormatting-Dmfaczzq.mjs → dateFormatting-B73Ll0s4.mjs} +9 -1
- package/dist/client/{demoPortalMagicLink-CL7KGRta.mjs → demoPortalMagicLink-BVbLD4pi.mjs} +1 -1
- package/dist/client/{display-lL-YRApN.mjs → display-D8MW2b0e.mjs} +618 -397
- package/dist/client/{enhanceHeaderSection-B-eLGs2C.mjs → enhanceHeaderSection-BzjY6AiY.mjs} +3 -3
- package/dist/client/{event-details.client-DH1-Jxsh.mjs → event-details.client-CseTWUFC.mjs} +1 -1
- package/dist/client/{event-registration.client-GuuElczW.mjs → event-registration.client-b5TLxntR.mjs} +11 -11
- package/dist/client/{eventCalendar-BiCINPkV.mjs → eventCalendar-C-kJNIc9.mjs} +4 -4
- package/dist/client/{eventCombined-BtzmH6FW.mjs → eventCombined-BgHJGhwE.mjs} +4 -4
- package/dist/client/{eventDetails-BJpAD10-.mjs → eventDetails-CAwbreD0.mjs} +2 -2
- package/dist/client/{eventListing-jLB8iRqp.mjs → eventListing-_14atrj8.mjs} +4 -4
- package/dist/client/{eventRegistration-WhtpDEbq.mjs → eventRegistration-BOqSdstJ.mjs} +4 -4
- package/dist/client/{form-DO6qKH3M.mjs → form-DfAB-llc.mjs} +3 -3
- package/dist/client/{form.client-D12ljYiX.mjs → form.client-DN-I9_qC.mjs} +6 -6
- package/dist/client/{form.parts-C8QHaQOI.mjs → form.parts-t2Q1neM6.mjs} +1 -1
- package/dist/client/{formatDate-BnhfIpCa.mjs → formatDate-Dp7POa9Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BtFWtoUm.mjs → headerSection-Dces54pb.mjs} +2 -2
- package/dist/client/{newsletter-form.client-oHrqM_Ao.mjs → newsletter-form.client-D_YFUlR2.mjs} +9 -7
- package/dist/client/{newsletter-form.parts-D5U-FuVy.mjs → newsletter-form.parts-URO5Mn_I.mjs} +1 -1
- package/dist/client/{newsletterForm-CBYbFxSx.mjs → newsletterForm-_c9fKIzS.mjs} +3 -3
- package/dist/client/{noop-CN0o0yjH.mjs → noop-D5mFWXtN.mjs} +30 -6
- package/dist/client/portal/client.mjs +346 -272
- package/dist/client/{product-detail.client-d_sNCapC.mjs → product-detail.client-CVW1UIxJ.mjs} +1 -1
- package/dist/client/{product-list.client-DkSpw6WQ.mjs → product-list.client-CF9hO23G.mjs} +1 -1
- package/dist/client/{productDetail-DaqM-LgL.mjs → productDetail-C_qbmUuP.mjs} +3 -3
- package/dist/client/{productList-CMx4-XlG.mjs → productList-Df5qDD0z.mjs} +3 -3
- package/dist/client/{propsDecoder-BZbUKstC.mjs → propsDecoder-BiEyK2ii.mjs} +3 -3
- package/dist/client/{registry.server-Cdot3dMk.mjs → registry.server-ClcfWpvM.mjs} +28 -26
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +17 -13
- package/dist/client/{richText-coerce-ByApwB4q.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DTET8f__.mjs → routeIslandApiConfig-DAypPzSo.mjs} +1 -1
- package/dist/client/{runtimeResponse-IkOwKZD0.mjs → runtimeResponse-9v8q2NBc.mjs} +1 -1
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +3 -0
- package/dist/client/{shop-commerce-oDR76k1q.mjs → shop-commerce-Bw4_BXQg.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DjoUpL3a.mjs → shop-commerce-store-Da6Ah-_4.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-WsGb9DD8.mjs → shop-discount-apply.state-DidgH7ow.mjs} +2 -2
- package/dist/client/{shop-Cy6xXDM7.mjs → shop-gteEpeO5.mjs} +3 -3
- package/dist/client/{shop.client-Brha4BSM.mjs → shop.client-CbbdjWWd.mjs} +13 -13
- package/dist/client/{shop.interactive-CXhYl0DW.mjs → shop.interactive-CKFORzux.mjs} +13 -20
- package/dist/client/{shopShared-JCa_SRhP.mjs → shopShared-C7QjoywZ.mjs} +2 -2
- package/dist/client/{timetableModel-CZeJwMxP.mjs → timetableModel-CtZiIj9q.mjs} +24 -14
- package/dist/client/{useAvailableSlots-DfbSkWop.mjs → useAvailableSlots-CUVRD1nx.mjs} +24 -4
- package/dist/client/{useDiscountApply-Dq-wjb1d.mjs → useDiscountApply-BZU5DWZQ.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-Cyy0meCH.mjs → useDiscountCodeUi-BuLgof7O.mjs} +1 -1
- package/dist/client/{useEventPagination-CCAGQHsD.mjs → useEventPagination-B4VPtSEF.mjs} +6 -6
- package/dist/client/{view-Sw075FOY.mjs → view-CvlTplao.mjs} +2 -2
- package/dist/client/{view-D6yebI4r.mjs → view-CxUpgcM6.mjs} +12 -10
- package/dist/preview-next/client/{LocationPickerEnvironment-D4F_5rnr.mjs → LocationPickerEnvironment-8iKKoYZr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-BKMNxSEJ.mjs → MapLibreEditMap-AIUPN1Zx.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-DG2rXUmo.mjs → PageSectionToolbar-BFbSrDbi.mjs} +57 -144
- package/dist/preview-next/client/{PreviewEditorSidebar-BDY5vdHU.mjs → PreviewEditorSidebar-BtpzqQ-i.mjs} +758 -1279
- package/dist/preview-next/client/{PreviewEditorUI-CqZCfOaz.mjs → PreviewEditorUI-z22h-CCY.mjs} +29 -26
- package/dist/preview-next/client/{PreviewShell-Bv2HZ7JY.mjs → PreviewShell-BW3Qpoa_.mjs} +50 -30
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BMTcR-MW.mjs → SdkPreviewModeRuntime-BvVeK1hR.mjs} +47 -19
- package/dist/preview-next/client/{lucide-react-BCNn8dEQ.mjs → lucide-react-Dfgl3Vtq.mjs} +7 -1
- package/dist/preview-next/client/{previewAssistantSlot-La6MerV_.mjs → previewAssistantSlot-BUqAh1FL.mjs} +100626 -51720
- package/dist/preview-next/client/{previewChromeRoot-BcOQqJIP.mjs → previewChromeRoot-NCy5zHO8.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BkckHox4.mjs → sdk-runtime-CxmKDVGZ.mjs} +2 -2
- package/dist/preview-next/client/siteStyleAccess-B_UaDyJO.mjs +9356 -0
- package/dist/preview-next/client/{useAutosaveStatus-CPAHgGqI.mjs → useAutosaveStatus-BqmWvPLY.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BDkuSZxQ.mjs → useOpenBlockForSetup-LAllV0rU.mjs} +8 -4
- package/dist/preview-next/container-responsive.css +117 -32
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-CPV30ABr.mjs → route-contract-DV6SeCNv.mjs} +152 -2
- package/dist/server/{Block.shared-BaMMstO1.mjs → Block.shared-Ch2FKAvU.mjs} +10 -5
- package/dist/server/{ThemeScopeCore-D1NTXZdX.mjs → ThemeScopeCore-DFvjDVzi.mjs} +23 -6
- package/dist/server/{accessibleSurfaces-Dbd2__Le.mjs → accessibleSurfaces-CM3QANtw.mjs} +22 -5
- package/dist/server/{bindings-Dge4sqel.mjs → bindings-CQg2lzZn.mjs} +6 -4
- package/dist/server/{client-VVIQjC4r.mjs → client-aYRTVneD.mjs} +155 -4
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/customCss-BGB8gMVb.mjs +210 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BIJb3WAK.mjs → loadContent-Cgpfr44e.mjs} +8 -9
- package/dist/server/{loadPage-DjTU19y7.mjs → loadPage-RDk10NMP.mjs} +3 -3
- package/dist/server/lookMediaFrame-CQtkvlDn.mjs +2528 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/next.mjs +9 -8
- package/dist/server/{overrideResolution-1Ru3NMQj.mjs → overrideResolution-VhhN94d8.mjs} +3 -4
- package/dist/server/page-converter.mjs +2 -2
- package/dist/server/{pageRenderPlan-CytPhrI9.mjs → pageRenderPlan-CkFTsxkd.mjs} +25 -17
- package/dist/server/{pageRuntimeSupport-DWspU5EZ.mjs → pageRuntimeSupport-CpAtzNxD.mjs} +14 -6
- package/dist/server/{pageShared-Bhx8bVe1.mjs → pageShared-B8yLPjs0.mjs} +371 -56
- package/dist/server/{parseThemeForPersistence-CtgRtvo3.mjs → parseThemeForPersistence-Cwqb5pZx.mjs} +2 -2
- package/dist/server/{portal-Ce1Prfl3.mjs → portal-BjVHMAUC.mjs} +1 -1
- package/dist/server/portal.mjs +1 -1
- package/dist/server/{prebuild-BjvFb0CA.mjs → prebuild-DOu6QceG.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Db3stNpp.mjs → prefetchBlockData-CfOXFKYG.mjs} +2 -2
- package/dist/server/{registry-BMCfcev6.mjs → registry-34rkAfaU.mjs} +608 -3131
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -2
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData--yUbI-Ll.mjs → resolveBlockData-D7VeoWgr.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-CCPUY9Xh.mjs → resolveButtonColourStates--6yJp9Tq.mjs} +15 -4
- package/dist/server/{schema-D5Vfmqzw.mjs → schema-CUDHMirj.mjs} +46 -153
- package/dist/server/server.mjs +3 -3
- package/dist/server/{src-Cxucn-1P.mjs → src-DHK4JUlp.mjs} +4 -1
- package/dist/server/theme-bridge.mjs +21 -15
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-Bsfdy_ZV.mjs → three-pass-converter-39SXCCnh.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DwKJfMYb.mjs → titleSourceSchema-Cu-3PRvv.mjs} +0 -1
- package/dist/server/{validation-EgTtnTcY.mjs → validation-CLVKoJrX.mjs} +4 -4
- package/dist/server/{version-LjgU0Cq1.mjs → version-HVfdvBJ0.mjs} +1 -1
- package/dist/styles/index.css +935 -271
- package/package.json +1 -1
- package/dist/client/runtimeResponse-Wd6kwhE_.mjs +0 -3
- package/dist/preview-next/client/SiteChromeCustomizeButton-D1MGyN_Z.mjs +0 -55403
- package/dist/server/customCss-QymcmOZ-.mjs +0 -97
- package/dist/server/opaqueSurface-COEKXVwk.mjs +0 -54
package/dist/preview-next/client/{PageSectionToolbar-DG2rXUmo.mjs → PageSectionToolbar-BFbSrDbi.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { $
|
|
4
|
-
import { A as LoaderCircle, F as Italic$1, G as FileText,
|
|
5
|
-
import { E as usePreviewCompiledThemeOptional, L as siteColourCss,
|
|
6
|
-
import { A as Tooltip, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, P as Badge, a as blockNoticeAction, d as arrangementBackgroundControlFor, f as arrangementBlockControlsFor, j as TooltipContent, o as blockNoticeLabel, r as useBlockCustomizeControls, s as blockNoticeMessage, t as useOpenBlockForSetup, u as useBlockNotice } from "./useOpenBlockForSetup-
|
|
3
|
+
import { $c as Button, $l as mediaIdentifierSchema, $o as getGradientPreset, Ai as resolveImageUrlWithContext, Al as surfaceForegroundValue, Bl as normalizeRightAngle, Cc as __generator, Dc as __spreadArrays, Di as getRichTextImageSize, E as selectedImageFromRenderableAsset, Ec as __spreadArray, F as lookTilePosition, Gl as getImageUrl, Go as getCuratedSiteStyle, Hl as parseAspectRatioValue, Hs as selectedCanvasBlockId, Ja as RichTextDocSchema, Ks as Callout, L as nextLookTilePin, Mi as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, Oi as computeMediaTransformStyle, P as lookPositionLabel, Qs as DialogDescription$1, S as pageDesignLookPosition, Sc as __extends, T as selectedImageFromMediaValue, Tc as __rest, Ul as resolveMediaTransformForAspect, Vl as formatAspectRatioToken, Vs as unwrapResponse, Wl as getDirectImageUrlForMediaAsset, Xa as richTextVariantCapabilities, Xc as composeEventHandlers, Xu as unsafeAsEditorBlockId, Yc as createContextScope, Ys as Dialog, Zc as Primitive, Zi as readThemeScopeContext, Zl as resolveManagedMediaReference, Zo as gradientToCss, Zs as DialogContent$1, _o as replaceInlineTextRange, ac as DialogClose, ad as assertNever, an as getDashboardBaseUrl, au as asLayoutVariantKey, bc as __assign, bn as useEditorUiStoreInstance, cc as DialogOverlay, cd as unsafeAsPositiveByteCount, co as inlineTextEqual, cu as generateUuidV4, ec as DialogHeader, er as backgroundColorTokens, fo as normalizeInlineText, go as removeInlineTextMarkFromRange, ho as plainTextToInlineText, i as usePreviewSidebarNavigation, io as applyInlineTextMarkToRange, j as usePreviewRenderBackgrounds, ji as resolveMediaStorageUrl, lc as DialogPortal, li as getBlockDefinition, lo as inlineTextHighlightTones, lr as rankBackgroundImagePoolItems, ms as assertNever$1, nl as cva, nr as defaultBackgroundOverrideForMode, o as usePreviewPageDesignEditorState, oc as DialogContent, ol as useComposedRefs, po as normalizeInlineTextMarks, qc as useControllableState, rc as overlayScrimClass, sc as DialogDescription, sd as unsafeAsMediaAssetId, sl as cn$2, so as inlineTextAccentTones, su as authoredValuesEqual, tc as DialogTitle$1, tl as useControlReadiness, uc as DialogTitle, uo as inlineTextToPlainText, vc as usePortalContainer, vo as truncateInlineText, wc as __read, x as cyclePageDesignBlockLook, xc as __awaiter, yn as useEditorUiStore, zc as useSize, zl as isRotationDimensionSwap } from "./previewAssistantSlot-BUqAh1FL.mjs";
|
|
4
|
+
import { A as LoaderCircle, F as Italic$1, G as FileText, H as Highlighter, I as Info, J as FileHeadphone, K as FileSpreadsheet, Kt as err, L as Image, M as ListOrdered, N as Link$1, R as ImageUp, S as Palette, St as Archive, W as File, Y as FileArchive, Z as EyeOff, a as Upload, c as Trash2, j as List, mt as Check, n as X, q as FilePlay, qt as ok, s as TriangleAlert, tt as Crop, vt as Bold$1, y as Pencil } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
5
|
+
import { At as useFieldDescribedBy, Dt as Input, E as usePreviewCompiledThemeOptional, G as TransferError, H as useMediaEditor, L as siteColourCss, S as planBlockToolbarPlacement, St as usePrevious, U as useMediaEditorOptional, W as useApiMediaUploader, _ as PreviewChromeFloatingControl, _t as Select, b as measureSiteTopChromeClearance, bt as SelectTrigger, ct as EditorCanvasChoiceChip, dt as EditorInsertionMarker, ft as EditorSelectionFrame, h as CustomizeBackgroundColorPicker, lt as EditorCanvasCycleChip, pt as CHOSEN_OPTION_CLASS, st as EditorCanvasChipRow, ut as EditorCanvasNameChip, vt as SelectContent, xt as SelectValue, y as readThemeCustomProperties, yt as SelectItem, zt as classifyKnownMimeType } from "./siteStyleAccess-B_UaDyJO.mjs";
|
|
6
|
+
import { A as Tooltip, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, P as Badge, a as blockNoticeAction, d as arrangementBackgroundControlFor, f as arrangementBlockControlsFor, j as TooltipContent, o as blockNoticeLabel, r as useBlockCustomizeControls, s as blockNoticeMessage, t as useOpenBlockForSetup, u as useBlockNotice } from "./useOpenBlockForSetup-LAllV0rU.mjs";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import React, { Component, createContext, createRef, forwardRef, useCallback, useContext, useDebugValue, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -518,141 +518,6 @@ function progressPercentage(value, max) {
|
|
|
518
518
|
return Math.min(Math.max(max > 0 ? value / max * 100 : 0, 0), 100);
|
|
519
519
|
}
|
|
520
520
|
//#endregion
|
|
521
|
-
//#region ../ui/src/editor-canvas-chrome.tsx
|
|
522
|
-
const WHITE_EDGE_INSIDE = "shadow-[inset_0_0_0_1px_rgb(255_255_255/0.9)]";
|
|
523
|
-
const WHITE_EDGE_AROUND = "shadow-[0_0_0_1px_rgb(255_255_255/0.9)]";
|
|
524
|
-
/** An outline drawn as its own layer, so the item's own borders, shadows and outlines stay as they are. Place it inside a positioned element. */
|
|
525
|
-
function EditorSelectionFrame() {
|
|
526
|
-
return /* @__PURE__ */ jsx("div", {
|
|
527
|
-
"aria-hidden": "true",
|
|
528
|
-
"data-preview-block-selection-frame": "",
|
|
529
|
-
className: `pointer-events-none absolute inset-0 z-10 border-[3px] border-sky-500 ${WHITE_EDGE_INSIDE}`
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
const INSERTION_PILL_STYLE = {
|
|
533
|
-
fontSize: 12.5,
|
|
534
|
-
lineHeight: 1,
|
|
535
|
-
padding: "8px 14px",
|
|
536
|
-
gap: 6,
|
|
537
|
-
letterSpacing: 0
|
|
538
|
-
};
|
|
539
|
-
/** A line on one edge of a positioned element, with a pill saying a new item goes there. */
|
|
540
|
-
function EditorInsertionMarker({ edge, label = "New block goes here", ref }) {
|
|
541
|
-
return /* @__PURE__ */ jsx("div", {
|
|
542
|
-
ref,
|
|
543
|
-
"aria-hidden": "true",
|
|
544
|
-
"data-preview-insertion-marker": edge,
|
|
545
|
-
className: `pointer-events-none absolute inset-x-0 z-30 h-[3px] bg-sky-500 ${WHITE_EDGE_AROUND} ${edge === "top" ? "-top-px" : "-bottom-px"}`,
|
|
546
|
-
children: /* @__PURE__ */ jsxs("span", {
|
|
547
|
-
className: "absolute left-1/2 top-1/2 inline-flex -translate-x-1/2 -translate-y-1/2 items-center whitespace-nowrap rounded-full bg-sky-500 font-sans font-semibold text-white shadow-md ring-1 ring-white/90",
|
|
548
|
-
style: INSERTION_PILL_STYLE,
|
|
549
|
-
children: [/* @__PURE__ */ jsx(Plus, {
|
|
550
|
-
"aria-hidden": "true",
|
|
551
|
-
style: {
|
|
552
|
-
width: 14,
|
|
553
|
-
height: 14
|
|
554
|
-
}
|
|
555
|
-
}), label]
|
|
556
|
-
})
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
/** The row of chips by a selected item. */
|
|
560
|
-
function EditorCanvasChipRow({ label, children }) {
|
|
561
|
-
return /* @__PURE__ */ jsx("div", {
|
|
562
|
-
role: "group",
|
|
563
|
-
"aria-label": label,
|
|
564
|
-
className: "flex items-center gap-1",
|
|
565
|
-
"data-preview-chrome-row": "",
|
|
566
|
-
children
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
const darkChip = "flex items-center overflow-hidden rounded-full bg-black/80 font-sans text-xs text-white shadow";
|
|
570
|
-
const darkChipButton = "grid h-7 w-7 shrink-0 place-items-center hover:bg-black";
|
|
571
|
-
/** A black chip that does one thing when pressed, such as opening the item it sits on. */
|
|
572
|
-
function EditorCanvasChip({ children, label, onPress }) {
|
|
573
|
-
return /* @__PURE__ */ jsx("button", {
|
|
574
|
-
type: "button",
|
|
575
|
-
"aria-label": label,
|
|
576
|
-
className: `${darkChip} h-7 shrink-0 px-3 font-medium hover:bg-black`,
|
|
577
|
-
onClick: (event) => {
|
|
578
|
-
event.preventDefault();
|
|
579
|
-
event.stopPropagation();
|
|
580
|
-
onPress();
|
|
581
|
-
},
|
|
582
|
-
children
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
/** The chip naming the selected item; pressing it opens the item. */
|
|
586
|
-
function EditorCanvasNameChip({ name, onOpen }) {
|
|
587
|
-
return /* @__PURE__ */ jsxs(EditorCanvasChip, {
|
|
588
|
-
onPress: onOpen,
|
|
589
|
-
children: [name, " ›"]
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
/** A dark chip with a lead-in label and a choice of options, one of them current. */
|
|
593
|
-
function EditorCanvasChoiceChip({ label, leadIn, options, current, onChoose }) {
|
|
594
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
595
|
-
className: `${darkChip} gap-0.5 py-0.5 pl-2.5 pr-0.5`,
|
|
596
|
-
role: "group",
|
|
597
|
-
"aria-label": label,
|
|
598
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
599
|
-
className: "pr-1 text-white/70",
|
|
600
|
-
children: leadIn
|
|
601
|
-
}), options.map((option) => /* @__PURE__ */ jsx("button", {
|
|
602
|
-
type: "button",
|
|
603
|
-
"aria-pressed": option.value === current,
|
|
604
|
-
className: `rounded-full px-2 py-1 ${option.value === current ? "bg-white text-black" : "hover:bg-black"}`,
|
|
605
|
-
onClick: (event) => {
|
|
606
|
-
event.preventDefault();
|
|
607
|
-
event.stopPropagation();
|
|
608
|
-
if (option.value !== current) onChoose(option.value);
|
|
609
|
-
},
|
|
610
|
-
children: option.label
|
|
611
|
-
}, option.value))]
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
/** A dark chip with the current value's name between previous and next arrows. */
|
|
615
|
-
function EditorCanvasCycleChip({ label, value, prefix = null, position = null, previousLabel, nextLabel, onCycle }) {
|
|
616
|
-
const arrow = (direction) => /* @__PURE__ */ jsx("button", {
|
|
617
|
-
type: "button",
|
|
618
|
-
className: darkChipButton,
|
|
619
|
-
"aria-label": direction === "prev" ? previousLabel : nextLabel,
|
|
620
|
-
onClick: (event) => {
|
|
621
|
-
event.preventDefault();
|
|
622
|
-
event.stopPropagation();
|
|
623
|
-
onCycle(direction);
|
|
624
|
-
},
|
|
625
|
-
children: direction === "prev" ? /* @__PURE__ */ jsx(ChevronLeft, { size: 14 }) : /* @__PURE__ */ jsx(ChevronRight, { size: 14 })
|
|
626
|
-
});
|
|
627
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
628
|
-
className: `${darkChip} min-w-0 shrink`,
|
|
629
|
-
role: "group",
|
|
630
|
-
"aria-label": label,
|
|
631
|
-
children: [
|
|
632
|
-
arrow("prev"),
|
|
633
|
-
/* @__PURE__ */ jsxs("span", {
|
|
634
|
-
className: "flex min-w-0 max-w-[16rem] items-baseline gap-1.5 px-1 py-1",
|
|
635
|
-
"aria-live": "polite",
|
|
636
|
-
children: [
|
|
637
|
-
prefix ? /* @__PURE__ */ jsx("span", {
|
|
638
|
-
className: "shrink-0 text-white/70",
|
|
639
|
-
children: prefix
|
|
640
|
-
}) : null,
|
|
641
|
-
/* @__PURE__ */ jsx("span", {
|
|
642
|
-
className: "truncate font-medium",
|
|
643
|
-
children: value
|
|
644
|
-
}),
|
|
645
|
-
position ? /* @__PURE__ */ jsx("span", {
|
|
646
|
-
className: "shrink-0 text-white/70",
|
|
647
|
-
children: position
|
|
648
|
-
}) : null
|
|
649
|
-
]
|
|
650
|
-
}),
|
|
651
|
-
arrow("next")
|
|
652
|
-
]
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
//#endregion
|
|
656
521
|
//#region ../theme-core/src/footer/mode.ts
|
|
657
522
|
/** Reads only SDK footer intent; unrelated config and theme fields are not authorities. */
|
|
658
523
|
function resolveSdkFooterMode(config) {
|
|
@@ -16404,6 +16269,40 @@ function canInsertNode(state, nodeType) {
|
|
|
16404
16269
|
return false;
|
|
16405
16270
|
}
|
|
16406
16271
|
//#endregion
|
|
16272
|
+
//#region ../editor/src/primitives/rich-text/extensions/ListItemBulletCleanup.ts
|
|
16273
|
+
const TYPED_BULLET = /^[•◦▪‣⁃∙●○]\s*/;
|
|
16274
|
+
/** How many leading characters are a typed bullet; 0 when there isn't one. */
|
|
16275
|
+
function typedBulletLength(text) {
|
|
16276
|
+
return TYPED_BULLET.exec(text)?.[0].length ?? 0;
|
|
16277
|
+
}
|
|
16278
|
+
/** Every typed bullet at the start of a list item, as ranges to delete. */
|
|
16279
|
+
function typedBulletRanges(editor) {
|
|
16280
|
+
const ranges = [];
|
|
16281
|
+
editor.state.doc.descendants((node, position) => {
|
|
16282
|
+
if (node.type.name !== "listItem") return true;
|
|
16283
|
+
const text = node.firstChild?.firstChild;
|
|
16284
|
+
const length = text?.isText ? typedBulletLength(text.text ?? "") : 0;
|
|
16285
|
+
if (length > 0) ranges.push({
|
|
16286
|
+
from: position + 2,
|
|
16287
|
+
to: position + 2 + length
|
|
16288
|
+
});
|
|
16289
|
+
return true;
|
|
16290
|
+
});
|
|
16291
|
+
return ranges;
|
|
16292
|
+
}
|
|
16293
|
+
/**
|
|
16294
|
+
* Text pasted from elsewhere often carries its own "•". The list tool would
|
|
16295
|
+
* draw a second bullet beside it, so a list item never keeps a typed one.
|
|
16296
|
+
*/
|
|
16297
|
+
const ListItemBulletCleanup = Extension.create({
|
|
16298
|
+
name: "listItemBulletCleanup",
|
|
16299
|
+
onUpdate() {
|
|
16300
|
+
const ranges = typedBulletRanges(this.editor);
|
|
16301
|
+
if (ranges.length === 0) return;
|
|
16302
|
+
this.editor.view.dispatch([...ranges].reverse().reduce((tr, { from, to }) => tr.delete(from, to), this.editor.state.tr));
|
|
16303
|
+
}
|
|
16304
|
+
});
|
|
16305
|
+
//#endregion
|
|
16407
16306
|
//#region ../../node_modules/.pnpm/@tiptap+extension-blockquote@2.26.1_@tiptap+core@2.26.1_@tiptap+pm@2.26.1_/node_modules/@tiptap/extension-blockquote/dist/index.js
|
|
16408
16307
|
/**
|
|
16409
16308
|
* Matches a blockquote to a `>` as input.
|
|
@@ -20131,6 +20030,7 @@ function editorExtensions(variant, placeholder) {
|
|
|
20131
20030
|
HTMLAttributes: { rel: "noreferrer noopener" }
|
|
20132
20031
|
}),
|
|
20133
20032
|
...hasNode("image") ? [RichTextImage] : [],
|
|
20033
|
+
...hasNode("listItem") ? [ListItemBulletCleanup] : [],
|
|
20134
20034
|
Placeholder.configure({ placeholder })
|
|
20135
20035
|
];
|
|
20136
20036
|
}
|
|
@@ -21714,7 +21614,8 @@ function filterRoutableItems(items, searchQuery) {
|
|
|
21714
21614
|
function TabButton({ active, label, onClick }) {
|
|
21715
21615
|
return /* @__PURE__ */ jsx("button", {
|
|
21716
21616
|
type: "button",
|
|
21717
|
-
className: cn$2("min-w-0 flex-1 truncate rounded-sm px-3 py-2 text-sm font-medium transition", active ? "bg-background shadow" : "hover:bg-background/50", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring
|
|
21617
|
+
className: cn$2("min-w-0 flex-1 truncate rounded-sm px-3 py-2 text-sm font-medium transition", active ? "bg-background shadow" : "hover:bg-background/50", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),
|
|
21618
|
+
"aria-pressed": active,
|
|
21718
21619
|
onClick,
|
|
21719
21620
|
children: label
|
|
21720
21621
|
});
|
|
@@ -21729,6 +21630,7 @@ function InternalTabPanel(props) {
|
|
|
21729
21630
|
children: "Select any published or draft page, post, or routed entry for this site."
|
|
21730
21631
|
}),
|
|
21731
21632
|
/* @__PURE__ */ jsx(Input, {
|
|
21633
|
+
autoFocus: true,
|
|
21732
21634
|
className: "min-w-0",
|
|
21733
21635
|
placeholder: loadingItems ? "Loading…" : "Search content...",
|
|
21734
21636
|
value: searchQuery,
|
|
@@ -21815,6 +21717,7 @@ function UrlTabPanel({ id, label, helperText, placeholder, value, inputType, onC
|
|
|
21815
21717
|
children: label
|
|
21816
21718
|
}),
|
|
21817
21719
|
/* @__PURE__ */ jsx(Input, {
|
|
21720
|
+
autoFocus: true,
|
|
21818
21721
|
id,
|
|
21819
21722
|
type: inputType,
|
|
21820
21723
|
placeholder,
|
|
@@ -21917,6 +21820,11 @@ function LinkPopover({ editor, tone = "dark", initialItems, loadItems }) {
|
|
|
21917
21820
|
}
|
|
21918
21821
|
applyLink(resolution.attrs);
|
|
21919
21822
|
}
|
|
21823
|
+
function applyOnEnter(event) {
|
|
21824
|
+
if (event.key !== "Enter" || !(event.target instanceof HTMLInputElement)) return;
|
|
21825
|
+
event.preventDefault();
|
|
21826
|
+
applyFromDraft();
|
|
21827
|
+
}
|
|
21920
21828
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
|
|
21921
21829
|
variant: "ghost",
|
|
21922
21830
|
size: "icon",
|
|
@@ -21939,6 +21847,7 @@ function LinkPopover({ editor, tone = "dark", initialItems, loadItems }) {
|
|
|
21939
21847
|
className: "max-h-[85vh] w-[calc(100vw-2rem)] max-w-2xl overflow-hidden overflow-y-auto",
|
|
21940
21848
|
children: [/* @__PURE__ */ jsxs(DialogHeader, { children: [/* @__PURE__ */ jsx(DialogTitle$1, { children: "Choose link" }), /* @__PURE__ */ jsx(DialogDescription$1, { children: "Select an internal page, an external URL, or a custom path." })] }), /* @__PURE__ */ jsxs("div", {
|
|
21941
21849
|
className: "min-w-0 space-y-3",
|
|
21850
|
+
onKeyDown: applyOnEnter,
|
|
21942
21851
|
children: [
|
|
21943
21852
|
/* @__PURE__ */ jsxs("div", {
|
|
21944
21853
|
className: "flex min-w-0 gap-2 rounded-md bg-muted/40 p-1",
|
|
@@ -29601,7 +29510,7 @@ function resolvedPreviewMedia(state) {
|
|
|
29601
29510
|
asset: state.resolution.asset
|
|
29602
29511
|
};
|
|
29603
29512
|
}
|
|
29604
|
-
const MediaPreview = ({ state, previewAspectRatio, onReplace, onEditCrop, onEditDetails, onRemove, fullWidth = false, variant = "default", showRemoveAction = true, showActionOverlay = true, previewMaxWidth = "md", preventUpscale = false }) => {
|
|
29513
|
+
const MediaPreview = ({ state, previewAspectRatio, previewBorderRadius, onReplace, onEditCrop, onEditDetails, onRemove, fullWidth = false, variant = "default", showRemoveAction = true, showActionOverlay = true, previewMaxWidth = "md", preventUpscale = false }) => {
|
|
29605
29514
|
const { imageResolveContext } = useMediaEditor();
|
|
29606
29515
|
const value = state.resolution?.reference;
|
|
29607
29516
|
const image = isImageValue(value);
|
|
@@ -29634,7 +29543,10 @@ const MediaPreview = ({ state, previewAspectRatio, onReplace, onEditCrop, onEdit
|
|
|
29634
29543
|
className: cn$2("relative w-full overflow-hidden bg-muted", previewWidthClassName, isThumbnailVariant ? "h-full w-full rounded-none border-0" : "rounded-lg border border-dashed border-muted-foreground/50", !isThumbnailVariant && !previewAspectRatio && "min-h-[10rem]"),
|
|
29635
29544
|
children: /* @__PURE__ */ jsxs("div", {
|
|
29636
29545
|
className: cn$2("relative flex w-full items-center justify-center", isThumbnailVariant && "h-full", !isThumbnailVariant && !previewAspectRatio && "min-h-[10rem]", hasValue && "bg-black/5", video && "bg-black/80"),
|
|
29637
|
-
style:
|
|
29546
|
+
style: {
|
|
29547
|
+
...aspectStyle,
|
|
29548
|
+
borderRadius: previewBorderRadius
|
|
29549
|
+
},
|
|
29638
29550
|
children: [
|
|
29639
29551
|
image && imageSrc ? /* @__PURE__ */ jsx("img", {
|
|
29640
29552
|
alt: value?.alt ?? "",
|
|
@@ -30041,7 +29953,7 @@ function resolveEditorMediaState(reference, index, allowCrop = true) {
|
|
|
30041
29953
|
//#endregion
|
|
30042
29954
|
//#region ../media-editor/src/MediaEditor.tsx
|
|
30043
29955
|
const MEDIA_PICKER_PAGE_SIZE = 18;
|
|
30044
|
-
const MediaEditor = ({ editingSlot, value, onChange, allowedKinds, previewAspectRatio, minSourceWidth, minSourceHeight, showAltInput = true, cropEditorMode = "dialog", allowCrop, cropEditorAutoOpen = false, mediaPickerAutoOpen = false, onMediaPickerOpenChange, mediaPickerDialogMaxWidth, mediaPickerPolicy, showPreview = true, showActionOverlay = true, onEditDetails, fullWidth = false, previewVariant = "default", showRemoveAction = true, previewMaxWidth = "md", preventPreviewUpscale = false, onUploadComplete, onAssetSelected, uploadIntent, videoPrepIntent, videoSelectionIntent, components }) => {
|
|
29956
|
+
const MediaEditor = ({ editingSlot, value, onChange, allowedKinds, previewAspectRatio, previewBorderRadius, minSourceWidth, minSourceHeight, showAltInput = true, cropEditorMode = "dialog", allowCrop, cropEditorAutoOpen = false, mediaPickerAutoOpen = false, onMediaPickerOpenChange, mediaPickerDialogMaxWidth, mediaPickerPolicy, showPreview = true, showActionOverlay = true, onEditDetails, fullWidth = false, previewVariant = "default", showRemoveAction = true, previewMaxWidth = "md", preventPreviewUpscale = false, onUploadComplete, onAssetSelected, uploadIntent, videoPrepIntent, videoSelectionIntent, components }) => {
|
|
30045
29957
|
const context = useMediaEditor();
|
|
30046
29958
|
const mediaState = resolveEditorMediaState(value, context.imageResolveContext.mediaAssetIndex, allowCrop);
|
|
30047
29959
|
const scopedUploader = useApiMediaUploader({
|
|
@@ -30166,6 +30078,7 @@ const MediaEditor = ({ editingSlot, value, onChange, allowedKinds, previewAspect
|
|
|
30166
30078
|
showPreview ? /* @__PURE__ */ jsx(MediaPreview, {
|
|
30167
30079
|
state: mediaState,
|
|
30168
30080
|
previewAspectRatio,
|
|
30081
|
+
previewBorderRadius,
|
|
30169
30082
|
onReplace: () => {
|
|
30170
30083
|
setPickerOpen(true);
|
|
30171
30084
|
onMediaPickerOpenChange?.(true);
|
|
@@ -31509,4 +31422,4 @@ function PageSectionToolbar({ blockId, content }) {
|
|
|
31509
31422
|
] });
|
|
31510
31423
|
}
|
|
31511
31424
|
//#endregion
|
|
31512
|
-
export { ScrollableDialogContent as A, EMPTY_DOC as C, resolveSdkFooterMode as D, decideDocumentReplacement as E, resolveVideoSelectionIntentForMediaField as F, isSvgMimeType as I, Surface as M, surfaceVariants as N,
|
|
31425
|
+
export { ScrollableDialogContent as A, EMPTY_DOC as C, resolveSdkFooterMode as D, decideDocumentReplacement as E, resolveVideoSelectionIntentForMediaField as F, isSvgMimeType as I, Surface as M, surfaceVariants as N, Switch as O, emitMediaCropDebug as P, useRichTextEditor as S, InlineTextEditor as T, MediaPickerMiniDialog as _, ArrangementOptionsBody as a, getRichTextImagePositionFromTarget as b, BackgroundChooser as c, gradientLabel as d, readBackgroundColorPaletteSnapshot as f, MediaEditor as g, getUnresolvedRichTextImageWarnings as h, ArrangementLookNote as i, ScrollableDialogShell as j, SegmentedControl as k, BackgroundPreviewSwatch as l, useRichTextImageProjection as m, pageSectionIdFromBlockId as n, lookIsAutomatic as o, useSiteColourVariables as p, BlockToolbar as r, useArrangementToolbar as s, PageSectionToolbar as t, formatTokenLabel as u, MediaPickerMini as v, parseRichTextDoc as w, insertOrReplaceRichTextImage as x, RichTextEditorSurface as y };
|