@riverbankcms/sdk 0.157.0 → 0.158.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-B3AHhvIn.d.ts → BlocksIslandsHydrator-BgNBtEai.d.ts} +1 -1
- package/dist/_dts/{Page-BMaOSVCP.d.ts → Page-DpCo8zXD.d.ts} +9 -6
- package/dist/_dts/{SdkPreviewMode-CEwDDqfK.d.ts → SdkPreviewMode-Bv2TMscG.d.ts} +2 -2
- package/dist/_dts/{client-BRFVhGUB.d.ts → client-B960v2gW.d.ts} +1 -1
- package/dist/_dts/{content-types-tEy1rtQ5.d.ts → content-types-CN0Wy8V6.d.ts} +26 -3
- package/dist/_dts/{contracts-BwDSOVGj.d.ts → contracts-BFUrby76.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-BVp5EPJj.d.ts → footerPageOutline-CmoqleLS.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BQb1mvpc.d.ts → generatePageMetadata-Dkvivc3R.d.ts} +2 -2
- package/dist/_dts/{hosted-booking-appearance-BN2Zu93B.d.ts → hosted-booking-appearance-BIbit60h.d.ts} +8976 -47
- package/dist/_dts/{index-Ca3oD2id.d.ts → index-Ba6RmuxX.d.ts} +3 -3
- package/dist/_dts/{index-Br1TNJlL.d.ts → index-DCNu_8it.d.ts} +4 -4
- package/dist/_dts/{index-CSLkIKs3.d.ts → index-DPfI2t5A.d.ts} +2 -2
- package/dist/_dts/{index-B0wsEbm3.d.ts → index-DaS_z6ir.d.ts} +1 -1
- package/dist/_dts/{index-B0DzVcrB.d.ts → index-DfkFWUxt.d.ts} +4 -1
- package/dist/_dts/{index-BF3hkKvt.d.ts → index-DpgkhY-a.d.ts} +2 -2
- package/dist/_dts/{loadContent-Dz9fOZMZ.d.ts → loadContent-DvvKF4nB.d.ts} +10 -7
- package/dist/_dts/{navigation-DOZwagCE.d.ts → navigation-n-eTVTIQ.d.ts} +75 -4
- package/dist/_dts/{resolvePageContent-oHZ8cfaF.d.ts → resolvePageContent-D0lGwVD6.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 +6 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/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 +10 -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 +11 -4
- 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/index.d.ts +45 -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/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-Dy1DNdIV.d.ts → types-BJrRUaY7.d.ts} +2 -2
- package/dist/_dts/{types-6q1MDqxg.d.ts → types-BY7PgnDi.d.ts} +7 -7
- package/dist/_dts/{types-BuWOkyqw.d.ts → types-maEnXL6Z.d.ts} +3 -3
- package/dist/_dts/{validation-BumblAOO.d.ts → validation-BjuVrMrs.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Cid8be1G.mjs → BlocksIslandsHydrator-WRLS96Ev.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-BpzJTCZw.mjs → BookingMailingListNote-eovghMPa.mjs} +3 -56
- package/dist/client/{CalendarNavigationChevron-CBKHlGjE.mjs → CalendarNavigationChevron-CIcMQRc1.mjs} +5 -5
- package/dist/client/{DemoBookingPortalAccess-DpfgDMQ-.mjs → DemoBookingPortalAccess-CdnFgDyQ.mjs} +3 -3
- package/dist/client/{EventCalendar.client-DE5JHf4s.mjs → EventCalendar.client-Dc-ZLxKo.mjs} +8 -8
- package/dist/client/{EventCombined.client-DQLU3EAc.mjs → EventCombined.client-C93XqRIv.mjs} +6 -6
- package/dist/client/{EventItem-C9QTFafI.mjs → EventItem-DnCTygqk.mjs} +3 -3
- package/dist/client/{EventListWeekNavigation-6oYGdpNS.mjs → EventListWeekNavigation-9h97heuQ.mjs} +1 -1
- package/dist/client/{EventListing.client-D0N4Wj_4.mjs → EventListing.client-DFKlQvvs.mjs} +3 -3
- package/dist/client/{EventListing.view-Bish8-si.mjs → EventListing.view-pAuTDyrP.mjs} +4 -4
- package/dist/client/{EventRegistrationPayment-DLPYU2VU.mjs → EventRegistrationPayment-rgKlBvhP.mjs} +8 -7
- package/dist/client/{LeafletStaticMap-BmgEmEUS.mjs → LeafletStaticMap-3XiWSgy0.mjs} +1 -1
- package/dist/client/{Page-C-W_6VPx.mjs → Page-BmpeAwID.mjs} +750 -169
- package/dist/client/{StepIndicator-D8fvzhlS.mjs → StepIndicator-qEq6X5zP.mjs} +2 -2
- package/dist/client/{accordion-B5jBBoBC.mjs → accordion-DeObOasQ.mjs} +1 -1
- package/dist/client/{booking-form.client-xypjcfob.mjs → booking-form.client-DfWeF0lj.mjs} +36 -32
- package/dist/client/{bookingForm-CSE7NT54.mjs → bookingForm-TnzIBHx2.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-BrrLdGgn.mjs → carousel-kkFnbr5Z.mjs} +1 -1
- package/dist/client/{cart-QFgSKqia.mjs → cart-BAXNbFux.mjs} +3 -3
- package/dist/client/{cart.client-C6iA9v8X.mjs → cart.client-BczxUF70.mjs} +1 -1
- package/dist/client/{checkout-BAuLgA6Q.mjs → checkout-C5NRhPeP.mjs} +3 -3
- package/dist/client/{checkout.client-hbvBPpZR.mjs → checkout.client-BuDk3Td9.mjs} +1 -1
- package/dist/client/client.mjs +3 -2
- package/dist/client/{context-psG_Bwfs.mjs → context-CVsgML69.mjs} +1 -1
- package/dist/client/{cta-DrX2pzK9.mjs → cta-BWnUuJce.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CClf0SHq.mjs → demoPortalMagicLink-CUlwvmxf.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CqN7ig-2.mjs → enhanceHeaderSection-Cw8nnFj-.mjs} +2 -2
- package/dist/client/{event-details.client-CcYX4URD.mjs → event-details.client-Bl0E_6Vi.mjs} +2 -2
- package/dist/client/{event-registration.client-B8wVfnJ8.mjs → event-registration.client-DmfLg_LC.mjs} +15 -14
- package/dist/client/{eventCalendar-CRYN9-Vv.mjs → eventCalendar-D1Dwb9VA.mjs} +4 -4
- package/dist/client/{eventCombined-gGuj2_Vh.mjs → eventCombined-DfsqY1qR.mjs} +4 -4
- package/dist/client/{eventDetails-D1U7WEsJ.mjs → eventDetails-BmugDVoa.mjs} +2 -2
- package/dist/client/{eventListing-BY20rsvl.mjs → eventListing-BPAGJi3C.mjs} +4 -4
- package/dist/client/{eventRegistration-DnOZYpqh.mjs → eventRegistration-DBlz_x6u.mjs} +4 -4
- package/dist/client/{form-_q17Emh7.mjs → form-DVu3ZMjx.mjs} +3 -3
- package/dist/client/{form.client-BVaTf4FG.mjs → form.client-QZUyABIY.mjs} +3 -3
- package/dist/client/{form.parts-C9EmjE7U.mjs → form.parts-Bs0F3v08.mjs} +1 -1
- package/dist/client/formatDate-BD9D3dgo.mjs +26 -0
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-CZ3unSkX.mjs → headerSection-BQwWW4Yy.mjs} +2 -2
- package/dist/client/{location-map.client-C_udm2_y.mjs → location-map.client-upKuwABk.mjs} +3 -10
- package/dist/client/{location-map.view-Bkd9gu_S.mjs → location-map.view-RuBCD10O.mjs} +87 -13
- package/dist/client/{locationMap-CunBAPoo.mjs → locationMap-1sCbsk0V.mjs} +2 -2
- package/dist/client/{newsletter-form.client-BkHhqPBi.mjs → newsletter-form.client-DBTU3oNv.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-VGjM-NDG.mjs → newsletter-form.parts-C9I9JBhe.mjs} +1 -1
- package/dist/client/{newsletterForm-DGc1-NVR.mjs → newsletterForm-DTPtTxxG.mjs} +3 -3
- package/dist/client/{noop-D3wctocR.mjs → noop-DMFt3KdC.mjs} +19 -132
- package/dist/client/portal/client.mjs +589 -482
- package/dist/client/{product-detail.client-C_8N4OxU.mjs → product-detail.client-BX7M5o6p.mjs} +1 -1
- package/dist/client/{product-list.client-79qoSlLs.mjs → product-list.client-i32QNY4c.mjs} +1 -1
- package/dist/client/{productDetail-QGBXBpWb.mjs → productDetail-DWjE9zm7.mjs} +3 -3
- package/dist/client/{productList-Bdno11g6.mjs → productList-DZH9_brv.mjs} +3 -3
- package/dist/client/{propsDecoder-BpKsRqjG.mjs → propsDecoder-CTzHkEkh.mjs} +14 -3
- package/dist/client/{registry.server-D9GvC4EZ.mjs → registry.server-vJ5FlscU.mjs} +589 -246
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +26 -4
- package/dist/client/{richText-coerce-Nln8Bw2P.mjs → richText-coerce-DXAmC72p.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-B4E30DaZ.mjs → routeIslandApiConfig-CmC7ygin.mjs} +1 -1
- package/dist/client/{shop-653-Nn74.mjs → shop-C7eL3B37.mjs} +3 -3
- package/dist/client/{shop-commerce-CfbvhT6h.mjs → shop-commerce-D8oRN0QJ.mjs} +9 -9
- package/dist/client/{shop-commerce-store-CfB26IXt.mjs → shop-commerce-store-CRnQ4M18.mjs} +1 -1
- package/dist/client/{shop.client-Bn7jUQOB.mjs → shop.client-X6d6KVmA.mjs} +9 -9
- package/dist/client/{shop.interactive-acMnyBZU.mjs → shop.interactive-DBMeM8VD.mjs} +155 -3
- package/dist/client/{shopShared-Du4efbgL.mjs → shopShared-Y182kN_s.mjs} +2 -2
- package/dist/client/{timetableModel-Duwk6gXe.mjs → timetableModel-D7PwpaBY.mjs} +5 -5
- package/dist/client/{useAvailableSlots-CbaAFr8M.mjs → useAvailableSlots-BDV6MHgJ.mjs} +2 -2
- package/dist/client/useBookingNowIso-DgJEv3ZY.mjs +58 -0
- package/dist/client/{useDiscountApply-DAl-GX21.mjs → useDiscountApply-BTu9EeT7.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-BUf9LuI6.mjs → useDiscountCodeUi-BfZxdxI-.mjs} +1 -1
- package/dist/client/{useEventPagination-hJDAEg-T.mjs → useEventPagination-pnvdHGeQ.mjs} +6 -6
- package/dist/client/{view-CFSMNvdC.mjs → view-BPEa6Okm.mjs} +8 -7
- package/dist/client/{view-4sSIJ6Ny.mjs → view-hJr_L4QC2.mjs} +3 -3
- package/dist/client/{wizardSteps-B3tRF3_2.mjs → wizardSteps-HdyGoIG3.mjs} +218 -47
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BX5F0a_h.mjs → EventEmbeddedCheckoutStep-BFlBqSu4.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-DLzGdmTw.mjs → PreviewEditorSidebar-CXRUbqMp.mjs} +42 -26
- package/dist/preview-next/client/{PreviewEditorUI-Dru5AxOd.mjs → PreviewEditorUI-CxjEV0Fm.mjs} +31 -22
- package/dist/preview-next/client/{SdkPreviewModeRuntime-QVfwY0HY.mjs → SdkPreviewModeRuntime-BxI12BBS.mjs} +1310 -1226
- package/dist/preview-next/client/{SdkPreviewModeRuntime-V3absa-c.mjs → SdkPreviewModeRuntime-XdQSGGj_.mjs} +1 -1
- package/dist/preview-next/client/{SiteChromeCustomizeContext-RSPyKO_K.mjs → SiteChromeCustomizeContext-CfRQRwpH.mjs} +133891 -131593
- package/dist/preview-next/client/{ThemedButton-ADHirm0A.mjs → ThemedButton-BEOPss9H.mjs} +30 -4
- package/dist/preview-next/client/{previewChromeSurface-Cc4b9nBZ.mjs → previewChromeSurface-CH7hd5n7.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CTLm99t6.mjs → sdk-runtime-C6xEU1LI.mjs} +1 -1
- package/dist/preview-next/client/{siteStyleAccess-YpHSMBBC.mjs → siteStyleAccess-CRXaC2oL.mjs} +2 -2
- package/dist/preview-next/client/{spinner-CsiSmy1g.mjs → spinner-BTf1CZmy.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-dR_Jzpo5.mjs → route-contract-DM22uOXM.mjs} +41 -0
- package/dist/server/{Block.shared-BNrmEY1p.mjs → Block.shared-DLoilC2J.mjs} +4 -4
- package/dist/server/{bindings-C9zgT9uX.mjs → bindings-C7DKLVx_.mjs} +1 -1
- package/dist/server/{blocks-BLm-OxTv.mjs → blocks-jlIm0PWc.mjs} +953 -324
- package/dist/server/{client-CaQ1ElR3.mjs → client-CU4wlMLE.mjs} +2 -2
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BFyU8YxS.mjs → loadContent-DmQ4BiiQ.mjs} +6 -4
- package/dist/server/{loadPage-DeQipVdO.mjs → loadPage-BBkDQA57.mjs} +3 -2
- package/dist/server/loadPage-ZrcfjG3X.mjs +2 -0
- package/dist/server/next.mjs +24 -12
- package/dist/server/{overrideResolution-D5nmZUYe.mjs → overrideResolution-ByeAbLSO.mjs} +1 -1
- package/dist/server/{overrides-BI13bIb7.mjs → overrides-BcA6ZPWf.mjs} +94 -30
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-UgDhSzy2.mjs → prebuild-8T-m7XjB.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CLF-Y7h-.mjs → prefetchBlockData-Bjya-X9t.mjs} +6 -5
- package/dist/server/{publicProducts-vPbNQJsO.mjs → publicProducts-C3meXS2o.mjs} +41 -0
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +26 -8
- package/dist/server/{resolveBlockData-C7J-pixy.mjs → resolveBlockData-D0ow8PRJ.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{siteChromeOverlayClearance-DLROm32h.mjs → siteChromeOverlayClearance-BangtD8A.mjs} +126 -1
- package/dist/server/{src-BZb5L4Fa.mjs → src-B935_bzN.mjs} +300 -2
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{themeAdmission-x3uhdOWx.mjs → themeAdmission-D2-BnmDO.mjs} +314 -125
- package/dist/server/{validation-Ban_hxJG.mjs → validation-Cm41pDUB.mjs} +2 -2
- package/dist/server/{version-bkGVuskm.mjs → version-Bo9C3McI.mjs} +1 -1
- package/dist/styles/index.css +282 -0
- package/package.json +1 -1
- package/dist/server/loadPage-CvyKRtXK.mjs +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as resolveButtonStyleSelection, D as buttonStyleSelectionParameterValue, E as buttonStyleHoverPreferenceValue, F as buttonStyleSelectionsEqual, Gr as
|
|
3
|
-
import {
|
|
4
|
-
import { n as Separator, t as Spinner } from "./spinner-
|
|
5
|
-
import { c as resolvePreviewSidebarChromeModel, d as useBlockCustomizeControls, h as previewWidgetOverrides, i as resolvePreviewDashboardSetupHandoff, m as PreviewFormProvider, o as resolvePreviewEditorGuidanceModel, p as usePreviewBlockCustomizeSelectionOptional, r as buildPreviewDashboardSetupUrl, t as canInspectSiteStyle, u as usePreviewSiteFontStorageUrl } from "./siteStyleAccess-
|
|
2
|
+
import { A as resolveButtonStyleSelection, D as buttonStyleSelectionParameterValue, E as buttonStyleHoverPreferenceValue, F as buttonStyleSelectionsEqual, Gr as buildFontPreviewUrl, Jn as paletteColorEntries, Jr as VARIANT_ROLES, Kr as generateFontFaceCss, M as updateButtonStyleSelectionChoice, N as buttonStyleSelectionKey, Xn as paletteColorsSchema, i as ThemedButtonSpecimen, j as updateButtonStyleHoverPreference, k as findButtonStyleRecipe, qr as getSiteFontsStorageUrl } from "./ThemedButton-BEOPss9H.mjs";
|
|
3
|
+
import { A as previewHeaderStyle, Ao as DropdownMenuContent, Bn as listPageSurfaceContentSlots, Bo as Tablet, C as openRow, Cs as formatDate, D as previewCuratedPalette, Dn as isEdited, Do as CollapsibleTrigger, E as previewButtonStyle, Eo as CollapsibleContent, Es as resolveBookingBusinessTimeZone, F as syncStyleConfiguratorState, Fn as FormRenderer, Ho as Smartphone, I as toggleRow, Io as X$1, Ki as compileReplacementSiteThemeFromSelections, L as createOptimisticActionRunner, Ln as civilPickerDisplay, M as restageSelectionChanges, Mn as ManifestForm, Mo as DropdownMenuLabel, N as setPaletteColors, No as DropdownMenuSeparator, O as previewFooterLook, On as canWriteLinkedEntry, Oo as Surface, Os as assertNever$1, P as styleConfiguratorHistoryEntryForPersistedSelection, Pn as createManifestValidation, Po as DropdownMenuTrigger, Q as resolvePreviewSidebarTab, R as resolveStyleConfiguratorInitialSnapshot, S as markApplySaving, T as planStyleSwitch, To as Collapsible, Ts as parseUtcIsoDateTimeString, Uo as SlidersHorizontal, Vn as blocksKeys, X as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, Xn as getDashboardUrl, Xo as Maximize2, Yn as unwrapResponse, Yo as Monitor, Z as reportPreviewDesignError, _ as deriveStyleConfiguratorCapabilities, _a as replaceSiteStyleCompilationPlan, _o as TabsList, _r as ThemeScope, a as selectionSnapshotFromApplySiteStyleSelectionResponse, ao as SelectItem, ar as createStoreBackend, as as ChevronDown, at as FooterComposerPanel, b as markApplyFailed, bs as syncStateOf, co as Callout, d as cycleSiteChromeSelectionId, da as getHeaderLayout, dn as deriveRouteMetadataPresentation, do as Popover, en as BlockEditor, f as planSiteChromeSelection, fa as getHeaderStyle, fn as resolvePageRouteSlug, fo as PopoverContent, ft as ContentFieldsForm, g as createStyleConfiguratorState, go as TabsContent, gt as useEntryController, h as cancelPreview, hn as useEditorUiStoreInstance, ho as Tabs, i as buildApplySiteStyleSelectionBody, ia as palettesForSiteStyle, io as SelectContent, is as ChevronLeft, j as resetTypographyToSaved, jo as DropdownMenuItem, k as previewHeaderLayout, ko as DropdownMenu, ln as isAdapterReferenceKind, lo as CalloutDescription, ls as cn, m as applyTypographyDraftPatch, mn as useEditorUiStore, mo as Input, n as useSiteChromeCustomizeOptional, oo as SelectTrigger, os as Check, p as applyResolvedSelections, pa as defaultHeaderLogoContext, pn as resolveContentTitle, po as PopoverTrigger, pt as useUISelector, qi as compileUpdatedSiteThemeFromSelections, r as StyleSwitchSummary, ra as offeredSiteStyles, ro as Select, rs as ChevronRight, rt as usePreviewAuth, s as usePreviewDesignCoordinator, sn as routeLifecycleContext, so as SelectValue, ss as Button, st as resolveFooterLayoutHints, ta as getCuratedSiteStyle, u as buildSiteChromeSelectionModels, ua as findFooterLook, uo as SearchInput, v as dismissWarnings, va as defaultFooterPreferences, vo as TabsTrigger, w as palettePreviewProjection, wn as toEditorBlockItem, ws as parseBookingLocalDate, wt as LinkedEntryLeaseBanner, x as markApplySaved, xs as valueStatus, y as isPreviewingChange, yr as resolveSdkFooterMode, ys as displayedValues, yt as useAutosaveStatus, zn as listEntryPageContentSlots } from "./SiteChromeCustomizeContext-CfRQRwpH.mjs";
|
|
4
|
+
import { n as Separator, t as Spinner } from "./spinner-BTf1CZmy.mjs";
|
|
5
|
+
import { c as resolvePreviewSidebarChromeModel, d as useBlockCustomizeControls, h as previewWidgetOverrides, i as resolvePreviewDashboardSetupHandoff, m as PreviewFormProvider, o as resolvePreviewEditorGuidanceModel, p as usePreviewBlockCustomizeSelectionOptional, r as buildPreviewDashboardSetupUrl, t as canInspectSiteStyle, u as usePreviewSiteFontStorageUrl } from "./siteStyleAccess-CRXaC2oL.mjs";
|
|
6
6
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
@@ -1213,6 +1213,7 @@ function getErrorMessage(error) {
|
|
|
1213
1213
|
return error instanceof Error ? error.message : "Unable to load Page Content.";
|
|
1214
1214
|
}
|
|
1215
1215
|
function EntrySlotBlockEditorPanel({ siteId, dashboardBaseUrl, typeKey, entryId, pageSurfaceId, theme = null, apiClient, sdkConfig = null, widgets }) {
|
|
1216
|
+
const { displayContext } = useEntryController();
|
|
1216
1217
|
const router = useRouter();
|
|
1217
1218
|
const queryClient = useQueryClient();
|
|
1218
1219
|
const uiStore = useEditorUiStoreInstance();
|
|
@@ -1317,6 +1318,7 @@ function EntrySlotBlockEditorPanel({ siteId, dashboardBaseUrl, typeKey, entryId,
|
|
|
1317
1318
|
previewClient: apiClient,
|
|
1318
1319
|
sdkConfig,
|
|
1319
1320
|
children: /* @__PURE__ */ jsx(BlockEditor, {
|
|
1321
|
+
displayContext,
|
|
1320
1322
|
ref: handleBlockEditorRef,
|
|
1321
1323
|
siteId,
|
|
1322
1324
|
dashboardBaseUrl,
|
|
@@ -1677,6 +1679,7 @@ function SelectedBlockCustomizeFields({ block, blockId, uiStoreForBlockEditor, t
|
|
|
1677
1679
|
className: "text-xs font-medium uppercase text-muted-foreground",
|
|
1678
1680
|
children: "Quick controls"
|
|
1679
1681
|
}), /* @__PURE__ */ jsx(FormRenderer, {
|
|
1682
|
+
dateContext: civilPickerDisplay.dateContext,
|
|
1680
1683
|
fields: quickFields,
|
|
1681
1684
|
backend,
|
|
1682
1685
|
widgetOverrides: previewWidgetOverrides,
|
|
@@ -1691,6 +1694,7 @@ function SelectedBlockCustomizeFields({ block, blockId, uiStoreForBlockEditor, t
|
|
|
1691
1694
|
className: "text-xs font-medium uppercase text-muted-foreground",
|
|
1692
1695
|
children: "More controls"
|
|
1693
1696
|
}), /* @__PURE__ */ jsx(FormRenderer, {
|
|
1697
|
+
dateContext: civilPickerDisplay.dateContext,
|
|
1694
1698
|
fields: panelFields,
|
|
1695
1699
|
backend,
|
|
1696
1700
|
widgetOverrides: previewWidgetOverrides,
|
|
@@ -1837,28 +1841,10 @@ function PageBlockEditorPanel(props) {
|
|
|
1837
1841
|
sdkConfig: props.sdkConfig ?? null
|
|
1838
1842
|
})
|
|
1839
1843
|
}),
|
|
1840
|
-
/* @__PURE__ */ jsx(
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
hidden: takeover,
|
|
1845
|
-
children: /* @__PURE__ */ jsx(BlockEditor, {
|
|
1846
|
-
ref: props.blockEditorRef,
|
|
1847
|
-
siteId: props.siteId,
|
|
1848
|
-
dashboardBaseUrl: props.dashboardBaseUrl,
|
|
1849
|
-
owner: {
|
|
1850
|
-
kind: "page",
|
|
1851
|
-
pageId: props.pageId
|
|
1852
|
-
},
|
|
1853
|
-
source: { kind: "mounted" },
|
|
1854
|
-
uiStore: props.uiStoreForBlockEditor,
|
|
1855
|
-
apiClient: props.apiClient,
|
|
1856
|
-
onBlocksChange: props.onBlocksChange,
|
|
1857
|
-
actionPresentation: controls.blockActionPresentation,
|
|
1858
|
-
widgetOverrides: previewWidgetOverrides,
|
|
1859
|
-
sdkConfig: props.sdkConfig ?? null,
|
|
1860
|
-
reorderControlMode: "drag-handle-only"
|
|
1861
|
-
}, props.pageId)
|
|
1844
|
+
/* @__PURE__ */ jsx(PageBlocksSection, {
|
|
1845
|
+
props,
|
|
1846
|
+
controls,
|
|
1847
|
+
takeover
|
|
1862
1848
|
}),
|
|
1863
1849
|
props.footerPanel ? /* @__PURE__ */ jsx(FooterSidebarDisclosure, {
|
|
1864
1850
|
editorStore: props.uiStoreForBlockEditor,
|
|
@@ -1877,6 +1863,34 @@ function PageBlockEditorPanel(props) {
|
|
|
1877
1863
|
})]
|
|
1878
1864
|
});
|
|
1879
1865
|
}
|
|
1866
|
+
/** The page-block section owns editor context admission and block-editor wiring. */
|
|
1867
|
+
function PageBlocksSection({ props, controls, takeover }) {
|
|
1868
|
+
const { displayContext } = useEntryController();
|
|
1869
|
+
return /* @__PURE__ */ jsx(StandardSection, {
|
|
1870
|
+
label: "Page Blocks",
|
|
1871
|
+
open: controls.contentOpen,
|
|
1872
|
+
onOpenChange: controls.setContentOpen,
|
|
1873
|
+
hidden: takeover,
|
|
1874
|
+
children: /* @__PURE__ */ jsx(BlockEditor, {
|
|
1875
|
+
displayContext,
|
|
1876
|
+
ref: props.blockEditorRef,
|
|
1877
|
+
siteId: props.siteId,
|
|
1878
|
+
dashboardBaseUrl: props.dashboardBaseUrl,
|
|
1879
|
+
owner: {
|
|
1880
|
+
kind: "page",
|
|
1881
|
+
pageId: props.pageId
|
|
1882
|
+
},
|
|
1883
|
+
source: { kind: "mounted" },
|
|
1884
|
+
uiStore: props.uiStoreForBlockEditor,
|
|
1885
|
+
apiClient: props.apiClient,
|
|
1886
|
+
onBlocksChange: props.onBlocksChange,
|
|
1887
|
+
actionPresentation: controls.blockActionPresentation,
|
|
1888
|
+
widgetOverrides: previewWidgetOverrides,
|
|
1889
|
+
sdkConfig: props.sdkConfig ?? null,
|
|
1890
|
+
reorderControlMode: "drag-handle-only"
|
|
1891
|
+
}, props.pageId)
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1880
1894
|
function StandardSection({ label, open, onOpenChange, hidden, sectionRef, children }) {
|
|
1881
1895
|
return /* @__PURE__ */ jsx(Collapsible, {
|
|
1882
1896
|
hidden,
|
|
@@ -4939,6 +4953,7 @@ function PreviewMetadataPanel({ ownerKind, contentTypeKey, entry, statusMessage
|
|
|
4939
4953
|
children: statusMessage
|
|
4940
4954
|
}) : null,
|
|
4941
4955
|
/* @__PURE__ */ jsx(ManifestForm, {
|
|
4956
|
+
dateContext: civilPickerDisplay.dateContext,
|
|
4942
4957
|
manifest,
|
|
4943
4958
|
backend,
|
|
4944
4959
|
className: "space-y-4"
|
|
@@ -5036,6 +5051,7 @@ function LinkedEntryEditorPanel({ siteId, apiClient, theme, widgets, entry, fiel
|
|
|
5036
5051
|
theme: theme ?? null,
|
|
5037
5052
|
previewClient: apiClient,
|
|
5038
5053
|
children: /* @__PURE__ */ jsx(ManifestForm, {
|
|
5054
|
+
dateContext: civilPickerDisplay.dateContext,
|
|
5039
5055
|
manifest,
|
|
5040
5056
|
backend,
|
|
5041
5057
|
widgetOverrides: widgets,
|
package/dist/preview-next/client/{PreviewEditorUI-Dru5AxOd.mjs → PreviewEditorUI-CxjEV0Fm.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as Spinner } from "./spinner-
|
|
4
|
-
import { a as resolvePreviewChromeSurface, c as PREVIEW_THEME_COOKIE_NAME, l as PREVIEW_CHROME_Z_INDEX, n as PREVIEW_CHROME_THEME_CLASS_NAME, r as applyPreviewChromeSurfaceToElement, t as PREVIEW_CHROME_PORTAL_CLASS_NAME, u as FixedBottomSurface } from "./previewChromeSurface-
|
|
2
|
+
import { Ao as DropdownMenuContent, Co as DialogHeader, Dt as EditorWriteSurface, G as usePreviewPageDesignEditorState, Go as Redo2, J as previewDesignHistoryDomainForCommand, Jo as Palette, Ko as Pencil, Po as DropdownMenuTrigger, Ro as Undo2, Vo as Sparkles, Y as selectPreviewDesignHistoryDomain, Yn as unwrapResponse, Zo as LoaderCircle, Zt as useEditor, _n as canDiscardDraft, _t as useEntryEditorController, as as ChevronDown, bo as DialogContent, cs as cva, eo as Tooltip, hn as useEditorUiStoreInstance, jo as DropdownMenuItem, ko as DropdownMenu, ls as cn, mn as useEditorUiStore, n as useSiteChromeCustomizeOptional, no as TooltipTrigger, ns as EllipsisVertical, q as usePreviewDesignHistoryOrder, qo as PenLine, rt as usePreviewAuth, ss as Button, to as TooltipContent, ts as Eye, vt as classifyHistoryShortcut, wo as DialogTitle, xo as DialogDescription, yo as Dialog, yt as useAutosaveStatus, zo as TriangleAlert } from "./SiteChromeCustomizeContext-CfRQRwpH.mjs";
|
|
3
|
+
import { t as Spinner } from "./spinner-BTf1CZmy.mjs";
|
|
4
|
+
import { a as resolvePreviewChromeSurface, c as PREVIEW_THEME_COOKIE_NAME, l as PREVIEW_CHROME_Z_INDEX, n as PREVIEW_CHROME_THEME_CLASS_NAME, r as applyPreviewChromeSurfaceToElement, t as PREVIEW_CHROME_PORTAL_CLASS_NAME, u as FixedBottomSurface } from "./previewChromeSurface-CH7hd5n7.mjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { useCallback, useEffect, useMemo, useState, useTransition } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -688,6 +688,7 @@ function PreviewEditorUI({ dashboardBaseUrl = null, inMaintenanceMode = false, s
|
|
|
688
688
|
const { canEdit } = usePreviewAuth();
|
|
689
689
|
const [portalTarget, setPortalTarget] = useState(null);
|
|
690
690
|
const combinedAutosave = useAutosaveStatus();
|
|
691
|
+
const lifecycleRunning = useEditorUiStore((state) => state.lifecycle.kind === "running" || state.lifecycle.kind === "holding");
|
|
691
692
|
const surfaceDocument = useMemo(() => resolvePreviewChromeSurface(surfaceId), [surfaceId]);
|
|
692
693
|
const draftSyncState = useEditorUiStore((state) => state.getDraftSyncState());
|
|
693
694
|
const canUndo = useEditorUiStore((state) => state.history.canUndo());
|
|
@@ -708,31 +709,17 @@ function PreviewEditorUI({ dashboardBaseUrl = null, inMaintenanceMode = false, s
|
|
|
708
709
|
return {
|
|
709
710
|
...base,
|
|
710
711
|
hasUnpublishedChanges,
|
|
711
|
-
disablePublish: base.disablePublish ?? !hasUnpublishedChanges,
|
|
712
|
-
disableDiscard: Boolean(base.disableDiscard) || !canDiscard
|
|
712
|
+
disablePublish: lifecycleRunning || (base.disablePublish ?? !hasUnpublishedChanges),
|
|
713
|
+
disableDiscard: lifecycleRunning || Boolean(base.disableDiscard) || !canDiscard
|
|
713
714
|
};
|
|
714
715
|
}, [
|
|
715
716
|
hasUnpublishedChanges,
|
|
716
717
|
canDiscard,
|
|
717
|
-
controller.toolbar
|
|
718
|
+
controller.toolbar,
|
|
719
|
+
lifecycleRunning
|
|
718
720
|
]);
|
|
719
721
|
const lifecycleActions = controller.actions;
|
|
720
|
-
const
|
|
721
|
-
const handlePublish = async () => {
|
|
722
|
-
try {
|
|
723
|
-
await lifecycleActions.publish();
|
|
724
|
-
} catch (err) {
|
|
725
|
-
console.error("Preview publish error", err);
|
|
726
|
-
}
|
|
727
|
-
};
|
|
728
|
-
const handleDiscard = async () => {
|
|
729
|
-
try {
|
|
730
|
-
await lifecycleActions.discardDraft();
|
|
731
|
-
router.refresh();
|
|
732
|
-
} catch (err) {
|
|
733
|
-
console.error("Preview discard error", err);
|
|
734
|
-
}
|
|
735
|
-
};
|
|
722
|
+
const { handlePublish, handleDiscard } = previewLifecycleHandlers(lifecycleActions, useRouter().refresh);
|
|
736
723
|
const designHistoryControllers = useMemo(() => ({
|
|
737
724
|
"site-style-design": siteStyleHistory,
|
|
738
725
|
"site-chrome-quick-controls": quickControlHistory,
|
|
@@ -857,6 +844,7 @@ function PreviewEditorUI({ dashboardBaseUrl = null, inMaintenanceMode = false, s
|
|
|
857
844
|
/* @__PURE__ */ jsx(PreviewOpenEditorButton, {})
|
|
858
845
|
] }),
|
|
859
846
|
mobileMenuItems: previewOpenEditorMobileMenuItems,
|
|
847
|
+
messageOverride: controller.errorMessage,
|
|
860
848
|
status: combinedAutosave.status,
|
|
861
849
|
lastSavedLabel: controller.formatSavedTime(lastSavedAt),
|
|
862
850
|
draftSyncState,
|
|
@@ -925,5 +913,26 @@ function previewUndoFocusOwnerForShortcutTarget(target) {
|
|
|
925
913
|
if (target.closest("[data-preview-undo-owner=\"content\"]")) return "content";
|
|
926
914
|
return "preview-customize";
|
|
927
915
|
}
|
|
916
|
+
/** The lifecycle owns failure presentation; only a completed discard refreshes the page. */
|
|
917
|
+
function previewLifecycleHandlers(actions, refresh) {
|
|
918
|
+
return {
|
|
919
|
+
handlePublish: async () => {
|
|
920
|
+
try {
|
|
921
|
+
const outcome = await actions.publish();
|
|
922
|
+
if (outcome.kind === "blocked" || outcome.kind === "failed" || outcome.kind === "cancelled") return;
|
|
923
|
+
} catch (error) {
|
|
924
|
+
console.error("Preview publish error", error);
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
handleDiscard: async () => {
|
|
928
|
+
try {
|
|
929
|
+
const outcome = await actions.discardDraft();
|
|
930
|
+
if (outcome.kind === "done" || outcome.kind === "no-changes") refresh();
|
|
931
|
+
} catch (error) {
|
|
932
|
+
console.error("Preview discard error", error);
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
};
|
|
936
|
+
}
|
|
928
937
|
//#endregion
|
|
929
938
|
export { PreviewEditorUI };
|