@riverbankcms/sdk 0.171.0 → 0.171.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-xuFmD41p.d.ts → BlocksIslandsHydrator-D-6cWDDC.d.ts} +1 -1
- package/dist/_dts/{Page-4fzXy8H9.d.ts → Page-4jkUDm4D.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-BlHgMsc8.d.ts → SdkPreviewMode-DEvzvovi.d.ts} +2 -2
- package/dist/_dts/{client-BPoU758C.d.ts → client-CXPH5esD.d.ts} +1 -1
- package/dist/_dts/{content-types-TnkhoSls.d.ts → content-types-DsCr4-ny.d.ts} +2 -2
- package/dist/_dts/{contracts-7wrMA79U.d.ts → contracts-BlmXM7xP.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DaOsPQ_Q.d.ts → footerPageOutline-BA0DnxWU.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-D9aDEzKK.d.ts → generatePageMetadata-B7IRJCFG.d.ts} +2 -2
- package/dist/_dts/{index-CZKSUcDs.d.ts → index-B3gfKNI-.d.ts} +4 -4
- package/dist/_dts/{index-DDKJfaLY.d.ts → index-BQPJbOkU.d.ts} +2 -2
- package/dist/_dts/{index-W9R3Bnf2.d.ts → index-BZ8-c4iQ.d.ts} +3 -3
- package/dist/_dts/{index-Cbw0IiY7.d.ts → index-C9_OTCFQ.d.ts} +2 -2
- package/dist/_dts/{index-585vn6qb.d.ts → index-DScYSl03.d.ts} +1 -1
- package/dist/_dts/{index-DNCDENic.d.ts → index-DlABXDte.d.ts} +1 -1
- package/dist/_dts/{index-ChNbrcgD.d.ts → index-Sua-7CF1.d.ts} +1 -1
- package/dist/_dts/{loadContent-DPyNAJym.d.ts → loadContent-Dx4fW3Pa.d.ts} +7 -7
- package/dist/_dts/{request-jXTRN1Y4.d.ts → request-DUTkELQn.d.ts} +74581 -74248
- package/dist/_dts/{resolveBlockData-BbvE-gsZ.d.ts → resolveBlockData-Cze35i_N.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BBgih00D.d.ts → resolvePageContent-zf6-E-C3.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 +1 -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 +4 -4
- 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-kWvBwYK6.d.ts → types-BCzfYDW2.d.ts} +7 -7
- package/dist/_dts/{types-BXuVxDYo.d.ts → types-CPHk5Voq.d.ts} +2 -2
- package/dist/_dts/{types-DEAKoDNi.d.ts → types-JD-36x3P.d.ts} +3 -3
- package/dist/_dts/{validation-BAO0_ntM.d.ts → validation-0MyQlzWJ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DfMsMIej.mjs → BlocksIslandsHydrator-vTHQyBQF.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-aaSicywS.mjs → BookingMailingListNote-Blge9FJo.mjs} +2 -2
- package/dist/client/{BookingPanelArrangement-OgftZ9QC.mjs → BookingPanelArrangement-wm6eeuin.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-iMWrY6Hz.mjs → CalendarNavigationChevron-DRH9qFny.mjs} +4 -4
- package/dist/client/{DemoBookingPortalAccess-BCumOTLY.mjs → DemoBookingPortalAccess-DPGZArG9.mjs} +1 -1
- package/dist/client/{EventCalendar.client-kh7mkYnW.mjs → EventCalendar.client-FGg6yCLH.mjs} +7 -7
- package/dist/client/{EventCombined.client-DXD5i0Ar.mjs → EventCombined.client-218_Gqgp.mjs} +4 -4
- package/dist/client/{EventItem-BnwcoFQN.mjs → EventItem-DKdZSW_R.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-DuG6z02f.mjs → EventListWeekNavigation-DZJ5qBhg.mjs} +1 -1
- package/dist/client/{EventListing.client-18yfHrcr.mjs → EventListing.client-CCdsrqHc.mjs} +3 -3
- package/dist/client/{EventListing.view-BM7rTVSL.mjs → EventListing.view-BVoHnVZA.mjs} +5 -5
- package/dist/client/{EventRegistrationPayment-D5J3DR0x.mjs → EventRegistrationPayment-BVxHCnxs.mjs} +4 -4
- package/dist/client/{Page-DH2sm4Cf.mjs → Page-CT4HaEMr.mjs} +19 -24
- package/dist/client/{StepIndicator-CsRlU46Y.mjs → StepIndicator-DRJy4eU3.mjs} +4 -4
- package/dist/client/{accessibleSurfaces-Bbn1-jJ8.mjs → accessibleSurfaces-BnyVRqdU.mjs} +21 -24
- package/dist/client/{accordion-DT4MD3Np.mjs → accordion-BOApxi9U.mjs} +1 -1
- package/dist/client/{booking-form.client-DdqNQNCa.mjs → booking-form.client-DDf8Lmo5.mjs} +6 -6
- package/dist/client/{bookingForm-CLN396HU.mjs → bookingForm-DWrgG-Xx.mjs} +3 -3
- package/dist/client/bookings.mjs +3 -3
- package/dist/client/{boxStyleClassNames-iLF_3KX9.mjs → boxStyleClassNames-7MVCNWgc.mjs} +1 -1
- package/dist/client/{carousel-DFLomCGm.mjs → carousel-DeI76SEP.mjs} +1 -1
- package/dist/client/{cart-BozMM5NK.mjs → cart-D_uxULCO.mjs} +3 -3
- package/dist/client/{cart.client-CqOOxPbW.mjs → cart.client-BxSMse88.mjs} +1 -1
- package/dist/client/{checkout-CTWF5nbB.mjs → checkout-DIbh4g5e.mjs} +3 -3
- package/dist/client/{checkout.client-CpqxN8e0.mjs → checkout.client-x4Lkw8-E.mjs} +1 -1
- package/dist/client/{checkoutUrls-Ccg6yfjq.mjs → checkoutUrls-DqN3L-kl.mjs} +1 -1
- package/dist/client/client.mjs +20 -6
- package/dist/client/{cta-pzQkBLgS.mjs → cta-CP9l112u.mjs} +1 -1
- package/dist/client/{display-Cl6mgSJa.mjs → display-ChgDe9Da.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CJCl0HJC.mjs → enhanceHeaderSection-BEjg_h_6.mjs} +3 -3
- package/dist/client/{event-details.client-Pn9Kxh3I.mjs → event-details.client-COmbQ3mc.mjs} +1 -1
- package/dist/client/{event-registration.client-BAmBdWXE.mjs → event-registration.client-BvQG3qEY.mjs} +7 -7
- package/dist/client/{eventCalendar-C5Bh2L8L.mjs → eventCalendar-DiitbUpV.mjs} +3 -3
- package/dist/client/{eventCombined-dELKxxIe.mjs → eventCombined-Da9Z8KDq.mjs} +3 -3
- package/dist/client/{eventDetails-Do9D_fJ_.mjs → eventDetails-Cf-kg7d6.mjs} +2 -2
- package/dist/client/{eventListing-B2HTUWLq.mjs → eventListing-xwXgVp7a.mjs} +3 -3
- package/dist/client/{eventRegistration-ByOJnqGc.mjs → eventRegistration-hlFYlgTA.mjs} +3 -3
- package/dist/client/{form-DX70QG-J.mjs → form-ERv_X_oZ.mjs} +2 -2
- package/dist/client/{form.client-CJoqBrS6.mjs → form.client-Cz24FYNj.mjs} +2 -2
- package/dist/client/{form.parts-DTof9pL3.mjs → form.parts-DeaH4kIe.mjs} +1 -1
- package/dist/client/{headerSection-CJuPX_1K.mjs → headerSection-CJvt0ZP4.mjs} +2 -2
- package/dist/client/{newsletter-form.client-CqzNjOft.mjs → newsletter-form.client-WuGDEzdD.mjs} +3 -3
- package/dist/client/{newsletter-form.parts-DjJsFms2.mjs → newsletter-form.parts-DhnW6tdB.mjs} +1 -1
- package/dist/client/{newsletterForm-D1MHoPbh.mjs → newsletterForm-DxG7NV8U.mjs} +2 -2
- package/dist/client/{product-detail.client-DOQ7El1d.mjs → product-detail.client-DsSfbmdV.mjs} +1 -1
- package/dist/client/{product-list.client-CmxOZbzL.mjs → product-list.client-Byzow88i.mjs} +1 -1
- package/dist/client/{productDetail-BN3zv5sa.mjs → productDetail-iXkmQpxG.mjs} +3 -3
- package/dist/client/{productList-GN_Id4bF.mjs → productList-HoFGQXFl.mjs} +3 -3
- package/dist/client/{propsDecoder-BdmzM3D5.mjs → propsDecoder-CH2-LJME.mjs} +2 -2
- package/dist/client/{registry.server-BOyra8CA.mjs → registry.server-ed20Q7bV.mjs} +22 -21
- package/dist/client/rendering/client.mjs +21 -21
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +6 -6
- package/dist/client/{routeIslandApiConfig-DnaJ8PQc.mjs → routeIslandApiConfig-CBUO-xuz.mjs} +1 -1
- package/dist/client/{runtimeResponse-BN8PoIVp.mjs → runtimeResponse-3brbt2Jq.mjs} +1 -1
- package/dist/client/runtimeResponse-CTarP5K6.mjs +3 -0
- package/dist/client/{shop-LjBLDBqF.mjs → shop-DXyeSNgi.mjs} +3 -3
- package/dist/client/{shop-commerce-B8aZTdRJ.mjs → shop-commerce--klkHNzu.mjs} +7 -7
- package/dist/client/{shop-commerce-store-C1FtHYl7.mjs → shop-commerce-store-BdpIWdc4.mjs} +1 -1
- package/dist/client/{shop.client-D0qZ3KZp.mjs → shop.client-Sv7QVDmj.mjs} +7 -7
- package/dist/client/{shop.interactive-DAKyWK1B.mjs → shop.interactive-C0IjiWOs.mjs} +1 -1
- package/dist/client/{shopShared-CztcSe9i.mjs → shopShared-Jt4TzcAG.mjs} +1 -1
- package/dist/client/{timetableModel-D1jDTbms.mjs → timetableModel-BxbnEJCi.mjs} +5 -5
- package/dist/client/{useDiscountApply-CHGYDxdM.mjs → useDiscountApply-dToQs9oY.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-Dew9UAEy.mjs → useDiscountCodeUi-C_aa_H69.mjs} +1 -1
- package/dist/client/{useEventPagination-BpC7-ksE.mjs → useEventPagination--MFZBoJt.mjs} +4 -4
- package/dist/client/{view-ShYH3WXh.mjs → view-C_brMDU2.mjs} +2 -2
- package/dist/client/{view-BxeiAL3c.mjs → view-DhEwiTJG.mjs} +3 -3
- package/dist/preview-next/client/{LocationPickerEnvironment-lW2aLGWd.mjs → LocationPickerEnvironment-OwAxA2C0.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-C9InQJpd.mjs → MapLibreEditMap-CaUOTCSh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-DsSqwrMS.mjs → PageSectionToolbar-Dfi8Y3AI.mjs} +308 -388
- package/dist/preview-next/client/{PreviewEditorSidebar-BEEWzXnU.mjs → PreviewEditorSidebar-DJlX4sXP.mjs} +668 -353
- package/dist/preview-next/client/{PreviewEditorUI-C86Out4V.mjs → PreviewEditorUI-FVAibBlC.mjs} +126 -137
- package/dist/preview-next/client/{PreviewShell-CBWYjBvQ.mjs → PreviewShell-9eAon7Z8.mjs} +8 -8
- package/dist/preview-next/client/{SdkPreviewModeRuntime-o-mVqWLx.mjs → SdkPreviewModeRuntime-Byf-KW1x.mjs} +13 -16
- package/dist/preview-next/client/{SiteChromeCustomizeButton-H_ciMNHA.mjs → SiteChromeCustomizeButton-eU-zMftO.mjs} +1357 -39
- package/dist/preview-next/client/{lucide-react-DygTyy7K.mjs → lucide-react-X0DjcFij.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CuOcsG_N.mjs → previewAssistantSlot-3FZrzbK8.mjs} +1808 -2832
- package/dist/preview-next/client/{previewChromeRoot-DPeV7KaP.mjs → previewChromeRoot-C4gyNQXE.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-zTTFZ4MM.mjs → sdk-runtime-DtyRbz4E.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-DNA1Q4L1.mjs → useAutosaveStatus-OIMkhbkP.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BdnMlHC6.mjs → useOpenBlockForSetup-BNG9P9sM.mjs} +109 -6
- package/dist/preview-next/editor-base.css +14 -4
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-CtSgU8UZ.mjs → route-contract-BLY4ycq6.mjs} +16 -2
- package/dist/server/{Block.shared-ifgaBglp.mjs → Block.shared-BC3jPIP4.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DGDOH6OU.mjs → ThemeScopeCore-B7Ey6AWT.mjs} +4 -4
- package/dist/server/{accessibleSurfaces-BuPNCWAK.mjs → accessibleSurfaces-BxsHs-jf.mjs} +1 -1
- package/dist/server/{bindings-CiYpie1M.mjs → bindings-xQ9v3zrn.mjs} +4 -4
- package/dist/server/{client-ngWuFsmN.mjs → client-DCwLR0kQ.mjs} +18 -4
- 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-DeLQeJAZ.mjs → loadContent-C4I3ltU_.mjs} +5 -5
- package/dist/server/{loadPage-D4J747FQ.mjs → loadPage-COvxWN0r.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-ukEz1BaM.mjs → opaqueSurface-QiUjZmEV.mjs} +2 -2
- package/dist/server/{overrideResolution-DSuVkpqm.mjs → overrideResolution-BqQg6Iws.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-DFv3h4Ib.mjs → pageRenderPlan-CVCGTj5S.mjs} +4 -4
- package/dist/server/{pageRuntimeSupport-yHaRNWMj.mjs → pageRuntimeSupport-C7Be9suN.mjs} +2 -2
- package/dist/server/{pageShared-CAZD0LcY.mjs → pageShared-H_bSBPLd.mjs} +10 -10
- package/dist/server/{parseThemeForPersistence-Dl7LIBJq.mjs → parseThemeForPersistence-Bk0o95m6.mjs} +2 -2
- package/dist/server/{prebuild-BKOCND3b.mjs → prebuild-HQNOeCs9.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-GIoExi8A.mjs → prefetchBlockData-CbRsnhta.mjs} +2 -2
- package/dist/server/{registry-BogXzcOD.mjs → registry-CaeRTf4E.mjs} +18 -22
- 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-CT4YSBve.mjs → resolveBlockData-CUMjWbXQ.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-DVISOQD9.mjs → resolveButtonColourStates-euZnRMIu.mjs} +21 -24
- package/dist/server/{schema-C92Q8y0-.mjs → schema-CxBsE9Dv.mjs} +1 -1
- 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-vSBCWU3w.mjs → validation-CvmhnkDr.mjs} +3 -3
- package/dist/server/{version-Cw5vFmUY.mjs → version-Clp2evCf.mjs} +1 -1
- package/package.json +1 -1
- package/dist/client/runtimeResponse-B1-cyLXt.mjs +0 -3
package/dist/preview-next/client/{PreviewEditorUI-C86Out4V.mjs → PreviewEditorUI-FVAibBlC.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $t as useEditorUiStore,
|
|
3
|
-
import {
|
|
4
|
-
import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-
|
|
5
|
-
import {
|
|
6
|
-
import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-
|
|
2
|
+
import { $t as useEditorUiStore, G as useEntryEditorController, Gt as PREVIEW_CHROME_Z_INDEX, N_ as authoredValuesEqual, Q as useSessionJournalHistory, Sm as DialogTitle, Th as cn, Tn as editorAuthoredBlockDocument, Tv as unsafeAsEditorBlockId, V as usePreviewAuth, Vu as pageTemplateFromEntry, Wp as editorAdmissionIsOpen, X as useServerRefresh, Z as useSessionJournal, _h as Button, bh as cva, bm as DialogFooter, br as publishReadinessWarning, en as useEditorUiStoreInstance, gm as Dialog, hv as displayedValues, im as unwrapResponse, n as usePreviewAssistantSlot, ot as EditorWriteSurface, pn as canDiscardDraft, vm as DialogContent, xm as DialogHeader, xr as readinessFactsFromPayload, ym as DialogDescription, yr as PUBLISH_READINESS_COPY, zp as resolveBlockTitle } from "./previewAssistantSlot-3FZrzbK8.mjs";
|
|
3
|
+
import { A as LoaderCircle, Q as EllipsisVertical, S as Palette, X as Eye, _ as Redo2, ft as ChevronDown, o as Undo2, s as TriangleAlert, y as Pencil } from "./lucide-react-X0DjcFij.mjs";
|
|
4
|
+
import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-OIMkhbkP.mjs";
|
|
5
|
+
import { B as DropdownMenuTrigger, F as DropdownMenuItem, I as DropdownMenuLabel, L as DropdownMenuRadioGroup, M as Badge, N as DropdownMenu, O as Tooltip, P as DropdownMenuContent, R as DropdownMenuRadioItem, a as needsSetupAsk, j as TooltipTrigger, k as TooltipContent, n as resolveBlockManifest, t as useOpenBlockForSetup, z as DropdownMenuSeparator } from "./useOpenBlockForSetup-BNG9P9sM.mjs";
|
|
6
|
+
import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-C4gyNQXE.mjs";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import { useCallback, useEffect, useMemo, useRef, useState, useTransition } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -178,16 +178,34 @@ function useDiscardConfirmation(onDiscard) {
|
|
|
178
178
|
/** A momentary note (such as a journal note) beside Undo and Redo, kept to one line. */
|
|
179
179
|
function StatusBarNote({ message }) {
|
|
180
180
|
if (!message) return null;
|
|
181
|
-
return /* @__PURE__ */ jsx(
|
|
181
|
+
return /* @__PURE__ */ jsx(Badge, {
|
|
182
|
+
variant: "warning",
|
|
182
183
|
role: "status",
|
|
183
184
|
title: message,
|
|
184
|
-
className: "min-w-0 max-w-[32rem] shrink
|
|
185
|
-
children:
|
|
185
|
+
className: "min-w-0 max-w-[32rem] shrink py-1 font-normal",
|
|
186
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
187
|
+
className: "truncate",
|
|
188
|
+
children: message
|
|
189
|
+
})
|
|
186
190
|
});
|
|
187
191
|
}
|
|
192
|
+
function HistoryButton({ label, icon, onClick, disabled }) {
|
|
193
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
194
|
+
asChild: true,
|
|
195
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
196
|
+
type: "button",
|
|
197
|
+
variant: "ghost",
|
|
198
|
+
size: "icon",
|
|
199
|
+
onClick,
|
|
200
|
+
disabled,
|
|
201
|
+
"aria-label": label,
|
|
202
|
+
children: icon
|
|
203
|
+
})
|
|
204
|
+
}), /* @__PURE__ */ jsx(TooltipContent, { children: label })] });
|
|
205
|
+
}
|
|
188
206
|
function StatusCopy({ decision, size }) {
|
|
189
207
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [formatEditorStatus(decision, size), decision.primary.kind === "publication" && decision.savedAt ? /* @__PURE__ */ jsxs("span", {
|
|
190
|
-
className: "text-xs text-
|
|
208
|
+
className: "text-xs text-muted-foreground",
|
|
191
209
|
children: [" · saved ", decision.savedAt]
|
|
192
210
|
}) : null] });
|
|
193
211
|
}
|
|
@@ -217,54 +235,31 @@ function EditorStatusBar({ status, lastSavedLabel, toolbar, draftSyncState = "ba
|
|
|
217
235
|
historyNote
|
|
218
236
|
});
|
|
219
237
|
const disablePublish = toolbar?.disablePublish || !hasChanges && currentLifecycle !== "draft";
|
|
220
|
-
const statusClass = statusDecision.primary.kind === "error" ? "text-destructive" : "text-
|
|
238
|
+
const statusClass = statusDecision.primary.kind === "error" ? "text-destructive" : "text-muted-foreground";
|
|
221
239
|
return /* @__PURE__ */ jsx(FixedBottomSurface, {
|
|
222
240
|
variant: "light",
|
|
223
241
|
children: /* @__PURE__ */ jsxs("div", {
|
|
224
242
|
"data-testid": "editor-status-bar",
|
|
225
|
-
className: `relative flex flex-nowrap items-center gap-2 text-sm text-
|
|
243
|
+
className: `relative flex flex-nowrap items-center gap-2 text-sm text-foreground sm:gap-3 ${hasConfiguredMenu || toggleSlot ? "pr-12 sm:pr-14" : showMobileHistoryMenu ? "pr-12 sm:pr-0" : ""}`,
|
|
226
244
|
children: [
|
|
227
245
|
/* @__PURE__ */ jsxs("div", {
|
|
228
246
|
className: "flex min-w-0 flex-1 flex-nowrap items-center gap-2 sm:gap-3",
|
|
229
247
|
children: [
|
|
230
248
|
historyControls ? /* @__PURE__ */ jsxs("div", {
|
|
231
|
-
className: "hidden items-center
|
|
249
|
+
className: "hidden items-center sm:inline-flex",
|
|
232
250
|
role: "toolbar",
|
|
233
251
|
"aria-label": "History controls",
|
|
234
|
-
children: [
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
title: "Undo",
|
|
246
|
-
children: /* @__PURE__ */ jsx(Undo2, { className: "h-4 w-4" })
|
|
247
|
-
})
|
|
248
|
-
}), /* @__PURE__ */ jsx(TooltipContent, { children: "Undo" })] }),
|
|
249
|
-
/* @__PURE__ */ jsx("div", {
|
|
250
|
-
className: "mx-0.5 h-5 w-px bg-slate-200",
|
|
251
|
-
"aria-hidden": "true"
|
|
252
|
-
}),
|
|
253
|
-
/* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
254
|
-
asChild: true,
|
|
255
|
-
children: /* @__PURE__ */ jsx(Button, {
|
|
256
|
-
type: "button",
|
|
257
|
-
variant: "ghost",
|
|
258
|
-
size: "icon",
|
|
259
|
-
className: "h-8 w-8 text-slate-600",
|
|
260
|
-
onClick: historyControls.onRedo,
|
|
261
|
-
disabled: !historyControls.canRedo,
|
|
262
|
-
"aria-label": "Redo",
|
|
263
|
-
title: "Redo",
|
|
264
|
-
children: /* @__PURE__ */ jsx(Redo2, { className: "h-4 w-4" })
|
|
265
|
-
})
|
|
266
|
-
}), /* @__PURE__ */ jsx(TooltipContent, { children: "Redo" })] })
|
|
267
|
-
]
|
|
252
|
+
children: [/* @__PURE__ */ jsx(HistoryButton, {
|
|
253
|
+
label: "Undo",
|
|
254
|
+
icon: /* @__PURE__ */ jsx(Undo2, {}),
|
|
255
|
+
onClick: historyControls.onUndo,
|
|
256
|
+
disabled: !historyControls.canUndo
|
|
257
|
+
}), /* @__PURE__ */ jsx(HistoryButton, {
|
|
258
|
+
label: "Redo",
|
|
259
|
+
icon: /* @__PURE__ */ jsx(Redo2, {}),
|
|
260
|
+
onClick: historyControls.onRedo,
|
|
261
|
+
disabled: !historyControls.canRedo
|
|
262
|
+
})]
|
|
268
263
|
}) : null,
|
|
269
264
|
/* @__PURE__ */ jsx(StatusBarNote, { message: statusDecision.note }),
|
|
270
265
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -485,116 +480,110 @@ function PreviewOpenEditorButton() {
|
|
|
485
480
|
});
|
|
486
481
|
}
|
|
487
482
|
//#endregion
|
|
488
|
-
//#region ../preview-next/src/client/preview/PreviewZoomControls.tsx
|
|
489
|
-
function PreviewZoomControls({ zoom, onZoomChange, disabled }) {
|
|
490
|
-
return /* @__PURE__ */ jsxs(Select, {
|
|
491
|
-
value: String(zoom),
|
|
492
|
-
onValueChange: (value) => onZoomChange(value === "fit" ? "fit" : Number(value)),
|
|
493
|
-
disabled,
|
|
494
|
-
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
495
|
-
"aria-label": "Zoom",
|
|
496
|
-
className: "h-[30px] w-[74px] rounded-full border-0 bg-transparent px-2 text-[13px] font-semibold shadow-none",
|
|
497
|
-
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
498
|
-
}), /* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
499
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
500
|
-
value: "33",
|
|
501
|
-
children: "33%"
|
|
502
|
-
}),
|
|
503
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
504
|
-
value: "50",
|
|
505
|
-
children: "50%"
|
|
506
|
-
}),
|
|
507
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
508
|
-
value: "75",
|
|
509
|
-
children: "75%"
|
|
510
|
-
}),
|
|
511
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
512
|
-
value: "100",
|
|
513
|
-
children: "100%"
|
|
514
|
-
}),
|
|
515
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
516
|
-
value: "fit",
|
|
517
|
-
children: "Fit"
|
|
518
|
-
})
|
|
519
|
-
] })]
|
|
520
|
-
});
|
|
521
|
-
}
|
|
522
|
-
//#endregion
|
|
523
483
|
//#region ../preview-next/src/client/preview/PreviewViewportControls.tsx
|
|
484
|
+
const FIT_LABEL = "Fit to space";
|
|
485
|
+
const FIT_VALUE = "fit";
|
|
524
486
|
const VIEWPORT_PRESETS = [
|
|
525
487
|
{
|
|
526
488
|
label: "Desktop",
|
|
527
|
-
width: 1440
|
|
528
|
-
icon: Monitor
|
|
489
|
+
width: 1440
|
|
529
490
|
},
|
|
530
491
|
{
|
|
531
492
|
label: "Tablet",
|
|
532
|
-
width: 768
|
|
533
|
-
icon: Tablet
|
|
493
|
+
width: 768
|
|
534
494
|
},
|
|
535
495
|
{
|
|
536
496
|
label: "Mobile",
|
|
537
|
-
width: 375
|
|
538
|
-
|
|
497
|
+
width: 375
|
|
498
|
+
}
|
|
499
|
+
];
|
|
500
|
+
const ZOOM_OPTIONS = [
|
|
501
|
+
{
|
|
502
|
+
value: "fit",
|
|
503
|
+
label: "Fit"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
value: 100,
|
|
507
|
+
label: "100%"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
value: 75,
|
|
511
|
+
label: "75%"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
value: 50,
|
|
515
|
+
label: "50%"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
value: 33,
|
|
519
|
+
label: "33%"
|
|
539
520
|
}
|
|
540
521
|
];
|
|
522
|
+
function sizeValue(mode, width) {
|
|
523
|
+
return mode === "fixed" && typeof width === "number" ? String(width) : FIT_VALUE;
|
|
524
|
+
}
|
|
525
|
+
/** What the button says: the chosen size, and the zoom when it isn't fitted. */
|
|
526
|
+
function viewportTriggerLabel(mode, width, zoom) {
|
|
527
|
+
if (mode !== "fixed" || typeof width !== "number") return FIT_LABEL;
|
|
528
|
+
const size = VIEWPORT_PRESETS.find((preset) => preset.width === width)?.label ?? `${width}px`;
|
|
529
|
+
return zoom === void 0 || zoom === "fit" ? size : `${size}, ${zoom}%`;
|
|
530
|
+
}
|
|
531
|
+
function parseZoom(value) {
|
|
532
|
+
return ZOOM_OPTIONS.find((option) => String(option.value) === value)?.value ?? "fit";
|
|
533
|
+
}
|
|
541
534
|
/**
|
|
542
|
-
* The editing size, in the bottom bar:
|
|
543
|
-
* sidebar, or
|
|
544
|
-
* These are editing preferences only; view mode always uses
|
|
535
|
+
* The editing size, in the bottom bar: a menu button whose default fits the
|
|
536
|
+
* space beside the sidebar, or a device width. Zoom joins the menu once a
|
|
537
|
+
* width is chosen. These are editing preferences only; view mode always uses
|
|
538
|
+
* the browser's width.
|
|
545
539
|
*/
|
|
546
540
|
function PreviewViewportControls({ mode, width, onModeChange, onWidthChange, className, zoom, onZoomChange }) {
|
|
547
|
-
const
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
541
|
+
const label = viewportTriggerLabel(mode, width, zoom);
|
|
542
|
+
const showZoom = mode === "fixed" && zoom !== void 0 && onZoomChange !== void 0;
|
|
543
|
+
const chooseSize = (value) => {
|
|
544
|
+
if (value === FIT_VALUE) return onModeChange("squeeze");
|
|
545
|
+
onWidthChange(Number(value));
|
|
546
|
+
onModeChange("fixed");
|
|
547
|
+
};
|
|
548
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
549
|
+
asChild: true,
|
|
550
|
+
children: /* @__PURE__ */ jsxs(Button, {
|
|
551
|
+
type: "button",
|
|
552
|
+
variant: "secondary",
|
|
553
|
+
"aria-label": `Preview size: ${label}`,
|
|
554
|
+
className: cn("shrink-0", className),
|
|
555
|
+
children: [label, /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true" })]
|
|
556
|
+
})
|
|
557
|
+
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
558
|
+
align: "end",
|
|
559
|
+
side: "top",
|
|
552
560
|
children: [
|
|
553
|
-
/* @__PURE__ */ jsx(
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
children: /* @__PURE__ */ jsx(
|
|
558
|
-
|
|
559
|
-
children:
|
|
560
|
-
})
|
|
561
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Preview size" }),
|
|
562
|
+
/* @__PURE__ */ jsxs(DropdownMenuRadioGroup, {
|
|
563
|
+
value: sizeValue(mode, width),
|
|
564
|
+
onValueChange: chooseSize,
|
|
565
|
+
children: [/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
566
|
+
value: FIT_VALUE,
|
|
567
|
+
children: FIT_LABEL
|
|
568
|
+
}), VIEWPORT_PRESETS.map((preset) => /* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
569
|
+
value: String(preset.width),
|
|
570
|
+
children: `${preset.label}, ${preset.width}px`
|
|
571
|
+
}, preset.width))]
|
|
561
572
|
}),
|
|
562
|
-
/* @__PURE__ */
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
},
|
|
573
|
-
children: /* @__PURE__ */ jsx(preset.icon, {
|
|
574
|
-
className: "h-4 w-4",
|
|
575
|
-
"aria-hidden": "true"
|
|
573
|
+
showZoom ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
574
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
575
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Zoom" }),
|
|
576
|
+
/* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
|
|
577
|
+
value: String(zoom),
|
|
578
|
+
onValueChange: (value) => onZoomChange(parseZoom(value)),
|
|
579
|
+
children: ZOOM_OPTIONS.map((option) => /* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
580
|
+
value: String(option.value),
|
|
581
|
+
children: option.label
|
|
582
|
+
}, option.value))
|
|
576
583
|
})
|
|
577
|
-
}
|
|
578
|
-
showZoomControls ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
579
|
-
className: "mx-0.5 h-4 w-px bg-border",
|
|
580
|
-
"aria-hidden": "true"
|
|
581
|
-
}), /* @__PURE__ */ jsx(PreviewZoomControls, {
|
|
582
|
-
zoom,
|
|
583
|
-
onZoomChange
|
|
584
|
-
})] }) : null
|
|
584
|
+
] }) : null
|
|
585
585
|
]
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
function SizeButton({ label, pressed, onSelect, children }) {
|
|
589
|
-
return /* @__PURE__ */ jsx("button", {
|
|
590
|
-
type: "button",
|
|
591
|
-
"aria-label": label,
|
|
592
|
-
"aria-pressed": pressed,
|
|
593
|
-
title: label,
|
|
594
|
-
onClick: onSelect,
|
|
595
|
-
className: cn("grid h-[30px] min-w-8 place-items-center rounded-full px-1.5 text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", pressed && "bg-muted text-foreground"),
|
|
596
|
-
children
|
|
597
|
-
});
|
|
586
|
+
})] });
|
|
598
587
|
}
|
|
599
588
|
//#endregion
|
|
600
589
|
//#region ../preview-next/src/client/preview/MaintenanceModeBadge.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-BC0V7iAR.mjs";
|
|
3
|
-
import { $t as useEditorUiStore, B as renewPreviewSession,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-
|
|
7
|
-
import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, d as EditorProvider, f as useEditor, i as getPreviewChromeSurfaceDataProps, l as PREVIEW_KEEP_ALIVE_INTERVAL_MS, o as readPreviewThemeCookie, p as FixedBottomSurface, r as PREVIEW_CHROME_THEME_CLASS_NAME, s as subscribePreviewThemeCookie, t as PreviewChromeRootProvider, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeRoot-
|
|
3
|
+
import { $t as useEditorUiStore, B as renewPreviewSession, Dh as baselineRevisionOf, E as PreviewRenderObservationsProvider, G as useEntryEditorController, Gp as editorAdmissionNotice, H as usePreviewToken, Jp as observeEditorAdmission, Kt as createRoutingHelpers, L as createGuardedPreviewApiClient, La as buildResolveImageUrlContext, Lt as blocksKeys, N_ as authoredValuesEqual, Oh as isEdited, R as initPreviewAuth, Sm as DialogTitle, Th as cn, Tv as unsafeAsEditorBlockId, U as EntryControllerProvider, V as usePreviewAuth, Wt as ApiRequestError, X as useServerRefresh, Xp as API_ENDPOINTS, Yp as OPERATION_ID_HEADER, _h as Button, _n as renderSourceFor, a as PreviewPageDesignEditorStateProvider, am as selectedCanvasBlockId, at as EditLeaseModal, au as measureSiteStickyChromeHeightPx, bm as DialogFooter, cu as siteTopChromeMeasurementTargets, en as useEditorUiStoreInstance, et as savedContentReceipt, f as PreviewThemeJournalProvider, g as previewThemeBase, g_ as indexRenderableMediaAssets, gm as Dialog, gn as remoteDraftValues, h_ as renderableMediaAssetSchema$1, hn as planLinkedSaveHandoverRetention, i as usePreviewSidebarNavigation, im as unwrapResponse, it as EditLeaseDiscardedNotice, iu as SITE_STICKY_CHROME_HEIGHT_FALLBACK, iy as assertNever$2, jh as canEditorWrite, l as SiteChromeCustomizeProvider, lt as getEditorClientId, m as usePreviewThemeSourceOptional, m_ as buildRenderableMediaAssetIndex, mm as CalloutDescription, mn as activeLinkedSaveHandover, mp as assertNever$1, mv as parseEditLeaseScope, nt as useRetentionTicks, nu as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, on as SIDEBAR_WIDTH, ot as EditorWriteSurface, p as usePreviewThemeSource, pm as Callout, qp as editorAdmissionSession, qt as createSnapshotFromPageRecord, r as PreviewSidebarBootstrap, rt as VIEWING_PARTICIPATION, ru as SITE_STICKY_CHROME_HEIGHT_CSS_VAR, sn as parseStoredSidebarWidth, su as planSiteOverlayHeaderClearance, t as PreviewAssistantSlotProvider, tn as useOptionalEditorUiStoreInstance, tt as savedPageSurfaceMetadataReceipt, vm as DialogContent, wn as unsafeAsLinkedContentEntryId, wu as planSiteChromePlacement, xm as DialogHeader, ym as DialogDescription, yn as resolveRenderedValues, z as registerPreviewRenewalFetcher } from "./previewAssistantSlot-3FZrzbK8.mjs";
|
|
4
|
+
import { U as GripVertical } from "./lucide-react-X0DjcFij.mjs";
|
|
5
|
+
import { E as usePreviewCompiledTheme, En as parseFooterModuleId, Gt as DEFAULT_THEME_RESPONSIVE_MODE, H as createEditorApiClientFactory, Kt as getResponsiveScopeSpec, L as SessionJournalHost, Mt as LINKED_CONTENT_ENTRY_META_KEY, N as mergeResolvedDataContext, Pt as getLinkedContentEntryMeta, Q as MediaEditorContextProvider, T as PreviewThemeRenderingProvider, Vt as themeRuntimeScopeProps, Yt as Toaster, a as PreviewChromeLayerProvider, at as ImageResolveContextProvider, b as SiteFontStorageProvider, bt as revealEditorElement, c as PREVIEW_SITE_BANNER_ATTRIBUTE, ct as BlockApiProvider, dn as TabsContent, f as canInspectSiteStyle, fn as TabsList, g as sanitizeDashboardPath, h as resolvePreviewDashboardSetupHandoff, m as buildPreviewDashboardSetupUrl, p as resolveSiteStyleAccess, pn as TabsTrigger, t as SiteChromeCustomizeButton, tt as useApiMediaUploader, un as Tabs, v as resolvePreviewSetupBannerModel, w as PreviewCompiledThemeProvider, xt as ThemeScopeCore, z as renderSiteChromeBlock, zt as buildThemeDataAttrs } from "./SiteChromeCustomizeButton-eU-zMftO.mjs";
|
|
6
|
+
import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-OwAxA2C0.mjs";
|
|
7
|
+
import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, d as EditorProvider, f as useEditor, i as getPreviewChromeSurfaceDataProps, l as PREVIEW_KEEP_ALIVE_INTERVAL_MS, o as readPreviewThemeCookie, p as FixedBottomSurface, r as PREVIEW_CHROME_THEME_CLASS_NAME, s as subscribePreviewThemeCookie, t as PreviewChromeRootProvider, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeRoot-C4gyNQXE.mjs";
|
|
8
8
|
import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -88,7 +88,7 @@ function ResizableSplitPane({ left, right, defaultSplit = 40, minLeftWidth = 300
|
|
|
88
88
|
className: "flex h-full flex-col",
|
|
89
89
|
children: [
|
|
90
90
|
/* @__PURE__ */ jsxs(TabsList, {
|
|
91
|
-
className: "w-full justify-start rounded-none
|
|
91
|
+
className: "w-full justify-start rounded-none",
|
|
92
92
|
children: [/* @__PURE__ */ jsx(TabsTrigger, {
|
|
93
93
|
value: "left",
|
|
94
94
|
className: "flex-1",
|
|
@@ -4189,10 +4189,10 @@ function resolveShellThemeRoles(props, journalSource) {
|
|
|
4189
4189
|
}
|
|
4190
4190
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
4191
4191
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
4192
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
4192
|
+
return { default: (await import("./PreviewEditorSidebar-DJlX4sXP.mjs")).PreviewEditorSidebar };
|
|
4193
4193
|
});
|
|
4194
4194
|
const PreviewEditorUI = React.lazy(async () => {
|
|
4195
|
-
return { default: (await import("./PreviewEditorUI-
|
|
4195
|
+
return { default: (await import("./PreviewEditorUI-FVAibBlC.mjs")).PreviewEditorUI };
|
|
4196
4196
|
});
|
|
4197
4197
|
function renderShellProviders(input) {
|
|
4198
4198
|
if (!input.themeRoles) return input.content;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $_ as
|
|
3
|
-
import {
|
|
4
|
-
import { A as applyPreviewRuntimeContentProjections, At as logger, Ct as arrangementHooksFromContent, D as usePreviewCompiledThemeOptional, Dt as buildLoadedOfferingsPreviewListing, Et as getDefaultComponentRegistry, Ft as defaultTransforms, Ht as buildThemeRuntime, It as resolveEntryRouteTarget, Lt as resolvePageRouteTarget, M as runtimeContentDecorationProjectionFromServerPage, N as mergeResolvedDataContext, Nt as coerceLinkedContentEntriesPayload, O as pageDesignRuntimeProjectionFromSource, Ot as buildAppointmentServicesView, P as withRenderedContentEntry, Rt as resolveRouteTarget, St as makeDefaultBlockComponent, Tt as readBlockComposition, Wt as mergeContentWithBlockStyleOverrides,
|
|
2
|
+
import { $_ as sameMailingListPlacementTargeting, $d as inlineTextToPlainText, $p as calendarWindowQuerySchema, $t as useEditorUiStore, $u as formCopyFragment, Bl as bookingConsentCarrierSchema, Cr as selectBlockContent, D as PreviewRenderPlanProjection, Fr as normalizeBlockContent, Gd as parseGeneratedIconSetId, Gu as richTextFragment, H as usePreviewToken, Hd as parseBlockIconValue, Hp as isRecord$1, Jd as coerceInlineTextWithFallback, Jh as compileButtonColourStates, Jn as planArrangementContent, Ju as faqAccordionFragment, Ku as headingFragment, Kv as toUtcIsoDateTimeString, La as buildResolveImageUrlContext, Ll as publicEventsArraySchema, Lr as normalizeLocationMapSource, Md as validateManifestDraft, Nh as bindingSchema, Nr as getBlockDefinition, Od as runTransforms, Oi as projectRecurringSchedule, Qn as retargetJoinsAcrossOmissions, Qu as formEmbedFragment, Ra as getCurrentResolveImageUrlContext, Rr as resolveLocationMapLocation, Sa as RichText$1, Sr as readinessFactsFromLoaders, T as ObservedJoin, Tv as unsafeAsEditorBlockId, U_ as buildMailingListSignupBlockSourceRef, V_ as generateUuidV4, Vp as isObjectRecord, Vu as pageTemplateFromEntry, Wd as parseGeneratedIconAssetId, Xn as joinSlotKey, Xu as blogFeaturedPostFragment, Y_ as parseMailingListPlacementTargeting, Yd as deriveInlineTextFieldChanges, Yn as composePageJoins, Yu as faqHeadingFragment, Zn as renderedJoinLayout, Zu as singleButtonFragment, _n as renderSourceFor, _r as mapOutlineBlocks, _u as readRuntimeNow, ar as siblingPath, bi as publicRouteCandidatesSchema, dg as textColorStyle, dv as readPublishedBlockPlacement, ed as testimonialsCarouselFragment, ef as isInlineTextEmpty, en as useEditorUiStoreInstance, fv as selectedContentVersionId, gn as remoteDraftValues, gr as allOutlineBlocks, hg as parseSurfaceTree, hr as createEditorPresentationPageReader, id as ctaRowFragment, im as unwrapResponse, ir as getAtPath, iy as assertNever, jd as compileManifestContentContract, kd as defineFragment, kh as canWriteLinkedEntry, lv as NO_BLOCK_VERSIONS, nd as ctaCopyFragment, po as offeringsListingFor, qg as expandPalette, qn as createPageRenderPlanReader, qu as cardFragment, rd as heroCtaRowFragment, s as usePreviewPageDesignRenderState, sd as heroCopyFragment, so as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, t_ as themeSchema, td as testimonialsHeadingFragment, uv as readEditorBlockVersionsFromPlacement, vd as ctaButton, vn as renderedFieldChanges, vr as mapOutlineRegions, vu as resolveDateRuntimeContext, wn as unsafeAsLinkedContentEntryId, yd as bodyCopyFragment, yi as offeringsPreviewBlockDefinition, yn as resolveRenderedValues, za as setContextResolveImageUrlContext } from "./previewAssistantSlot-3FZrzbK8.mjs";
|
|
3
|
+
import { Lt as parseLocationValue, Rt as projectPublicLocation, jt as decideLocationSourcePermission, zt as publicLocationSchema } from "./lucide-react-X0DjcFij.mjs";
|
|
4
|
+
import { A as applyPreviewRuntimeContentProjections, At as logger, Ct as arrangementHooksFromContent, D as usePreviewCompiledThemeOptional, Dt as buildLoadedOfferingsPreviewListing, Et as getDefaultComponentRegistry, Ft as defaultTransforms, Ht as buildThemeRuntime, It as resolveEntryRouteTarget, Lt as resolvePageRouteTarget, M as runtimeContentDecorationProjectionFromServerPage, N as mergeResolvedDataContext, Nt as coerceLinkedContentEntriesPayload, O as pageDesignRuntimeProjectionFromSource, Ot as buildAppointmentServicesView, P as withRenderedContentEntry, Rt as resolveRouteTarget, St as makeDefaultBlockComponent, Tt as readBlockComposition, Wt as mergeContentWithBlockStyleOverrides, j as entryFieldRebindingProjection, jt as Text$1, k as resolveRuntimePreviewSourceForTheme, kt as renderInlineText, r as PreviewChromeFloatingBar, rt as clientComponentRegistry, wt as blockLookFromContent, xn as defaultThemeTokens } from "./SiteChromeCustomizeButton-eU-zMftO.mjs";
|
|
5
5
|
import { j as createStandardButtonSurfacePolicy } from "./ThemedButton-CKYjeU_M.mjs";
|
|
6
|
-
import { C as EMPTY_DOC, D as resolveSdkFooterMode, E as decideDocumentReplacement, S as useRichTextEditor, T as InlineTextEditor, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, r as BlockToolbar, t as PageSectionToolbar, w as parseRichTextDoc, y as RichTextEditorSurface } from "./PageSectionToolbar-
|
|
7
|
-
import { f as useEditor } from "./previewChromeRoot-
|
|
8
|
-
import { a as dispatchLinkedEntryFieldFocusEvent, c as useLinkedSaveHandoverRetention, d as linkedEntryRenderOverlaysFromStore, f as PREVIEW_EDITABLE_OUTLINE, i as dispatchLinkedEntryEditEvent, l as applyLinkedEntryRenderOverlay, o as defaultPreviewThemeRuntime, r as dispatchBlockFieldFocusEvent, s as linkedSaveHandoversVersion, t as PreviewShell, u as applyLinkedEntryRenderOverlayToDataContext } from "./PreviewShell-
|
|
6
|
+
import { C as EMPTY_DOC, D as resolveSdkFooterMode, E as decideDocumentReplacement, O as EditorCanvasChip, S as useRichTextEditor, T as InlineTextEditor, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, r as BlockToolbar, t as PageSectionToolbar, w as parseRichTextDoc, y as RichTextEditorSurface } from "./PageSectionToolbar-Dfi8Y3AI.mjs";
|
|
7
|
+
import { f as useEditor } from "./previewChromeRoot-C4gyNQXE.mjs";
|
|
8
|
+
import { a as dispatchLinkedEntryFieldFocusEvent, c as useLinkedSaveHandoverRetention, d as linkedEntryRenderOverlaysFromStore, f as PREVIEW_EDITABLE_OUTLINE, i as dispatchLinkedEntryEditEvent, l as applyLinkedEntryRenderOverlay, o as defaultPreviewThemeRuntime, r as dispatchBlockFieldFocusEvent, s as linkedSaveHandoversVersion, t as PreviewShell, u as applyLinkedEntryRenderOverlayToDataContext } from "./PreviewShell-9eAon7Z8.mjs";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import React, { createContext, memo, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3463,16 +3463,13 @@ const LinkedEntryEditFrame = ({ target, children }) => {
|
|
|
3463
3463
|
className: "group/linked-entry-edit relative",
|
|
3464
3464
|
"data-linked-entry-id": target.entryId,
|
|
3465
3465
|
"data-linked-entry-type": target.contentTypeKey,
|
|
3466
|
-
children: [children, /* @__PURE__ */ jsx("
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
dispatchLinkedEntryEditEvent(target);
|
|
3474
|
-
},
|
|
3475
|
-
children: "Edit"
|
|
3466
|
+
children: [children, /* @__PURE__ */ jsx("div", {
|
|
3467
|
+
className: "absolute right-2 top-2 z-20 opacity-0 transition focus-within:opacity-100 group-hover/linked-entry-edit:opacity-100",
|
|
3468
|
+
children: /* @__PURE__ */ jsx(EditorCanvasChip, {
|
|
3469
|
+
label: `Edit ${target.contentTypeLabel}: ${target.title}`,
|
|
3470
|
+
onPress: () => dispatchLinkedEntryEditEvent(target),
|
|
3471
|
+
children: "Edit"
|
|
3472
|
+
})
|
|
3476
3473
|
})]
|
|
3477
3474
|
});
|
|
3478
3475
|
};
|