@riverbankcms/sdk 0.129.1 → 0.130.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 +32 -10
- package/dist/{PreviewEditorSidebar-DceRseRV.mjs → PreviewEditorSidebar-DiEpbOdw.mjs} +313 -239
- package/dist/{PreviewEditorUI-BNunq3kk.mjs → PreviewEditorUI-C6MvxnIa.mjs} +3 -3
- package/dist/{PreviewQueryProvider-B1kbhaJD.mjs → PreviewQueryProvider-C2rnoPz6.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-Bt87-62u.mjs → SdkPreviewModeRuntime-DRXA_m5L.mjs} +208 -211
- package/dist/{SiteChromeCustomizeContext-BLl-OlL4.mjs → SiteChromeCustomizeContext-BTHdv5_-.mjs} +6204 -6239
- package/dist/_dts/ai/src/contracts/proposalPrimitives.d.ts +52 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +4950 -29100
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +32572 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +21 -9
- package/dist/_dts/api/src/bookingConfig.d.ts +4 -46
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +13 -11
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -5
- package/dist/_dts/api/src/endpoints.d.ts +14 -21
- package/dist/_dts/api/src/eventManagementContracts.d.ts +76 -0
- package/dist/_dts/api/src/index.d.ts +3 -2
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +22 -47
- package/dist/_dts/api/src/sdk-event-schedule.d.ts +5 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +112 -20
- package/dist/_dts/api/src/sdkContracts.d.ts +38 -66
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +35 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +2423 -501
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +5 -0
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +23 -37
- package/dist/_dts/blocks/src/contracts/index.d.ts +2 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +6 -8
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +36 -14
- package/dist/_dts/blocks/src/index.d.ts +5 -3
- package/dist/_dts/blocks/src/lib/media.d.ts +9 -539
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -90
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +37 -4
- package/dist/_dts/blocks/src/system/blocks/site-footer-nav-groups-layout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +3 -0
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +5 -5
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +8 -6
- package/dist/_dts/blocks/src/system/customize/serializeBackgroundOverride.d.ts +3 -0
- package/dist/_dts/blocks/src/system/fields/background.d.ts +2 -20
- package/dist/_dts/blocks/src/system/fields/backgroundContent.d.ts +17 -0
- package/dist/_dts/blocks/src/system/fields/backgroundContentAudit.d.ts +20 -0
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +5 -33
- package/dist/_dts/blocks/src/system/fragments/builder.d.ts +1 -0
- package/dist/_dts/blocks/src/system/fragments/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/helpers/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +10 -45
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +7 -4
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/writeCanonicalization.d.ts +4 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +123 -55
- package/dist/_dts/blocks/src/system/registry.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +2 -37
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +61 -24
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +30 -12
- package/dist/_dts/blocks/src/system/runtime/header/enhanceHeaderSection.d.ts +3 -5
- package/dist/_dts/blocks/src/system/runtime/header/headerScrollRuntime.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/header/runtimeContract.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/view.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.frame.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.server.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.pass-contract.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.state.d.ts +3 -3
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/registry/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/registry/core.d.ts +4 -1
- package/dist/_dts/blocks/src/system/transforms/registry/headerRuntime.d.ts +3 -0
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +0 -3
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +41 -43
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +4 -2
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +2 -17
- package/dist/_dts/content-editor/src/FooterNavigationLayoutControl.d.ts +5 -0
- package/dist/_dts/content-editor/src/footerComposer.d.ts +2 -1
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +21 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +2 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +11 -1
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +26 -0
- package/dist/_dts/content-model/src/templates/defaults.d.ts +7 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +2 -2
- package/dist/_dts/core/src/booking-time-zone.d.ts +6 -0
- package/dist/_dts/core/src/footer-composition-types.d.ts +4 -4
- package/dist/_dts/core/src/footer-navigation-layout.d.ts +4 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +38 -18
- package/dist/_dts/preview-next/src/client/preview/FooterSidebarDisclosure.d.ts +8 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +15 -17
- package/dist/_dts/preview-next/src/client/preview/PreviewFooterEditorPanel.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +6 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +7 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeCustomizeTypes.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +12 -11
- package/dist/_dts/preview-next/src/client/preview/siteChromeSelectionRows.d.ts +53 -0
- package/dist/_dts/preview-next/src/client/preview/siteStyleAccess.d.ts +1 -6
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +6 -15
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +4 -6
- package/dist/_dts/sdk/src/config/types.d.ts +1 -0
- package/dist/_dts/sdk/src/config/validation.d.ts +2 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -41
- package/dist/_dts/sdk/src/next/catch-all-theme-admission.d.ts +23 -0
- package/dist/_dts/sdk/src/next/index.d.ts +8 -6
- package/dist/_dts/sdk/src/next/resolveTheme.d.ts +1 -2
- package/dist/_dts/sdk/src/next/types.d.ts +10 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -16
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +5 -3
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +4 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +11 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blockOverrides.d.ts +1 -1
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +184 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +96 -0
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +78 -0
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/parseThemeForPersistence.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +9 -57
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +6 -3
- package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +8 -7
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +11 -0
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -0
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +5 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +51 -4
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/lib/media.d.ts +583 -10
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +5117 -1433
- package/dist/_dts/theme-core/src/schema.d.ts +5079 -2005
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +6 -14
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +29 -102
- package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +3 -76
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -7
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipelineHelpers.d.ts +17 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +281 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutResolution.d.ts +13 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyles.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/{headerLookTypes.d.ts → headerLayoutTypes.d.ts} +16 -86
- package/dist/_dts/theme-core/src/site-styles/headerNavStyles.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +7 -4
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/imageSurfaceBackground.d.ts +14 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +14 -41
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +23 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +8 -6
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +1 -1
- package/dist/client/{CourseRegistrationWizard-xRmA7REV.mjs → CourseRegistrationWizard-Bvtz9G9g.mjs} +5 -5
- package/dist/client/{DiscountCodeDisclosure-B9vriL5C.mjs → DiscountCodeDisclosure-Ur-Xx1U_.mjs} +1 -1
- package/dist/client/{EventCombined.client-BgVnVTlz.mjs → EventCombined.client-EhscD4U6.mjs} +2 -2
- package/dist/client/{EventListing.client-CqdsO7jO.mjs → EventListing.client-Bn26cFTY.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CKPxot9M.mjs → LeafletStaticMap-BUw9Ntzr.mjs} +1 -1
- package/dist/client/{StepIndicator-DGCYuBJ1.mjs → StepIndicator-BfbdiVQI.mjs} +2 -2
- package/dist/client/{accordion-BfN5Eqd-.mjs → accordion-CjIeof73.mjs} +1 -1
- package/dist/client/{bookingForm-DOvCpBFP.mjs → bookingForm-DwEeovf_.mjs} +5 -5
- package/dist/client/bookings.mjs +1028 -1038
- package/dist/client/{carousel-DPNmiH0f.mjs → carousel-BMrfgOba.mjs} +1 -1
- package/dist/client/{cart--egVXlrR.mjs → cart-rXEdxTdb.mjs} +3 -3
- package/dist/client/{checkout-DywWtMcq.mjs → checkout-D3JlSzh3.mjs} +3 -3
- package/dist/client/client.mjs +18345 -18311
- package/dist/client/{courseRegistration-Dk9qFVwt.mjs → courseRegistration-DO5XvMAA.mjs} +2 -2
- package/dist/client/{eventCalendar-Bkz2HjlS.mjs → eventCalendar-DO6rTqCn.mjs} +4 -4
- package/dist/client/{eventCombined-D4kipYWg.mjs → eventCombined-bJ3i_ovU.mjs} +2 -2
- package/dist/client/{eventDetails-Dz_5ix2Q.mjs → eventDetails-CCbrXE7o.mjs} +3 -3
- package/dist/client/{eventListing-D0vm-zST.mjs → eventListing-Bdlt9YTm.mjs} +2 -2
- package/dist/client/{eventRegistration-Cw1E4Q4p.mjs → eventRegistration-B02lt6iY.mjs} +6 -6
- package/dist/client/{form-C2Zf1n3K.mjs → form-DrUBAAox.mjs} +1 -1
- package/dist/client/{headerSection-CP05gzdc.mjs → headerSection-MzqvHL6T.mjs} +151 -104
- package/dist/client/hooks.mjs +4532 -4216
- package/dist/client/{locationMap-Cl3x9PYJ.mjs → locationMap-DG8BxTBm.mjs} +2 -2
- package/dist/client/{newsletterForm-DyEJoClm.mjs → newsletterForm-BzO-Td3p.mjs} +1 -1
- package/dist/client/{pricing-DGuNR1W4.mjs → pricing-NgK7ozkg.mjs} +1 -1
- package/dist/client/{productDetail-Cq-HrGew.mjs → productDetail-CfQ7rhVK.mjs} +3 -3
- package/dist/client/{productList-DbB3jwqd.mjs → productList-C23rOLUi.mjs} +3 -3
- package/dist/client/{propsDecoder-CiTuhUwY.mjs → propsDecoder-CAZdhwjs.mjs} +2166 -2157
- package/dist/client/rendering/client.mjs +3600 -4118
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +15950 -15890
- package/dist/client/{scrollToBlock-CShkRqab.mjs → scrollToBlock-DSSqVQr1.mjs} +1 -1
- package/dist/client/{shop-Cu4Ib-ZA.mjs → shop-BMToKLK7.mjs} +34 -23
- package/dist/client/{shop-commerce-BzpsOdh7.mjs → shop-commerce-DB4JRKmp.mjs} +4 -4
- package/dist/client/{shop-commerce-store-DaE7Fhj8.mjs → shop-commerce-store-BOqSIOuc.mjs} +1 -1
- package/dist/client/{shopShared-cF0c20vB.mjs → shopShared-B6SK9DZv.mjs} +9 -3
- package/dist/client/{useEventFilters-QZ3HMgaJ.mjs → useEventFilters-CULOa4nB.mjs} +2 -2
- package/dist/client/{usePolling-BKf0GcE-.mjs → usePolling-BGG_8-jl.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +16 -27
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +16 -27
- package/dist/{previewAuthStore-BesgU5Xu.mjs → previewAuthStore-_GXFRg2W.mjs} +16 -27
- package/dist/{sdk-runtime-C20CVWbb.mjs → sdk-runtime-hhSOMShR.mjs} +2 -2
- package/dist/{separator-BE3NCquy.mjs → separator-flRaFc14.mjs} +1 -1
- package/dist/server/components.mjs +17770 -17866
- package/dist/server/config-validation.mjs +4711 -4421
- package/dist/server/config.mjs +4715 -4425
- package/dist/server/data.mjs +4515 -4216
- package/dist/server/date-time.mjs +22 -13
- package/dist/server/index.mjs +17 -28
- package/dist/server/next.mjs +17586 -17650
- package/dist/server/page-converter.mjs +3759 -4390
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +18952 -19064
- package/dist/server/rendering.mjs +17824 -17901
- package/dist/server/routing.mjs +4748 -4365
- package/dist/server/server.mjs +4591 -4269
- package/dist/server/theme-bridge.mjs +1393 -1886
- package/dist/server/theme.mjs +736 -605
- package/dist/styles/index.css +22 -3
- package/package.json +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +0 -66
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyleCatalog.d.ts +0 -254
- package/dist/_dts/theme-core/src/site-styles/headerLegacyLooks.d.ts +0 -372
- package/dist/_dts/theme-core/src/site-styles/headerLookBranding.d.ts +0 -106
- package/dist/_dts/theme-core/src/site-styles/headerLookSelection.d.ts +0 -2
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +0 -7
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompilerPrimitives.d.ts +0 -23
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $a as
|
|
3
|
-
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-
|
|
4
|
-
import { _ as API_ENDPOINTS, a as usePreviewToken, c as createBearerAPIClient, d as unwrapResponse, g as resolveSurfaceDocumentAttributes, h as SURFACE_IDS, i as usePreviewAuthFetch, m as SURFACE_DOCUMENT_DATA_ATTRIBUTE, n as markPreviewAuthExpired, o as isPreviewRuntimeSessionEditable, r as usePreviewAuth, s as ApiRequestError, t as initPreviewAuth } from "./previewAuthStore-
|
|
2
|
+
import { $a as GripVertical, $n as richTextFragment, $r as planSiteChromePlacement, $t as createSnapshotFromPageRecord, Aa as unsafeAsEditorBlockId, An as getResponsiveScopeSpec, At as useEditor, Bi as mapOptionValueForSelect, Bn as resolveEntryRouteTarget, Br as BACKGROUND_BODY_TEXT_MIN_CONTRAST_RATIO, Bt as useEditorUiStoreInstance, Cn as useMediaEditorOptional, Cr as componentRuntimeRulesForTheme, Ct as MediaField, Di as pageDesignEditorBackgroundOverrideOwner, Dn as containerResponsiveThemeCss, Dr as surfaceResolutionContextFromTheme, Dt as RichTextField, Ea as Button, Ei as isThemeV2NormalEditorRawStyleFieldName, En as ThemeScope, Et as useRichTextImagePicker, Fa as parseSiteId, Fi as isHeaderField, Fn as getDefaultComponentRegistry, Fr as parseGradientPresetId, Ft as prepareBlockEditorManifest, G as beginAutosaveBatch, Gn as SITE_CHROME_VISIBLE_HEADER_SELECTOR, Gr as defaultThemeTokens, Gt as pushHistoryEntry, Hi as FieldFrame, Hn as resolveRouteTarget, Hr as backgroundAppearanceQuickColorTokenNames, Ht as canRedoHistory, Ia as X, Ii as SdkConfigProvider, In as LINKED_CONTENT_ENTRY_META_KEY, Ir as defaultSectionTransitionVariantForFamily, It as stripTopLevelRoutingUi, J as enqueueTransaction, Ji as SelectContent, Jn as visibleHeaderClearancePx, Jr as ctaButton, Jt as unsafeAsLinkedContentEntryId, K as confirmAutosaveBatch, Kn as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, Kt as redoHistory, La as Upload, Li as useSdkConfig, Ln as coerceLinkedContentEntriesPayload, Lr as sectionTransitionFamilies, Lt as getBlockManifestFromSdkConfig, Ma as assertNever$2, Mi as textColorStyle, Mn as createCustomBlockRegistry, Mr as GRADIENT_PRESETS, Mt as LinkWidgetProvider, Na as expectParsedBrandedId, Ni as BlockApiProvider, Nn as makeDefaultBlockComponent, Nr as GRADIENT_PRESET_IDS, Oa as cn, Oi as asDesignBlockId, On as buildThemeRuntime, Ot as RichTextWidgetProvider, Pa as parseMediaAssetId, Pi as getFieldIntent, Pn as readBlockComposition, Pr as getGradientPreset, Pt as hideThemeV2RawStyleFields, Q as resolvePreviewSidebarTab, Qa as Image, Qn as ImageResolveContextProvider, Qt as createRoutingHelpers, Ri as hasEmptyOption, Rn as getLinkedContentEntryMeta, Rr as sectionTransitionFamilyForBoundaryOptionId, Sn as MediaEditorContextProvider, Sr as planPageDesignLayoutLookCompatibility, St as FileField, Ti as parseThemeForPersistence, Tn as isSupportedLoaderEndpoint, Tr as designRuntimeRulesForTheme, Tt as ReferenceWidgetProvider, Ui as useField, Un as getBlockDefinition, Ur as foregroundTokenForBackgroundAppearanceColorToken, Ut as canUndoHistory, Vi as unmapValueFromSelect, Vn as resolvePageRouteTarget, Vr as backgroundAppearanceColorTokenNames, Vt as useOptionalEditorUiStoreInstance, Wa as RotateCcw, Wn as projectRecurringSchedule, Wr as parseBackgroundAppearanceColorToken, Wt as createHistoryState, X as rejectAutosaveBatch, Xi as SelectTrigger, Xn as createManifestValidator, Xr as eventCalendarListLayoutCompatibleDisplayModeValues, Y as idleEditorTransactionQueueState, Yi as SelectItem, Yn as resolveVariantKey, Yr as bindingSchema, Yt as recordsEqual, Zi as SelectValue, Zn as clientComponentRegistry, Zr as eventCalendarListLayoutOptions, Zt as useDebouncedLatestSave, _ as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, _i as getAtPath, _r as formatSiteChromeBackgroundTokenLabel, _t as IconPickerField, aa as Tabs, ai as isRecord$13, ar as singleButtonFragment, at as useUISelector, bn as deriveLaunchReadiness, br as retargetCompiledBoundaryRuntimeForContentAdjacency, bt as ButtonVariantField, ca as TabsTrigger, ci as isInlineTextEmpty, cr as testimonialsCarouselFragment, da as DialogDescription, di as buildResolveImageUrlContext, dn as FormRenderer, dr as heroCtaRowFragment, dt as createSiteOptionWidgetAdapters, ei as parseBlockIconValue, en as BUILT_IN_REFERENCE_KINDS, er as headingFragment, et as renderSiteChromeBlock, f as PreviewDesignCoordinatorProvider, fa as DialogFooter, fi as getCurrentResolveImageUrlContext, fn as evaluateVisibility, fr as ctaRowFragment, ft as SiteOptionPickerField, g as PREVIEW_DESIGN_LOAD_ERROR_MESSAGE, gi as attachRenderableMediaAssetFields, gn as getPageDesignEditorState, gr as parseBackgroundContent, gt as InlineTextField, h as usePreviewThemeOverlay, hi as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, hn as applyPageDesignEditorAction, hr as defineFragment, ht as OfferingsPreviewWidgetProvider, i as usePreviewDesignHistoryOrder, ii as isObjectRecord, ir as blogFeaturedPostFragment, ja as unsafeAsEditorBlockValues, jn as escapeStyleContent, jr as gradientToCss, jt as LinkField, ka as parseFooterModuleId, ki as assertNever$1, kn as DEFAULT_THEME_RESPONSIVE_MODE, kt as EditorProvider, la as Dialog, li as Text$1, ln as createManifestFormAdapter, lr as testimonialsHeadingFragment, lt as useEntryEditorController, m as PreviewThemeOverlayProvider, ma as DialogTitle, mi as setContextResolveImageUrlContext, mn as MediaEditor, mr as bodyCopyFragment, mt as OfferingsPreviewGroupOrderField, n as useSiteChromeCustomizeOptional, ni as parseGeneratedIconSetId, nn as parseReferenceKind, no as ChevronRight, nr as faqAccordionFragment, nt as PreviewInlineTextEditor, oa as TabsContent, oi as coerceInlineTextWithFallback, on as PaletteProvider, oo as __exportAll, or as formEmbedFragment, ot as EditableBlockProvider, pa as DialogHeader, pi as resolveImageUrlWithContext, pn as createStoreBackend, pr as heroCopyFragment, pt as SiteOptionWidgetProvider, q as deriveTransactionCapabilities, qi as Select, qn as planSiteOverlayHeaderClearance, qr as runTransforms, qt as undoHistory, r as PreviewDesignHistoryOrderProvider, ri as renderInlineText, ro as ChevronLeft, rr as faqHeadingFragment, rt as PreviewTextEditor, sa as TabsList, si as inlineTextToPlainText, sn as usePalette, sr as formCopyFragment, st as EntryControllerProvider, t as SiteChromeCustomizeProvider, ti as parseGeneratedIconAssetId, tr as cardFragment, tt as PreviewRichTextEditor, ua as DialogContent, ui as RichText$1, ur as ctaCopyFragment, ut as createSiteOptionApiLoader, v as reportPreviewDesignError, vi as siblingPath, vn as decodePublicProductCategorySelectorQuery, vr as applyCompiledRuntimeFieldsToContent, vt as EntryPickerField, wn as useApiMediaUploader, wt as ReferenceField, xn as AMBIENT_BACKGROUND_ROLES, xr as retargetCompiledRuntimeFieldsForContentAdjacency, xt as ButtonWidgetProvider, yn as DEFAULT_LAUNCH_READINESS_INPUT, yr as compileEditorModelRuntime, yt as EntryPickerWidgetProvider, zi as mapCurrentValueForSelect, zn as defaultTransforms, zr as sectionTransitionVariantForBoundaryOptionId, zt as useEditorUiStore } from "./SiteChromeCustomizeContext-BTHdv5_-.mjs";
|
|
3
|
+
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-C2rnoPz6.mjs";
|
|
4
|
+
import { _ as API_ENDPOINTS, a as usePreviewToken, c as createBearerAPIClient, d as unwrapResponse, g as resolveSurfaceDocumentAttributes, h as SURFACE_IDS, i as usePreviewAuthFetch, m as SURFACE_DOCUMENT_DATA_ATTRIBUTE, n as markPreviewAuthExpired, o as isPreviewRuntimeSessionEditable, r as usePreviewAuth, s as ApiRequestError, t as initPreviewAuth } from "./previewAuthStore-_GXFRg2W.mjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { createPortal } from "react-dom";
|
|
9
|
-
import { z
|
|
9
|
+
import { z } from "zod";
|
|
10
10
|
//#region ../ui/src/fixed-bottom-surface.tsx
|
|
11
11
|
const SURFACE_CLASS_BY_VARIANT = {
|
|
12
12
|
light: "z-40 border-t border-border bg-editor-chrome-surface text-foreground",
|
|
@@ -1099,46 +1099,46 @@ function ResponsiveScope({ children, responsiveMode = DEFAULT_THEME_RESPONSIVE_M
|
|
|
1099
1099
|
}), children]
|
|
1100
1100
|
});
|
|
1101
1101
|
}
|
|
1102
|
-
z
|
|
1103
|
-
tokens: z
|
|
1104
|
-
typography: z
|
|
1105
|
-
headingFamily: z
|
|
1106
|
-
bodyFamily: z
|
|
1107
|
-
headingWeight: z
|
|
1108
|
-
bodyWeight: z
|
|
1102
|
+
z.object({
|
|
1103
|
+
tokens: z.record(z.string(), z.string()),
|
|
1104
|
+
typography: z.object({
|
|
1105
|
+
headingFamily: z.string().optional(),
|
|
1106
|
+
bodyFamily: z.string().optional(),
|
|
1107
|
+
headingWeight: z.number().optional(),
|
|
1108
|
+
bodyWeight: z.number().optional()
|
|
1109
1109
|
}).optional(),
|
|
1110
|
-
spacing: z
|
|
1110
|
+
spacing: z.enum([
|
|
1111
1111
|
"comfortable",
|
|
1112
1112
|
"standard",
|
|
1113
1113
|
"dense"
|
|
1114
1114
|
]).optional(),
|
|
1115
|
-
corners: z
|
|
1115
|
+
corners: z.enum([
|
|
1116
1116
|
"square",
|
|
1117
1117
|
"soft",
|
|
1118
1118
|
"rounded",
|
|
1119
1119
|
"pill"
|
|
1120
1120
|
]).optional(),
|
|
1121
|
-
shadows: z
|
|
1121
|
+
shadows: z.enum([
|
|
1122
1122
|
"none",
|
|
1123
1123
|
"low",
|
|
1124
1124
|
"medium",
|
|
1125
1125
|
"high"
|
|
1126
1126
|
]).optional(),
|
|
1127
|
-
components: z
|
|
1128
|
-
buttons: z
|
|
1127
|
+
components: z.object({
|
|
1128
|
+
buttons: z.union([z.boolean(), z.object({ variants: z.array(z.enum([
|
|
1129
1129
|
"primary",
|
|
1130
1130
|
"secondary",
|
|
1131
1131
|
"outline",
|
|
1132
1132
|
"ghost"
|
|
1133
1133
|
])).optional() })]).optional(),
|
|
1134
|
-
cards: z
|
|
1134
|
+
cards: z.union([z.boolean(), z.object({ variants: z.array(z.enum([
|
|
1135
1135
|
"default",
|
|
1136
1136
|
"elevated",
|
|
1137
1137
|
"outlined"
|
|
1138
1138
|
])).optional() })]).optional(),
|
|
1139
|
-
inputs: z
|
|
1139
|
+
inputs: z.boolean().optional()
|
|
1140
1140
|
}).optional(),
|
|
1141
|
-
overrides: z
|
|
1141
|
+
overrides: z.record(z.string(), z.string()).optional()
|
|
1142
1142
|
}).passthrough();
|
|
1143
1143
|
//#endregion
|
|
1144
1144
|
//#region ../theme-core/src/siteChromePlanning.ts
|
|
@@ -1490,6 +1490,10 @@ function coercePayload(payload) {
|
|
|
1490
1490
|
* - Frontend: provide internal API client
|
|
1491
1491
|
* - SDK: provide SDK client with endpoint mapping
|
|
1492
1492
|
*/
|
|
1493
|
+
function shouldSkipResolvedLoader(input) {
|
|
1494
|
+
if (input.loader.requiredParams?.some((param) => !input.params[param]?.trim())) return true;
|
|
1495
|
+
return Boolean(input.isValidEndpoint && !input.isValidEndpoint(input.endpoint));
|
|
1496
|
+
}
|
|
1493
1497
|
/**
|
|
1494
1498
|
* Core data prefetching logic (framework-agnostic).
|
|
1495
1499
|
*
|
|
@@ -1545,7 +1549,12 @@ async function prefetchBlockData(page, context, options) {
|
|
|
1545
1549
|
}
|
|
1546
1550
|
const params = normalizeParams(resolveParamsBindings$1(loader.params, vm, { blockKind: block.kind }));
|
|
1547
1551
|
const endpoint = loader.endpoint;
|
|
1548
|
-
if (
|
|
1552
|
+
if (shouldSkipResolvedLoader({
|
|
1553
|
+
loader,
|
|
1554
|
+
endpoint,
|
|
1555
|
+
params,
|
|
1556
|
+
isValidEndpoint
|
|
1557
|
+
})) continue;
|
|
1549
1558
|
tasks.push((async () => {
|
|
1550
1559
|
try {
|
|
1551
1560
|
const data = coercePayload(await apiClient({
|
|
@@ -2265,100 +2274,100 @@ const generateStoragePath = ({ filename, folder = "originals", variantKey, now =
|
|
|
2265
2274
|
};
|
|
2266
2275
|
const DEFAULT_BUCKET = "media";
|
|
2267
2276
|
const MAX_LIMIT = 100;
|
|
2268
|
-
const fileKindSchema = z
|
|
2269
|
-
const fileUsesSchema = z
|
|
2270
|
-
const accessPolicySchema = z
|
|
2271
|
-
const fileDomainSchema = z
|
|
2277
|
+
const fileKindSchema = z.custom((value) => parseFileKindJson(value).ok, { message: "Invalid file kind JSON" });
|
|
2278
|
+
const fileUsesSchema = z.custom((value) => parseFileUsesJson(value).ok, { message: "Invalid file uses JSON" });
|
|
2279
|
+
const accessPolicySchema = z.custom((value) => parseAccessPolicyJson(value).ok, { message: "Invalid access policy JSON" });
|
|
2280
|
+
const fileDomainSchema = z.object({
|
|
2272
2281
|
fileKind: fileKindSchema,
|
|
2273
2282
|
fileUses: fileUsesSchema,
|
|
2274
2283
|
accessPolicy: accessPolicySchema,
|
|
2275
|
-
storageClass: z
|
|
2284
|
+
storageClass: z.enum([
|
|
2276
2285
|
"public-site",
|
|
2277
2286
|
"private-site",
|
|
2278
2287
|
"temporary"
|
|
2279
2288
|
]),
|
|
2280
|
-
mimeTypeDetected: z
|
|
2281
|
-
safeDownloadFilename: z
|
|
2282
|
-
lifecycleState: z
|
|
2289
|
+
mimeTypeDetected: z.string().min(1).optional().nullable(),
|
|
2290
|
+
safeDownloadFilename: z.string().min(1).optional().nullable(),
|
|
2291
|
+
lifecycleState: z.enum([
|
|
2283
2292
|
"active",
|
|
2284
2293
|
"pending-delete",
|
|
2285
2294
|
"deleted"
|
|
2286
2295
|
]),
|
|
2287
|
-
originAssetId: z
|
|
2288
|
-
derivativeKind: z
|
|
2296
|
+
originAssetId: z.string().uuid().optional().nullable(),
|
|
2297
|
+
derivativeKind: z.enum([
|
|
2289
2298
|
"image-variant",
|
|
2290
2299
|
"video-poster",
|
|
2291
2300
|
"audio-waveform"
|
|
2292
2301
|
]).optional().nullable(),
|
|
2293
|
-
uploadSessionId: z
|
|
2302
|
+
uploadSessionId: z.string().uuid().optional().nullable()
|
|
2294
2303
|
});
|
|
2295
2304
|
const fileDomainPatchSchema = fileDomainSchema.partial();
|
|
2296
|
-
z
|
|
2297
|
-
id: z
|
|
2298
|
-
siteId: z
|
|
2299
|
-
storagePath: z
|
|
2300
|
-
storageBucket: z
|
|
2301
|
-
filename: z
|
|
2302
|
-
identifier: z
|
|
2303
|
-
mimeType: z
|
|
2304
|
-
width: z
|
|
2305
|
-
height: z
|
|
2306
|
-
bytes: z
|
|
2307
|
-
checksumSha256: z
|
|
2305
|
+
z.object({
|
|
2306
|
+
id: z.string().min(1).optional(),
|
|
2307
|
+
siteId: z.string().min(1),
|
|
2308
|
+
storagePath: z.string().min(1),
|
|
2309
|
+
storageBucket: z.string().min(1).default(DEFAULT_BUCKET),
|
|
2310
|
+
filename: z.string().min(1),
|
|
2311
|
+
identifier: z.string().min(1).optional().nullable(),
|
|
2312
|
+
mimeType: z.string().min(1),
|
|
2313
|
+
width: z.number().int().nonnegative().optional(),
|
|
2314
|
+
height: z.number().int().nonnegative().optional(),
|
|
2315
|
+
bytes: z.number().int().nonnegative(),
|
|
2316
|
+
checksumSha256: z.string().min(1).optional().nullable(),
|
|
2308
2317
|
fileDomain: fileDomainSchema,
|
|
2309
|
-
source: z
|
|
2310
|
-
title: z
|
|
2311
|
-
altText: z
|
|
2312
|
-
caption: z
|
|
2313
|
-
exif: z
|
|
2314
|
-
createdBy: z
|
|
2315
|
-
isThumbnail: z
|
|
2318
|
+
source: z.enum(["upload", "instagram"]).optional(),
|
|
2319
|
+
title: z.string().optional().nullable(),
|
|
2320
|
+
altText: z.string().optional().nullable(),
|
|
2321
|
+
caption: z.string().optional().nullable(),
|
|
2322
|
+
exif: z.record(z.string(), z.any()).optional().nullable(),
|
|
2323
|
+
createdBy: z.string().min(1).optional().nullable(),
|
|
2324
|
+
isThumbnail: z.boolean().optional()
|
|
2316
2325
|
});
|
|
2317
|
-
z
|
|
2318
|
-
filename: z
|
|
2319
|
-
identifier: z
|
|
2320
|
-
mimeType: z
|
|
2321
|
-
storagePath: z
|
|
2322
|
-
storageBucket: z
|
|
2323
|
-
width: z
|
|
2324
|
-
height: z
|
|
2325
|
-
bytes: z
|
|
2326
|
-
checksumSha256: z
|
|
2326
|
+
z.object({
|
|
2327
|
+
filename: z.string().optional(),
|
|
2328
|
+
identifier: z.string().nullable().optional(),
|
|
2329
|
+
mimeType: z.string().optional(),
|
|
2330
|
+
storagePath: z.string().optional(),
|
|
2331
|
+
storageBucket: z.string().optional(),
|
|
2332
|
+
width: z.number().int().nonnegative().nullable().optional(),
|
|
2333
|
+
height: z.number().int().nonnegative().nullable().optional(),
|
|
2334
|
+
bytes: z.number().int().nonnegative().nullable().optional(),
|
|
2335
|
+
checksumSha256: z.string().nullable().optional(),
|
|
2327
2336
|
fileDomain: fileDomainPatchSchema.optional(),
|
|
2328
|
-
source: z
|
|
2329
|
-
title: z
|
|
2330
|
-
altText: z
|
|
2331
|
-
caption: z
|
|
2332
|
-
exif: z
|
|
2333
|
-
durationSeconds: z
|
|
2334
|
-
thumbnailAssetId: z
|
|
2335
|
-
isThumbnail: z
|
|
2337
|
+
source: z.enum(["upload", "instagram"]).optional(),
|
|
2338
|
+
title: z.string().nullable().optional(),
|
|
2339
|
+
altText: z.string().nullable().optional(),
|
|
2340
|
+
caption: z.string().nullable().optional(),
|
|
2341
|
+
exif: z.record(z.string(), z.any()).nullable().optional(),
|
|
2342
|
+
durationSeconds: z.number().positive().nullable().optional(),
|
|
2343
|
+
thumbnailAssetId: z.string().uuid().nullable().optional(),
|
|
2344
|
+
isThumbnail: z.boolean().optional()
|
|
2336
2345
|
}).refine((value) => Object.keys(value).length > 0, { message: "Update payload must include at least one field" });
|
|
2337
|
-
z
|
|
2338
|
-
siteId: z
|
|
2339
|
-
limit: z
|
|
2340
|
-
offset: z
|
|
2341
|
-
search: z
|
|
2342
|
-
orderBy: z
|
|
2343
|
-
orderDirection: z
|
|
2344
|
-
labels: z
|
|
2345
|
-
mediaKinds: z
|
|
2346
|
-
fileFilter: z
|
|
2347
|
-
libraryScope: z
|
|
2346
|
+
z.object({
|
|
2347
|
+
siteId: z.string().min(1),
|
|
2348
|
+
limit: z.number().int().min(1).max(MAX_LIMIT).optional(),
|
|
2349
|
+
offset: z.number().int().min(0).optional(),
|
|
2350
|
+
search: z.string().optional(),
|
|
2351
|
+
orderBy: z.enum(["created_at", "filename"]).optional(),
|
|
2352
|
+
orderDirection: z.enum(["asc", "desc"]).optional(),
|
|
2353
|
+
labels: z.array(z.string()).optional(),
|
|
2354
|
+
mediaKinds: z.array(z.enum(MEDIA_KINDS)).optional(),
|
|
2355
|
+
fileFilter: z.enum(MEDIA_ASSET_FILE_FILTERS).optional(),
|
|
2356
|
+
libraryScope: z.enum(MEDIA_ASSET_LIBRARY_SCOPES).optional()
|
|
2348
2357
|
});
|
|
2349
|
-
const searchMatchRowSchema = z
|
|
2350
|
-
id: z
|
|
2351
|
-
score: z
|
|
2358
|
+
const searchMatchRowSchema = z.object({
|
|
2359
|
+
id: z.string(),
|
|
2360
|
+
score: z.number()
|
|
2352
2361
|
});
|
|
2353
|
-
z
|
|
2354
|
-
const mediaLabelRowSchema = z
|
|
2355
|
-
id: z
|
|
2356
|
-
slug: z
|
|
2357
|
-
name: z
|
|
2358
|
-
created_at: z
|
|
2359
|
-
updated_at: z
|
|
2362
|
+
z.array(searchMatchRowSchema);
|
|
2363
|
+
const mediaLabelRowSchema = z.object({
|
|
2364
|
+
id: z.number(),
|
|
2365
|
+
slug: z.string(),
|
|
2366
|
+
name: z.string(),
|
|
2367
|
+
created_at: z.string(),
|
|
2368
|
+
updated_at: z.string()
|
|
2360
2369
|
});
|
|
2361
|
-
z
|
|
2370
|
+
z.array(mediaLabelRowSchema);
|
|
2362
2371
|
//#endregion
|
|
2363
2372
|
//#region ../media-storage-api/dist/index.mjs
|
|
2364
2373
|
const DEFAULT_MESSAGES = {
|
|
@@ -3662,6 +3671,40 @@ const previewWidgetOverrides = {
|
|
|
3662
3671
|
siteOptionPicker: SiteOptionPickerField
|
|
3663
3672
|
};
|
|
3664
3673
|
//#endregion
|
|
3674
|
+
//#region ../preview-next/src/client/preview/PreviewBlockCustomizeSelectionContext.tsx
|
|
3675
|
+
const PreviewBlockCustomizeSelectionContext = createContext(null);
|
|
3676
|
+
function PreviewBlockCustomizeSelectionProvider({ children }) {
|
|
3677
|
+
const uiStore = useEditorUiStoreInstance();
|
|
3678
|
+
const previewInspection = useUISelector(uiStore, (state) => state.previewInspection);
|
|
3679
|
+
const selection = useMemo(() => previewInspection.kind === "block-customize" ? {
|
|
3680
|
+
kind: "selected",
|
|
3681
|
+
blockId: previewInspection.blockId,
|
|
3682
|
+
requestId: previewInspection.requestId
|
|
3683
|
+
} : { kind: "none" }, [previewInspection]);
|
|
3684
|
+
const inspectBlock = useCallback((blockId) => {
|
|
3685
|
+
uiStore.getState().inspectBlock(blockId);
|
|
3686
|
+
}, [uiStore]);
|
|
3687
|
+
const clearInspection = useCallback(() => {
|
|
3688
|
+
uiStore.getState().clearPreviewInspection();
|
|
3689
|
+
}, [uiStore]);
|
|
3690
|
+
const value = useMemo(() => ({
|
|
3691
|
+
selection,
|
|
3692
|
+
inspectBlock,
|
|
3693
|
+
clearInspection
|
|
3694
|
+
}), [
|
|
3695
|
+
clearInspection,
|
|
3696
|
+
inspectBlock,
|
|
3697
|
+
selection
|
|
3698
|
+
]);
|
|
3699
|
+
return /* @__PURE__ */ jsx(PreviewBlockCustomizeSelectionContext.Provider, {
|
|
3700
|
+
value,
|
|
3701
|
+
children
|
|
3702
|
+
});
|
|
3703
|
+
}
|
|
3704
|
+
function usePreviewBlockCustomizeSelectionOptional() {
|
|
3705
|
+
return useContext(PreviewBlockCustomizeSelectionContext);
|
|
3706
|
+
}
|
|
3707
|
+
//#endregion
|
|
3665
3708
|
//#region ../preview-next/src/client/blocks/previewCustomizeControlPlan.ts
|
|
3666
3709
|
const ABSOLUTE_MAX_QUICK_FIELDS = 3;
|
|
3667
3710
|
function createPreviewCustomizeControlPlan({ fields, content, quickFieldPriority = [], maxQuickFields = ABSOLUTE_MAX_QUICK_FIELDS }) {
|
|
@@ -3821,53 +3864,6 @@ function resolveBlockManifest(blockKind, sdkConfig) {
|
|
|
3821
3864
|
return getBlockManifestFromSdkConfig(blockKind, sdkConfig) ?? getBlockDefinition(blockKind)?.manifest ?? null;
|
|
3822
3865
|
}
|
|
3823
3866
|
//#endregion
|
|
3824
|
-
//#region ../preview-next/src/client/preview/PreviewBlockCustomizeSelectionContext.tsx
|
|
3825
|
-
const PreviewBlockCustomizeSelectionContext = createContext(null);
|
|
3826
|
-
function PreviewBlockCustomizeSelectionProvider({ children }) {
|
|
3827
|
-
const uiStore = useEditorUiStoreInstance();
|
|
3828
|
-
const previewInspection = useUISelector(uiStore, (state) => state.previewInspection);
|
|
3829
|
-
const selection = useMemo(() => previewInspection.kind === "block-customize" ? {
|
|
3830
|
-
kind: "selected",
|
|
3831
|
-
blockId: previewInspection.blockId,
|
|
3832
|
-
requestId: previewInspection.requestId
|
|
3833
|
-
} : { kind: "none" }, [previewInspection]);
|
|
3834
|
-
const inspectBlock = useCallback((blockId) => {
|
|
3835
|
-
uiStore.getState().inspectBlock(blockId);
|
|
3836
|
-
}, [uiStore]);
|
|
3837
|
-
const clearInspection = useCallback(() => {
|
|
3838
|
-
uiStore.getState().clearPreviewInspection();
|
|
3839
|
-
}, [uiStore]);
|
|
3840
|
-
const value = useMemo(() => ({
|
|
3841
|
-
selection,
|
|
3842
|
-
inspectBlock,
|
|
3843
|
-
clearInspection
|
|
3844
|
-
}), [
|
|
3845
|
-
clearInspection,
|
|
3846
|
-
inspectBlock,
|
|
3847
|
-
selection
|
|
3848
|
-
]);
|
|
3849
|
-
return /* @__PURE__ */ jsx(PreviewBlockCustomizeSelectionContext.Provider, {
|
|
3850
|
-
value,
|
|
3851
|
-
children
|
|
3852
|
-
});
|
|
3853
|
-
}
|
|
3854
|
-
function usePreviewBlockCustomizeSelectionOptional() {
|
|
3855
|
-
return useContext(PreviewBlockCustomizeSelectionContext);
|
|
3856
|
-
}
|
|
3857
|
-
//#endregion
|
|
3858
|
-
//#region ../preview-next/src/client/preview/siteStyleAccess.ts
|
|
3859
|
-
function resolveSiteStyleAccess(session) {
|
|
3860
|
-
if (session?.kind === "userSession" && session.canManage) return { kind: "apply-allowed" };
|
|
3861
|
-
if (session?.kind === "userSession" && session.canEdit) return { kind: "preview-only" };
|
|
3862
|
-
return { kind: "hidden" };
|
|
3863
|
-
}
|
|
3864
|
-
function canInspectSiteStyle(access) {
|
|
3865
|
-
return access.kind !== "hidden";
|
|
3866
|
-
}
|
|
3867
|
-
function canApplySiteStyle(access) {
|
|
3868
|
-
return access.kind === "apply-allowed";
|
|
3869
|
-
}
|
|
3870
|
-
//#endregion
|
|
3871
3867
|
//#region ../preview-next/src/client/preview/previewChromeSurfacePolicy.ts
|
|
3872
3868
|
const PREVIEW_CHROME_SURFACE_POLICIES = {
|
|
3873
3869
|
core: {
|
|
@@ -4071,6 +4067,15 @@ function buildPreviewDashboardSetupUrl(dashboardBaseUrl, handoff) {
|
|
|
4071
4067
|
return new URL(handoff.dashboardPath, dashboardBaseUrl).toString();
|
|
4072
4068
|
}
|
|
4073
4069
|
//#endregion
|
|
4070
|
+
//#region ../preview-next/src/client/preview/siteStyleAccess.ts
|
|
4071
|
+
function resolveSiteStyleAccess(session) {
|
|
4072
|
+
if (session?.kind === "userSession" && session.canEdit) return { kind: "apply-allowed" };
|
|
4073
|
+
return { kind: "hidden" };
|
|
4074
|
+
}
|
|
4075
|
+
function canInspectSiteStyle(access) {
|
|
4076
|
+
return access.kind === "apply-allowed";
|
|
4077
|
+
}
|
|
4078
|
+
//#endregion
|
|
4074
4079
|
//#region ../preview-next/src/client/preview/previewChromeSurface.ts
|
|
4075
4080
|
const PREVIEW_CHROME_THEME_CLASS_NAME = "builder-dashboard-chrome-theme";
|
|
4076
4081
|
const PREVIEW_CHROME_PORTAL_CLASS_NAME = "builder-editor-chrome";
|
|
@@ -4100,6 +4105,37 @@ function applyPreviewChromeSurfaceToElement(element, surface, options) {
|
|
|
4100
4105
|
element.removeAttribute(SURFACE_DOCUMENT_DATA_ATTRIBUTE);
|
|
4101
4106
|
}
|
|
4102
4107
|
//#endregion
|
|
4108
|
+
//#region ../blocks/src/system/customize/serializeBackgroundOverride.ts
|
|
4109
|
+
function serializeBackgroundOverride(override) {
|
|
4110
|
+
switch (override.kind) {
|
|
4111
|
+
case "default": return null;
|
|
4112
|
+
case "color": {
|
|
4113
|
+
const foreground = foregroundTokenForBackgroundAppearanceColorToken(override.token);
|
|
4114
|
+
return {
|
|
4115
|
+
contentOwner: pageDesignEditorBackgroundOverrideOwner,
|
|
4116
|
+
type: "color",
|
|
4117
|
+
color: override.token,
|
|
4118
|
+
textColor: foreground,
|
|
4119
|
+
headingColor: foreground
|
|
4120
|
+
};
|
|
4121
|
+
}
|
|
4122
|
+
case "gradient": return {
|
|
4123
|
+
contentOwner: pageDesignEditorBackgroundOverrideOwner,
|
|
4124
|
+
type: "gradient",
|
|
4125
|
+
gradientPresetId: override.gradientId,
|
|
4126
|
+
...getGradientPreset(override.gradientId).foreground
|
|
4127
|
+
};
|
|
4128
|
+
case "image": return {
|
|
4129
|
+
contentOwner: pageDesignEditorBackgroundOverrideOwner,
|
|
4130
|
+
type: "image",
|
|
4131
|
+
image: {
|
|
4132
|
+
type: "image",
|
|
4133
|
+
assetId: override.mediaId
|
|
4134
|
+
}
|
|
4135
|
+
};
|
|
4136
|
+
}
|
|
4137
|
+
}
|
|
4138
|
+
//#endregion
|
|
4103
4139
|
//#region ../blocks/src/system/customize/backgrounds.ts
|
|
4104
4140
|
const BACKGROUND_MODES = [
|
|
4105
4141
|
"default",
|
|
@@ -4130,9 +4166,6 @@ function parseBackgroundColorToken(value) {
|
|
|
4130
4166
|
if (!token) return null;
|
|
4131
4167
|
return token ? token : null;
|
|
4132
4168
|
}
|
|
4133
|
-
function foregroundTokenForBackgroundColorToken(token) {
|
|
4134
|
-
return foregroundTokenForBackgroundAppearanceColorToken(token);
|
|
4135
|
-
}
|
|
4136
4169
|
function dedupeBackgroundColorTokensByPalette(tokens, palette) {
|
|
4137
4170
|
const seen = /* @__PURE__ */ new Set();
|
|
4138
4171
|
return tokens.filter((token) => {
|
|
@@ -4258,9 +4291,11 @@ function parseBackgroundOverrideFromContent(content) {
|
|
|
4258
4291
|
function parseCanonicalSectionBackground(content) {
|
|
4259
4292
|
const background = (isRecord$9(content._sectionStyles) ? content._sectionStyles : null)?.background;
|
|
4260
4293
|
if (background === null || background === void 0) return { kind: "none" };
|
|
4261
|
-
|
|
4294
|
+
const canonical = parseBackgroundContent(background);
|
|
4295
|
+
if (!canonical) return { kind: "none" };
|
|
4296
|
+
if (canonical.contentOwner !== "page-design-editor") return {
|
|
4262
4297
|
kind: "block-authored",
|
|
4263
|
-
background:
|
|
4298
|
+
background: canonical
|
|
4264
4299
|
};
|
|
4265
4300
|
return {
|
|
4266
4301
|
kind: "page-design-override",
|
|
@@ -4273,7 +4308,7 @@ function parseBackgroundOverride(value) {
|
|
|
4273
4308
|
override: DEFAULT_BACKGROUND_OVERRIDE
|
|
4274
4309
|
};
|
|
4275
4310
|
if (!isRecord$9(value)) return {
|
|
4276
|
-
kind: "
|
|
4311
|
+
kind: "unsupported",
|
|
4277
4312
|
reason: "unsupported-shape",
|
|
4278
4313
|
background: {}
|
|
4279
4314
|
};
|
|
@@ -4283,14 +4318,14 @@ function parseBackgroundOverride(value) {
|
|
|
4283
4318
|
};
|
|
4284
4319
|
switch (typeof value.type === "string" ? value.type.trim() : null) {
|
|
4285
4320
|
case null: return {
|
|
4286
|
-
kind: "
|
|
4321
|
+
kind: "unsupported",
|
|
4287
4322
|
reason: "unsupported-mode",
|
|
4288
4323
|
background: value
|
|
4289
4324
|
};
|
|
4290
4325
|
case "color": {
|
|
4291
4326
|
const token = parseBackgroundColorToken(value.color);
|
|
4292
4327
|
if (!token) return {
|
|
4293
|
-
kind: "
|
|
4328
|
+
kind: "unsupported",
|
|
4294
4329
|
reason: "invalid-color-token",
|
|
4295
4330
|
background: value
|
|
4296
4331
|
};
|
|
@@ -4304,18 +4339,18 @@ function parseBackgroundOverride(value) {
|
|
|
4304
4339
|
}
|
|
4305
4340
|
case "gradient": {
|
|
4306
4341
|
if (typeof value.gradient === "string" && value.gradient.trim()) return {
|
|
4307
|
-
kind: "
|
|
4342
|
+
kind: "unsupported",
|
|
4308
4343
|
reason: "arbitrary-gradient-css",
|
|
4309
4344
|
background: value
|
|
4310
4345
|
};
|
|
4311
4346
|
if (value.gradientPresetId === void 0 || value.gradientPresetId === null) return {
|
|
4312
|
-
kind: "
|
|
4347
|
+
kind: "unsupported",
|
|
4313
4348
|
reason: "missing-gradient-preset-id",
|
|
4314
4349
|
background: value
|
|
4315
4350
|
};
|
|
4316
4351
|
const gradientId = parseGradientPresetId(value.gradientPresetId);
|
|
4317
4352
|
if (!gradientId) return {
|
|
4318
|
-
kind: "
|
|
4353
|
+
kind: "unsupported",
|
|
4319
4354
|
reason: "invalid-gradient-preset-id",
|
|
4320
4355
|
background: value
|
|
4321
4356
|
};
|
|
@@ -4330,12 +4365,12 @@ function parseBackgroundOverride(value) {
|
|
|
4330
4365
|
case "image": {
|
|
4331
4366
|
const mediaIdResult = parseImageMediaAssetId(value.image);
|
|
4332
4367
|
if (mediaIdResult.kind === "missing") return {
|
|
4333
|
-
kind: "
|
|
4368
|
+
kind: "unsupported",
|
|
4334
4369
|
reason: "missing-image-media-id",
|
|
4335
4370
|
background: value
|
|
4336
4371
|
};
|
|
4337
4372
|
if (mediaIdResult.kind === "invalid") return {
|
|
4338
|
-
kind: "
|
|
4373
|
+
kind: "unsupported",
|
|
4339
4374
|
reason: "invalid-image-media-id",
|
|
4340
4375
|
background: value
|
|
4341
4376
|
};
|
|
@@ -4348,49 +4383,17 @@ function parseBackgroundOverride(value) {
|
|
|
4348
4383
|
};
|
|
4349
4384
|
}
|
|
4350
4385
|
case "video": return {
|
|
4351
|
-
kind: "
|
|
4386
|
+
kind: "unsupported",
|
|
4352
4387
|
reason: "video-background",
|
|
4353
4388
|
background: value
|
|
4354
4389
|
};
|
|
4355
4390
|
default: return {
|
|
4356
|
-
kind: "
|
|
4391
|
+
kind: "unsupported",
|
|
4357
4392
|
reason: "unsupported-mode",
|
|
4358
4393
|
background: value
|
|
4359
4394
|
};
|
|
4360
4395
|
}
|
|
4361
4396
|
}
|
|
4362
|
-
function serializeBackgroundOverride(override) {
|
|
4363
|
-
switch (override.kind) {
|
|
4364
|
-
case "default": return null;
|
|
4365
|
-
case "color": {
|
|
4366
|
-
const foregroundToken = foregroundTokenForBackgroundColorToken(override.token);
|
|
4367
|
-
return {
|
|
4368
|
-
contentOwner: pageDesignEditorBackgroundOverrideOwner,
|
|
4369
|
-
type: "color",
|
|
4370
|
-
color: override.token,
|
|
4371
|
-
textColor: foregroundToken,
|
|
4372
|
-
headingColor: foregroundToken
|
|
4373
|
-
};
|
|
4374
|
-
}
|
|
4375
|
-
case "gradient": {
|
|
4376
|
-
const foreground = getGradientPreset(override.gradientId).foreground;
|
|
4377
|
-
return {
|
|
4378
|
-
contentOwner: pageDesignEditorBackgroundOverrideOwner,
|
|
4379
|
-
type: "gradient",
|
|
4380
|
-
gradientPresetId: override.gradientId,
|
|
4381
|
-
...foreground
|
|
4382
|
-
};
|
|
4383
|
-
}
|
|
4384
|
-
case "image": return {
|
|
4385
|
-
contentOwner: pageDesignEditorBackgroundOverrideOwner,
|
|
4386
|
-
type: "image",
|
|
4387
|
-
image: {
|
|
4388
|
-
type: "image",
|
|
4389
|
-
assetId: override.mediaId
|
|
4390
|
-
}
|
|
4391
|
-
};
|
|
4392
|
-
}
|
|
4393
|
-
}
|
|
4394
4397
|
function applyBackgroundOverrideContentPatch(content, override) {
|
|
4395
4398
|
const sectionStyles = isRecord$9(content._sectionStyles) ? content._sectionStyles : {};
|
|
4396
4399
|
const serialized = serializeBackgroundOverride(override);
|
|
@@ -4438,7 +4441,7 @@ function planBackgroundTransition(current, capability, action) {
|
|
|
4438
4441
|
function planBackgroundOverride(current, capability, override) {
|
|
4439
4442
|
if (current.kind !== "supported") return {
|
|
4440
4443
|
kind: "blocked",
|
|
4441
|
-
reason: "
|
|
4444
|
+
reason: "unsupported-current-background"
|
|
4442
4445
|
};
|
|
4443
4446
|
const mode = backgroundModeForOverride(override);
|
|
4444
4447
|
if (!enabledBackgroundModes(capability).includes(mode)) return {
|
|
@@ -7587,19 +7590,19 @@ function SiteChromeCustomizeButton({ surface, containerClassName = "pointer-even
|
|
|
7587
7590
|
const background = surfaceState.kind === "available" ? surfaceState.background : null;
|
|
7588
7591
|
const cycleableOptionCount = useMemo(() => {
|
|
7589
7592
|
if (surfaceState.kind !== "available") return 0;
|
|
7590
|
-
return surfaceState.options.
|
|
7593
|
+
return surfaceState.options.length;
|
|
7591
7594
|
}, [surfaceState]);
|
|
7592
7595
|
const cycleableLayoutOptionCount = useMemo(() => {
|
|
7593
7596
|
if (surfaceState.kind !== "available" || surfaceState.surface !== "header") return 0;
|
|
7594
|
-
return surfaceState.layoutOptions.
|
|
7597
|
+
return surfaceState.layoutOptions.length;
|
|
7595
7598
|
}, [surfaceState]);
|
|
7596
7599
|
const controlPlan = useMemo(() => {
|
|
7597
7600
|
if (surfaceState.kind !== "available" || !background) return { cycleRows: [] };
|
|
7598
7601
|
return { cycleRows: [...surfaceState.surface === "header" ? [{
|
|
7599
7602
|
label: "Layout",
|
|
7600
7603
|
valueLabel: surfaceState.currentLayoutLabel,
|
|
7601
|
-
previousLabel: `Previous ${surface}
|
|
7602
|
-
nextLabel: `Next ${surface}
|
|
7604
|
+
previousLabel: `Previous ${surface} layout`,
|
|
7605
|
+
nextLabel: `Next ${surface} layout`,
|
|
7603
7606
|
availability: cycleAvailabilityFromFlags({
|
|
7604
7607
|
canCycle: cycleableLayoutOptionCount > 1,
|
|
7605
7608
|
applyAllowed: surfaceState.applyAllowed
|
|
@@ -7607,16 +7610,16 @@ function SiteChromeCustomizeButton({ surface, containerClassName = "pointer-even
|
|
|
7607
7610
|
onPrevious: () => customize?.cycleHeaderLayout("prev"),
|
|
7608
7611
|
onNext: () => customize?.cycleHeaderLayout("next")
|
|
7609
7612
|
}] : [], {
|
|
7610
|
-
label: surfaceState.surface === "footer" ? "Links" : "
|
|
7613
|
+
label: surfaceState.surface === "footer" ? "Links" : "Style",
|
|
7611
7614
|
valueLabel: surfaceState.currentLabel,
|
|
7612
|
-
previousLabel: surfaceState.surface === "footer" ? "Previous footer link treatment" : "Previous header
|
|
7613
|
-
nextLabel: surfaceState.surface === "footer" ? "Next footer link treatment" : "Next header
|
|
7615
|
+
previousLabel: surfaceState.surface === "footer" ? "Previous footer link treatment" : "Previous header style",
|
|
7616
|
+
nextLabel: surfaceState.surface === "footer" ? "Next footer link treatment" : "Next header style",
|
|
7614
7617
|
availability: cycleAvailabilityFromFlags({
|
|
7615
7618
|
canCycle: cycleableOptionCount > 1,
|
|
7616
7619
|
applyAllowed: surfaceState.applyAllowed
|
|
7617
7620
|
}),
|
|
7618
|
-
onPrevious: () => customize?.
|
|
7619
|
-
onNext: () => customize?.
|
|
7621
|
+
onPrevious: () => customize?.cycleChromeSelection(surface, "prev"),
|
|
7622
|
+
onNext: () => customize?.cycleChromeSelection(surface, "next")
|
|
7620
7623
|
}] };
|
|
7621
7624
|
}, [
|
|
7622
7625
|
customize,
|
|
@@ -8268,10 +8271,10 @@ function resolveShellThemeRoles(props) {
|
|
|
8268
8271
|
}
|
|
8269
8272
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
8270
8273
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
8271
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
8274
|
+
return { default: (await import("./PreviewEditorSidebar-DiEpbOdw.mjs")).PreviewEditorSidebar };
|
|
8272
8275
|
});
|
|
8273
8276
|
const PreviewEditorUI = React.lazy(async () => {
|
|
8274
|
-
return { default: (await import("./PreviewEditorUI-
|
|
8277
|
+
return { default: (await import("./PreviewEditorUI-C6MvxnIa.mjs")).PreviewEditorUI };
|
|
8275
8278
|
});
|
|
8276
8279
|
const previewPaneContainmentStyle = {
|
|
8277
8280
|
contain: "layout paint",
|
|
@@ -8295,12 +8298,10 @@ function renderShellProviders(input) {
|
|
|
8295
8298
|
selectionVersion: props.themeSelectionVersion ?? null,
|
|
8296
8299
|
selectionUpdatedAt: props.themeSelectionUpdatedAt ?? null,
|
|
8297
8300
|
buttonStyleSelection: props.themeSelectionButtonStyleSelection ?? null,
|
|
8298
|
-
|
|
8299
|
-
headerStyleId: props.themeSelectionHeaderStyleId ?? null,
|
|
8300
|
-
headerLookId: props.themeSelectionHeaderLookId ?? null,
|
|
8301
|
+
headerSelection: props.themeSelectionHeaderSelection ?? null,
|
|
8301
8302
|
footerLookId: props.themeSelectionFooterLookId ?? null
|
|
8302
8303
|
},
|
|
8303
|
-
|
|
8304
|
+
headerLogoContext: props.themeSelectionHeaderLogo,
|
|
8304
8305
|
siteStyleAccess: input.siteStyleAccess,
|
|
8305
8306
|
canOpenDesignEditor: props.entryData == null && props.pageId !== null && canInspectSiteStyle(input.siteStyleAccess),
|
|
8306
8307
|
children: input.content
|
|
@@ -8337,7 +8338,7 @@ function PreviewDocumentContent(input) {
|
|
|
8337
8338
|
}
|
|
8338
8339
|
function PreviewShellLayout(props) {
|
|
8339
8340
|
const themeRoles = resolveShellThemeRoles(props);
|
|
8340
|
-
const { children, rendering, surfaceId, siteId, dashboardBaseUrl = null, pageId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, apiClient, bearerToken, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null,
|
|
8341
|
+
const { children, rendering, surfaceId, siteId, dashboardBaseUrl = null, pageId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, apiClient, bearerToken, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null, themeSelectionHeaderSelection = null, themeSelectionFooterLookId = null, themeSelectionHeaderLogo, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, bookingOfferingPresets, themeRuntime = defaultPreviewThemeRuntime, siteStyleAccess = { kind: "hidden" }, onFooterSaved } = props;
|
|
8341
8342
|
const layout = useOptionalPreviewLayout();
|
|
8342
8343
|
const headerNode = layout?.headerNode ?? null;
|
|
8343
8344
|
const bannerNode = layout?.bannerNode ?? null;
|
|
@@ -8513,11 +8514,9 @@ function PreviewShellLayout(props) {
|
|
|
8513
8514
|
themeSelectionVersion,
|
|
8514
8515
|
themeSelectionUpdatedAt,
|
|
8515
8516
|
themeSelectionButtonStyleSelection,
|
|
8516
|
-
|
|
8517
|
-
themeSelectionHeaderStyleId,
|
|
8518
|
-
themeSelectionHeaderLookId,
|
|
8517
|
+
themeSelectionHeaderSelection,
|
|
8519
8518
|
themeSelectionFooterLookId,
|
|
8520
|
-
|
|
8519
|
+
themeSelectionHeaderLogo,
|
|
8521
8520
|
sdkConfig: sdkConfig ?? null,
|
|
8522
8521
|
activeTab: sidebarTab,
|
|
8523
8522
|
onTabChange: (tab) => {
|
|
@@ -8604,11 +8603,9 @@ function resolveShellLayoutProps(input) {
|
|
|
8604
8603
|
themeSelectionVersion: props.themeSelectionVersion ?? null,
|
|
8605
8604
|
themeSelectionUpdatedAt: props.themeSelectionUpdatedAt ?? null,
|
|
8606
8605
|
themeSelectionButtonStyleSelection: props.themeSelectionButtonStyleSelection ?? null,
|
|
8607
|
-
|
|
8608
|
-
themeSelectionHeaderStyleId: props.themeSelectionHeaderStyleId ?? null,
|
|
8609
|
-
themeSelectionHeaderLookId: props.themeSelectionHeaderLookId ?? null,
|
|
8606
|
+
themeSelectionHeaderSelection: props.themeSelectionHeaderSelection ?? null,
|
|
8610
8607
|
themeSelectionFooterLookId: props.themeSelectionFooterLookId ?? null,
|
|
8611
|
-
|
|
8608
|
+
themeSelectionHeaderLogo: props.themeSelectionHeaderLogo,
|
|
8612
8609
|
isSiteLaunched: props.isSiteLaunched,
|
|
8613
8610
|
maintenanceModeEnabled: props.maintenanceModeEnabled,
|
|
8614
8611
|
entrySubrouteContext: props.entrySubrouteContext,
|
|
@@ -8635,7 +8632,7 @@ function renderShellLayout(input) {
|
|
|
8635
8632
|
});
|
|
8636
8633
|
}
|
|
8637
8634
|
function PreviewShell(props) {
|
|
8638
|
-
const { children, apiBaseUrl, blockApiConfig, siteId, siteSlug, editableId, previewSession, previewToken, dashboardBaseUrl = null, surfaceId, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null,
|
|
8635
|
+
const { children, apiBaseUrl, blockApiConfig, siteId, siteSlug, editableId, previewSession, previewToken, dashboardBaseUrl = null, surfaceId, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null, themeSelectionHeaderSelection = null, themeSelectionFooterLookId = null, themeSelectionHeaderLogo, pageId, routeId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, initialStatus, initialBlocks, pageMetadata, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, supabaseUrl, designEditorEligibility, hideSiteStyleConfigurator = false, baseFetch, onFooterSaved } = props;
|
|
8639
8636
|
const apiClient = useMemo(() => createBearerAPIClient(previewToken, apiBaseUrl), [previewToken, apiBaseUrl]);
|
|
8640
8637
|
const { designEditorEnabled, siteStyleAccess } = resolveShellAccess({
|
|
8641
8638
|
previewSession,
|
|
@@ -11206,4 +11203,4 @@ function deriveDashboardBaseUrlFromApiBaseUrl(apiBaseUrl) {
|
|
|
11206
11203
|
}
|
|
11207
11204
|
}
|
|
11208
11205
|
//#endregion
|
|
11209
|
-
export { FixedBottomSurface as
|
|
11206
|
+
export { FixedBottomSurface as S, PreviewFormProvider as _, usePreviewPageDesignEditorState as a, generateFontFaceCss as b, applyPreviewChromeSurfaceToElement as c, buildPreviewDashboardSetupUrl as d, resolvePreviewDashboardSetupHandoff as f, usePreviewBlockCustomizeSelectionOptional as g, useBlockCustomizeControls as h, PreviewShellLayout as i, resolvePreviewChromeSurface as l, resolvePreviewSidebarChromeModel as m, SdkPreviewModeRuntime_exports as n, PREVIEW_CHROME_PORTAL_CLASS_NAME as o, resolvePreviewEditorGuidanceModel as p, PreviewShell as r, PREVIEW_CHROME_THEME_CLASS_NAME as s, SdkPreviewModeRuntime as t, canInspectSiteStyle as u, previewWidgetOverrides as v, getSiteFontsStorageUrl as x, buildFontPreviewUrl as y };
|