@riverbankcms/sdk 0.125.0 → 0.127.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 +3 -1
- package/dist/{PreviewEditorSidebar-BezDOtQ7.mjs → PreviewEditorSidebar-BXtfF7tp.mjs} +122 -301
- package/dist/{PreviewEditorUI-CgSqmfo2.mjs → PreviewEditorUI-Dou73Q0K.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BH-3-jSj.mjs → PreviewQueryProvider-DgFDIwvK.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-Co3AHfj0.mjs → SdkPreviewModeRuntime-B0HPXr-l.mjs} +141 -63
- package/dist/{SiteChromeCustomizeContext-BHF-KANn.mjs → SiteChromeCustomizeContext-DZiDBAYu.mjs} +5330 -5841
- package/dist/_dts/ai/src/contracts/proposals.d.ts +1552 -202
- package/dist/_dts/api/src/common/envelope.d.ts +1 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +1 -7
- package/dist/_dts/api/src/endpoints.d.ts +0 -7
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +42 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +11 -9
- package/dist/_dts/api/src/siteOperations.d.ts +18 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +1 -14
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +2 -1
- package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +1 -0
- package/dist/_dts/blocks/src/index.d.ts +3 -2
- package/dist/_dts/blocks/src/lib/media.d.ts +267 -0
- package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +0 -13
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +15 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/mergeResolveImageUrlContexts.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +2 -2
- package/dist/_dts/content-editor/src/ui/blockValidationManifestRegistry.d.ts +17 -0
- package/dist/_dts/content-editor/src/ui/blockValidationView.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +4 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +322 -171
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +4 -0
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +26 -0
- package/dist/_dts/editor-blocks/src/widgets/rich-text/imageInsert.d.ts +3 -3
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -2
- package/dist/_dts/media-editor/src/context.d.ts +1 -2
- package/dist/_dts/media-editor/src/index.d.ts +3 -1
- package/dist/_dts/media-editor/src/mediaSelection.d.ts +32 -0
- package/dist/_dts/media-editor/src/types.d.ts +3 -1
- package/dist/_dts/media-editor/src/useMediaSelection.d.ts +26 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/HeaderMenuControls.d.ts +12 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +1 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +13 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +7 -2
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +6 -60
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -13
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +8 -100
- package/dist/_dts/preview-next/src/client/preview/headerInteractionPaletteSurfaceState.d.ts +8 -0
- package/dist/_dts/preview-next/src/client/preview/previewThemeRoles.d.ts +15 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeCustomizeTypes.d.ts +54 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +13 -3
- package/dist/_dts/preview-next/src/client/preview/siteChromeNavQuickControlHistory.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +6 -3
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +1 -4
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -15
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +11 -21
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +12 -0
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +6 -0
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +5 -0
- package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +17 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +5 -10
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +24 -0
- package/dist/_dts/sdk/src/client/management/http.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +3 -28
- package/dist/_dts/sdk/src/config/index.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -20
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commandContract.d.ts +33 -5
- package/dist/_dts/site-commands/src/commandDomain.d.ts +2 -2
- package/dist/_dts/site-commands/src/commands.d.ts +38 -9
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +28 -1
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +4 -4
- package/dist/_dts/theme-core/src/buttons/effects/presets/background.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +0 -18
- package/dist/_dts/theme-core/src/buttons/types.d.ts +1 -3
- package/dist/_dts/theme-core/src/header/containerSchema.d.ts +20 -0
- package/dist/_dts/theme-core/src/header/generateHeaderCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +14 -0
- package/dist/_dts/theme-core/src/header/legacyNavLinkStyle.d.ts +3 -0
- package/dist/_dts/theme-core/src/header/paintTargets.d.ts +25 -0
- package/dist/_dts/theme-core/src/header/scrollTreatment.d.ts +11 -0
- package/dist/_dts/theme-core/src/header/surfaceRules.d.ts +9 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +15 -0
- package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/concretePalette.d.ts +20 -0
- package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -17
- package/dist/_dts/theme-core/src/palette/index.d.ts +1 -6
- package/dist/_dts/theme-core/src/palette/schema.d.ts +39 -0
- package/dist/_dts/theme-core/src/schema.d.ts +105 -45
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +3 -51
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +4 -11
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +3 -51
- package/dist/_dts/theme-core/src/site-styles/headerInteractionPalette.d.ts +32 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +19 -106
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +22 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/lookOptionGroups.d.ts +24 -0
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +1 -2
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +4 -22
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorOptions.d.ts +21 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +5 -7
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +5 -6
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +4 -1
- package/dist/cli/index.mjs +1583 -1601
- package/dist/cli/init-docs/content/cli-reference.md +6 -3
- package/dist/cli/init-docs/content/content-management.md +24 -13
- package/dist/client/{DiscountCodeDisclosure-CyPpekBp.mjs → DiscountCodeDisclosure-BDFRp8Y7.mjs} +1 -1
- package/dist/client/{EventCombined.client-zywit-60.mjs → EventCombined.client-DJgF1_lf.mjs} +2 -2
- package/dist/client/{EventListing.client-J2nLhkKT.mjs → EventListing.client-CnWGNjOr.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CSubXWt6.mjs → LeafletStaticMap-BISs9Bl7.mjs} +1 -1
- package/dist/client/{MagicLinkForm-DDLIfiq9.mjs → MagicLinkForm-b5E_HoG9.mjs} +1 -1
- package/dist/client/{StepIndicator-DE8EvHIp.mjs → StepIndicator-D8gVYkK-.mjs} +2 -2
- package/dist/client/{accordion-Ct5T5NiA.mjs → accordion-DFDajgDz.mjs} +1 -1
- package/dist/client/{bookingForm-DMxtLPxw.mjs → bookingForm-Bdqj9-52.mjs} +5 -6
- package/dist/client/bookings.mjs +315 -46
- package/dist/client/{carousel--FMqgvob.mjs → carousel-Cvqf-kN8.mjs} +1 -1
- package/dist/client/{cart-BKX1bWiU.mjs → cart-CuH2TJXP.mjs} +3 -3
- package/dist/client/{checkout-B_jxi4WW.mjs → checkout-CMNPpejZ.mjs} +3 -3
- package/dist/client/client.mjs +1381 -1427
- package/dist/client/{courseRegistration-DH4MlkRD.mjs → courseRegistration-DTEYWL6Z.mjs} +6 -7
- package/dist/client/{eventCalendar-BQILwAcL.mjs → eventCalendar-BW-XoxZ0.mjs} +4 -4
- package/dist/client/{eventCombined-DFFW_Vmo.mjs → eventCombined-Bpn7s0y9.mjs} +2 -2
- package/dist/client/{eventDetails-B045CTSJ.mjs → eventDetails-D2uUSTMH.mjs} +3 -3
- package/dist/client/{eventListing-BDMYNVzS.mjs → eventListing-CVr1c094.mjs} +2 -2
- package/dist/client/{eventRegistration-CQ2-BSnB.mjs → eventRegistration-Dv4AvkMw.mjs} +30 -22
- package/dist/client/{form-DJKuyZgN.mjs → form-DxdKf9fs.mjs} +1 -1
- package/dist/client/{headerSection-DeTjfiDo.mjs → headerSection-BaXI5Sro.mjs} +2 -2
- package/dist/client/hooks.mjs +851 -976
- package/dist/client/{locationMap-i2wDA8gB.mjs → locationMap-BEtW2fKz.mjs} +2 -2
- package/dist/client/{newsletterForm-DKiueauk.mjs → newsletterForm-BKKs0S4R.mjs} +1 -1
- package/dist/client/{pricing-C01J3Epx.mjs → pricing-ClkqcElA.mjs} +1 -1
- package/dist/client/{productDetail-Dfc1sZaX.mjs → productDetail-H-ru8dyy.mjs} +3 -3
- package/dist/client/{productList-BXbvXWTF.mjs → productList-Buyi5c0C.mjs} +3 -3
- package/dist/client/{propsDecoder-CIR5DQ1l.mjs → propsDecoder-BF7i6Ijg.mjs} +293 -65
- package/dist/client/rendering/client.mjs +1145 -1190
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +1257 -1298
- package/dist/client/{useDiscountCodeUi-Bcyh4508.mjs → scrollToBlock-D_7t8yWb.mjs} +18 -2
- package/dist/client/{shop-BbNwPKM-.mjs → shop-CF7SZQNX.mjs} +5 -6
- package/dist/client/{shop-commerce-XO-XMFEt.mjs → shop-commerce-DA7_Rq5p.mjs} +4 -4
- package/dist/client/{shop-commerce-store-Byh6OUGK.mjs → shop-commerce-store-BmLqW7Gh.mjs} +1 -1
- package/dist/client/{shopShared-Bbq39mwr.mjs → shopShared-WL-E1znM.mjs} +2 -2
- package/dist/client/{useEventFilters-C8OOJ3el.mjs → useEventFilters-rc8VLeLV.mjs} +2 -2
- package/dist/client/{usePolling-CyJVo9kF.mjs → usePolling-1ncrfd4S.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +0 -7
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +0 -7
- package/dist/{previewAuthStore-CJX21dGi.mjs → previewAuthStore-Dev9CdG9.mjs} +0 -7
- package/dist/{sdk-runtime-BGhyuE-E.mjs → sdk-runtime-BnrCCFJq.mjs} +2 -2
- package/dist/{separator-BFs-Kmv5.mjs → separator-CFvBx2yl.mjs} +1 -1
- package/dist/server/components.mjs +1389 -1489
- package/dist/server/config-validation.mjs +851 -976
- package/dist/server/config.mjs +851 -976
- package/dist/server/data.mjs +851 -976
- package/dist/server/index.mjs +1 -8
- package/dist/server/next.mjs +1393 -1500
- package/dist/server/page-converter.mjs +851 -976
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1346 -1446
- package/dist/server/rendering.mjs +1390 -1490
- package/dist/server/routing.mjs +939 -1041
- package/dist/server/server.mjs +852 -984
- package/dist/server/theme-bridge.mjs +322 -279
- package/dist/server/theme.mjs +277 -33
- package/package.json +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/ensureRichTextImageAssetIdentifier.d.ts +0 -8
- package/dist/_dts/theme-core/src/palette/editorState.d.ts +0 -75
- package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +0 -64
- package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +0 -81
- package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +0 -75
- package/dist/_dts/theme-core/src/palette/selection.d.ts +0 -74
- package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +0 -34
- package/dist/client/scrollToBlock-C86BYkyV.mjs +0 -17
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as beginAutosaveBatch, $a as resolveRuntimeEventPricing, $c as toScheduledBookingDateTime, $n as layoutTransforms, $o as renderAudio, $r as reduceCommerceCart, $t as redoHistory, Aa as bindingSchema, Ac as createCollection, Ai as designRuntimeRulesForTheme, An as DEFAULT_LAUNCH_READINESS_INPUT, Ao as isInlineTextEmpty, Ar as giftingBlockDefinition, As as mergeStyles, At as MediaField, Ba as formatEventPrice, Bc as parseFooterModuleId, Bi as sectionTransitionFamilies, Bl as GripVertical, Bn as escapeStyleContent, Bo as ClockIcon$1, Br as buildShopInteractiveIslandProps, Bs as unmapValueFromSelect, C as usePreviewThemeOverlay, Ca as buildEventRuntimeFilters, Ci as applyCompiledRuntimeFieldsToContent, Cl as Ticket, Cn as MediaEditorContextProvider, Co as parseGeneratedIconSetId, Cr as findPreSelectedEvent, Cs as pageDesignEditorBackgroundOverrideOwner, Ct as InlineTextField, Da as normalizeOptionalId, Di as planPageDesignLayoutLookCompatibility, Dn as getPageDesignEditorState, Do as logger, Dr as WIZARD_STEPS$1, Ds as normalizeBoxStylesCardVariant, Dt as ButtonVariantField, Ea as normalizeCsvString, Ei as retargetCompiledRuntimeFieldsForContentAdjacency, El as Sparkles, En as applyPageDesignEditorAction, Eo as isRecord$20, Er as resolveRegistrationTarget, Es as ICON_CONFIG, Et as EntryPickerWidgetProvider, Fa as normalizeLocationMapProps, Fc as Button, Fi as GRADIENT_PRESETS, Fn as containerResponsiveThemeCss, Fo as ArrowDownIcon, Fr as cartBlockDefinition, Fs as SdkConfigProvider, Ft as RichTextWidgetProvider, Ga as getContainerClass, Gc as formatBookingDateTime, Gi as BACKGROUND_BODY_TEXT_MIN_CONTRAST_RATIO, Gl as CircleMinus, Gn as siteFooterManifest, Go as FileTextIcon, Gr as formatCommercePrice, Ha as formatEventTeacherLine, Hc as unsafeAsEditorBlockValues, Hi as sectionTransitionVariantForBoundaryOptionId, Hn as generateDefaultAccordionSystem, Ho as FileArchiveIcon, Hr as buildCartDisplay, Hs as useField, Ht as prepareBlockEditorManifest, Ia as toLocationMapHydrationProps, Ii as GRADIENT_PRESET_IDS, Il as Minus, In as createCustomBlockRegistry, Io as ArrowRightIcon, Ir as buildCartInteractiveIslandProps, Is as useSdkConfig, It as EditorProvider, Ja as resolveEventLinkProps, Jc as formatLocalScheduleDate, Ji as foregroundTokenForBackgroundAppearanceColorToken, Jl as ChevronDown, Jn as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, Jo as ImagePresets, Jr as buildPassCartItem, Js as SelectItem, Jt as useOptionalEditorUiStoreInstance, Ka as groupEventsByDate, Kc as formatBookingInstant, Ki as backgroundAppearanceColorTokenNames, Kl as ChevronRight, Kn as siteHeaderManifest, Ko as MinusIcon, Kr as formatInterval, Ks as Select, Kt as useEditorUiStore, La as formatDate$3, Lc as useComposedRefs, Li as getGradientPreset, Ln as buildThemeRuntime, Lo as ChevronDownIcon, Lr as buildCheckoutInteractiveIslandProps, Ls as hasEmptyOption, Lt as useEditor, Ma as eventCalendarListLayoutCompatibleDisplayModeValues, Mc as createContextScope, Mi as surfaceResolutionContextFromTheme, Mn as AMBIENT_BACKGROUND_ROLES, Mo as canonicalizePersistedBlockButtonRole, Mr as courseRegistrationBlockDefinition, Ms as textColorStyle, Mt as ReferenceWidgetProvider, Na as eventCalendarListLayoutOptions, Nc as composeEventHandlers, Nn as isSupportedLoaderEndpoint, No as isBlockButtonRole, Nr as buildCourseRegistrationInteractiveIslandProps, Ns as getFieldIntent, Nt as useRichTextImagePicker, Oa as el, Oc as useId$1, Oi as componentRuntimeRulesForTheme, Oo as coerceInlineTextWithFallback, Or as getStepNumber$1, Os as normalizeCardVariantRole, Ot as ButtonWidgetProvider, Pa as buildGoogleMapsDirectionsUrl, Pc as Primitive, Pi as gradientToCss, Pn as ThemeScope, Po as getIconComponent, Pr as checkoutBlockDefinition, Ps as isHeaderField, Pt as RichTextField, Qa as getLocalMinuteOfDay, Qc as toBookingTimeZone, Qn as mediaTransforms, Qo as getCurrentResolveImageUrlContext, Qr as productItemKey, Qt as pushHistoryEntry, Ra as formatEventCompactDateRail, Rc as cn, Ri as parseGradientPresetId, Rn as DEFAULT_THEME_RESPONSIVE_MODE, Ro as CircleMinusIcon, Rr as buildProductDetailInteractiveIslandProps, Rs as mapCurrentValueForSelect, Rt as LinkField, S as PreviewThemeOverlayProvider, Sa as eventCollectionSourceSchemaShape, Si as formatSiteChromeBackgroundTokenLabel, Sn as MediaEditor, So as parseGeneratedIconAssetId, Sr as findEventByOccurrenceId, Ss as isThemeV2NormalEditorRawStyleFieldName, St as OfferingsPreviewWidgetProvider, Ta as normalizeCsvIds, Ti as retargetCompiledBoundaryRuntimeForContentAdjacency, Tl as Star, Tn as useApiMediaUploader, To as isObjectRecord, Tr as resolveEventRequiresPayment, Ts as assertNever$6, Tt as EntryPickerField, Ua as formatTime$3, Uc as addLocalScheduleDays, Ul as CreditCard, Un as getBlockDefinition, Uo as FileAudioIcon, Ur as buildProductCardDisplay, Ut as stripTopLevelRoutingUi, Va as formatEventPriceDisplay, Vc as unsafeAsEditorBlockId, Vi as sectionTransitionFamilyForBoundaryOptionId, Vn as mergeContentWithBlockStyleOverrides, Vo as DownloadIcon, Vr as getShopDisplayForItems, Vs as FieldFrame, Vt as hideThemeV2RawStyleFields, Wa as getCardOrientation, Wc as formatBookingDate, Wl as CirclePlus, Wn as projectRecurringSchedule, Wo as FileSpreadsheetIcon, Wr as buildProductDetailDisplay, Wt as getBlockManifestFromSdkConfig, Xa as getEventAvailabilityStatus, Xc as parseBookingLocalDate, Xi as defaultThemeTokens, Xl as ArrowDown, Xn as visibleHeaderClearancePx, Xo as buildResolveImageUrlContext, Xr as deriveCommerceCheckoutState, Xs as SelectValue, Xt as canUndoHistory, Ya as getEventAvailability, Yc as getBookingLocalDateKey, Yi as parseBackgroundAppearanceColorToken, Yn as planSiteOverlayHeaderClearance, Yo as MediaPlaceholder, Yr as buildProductCartItem, Ys as SelectTrigger, Yt as canRedoHistory, Za as getLocalDateKey, Zc as resolveBookingTimeZoneId, Zl as __exportAll, Zn as contentTransforms, Zo as computeMediaTransformStyle, Zr as parseStoredCommerceCartState, Zt as createHistoryState, _a as buildEventCollectionDisplay, _c as Content, _i as BACKGROUND_POSITION_PRESET_VALUES, _l as err$2, _n as createManifestFormAdapter, _o as resolveFeatureCardGeneratedIconSizePx, _r as formBlockDefinition, _s as parseThemeForPersistence, _t as createSiteOptionApiLoader, aa as ctaButton, ac as TabsContent, ai as blogFeaturedPostFragment, al as publicEventScalarPrice, an as createRoutingHelpers, ao as defineInteractiveIslandMetaKeys, ar as NAV_DROPDOWN_SHIFT_PROPERTY, as as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, b as PreviewDesignCoordinatorProvider, ba as eventCollectionDisplaySchemaShape, bc as createCollapsibleScope, bi as resolveSurfaceForegroundStyles, bl as Upload, bn as evaluateVisibility, bo as parseBlockIconValue, br as buildEventRegistrationInteractiveIslandProps, bs as resolveOnColorForThemeToken, bt as SiteOptionWidgetProvider, cc as Dialog, ci as formCopyFragment, cl as assertNever$5, co as defineProgressiveBlockRuntime, cr as productDetailBlockDefinition, cs as siblingPath, ct as PreviewRichTextEditor, da as normalizeOfferingsPreviewItemLimit, dc as DialogFooter, di as ctaCopyFragment, dl as parseSiteId, do as markEditableSurfaceForwarding, dr as eventListingBlockDefinition, ei as richTextFragment, el as parseEventPageSurfaceSubject, en as undoHistory, eo as normalizeEventRegistrationPageSurfaceSubject, er as uiTransforms, es as renderVideo, et as confirmAutosaveBatch, f as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, fa as resolveOfferingsPreviewCoursePath, fc as DialogHeader, fi as heroCtaRowFragment, fl as unsafeAsAppointmentResourceId, fo as splitPositioningClasses, fr as buildEventListingInteractiveIslandProps, ft as useUISelector, ga as resolveSpacing, gi as defineFragment, gl as unsafeAsPassId, go as FEATURE_CARD_ICON_TREATMENTS, gr as buildEventCalendarListingRender, gs as themeButtonClassName, gt as useEntryEditorController, ha as isSemanticSpacing, hi as bodyCopyFragment, hl as unsafeAsFormId, hn as validateBlockManifestIssues, ho as mediaSchema, hr as buildEventCalendarListingDisplay, hs as parseThemeButtonVariantId, i as usePreviewDesignHistoryOrder, ia as runTransforms, ic as Tabs, ii as faqHeadingFragment, il as publicEventPricingType, in as useDebouncedLatestSave, io as createInteractiveIslandCodec, ir as useImageResolveContextOptional, is as setContextResolveImageUrlContext, it as rejectAutosaveBatch, ja as previewStageSchema, jc as useControllableState, jl as Plus, jn as deriveLaunchReadiness, jo as parseInlineTextFromUnknown, jr as buildGiftingInteractiveIslandProps, js as rgbColorValue, jt as ReferenceField, ka as when, kc as useDirection, kl as RotateCcw, kn as decodePublicProductCategorySelectorQuery, ko as inlineTextToPlainText, kr as getWizardStepsForContext$1, ks as backgroundColorStyle, kt as FileField, la as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, lc as DialogContent, li as testimonialsCarouselFragment, ll as expectParsedBrandedId, ln as parseReferenceKind, lr as newsletterSignupBlockDefinition, lt as PreviewInlineTextEditor, ma as resolveOfferingsPreviewGroups, mi as heroCopyFragment, ml as unsafeAsCustomerPassId, mn as usePalette, mo as PUBLIC_DOWNLOAD_MEDIA_TYPES, mr as buildEventCalendarInteractiveIslandProps, ms as AFFORDANCE_SUPPRESS_CLASS, mt as EntryControllerProvider, n as useSiteChromeCustomizeOptional, ni as cardFragment, nl as publicEventPricingCurrency, nn as recordsEqual, no as blockBookingPaymentTermsSchema, nr as createManifestValidator, ns as resolveMediaNodeResponsiveImage, nt as enqueueTransaction, oc as TabsList, oi as singleButtonFragment, ol as publicEventTicketTypes, on as createSnapshotFromPageRecord, oo as createZodCodec, or as shopBlockDefinition, os as attachRenderableMediaAssetFields, ot as resolvePreviewSidebarTab, p as reportPreviewDesignError, pa as resolveOfferingsPreviewGroupCta, pc as DialogTitle, pi as ctaRowFragment, pl as unsafeAsAppointmentServiceId, pn as PaletteProvider, po as planSiteChromePlacement, pr as eventCalendarBlockDefinition, pt as EditableBlockProvider, qa as resolveEventCta, qc as formatBookingTime, qi as backgroundAppearanceQuickColorTokenNames, ql as ChevronLeft, qn as SITE_CHROME_VISIBLE_HEADER_SELECTOR, qo as PlusIcon, qr as EMPTY_COMMERCE_CART_STATE, qs as SelectContent, qt as useEditorUiStoreInstance, r as PreviewDesignHistoryOrderProvider, ra as createTransformRegistry, ri as faqAccordionFragment, rl as publicEventPricingMode, ro as buildInteractiveIslandProps, rr as ImageResolveContextProvider, rs as resolveMediaStorageUrl, rt as idleEditorTransactionQueueState, sc as TabsTrigger, si as formEmbedFragment, sl as formatCurrencyAmount, sn as BUILT_IN_REFERENCE_KINDS, so as defineClientOwnedBlockRuntime, sr as productListBlockDefinition, ss as getAtPath, t as SiteChromeCustomizeProvider, ti as headingFragment, tl as formatBookingPriceDisplay, tn as unsafeAsLinkedContentEntryId, to as resolveEventRegistrationScopedEvents, tr as formattingTransforms, ts as resolveImageUrlWithContext, tt as deriveTransactionCapabilities, u as PREVIEW_DESIGN_LOAD_ERROR_MESSAGE, ua as buildOfferingsPreviewRenderStates, uc as DialogDescription, ui as testimonialsHeadingFragment, ul as parseMediaAssetId, uo as composeHeaderSectionWrapperClassName, ur as buildNewsletterFormInteractiveIslandProps, ut as PreviewTextEditor, va as buildEventCollectionHydration, vc as Root, vi as getAnchorClasses, vl as ok$3, vo as shouldReserveFeatureCardIconZone, vr as buildFormInteractiveIslandProps, vs as getTextColorForBackground, vt as createSiteOptionWidgetAdapters, wa as getEventRuntimeFiltersKey, wi as compileEditorModelRuntime, wn as useMediaEditorOptional, wo as RichTextDocSchema, wr as resolveDiscountContext, ws as asDesignBlockId, wt as IconPickerField, xa as eventCollectionHydrationSchema, xi as resolveBackgroundColorValue, xn as createStoreBackend, xo as resolveBlockIconRenderValue, xr as toRegistrationEvents, xs as resolveTokenOrCssColorValue, xt as OfferingsPreviewGroupOrderField, ya as buildEventCollectionListingDisplay, yc as Trigger, yi as boxStylesTransforms, yl as X, yn as FormRenderer, yo as buildGeneratedBlockIconRenderAssetLookupFromUnknown, yr as eventRegistrationBlockDefinition, ys as isCssColorLiteral, yt as SiteOptionPickerField, za as formatEventDateParts, zc as clsx, zi as defaultSectionTransitionVariantForFamily, zl as Image, zn as getResponsiveScopeSpec, zo as CirclePlusIcon, zr as buildProductListInteractiveIslandProps, zs as mapOptionValueForSelect, zt as LinkWidgetProvider } from "./SiteChromeCustomizeContext-BHF-KANn.mjs";
|
|
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 markEditableSurfaceForwarding, $c as expectParsedBrandedId, $i as normalizeOfferingsPreviewItemLimit, $n as shopBlockDefinition, $r as singleButtonFragment, $s as DialogContent, $t as createRoutingHelpers, Aa as formatEventTeacherLine, Ac as parseFooterModuleId, Ai as getGradientPreset, Al as GripVertical, An as buildThemeRuntime, Ao as FileAudioIcon, Ar as buildCheckoutInteractiveIslandProps, As as unmapValueFromSelect, At as EditorProvider, Ba as getLocalMinuteOfDay, Bc as parseBookingLocalDate, Bi as backgroundAppearanceQuickColorTokenNames, Bl as ArrowDown, Bn as SITE_CHROME_VISIBLE_HEADER_SELECTOR, Bo as renderAudio, Br as EMPTY_COMMERCE_CART_STATE, Bs as SelectValue, Bt as useEditorUiStore, C as usePreviewThemeOverlay, Ca as normalizeLocationMapProps, Cc as composeEventHandlers, Ci as designRuntimeRulesForTheme, Cn as MediaEditorContextProvider, Co as ArrowRightIcon, Cr as giftingBlockDefinition, Cs as getFieldIntent, Ct as FileField, Da as formatEventDateParts, Dc as useComposedRefs, Di as gradientToCss, Dn as ThemeScope, Do as ClockIcon$1, Dr as checkoutBlockDefinition, Ds as hasEmptyOption, Dt as useRichTextImagePicker, Ea as formatEventCompactDateRail, El as Minus, En as isSupportedLoaderEndpoint, Eo as CirclePlusIcon, Er as buildCourseRegistrationInteractiveIslandProps, Es as useSdkConfig, Et as ReferenceWidgetProvider, Fa as resolveEventCta, Fc as formatBookingDateTime, Fi as sectionTransitionVariantForBoundaryOptionId, Fl as CircleMinus, Fn as generateDefaultAccordionSystem, Fo as ImagePresets, Fr as buildCartDisplay, Ft as hideThemeV2RawStyleFields, Ga as buildInteractiveIslandProps, Gc as formatBookingPriceDisplay, Gi as createTransformRegistry, Gn as mediaTransforms, Go as setContextResolveImageUrlContext, Gr as productItemKey, Gt as createHistoryState, Ha as normalizeEventRegistrationPageSurfaceSubject, Hc as toBookingTimeZone, Hi as parseBackgroundAppearanceColorToken, Hn as planSiteOverlayHeaderClearance, Ho as resolveImageUrlWithContext, Hr as buildProductCartItem, Ht as useOptionalEditorUiStoreInstance, Ia as resolveEventLinkProps, Ic as formatBookingInstant, Il as ChevronRight, In as getBlockDefinition, Io as MediaPlaceholder, Ir as buildProductCardDisplay, Is as Select, It as prepareBlockEditorManifest, J as confirmAutosaveBatch, Ja as createZodCodec, Jc as publicEventPricingType, Jn as formattingTransforms, Jo as buildRenderableMediaAssetIndex, Jr as headingFragment, Js as Tabs, Jt as undoHistory, Ka as createInteractiveIslandCodec, Kc as publicEventPricingCurrency, Ki as runTransforms, Kn as layoutTransforms, Ko as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, Kr as reduceCommerceCart, Kt as pushHistoryEntry, La as getEventAvailability, Lc as formatBookingTime, Ll as ChevronLeft, Ln as projectRecurringSchedule, Lo as buildResolveImageUrlContext, Lr as buildProductDetailDisplay, Ls as SelectContent, Lt as stripTopLevelRoutingUi, Ma as getCardOrientation, Mc as unsafeAsEditorBlockValues, Mi as defaultSectionTransitionVariantForFamily, Mn as getResponsiveScopeSpec, Mo as FileTextIcon, Mr as buildProductListInteractiveIslandProps, Ms as useField, Mt as LinkField, Na as getContainerClass, Nc as addLocalScheduleDays, Ni as sectionTransitionFamilies, Nl as CreditCard, Nn as escapeStyleContent, No as MinusIcon, Nr as buildShopInteractiveIslandProps, Nt as LinkWidgetProvider, Oa as formatEventPrice, Oc as cn, Oi as GRADIENT_PRESETS, On as containerResponsiveThemeCss, Oo as DownloadIcon, Or as cartBlockDefinition, Os as mapCurrentValueForSelect, Ot as RichTextField, Pa as groupEventsByDate, Pc as formatBookingDate, Pi as sectionTransitionFamilyForBoundaryOptionId, Pl as CirclePlus, Pn as mergeContentWithBlockStyleOverrides, Po as PlusIcon, Pr as getShopDisplayForItems, Q as rejectAutosaveBatch, Qa as composeHeaderSectionWrapperClassName, Qc as assertNever$5, Qi as buildOfferingsPreviewRenderStates, Qn as NAV_DROPDOWN_SHIFT_PROPERTY, Qr as blogFeaturedPostFragment, Qs as Dialog, Qt as useDebouncedLatestSave, Ra as getEventAvailabilityStatus, Rc as formatLocalScheduleDate, Ri as BACKGROUND_BODY_TEXT_MIN_CONTRAST_RATIO, Rl as ChevronDown, Rn as siteFooterManifest, Ro as computeMediaTransformStyle, Rr as formatCommercePrice, Rs as SelectItem, Rt as getBlockManifestFromSdkConfig, S as PreviewThemeOverlayProvider, Sa as buildGoogleMapsDirectionsUrl, Sc as createContextScope, Sn as AMBIENT_BACKGROUND_ROLES, So as ArrowDownIcon, Sr as getWizardStepsForContext$1, Ss as textColorStyle, St as ButtonWidgetProvider, Ta as formatDate$3, Tc as Button, Ti as surfaceResolutionContextFromTheme, Tn as useApiMediaUploader, To as CircleMinusIcon, Tr as courseRegistrationBlockDefinition, Ts as SdkConfigProvider, Tt as ReferenceField, Ua as resolveEventRegistrationScopedEvents, Uc as toScheduledBookingDateTime, Ui as defaultThemeTokens, Un as visibleHeaderClearancePx, Uo as resolveMediaNodeResponsiveImage, Ur as deriveCommerceCheckoutState, Ut as canRedoHistory, Va as resolveRuntimeEventPricing, Vc as resolveBookingTimeZoneId, Vi as foregroundTokenForBackgroundAppearanceColorToken, Vl as __exportAll, Vn as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, Vo as renderVideo, Vr as buildPassCartItem, Vt as useEditorUiStoreInstance, Wa as blockBookingPaymentTermsSchema, Wc as parseEventPageSurfaceSubject, Wn as contentTransforms, Wo as resolveMediaStorageUrl, Wr as parseStoredCommerceCartState, Wt as canUndoHistory, X as enqueueTransaction, Xa as defineProgressiveBlockRuntime, Xc as publicEventTicketTypes, Xn as ImageResolveContextProvider, Xo as siblingPath, Xr as faqAccordionFragment, Xs as TabsList, Xt as recordsEqual, Y as deriveTransactionCapabilities, Ya as defineClientOwnedBlockRuntime, Yc as publicEventScalarPrice, Yn as createManifestValidator, Yo as getAtPath, Yr as cardFragment, Ys as TabsContent, Yt as unsafeAsLinkedContentEntryId, Z as idleEditorTransactionQueueState, Zc as formatCurrencyAmount, Zi as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Zn as useImageResolveContextOptional, Zr as faqHeadingFragment, Zs as TabsTrigger, _a as when, _i as compileEditorModelRuntime, _n as getPageDesignEditorState, _o as coerceInlineTextWithFallback, _r as resolveDiscountContext, _t as InlineTextField, aa as buildEventCollectionDisplay, ai as heroCtaRowFragment, al as unsafeAsFormId, ao as FEATURE_CARD_ICON_TREATMENTS, ar as buildEventListingInteractiveIslandProps, as as parseThemeForPersistence, b as PreviewDesignCoordinatorProvider, ba as eventCalendarListLayoutCompatibleDisplayModeValues, bc as createCollection, bi as planPageDesignLayoutLookCompatibility, bn as DEFAULT_LAUNCH_READINESS_INPUT, bo as parseInlineTextFromUnknown, br as WIZARD_STEPS$1, bs as mergeStyles, bt as EntryPickerWidgetProvider, ca as eventCollectionDisplaySchemaShape, cc as Root, ci as bodyCopyFragment, cl as ok$3, cn as usePalette, co as buildGeneratedBlockIconRenderAssetLookupFromUnknown, cr as buildEventCalendarListingDisplay, cs as resolveOnColorForThemeToken, ct as EntryControllerProvider, da as buildEventRuntimeFilters, di as getAnchorClasses, do as parseGeneratedIconAssetId, dr as buildFormInteractiveIslandProps, ds as pageDesignEditorBackgroundOverrideOwner, dt as createSiteOptionApiLoader, ea as resolveOfferingsPreviewCoursePath, ec as DialogDescription, ei as formEmbedFragment, el as parseMediaAssetId, en as createSnapshotFromPageRecord, eo as splitPositioningClasses, er as productListBlockDefinition, et as resolvePreviewSidebarTab, f as PREVIEW_DESIGN_LOAD_ERROR_MESSAGE, fa as getEventRuntimeFiltersKey, fi as boxStylesTransforms, fn as FormRenderer, fo as parseGeneratedIconSetId, fr as eventRegistrationBlockDefinition, fs as asDesignBlockId, ft as createSiteOptionWidgetAdapters, ga as el, gi as applyCompiledRuntimeFieldsToContent, gl as Sparkles, gn as applyPageDesignEditorAction, go as logger, gr as findPreSelectedEvent, gs as normalizeCardVariantRole, gt as OfferingsPreviewWidgetProvider, ha as normalizeOptionalId, hi as formatSiteChromeBackgroundTokenLabel, hl as Star, hn as MediaEditor, ho as isRecord$20, hr as findEventByOccurrenceId, hs as normalizeBoxStylesCardVariant, ht as OfferingsPreviewGroupOrderField, i as usePreviewDesignHistoryOrder, ia as resolveSpacing, ii as ctaCopyFragment, il as unsafeAsCustomerPassId, io as mediaSchema, ir as eventListingBlockDefinition, is as themeButtonClassName, it as PreviewTextEditor, ja as formatTime$3, jc as unsafeAsEditorBlockId, ji as parseGradientPresetId, jn as DEFAULT_THEME_RESPONSIVE_MODE, jo as FileSpreadsheetIcon, jr as buildProductDetailInteractiveIslandProps, js as FieldFrame, jt as useEditor, ka as formatEventPriceDisplay, kc as clsx, ki as GRADIENT_PRESET_IDS, kl as Image, kn as createCustomBlockRegistry, ko as FileArchiveIcon, kr as buildCartInteractiveIslandProps, ks as mapOptionValueForSelect, kt as RichTextWidgetProvider, la as eventCollectionHydrationSchema, lc as Trigger, li as defineFragment, ll as X, lo as parseBlockIconValue, lr as buildEventCalendarListingRender, ls as resolveTokenOrCssColorValue, m as reportPreviewDesignError, ma as normalizeCsvString, mi as resolveBackgroundColorValue, mn as createStoreBackend, mo as isObjectRecord, mr as toRegistrationEvents, ms as ICON_CONFIG, mt as SiteOptionWidgetProvider, n as useSiteChromeCustomizeOptional, na as resolveOfferingsPreviewGroups, nc as DialogHeader, ni as testimonialsCarouselFragment, nl as unsafeAsAppointmentResourceId, no as isBlockButtonRole, nr as newsletterSignupBlockDefinition, ns as AFFORDANCE_SUPPRESS_CLASS, nt as PreviewRichTextEditor, oa as buildEventCollectionHydration, oi as ctaRowFragment, ol as unsafeAsPassId, oo as resolveFeatureCardGeneratedIconSizePx, or as eventCalendarBlockDefinition, os as getTextColorForBackground, ot as useUISelector, p as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, pa as normalizeCsvIds, pi as resolveSurfaceForegroundStyles, pl as Ticket, pn as evaluateVisibility, po as RichTextDocSchema, pr as buildEventRegistrationInteractiveIslandProps, ps as assertNever$6, pt as SiteOptionPickerField, q as beginAutosaveBatch, qa as defineInteractiveIslandMetaKeys, qc as publicEventPricingMode, qi as ctaButton, qn as uiTransforms, qo as attachRenderableMediaAssetFields, qr as richTextFragment, qt as redoHistory, r as PreviewDesignHistoryOrderProvider, ra as isSemanticSpacing, rc as DialogTitle, ri as testimonialsHeadingFragment, rl as unsafeAsAppointmentServiceId, rn as parseReferenceKind, ro as PUBLIC_DOWNLOAD_MEDIA_TYPES, rr as buildNewsletterFormInteractiveIslandProps, rs as parseThemeButtonVariantId, rt as PreviewInlineTextEditor, sa as buildEventCollectionListingDisplay, sc as Content, si as heroCopyFragment, sl as err$2, sn as PaletteProvider, so as shouldReserveFeatureCardIconZone, sr as buildEventCalendarInteractiveIslandProps, ss as isCssColorLiteral, st as EditableBlockProvider, t as SiteChromeCustomizeProvider, ta as resolveOfferingsPreviewGroupCta, tc as DialogFooter, ti as formCopyFragment, tl as parseSiteId, tn as BUILT_IN_REFERENCE_KINDS, to as planSiteChromePlacement, tr as productDetailBlockDefinition, ua as eventCollectionSourceSchemaShape, uc as createCollapsibleScope, ui as BACKGROUND_POSITION_PRESET_VALUES, ul as Upload, un as createManifestFormAdapter, uo as resolveBlockIconRenderValue, ur as formBlockDefinition, us as isThemeV2NormalEditorRawStyleFieldName, ut as useEntryEditorController, va as bindingSchema, vc as useId$1, vi as retargetCompiledBoundaryRuntimeForContentAdjacency, vo as inlineTextToPlainText, vr as resolveEventRequiresPayment, vt as IconPickerField, wa as toLocationMapHydrationProps, wc as Primitive, wn as useMediaEditorOptional, wo as ChevronDownIcon, wr as buildGiftingInteractiveIslandProps, ws as isHeaderField, wt as MediaField, xa as eventCalendarListLayoutOptions, xc as useControllableState, xi as componentRuntimeRulesForTheme, xl as Plus, xn as deriveLaunchReadiness, xo as getIconComponent, xr as getStepNumber$1, xs as rgbColorValue, xt as ButtonVariantField, ya as previewStageSchema, yc as useDirection, yi as retargetCompiledRuntimeFieldsForContentAdjacency, yl as RotateCcw, yn as decodePublicProductCategorySelectorQuery, yo as isInlineTextEmpty, yr as resolveRegistrationTarget, ys as backgroundColorStyle, yt as EntryPickerField, za as getLocalDateKey, zc as getBookingLocalDateKey, zi as backgroundAppearanceColorTokenNames, zn as siteHeaderManifest, zo as getCurrentResolveImageUrlContext, zr as formatInterval, zs as SelectTrigger } from "./SiteChromeCustomizeContext-DZiDBAYu.mjs";
|
|
3
|
+
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-DgFDIwvK.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-Dev9CdG9.mjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import React, { Children, Component, Fragment, cloneElement, createContext, createElement, forwardRef, isValidElement, startTransition, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1868,6 +1868,9 @@ function renderTrailingAffordanceIcon(affordance) {
|
|
|
1868
1868
|
className: "rb-ml-2 rb-h-4 rb-w-4 rb-inline-block"
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
|
+
function isMissingRequiredLink(linkRequired, resolvedHref) {
|
|
1872
|
+
return linkRequired && resolvedHref.length === 0;
|
|
1873
|
+
}
|
|
1871
1874
|
const ButtonNode = ({ value, children, href, variantId = "primary", size = "md", disabled, type = "button", target, rel, linkRequired = false, trailingIcon, blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, className, ...rest }) => {
|
|
1872
1875
|
const content = value ?? children;
|
|
1873
1876
|
if (!content) {
|
|
@@ -1876,12 +1879,16 @@ const ButtonNode = ({ value, children, href, variantId = "primary", size = "md",
|
|
|
1876
1879
|
}
|
|
1877
1880
|
const affordanceIcon = renderTrailingAffordanceIcon(resolveButtonAffordance({ trailingIcon }));
|
|
1878
1881
|
const resolvedHref = typeof href === "string" ? href.trim() : "";
|
|
1879
|
-
if (linkRequired
|
|
1882
|
+
if (isMissingRequiredLink(linkRequired, resolvedHref)) {
|
|
1880
1883
|
console.warn("[ButtonNode] Missing href for link-required button");
|
|
1881
1884
|
return null;
|
|
1882
1885
|
}
|
|
1883
1886
|
const extraClassName = affordanceIcon ? [className, AFFORDANCE_SUPPRESS_CLASS].filter(Boolean).join(" ") : className;
|
|
1884
|
-
const resolvedVariantId = parseThemeButtonVariantId(
|
|
1887
|
+
const resolvedVariantId = parseThemeButtonVariantId(variantId);
|
|
1888
|
+
if (variantId && !resolvedVariantId) {
|
|
1889
|
+
console.error("[ButtonNode] Invalid button variant", { variantId });
|
|
1890
|
+
return null;
|
|
1891
|
+
}
|
|
1885
1892
|
const combinedClassName = resolvedVariantId ? themeButtonClassName({
|
|
1886
1893
|
variant: resolvedVariantId,
|
|
1887
1894
|
size,
|
|
@@ -2106,8 +2113,9 @@ function iconForMediaType(type) {
|
|
|
2106
2113
|
});
|
|
2107
2114
|
}
|
|
2108
2115
|
}
|
|
2109
|
-
function
|
|
2110
|
-
|
|
2116
|
+
function parseButtonVariant(value) {
|
|
2117
|
+
if (value === null || value === void 0) return "primary";
|
|
2118
|
+
return isBlockButtonRole(value) ? value : null;
|
|
2111
2119
|
}
|
|
2112
2120
|
function FileDownloadNode({ value, title, description, buttonLabel, buttonVariant, className }) {
|
|
2113
2121
|
if (!value || !isDownloadableMediaType(value.type)) return null;
|
|
@@ -2117,7 +2125,11 @@ function FileDownloadNode({ value, title, description, buttonLabel, buttonVarian
|
|
|
2117
2125
|
const heading = title?.trim() || filename;
|
|
2118
2126
|
const body = description?.trim();
|
|
2119
2127
|
const label = buttonLabel?.trim() || "Download";
|
|
2120
|
-
const variant =
|
|
2128
|
+
const variant = parseButtonVariant(buttonVariant);
|
|
2129
|
+
if (!variant) {
|
|
2130
|
+
console.error("[FileDownloadNode] Invalid button variant", { buttonVariant });
|
|
2131
|
+
return null;
|
|
2132
|
+
}
|
|
2121
2133
|
return /* @__PURE__ */ jsx("div", {
|
|
2122
2134
|
className,
|
|
2123
2135
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -15619,16 +15631,29 @@ function cleanupStaleRegistrations() {
|
|
|
15619
15631
|
}
|
|
15620
15632
|
//#endregion
|
|
15621
15633
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.ts
|
|
15634
|
+
const eventRegistrationStripeReturnDeps = {
|
|
15635
|
+
usePaymentVerification,
|
|
15636
|
+
consumeSearchParam,
|
|
15637
|
+
scrollToBlock,
|
|
15638
|
+
cleanupStaleRegistrations,
|
|
15639
|
+
clearPendingRegistration,
|
|
15640
|
+
getPendingRegistration
|
|
15641
|
+
};
|
|
15622
15642
|
function useEventRegistrationStripeReturn(options) {
|
|
15643
|
+
return useEventRegistrationStripeReturnWithDeps(options, eventRegistrationStripeReturnDeps);
|
|
15644
|
+
}
|
|
15645
|
+
function useEventRegistrationStripeReturnWithDeps(options, deps) {
|
|
15623
15646
|
const { api, events, occurrenceId, pendingAttendeeId, setErrorMessage, setFormData, setPaymentSelection, setPendingAttendeeId, setRegistrationResult, setSelectedEvent, setSelectedAttendanceMode, setTicketSelections, setStep, setTicketsCount, step } = options;
|
|
15624
|
-
const
|
|
15647
|
+
const verificationConfig = useMemo(() => step === "verifying-payment" && pendingAttendeeId ? { transactionId: pendingAttendeeId } : null, [step, pendingAttendeeId]);
|
|
15648
|
+
const verification = deps.usePaymentVerification(verificationConfig);
|
|
15625
15649
|
useEffect(() => {
|
|
15626
|
-
cleanupStaleRegistrations();
|
|
15627
|
-
const registrationStatus = consumeSearchParam("registration");
|
|
15628
|
-
if (
|
|
15650
|
+
deps.cleanupStaleRegistrations();
|
|
15651
|
+
const registrationStatus = deps.consumeSearchParam("registration");
|
|
15652
|
+
if (registrationStatus !== "cancelled" && registrationStatus !== "success") return;
|
|
15653
|
+
deps.scrollToBlock(EVENT_REGISTRATION_ANCHOR_ID);
|
|
15629
15654
|
const siteId = api.config.siteId;
|
|
15630
15655
|
if (!siteId) return;
|
|
15631
|
-
const pending = getPendingRegistration(siteId, occurrenceId || void 0);
|
|
15656
|
+
const pending = deps.getPendingRegistration(siteId, occurrenceId || void 0);
|
|
15632
15657
|
if (!pending) return;
|
|
15633
15658
|
setFormData(pending.formData);
|
|
15634
15659
|
setTicketSelections(pending.ticketSelections);
|
|
@@ -15648,7 +15673,7 @@ function useEventRegistrationStripeReturn(options) {
|
|
|
15648
15673
|
useEffect(() => {
|
|
15649
15674
|
if (verification.status === "completed") {
|
|
15650
15675
|
const siteId = api.config.siteId;
|
|
15651
|
-
if (siteId && occurrenceId) clearPendingRegistration(siteId, occurrenceId);
|
|
15676
|
+
if (siteId && occurrenceId) deps.clearPendingRegistration(siteId, occurrenceId);
|
|
15652
15677
|
setRegistrationResult({ status: "confirmed" });
|
|
15653
15678
|
setStep("success");
|
|
15654
15679
|
} else if (verification.status === "failed") {
|
|
@@ -15759,13 +15784,7 @@ function useEventRegistrationSubmitWithDeps(options, deps) {
|
|
|
15759
15784
|
if (!result.alreadyRegistered && result.status === "confirmed" && result.pendingPayment && (method === "stripe" || method === "pass_bundle" || method === "membership_bundle")) {
|
|
15760
15785
|
options.setPendingAttendeeId(result.attendeeId);
|
|
15761
15786
|
options.setStep("redirecting");
|
|
15762
|
-
const
|
|
15763
|
-
const successParams = new URLSearchParams(currentUrl.search);
|
|
15764
|
-
successParams.set("registration", "success");
|
|
15765
|
-
const successUrl = `${currentUrl.origin}${currentUrl.pathname}?${successParams.toString()}${currentUrl.hash}`;
|
|
15766
|
-
const cancelParams = new URLSearchParams(currentUrl.search);
|
|
15767
|
-
cancelParams.set("registration", "cancelled");
|
|
15768
|
-
const cancelUrl = `${currentUrl.origin}${currentUrl.pathname}?${cancelParams.toString()}${currentUrl.hash}`;
|
|
15787
|
+
const { successUrl, cancelUrl } = buildCheckoutReturnUrls("registration", EVENT_REGISTRATION_ANCHOR_ID);
|
|
15769
15788
|
const checkoutType = method === "pass_bundle" ? "pass_bundle" : method === "membership_bundle" ? "membership_bundle" : "event";
|
|
15770
15789
|
const checkoutResult = await options.api.createEventCheckout({
|
|
15771
15790
|
attendeeId: result.attendeeId,
|
|
@@ -26440,6 +26459,43 @@ function isUnknownArray$1(value) {
|
|
|
26440
26459
|
return Array.isArray(value);
|
|
26441
26460
|
}
|
|
26442
26461
|
//#endregion
|
|
26462
|
+
//#region ../blocks/src/system/runtime/nodes/mergeResolveImageUrlContexts.ts
|
|
26463
|
+
function normalizedIdentifier(asset) {
|
|
26464
|
+
return (typeof asset.identifier === "string" ? asset.identifier.trim() : "") || void 0;
|
|
26465
|
+
}
|
|
26466
|
+
function indexAssets(index) {
|
|
26467
|
+
if (!index) return [];
|
|
26468
|
+
const assetsById = /* @__PURE__ */ new Map();
|
|
26469
|
+
for (const asset of [...index.byId.values(), ...index.byIdentifier.values()]) assetsById.set(asset.id, asset);
|
|
26470
|
+
return [...assetsById.values()];
|
|
26471
|
+
}
|
|
26472
|
+
function mergeAssetIndexes(baseline, live) {
|
|
26473
|
+
if (!baseline) return live;
|
|
26474
|
+
if (!live) return baseline;
|
|
26475
|
+
let merged = [...indexAssets(baseline)];
|
|
26476
|
+
for (const liveAsset of indexAssets(live)) {
|
|
26477
|
+
const liveIdentifier = normalizedIdentifier(liveAsset);
|
|
26478
|
+
merged = merged.filter((asset) => asset.id !== liveAsset.id && (liveIdentifier === void 0 || normalizedIdentifier(asset) !== liveIdentifier));
|
|
26479
|
+
merged.push(liveAsset);
|
|
26480
|
+
}
|
|
26481
|
+
return buildRenderableMediaAssetIndex(merged);
|
|
26482
|
+
}
|
|
26483
|
+
/**
|
|
26484
|
+
* Combines a render snapshot with client registrations without changing the
|
|
26485
|
+
* persisted media value. Live registrations are authoritative for both asset
|
|
26486
|
+
* IDs and identifiers. Contexts for different known sites never share indexes.
|
|
26487
|
+
*/
|
|
26488
|
+
function mergeResolveImageUrlContexts(baseline, live) {
|
|
26489
|
+
if (!baseline) return live ?? void 0;
|
|
26490
|
+
if (!live) return baseline;
|
|
26491
|
+
const sitesConflict = baseline.siteId !== void 0 && live.siteId !== void 0 && baseline.siteId !== live.siteId;
|
|
26492
|
+
return {
|
|
26493
|
+
supabaseUrl: live.supabaseUrl ?? baseline.supabaseUrl,
|
|
26494
|
+
siteId: live.siteId ?? baseline.siteId,
|
|
26495
|
+
mediaAssetIndex: sitesConflict ? live.mediaAssetIndex : mergeAssetIndexes(baseline.mediaAssetIndex, live.mediaAssetIndex)
|
|
26496
|
+
};
|
|
26497
|
+
}
|
|
26498
|
+
//#endregion
|
|
26443
26499
|
//#region ../blocks/src/system/runtime/nodes/media.client.tsx
|
|
26444
26500
|
const FALLBACK_IMAGE_DATA_URL = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="800" height="600" viewBox="0 0 800 600">
|
|
26445
26501
|
<defs>
|
|
@@ -26456,11 +26512,16 @@ const FALLBACK_IMAGE_DATA_URL = "data:image/svg+xml;charset=utf-8," + encodeURIC
|
|
|
26456
26512
|
</g>
|
|
26457
26513
|
</svg>`);
|
|
26458
26514
|
const MediaNode = ({ value, className, style, videoPlayback = "inline", loading = "lazy", fetchPriority, size = ImagePresets.full, fieldPath, blockKind, blockContent, imageResolveContext: explicitImageResolveContext }) => {
|
|
26459
|
-
const
|
|
26460
|
-
const imageResolveContext = explicitImageResolveContext ?? contextImageResolveContext;
|
|
26515
|
+
const imageResolveContext = mergeResolveImageUrlContexts(explicitImageResolveContext, useImageResolveContextOptional());
|
|
26461
26516
|
if (!value) return null;
|
|
26462
|
-
|
|
26463
|
-
|
|
26517
|
+
switch (value.type) {
|
|
26518
|
+
case "video": return renderVideo(value, className, style, imageResolveContext, { playback: videoPlayback });
|
|
26519
|
+
case "audio": return renderAudio(value, className, style, imageResolveContext);
|
|
26520
|
+
case "image":
|
|
26521
|
+
case "archive":
|
|
26522
|
+
case "document":
|
|
26523
|
+
case "spreadsheet": break;
|
|
26524
|
+
}
|
|
26464
26525
|
const { imageUrl, responsive, transformAspectRatio, resolvedTransform, isProxy } = resolveMediaNodeResponsiveImage(value, size, style, {
|
|
26465
26526
|
fieldPath,
|
|
26466
26527
|
blockKind,
|
|
@@ -31154,7 +31215,6 @@ function MediaEditorProvider({ siteId, apiClient, children, bucket = DEFAULT_MED
|
|
|
31154
31215
|
getPublicUrl: computePublicUrl,
|
|
31155
31216
|
registerMediaAsset,
|
|
31156
31217
|
bearerToken,
|
|
31157
|
-
mediaAssetIndex: imageResolveContext.mediaAssetIndex,
|
|
31158
31218
|
imageResolveContext
|
|
31159
31219
|
}), [
|
|
31160
31220
|
apiClient,
|
|
@@ -32201,8 +32261,7 @@ function useBlockCustomizeControls({ blockId, blockKind, content, uiStore, theme
|
|
|
32201
32261
|
return createStoreBackend({
|
|
32202
32262
|
scope: "blocks",
|
|
32203
32263
|
store: uiStore,
|
|
32204
|
-
blockId
|
|
32205
|
-
validateFn: (values) => validateBlockManifestIssues(preparedManifest.validationManifest, values, "strict")
|
|
32264
|
+
blockId
|
|
32206
32265
|
});
|
|
32207
32266
|
}, [
|
|
32208
32267
|
blockId,
|
|
@@ -35220,6 +35279,18 @@ function setPreviewSidebarTab(tab) {
|
|
|
35220
35279
|
} catch {}
|
|
35221
35280
|
}
|
|
35222
35281
|
//#endregion
|
|
35282
|
+
//#region ../preview-next/src/client/preview/previewThemeRoles.ts
|
|
35283
|
+
/**
|
|
35284
|
+
* Splits the preview theme inputs into their two distinct roles so the
|
|
35285
|
+
* page-adapted render theme can never reach the persistence path.
|
|
35286
|
+
*/
|
|
35287
|
+
function resolvePreviewThemeRoles(input) {
|
|
35288
|
+
return {
|
|
35289
|
+
persistenceTheme: input.theme,
|
|
35290
|
+
documentTheme: input.renderTheme ?? input.theme
|
|
35291
|
+
};
|
|
35292
|
+
}
|
|
35293
|
+
//#endregion
|
|
35223
35294
|
//#region ../blocks/src/client/site-chrome.tsx
|
|
35224
35295
|
const siteChromeBlockRenderDeps = {
|
|
35225
35296
|
buildThemeRuntime,
|
|
@@ -36644,17 +36715,21 @@ function LinkedEntryEditEventBridge() {
|
|
|
36644
36715
|
//#region ../preview-next/src/client/preview/PreviewShellLayout.tsx
|
|
36645
36716
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
36646
36717
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
36647
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
36718
|
+
return { default: (await import("./PreviewEditorSidebar-BXtfF7tp.mjs")).PreviewEditorSidebar };
|
|
36648
36719
|
});
|
|
36649
36720
|
const PreviewEditorUI = React.lazy(async () => {
|
|
36650
|
-
return { default: (await import("./PreviewEditorUI-
|
|
36721
|
+
return { default: (await import("./PreviewEditorUI-Dou73Q0K.mjs")).PreviewEditorUI };
|
|
36651
36722
|
});
|
|
36652
36723
|
const previewPaneContainmentStyle = {
|
|
36653
36724
|
contain: "layout paint",
|
|
36654
36725
|
isolation: "isolate",
|
|
36655
36726
|
transform: "translateZ(0)"
|
|
36656
36727
|
};
|
|
36657
|
-
function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseUrl = null, pageId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, apiClient, bearerToken, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null,
|
|
36728
|
+
function PreviewShellLayout({ children, theme, renderTheme, surfaceId, siteId, dashboardBaseUrl = null, pageId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, apiClient, bearerToken, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null, themeSelectionHeaderLayoutId = null, themeSelectionHeaderStyleId = null, themeSelectionHeaderLookId = null, themeSelectionFooterLookId = null, themeSelectionHeaderContext, supabaseUrl, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, themeRuntime = defaultPreviewThemeRuntime, siteStyleAccess = { kind: "hidden" }, onFooterSaved }) {
|
|
36729
|
+
const { persistenceTheme, documentTheme } = resolvePreviewThemeRoles({
|
|
36730
|
+
theme,
|
|
36731
|
+
renderTheme
|
|
36732
|
+
});
|
|
36658
36733
|
const layout = useOptionalPreviewLayout();
|
|
36659
36734
|
const headerNode = layout?.headerNode ?? null;
|
|
36660
36735
|
const bannerNode = layout?.bannerNode ?? null;
|
|
@@ -36822,7 +36897,7 @@ function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseU
|
|
|
36822
36897
|
referenceContentTypeKeys,
|
|
36823
36898
|
draftContent,
|
|
36824
36899
|
currentTemplate,
|
|
36825
|
-
theme,
|
|
36900
|
+
theme: persistenceTheme,
|
|
36826
36901
|
apiClient,
|
|
36827
36902
|
bearerToken,
|
|
36828
36903
|
themeId,
|
|
@@ -36830,7 +36905,6 @@ function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseU
|
|
|
36830
36905
|
themeSelectionVersion,
|
|
36831
36906
|
themeSelectionUpdatedAt,
|
|
36832
36907
|
themeSelectionButtonStyleSelection,
|
|
36833
|
-
runtimePaletteState,
|
|
36834
36908
|
themeSelectionHeaderLayoutId,
|
|
36835
36909
|
themeSelectionHeaderStyleId,
|
|
36836
36910
|
themeSelectionHeaderLookId,
|
|
@@ -36859,27 +36933,12 @@ function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseU
|
|
|
36859
36933
|
}, overlayScopeKey)
|
|
36860
36934
|
})
|
|
36861
36935
|
});
|
|
36862
|
-
const editorUI = /* @__PURE__ */ jsx(React.Suspense, {
|
|
36863
|
-
fallback: null,
|
|
36864
|
-
children: /* @__PURE__ */ jsx(PreviewEditorUI, {
|
|
36865
|
-
dashboardBaseUrl,
|
|
36866
|
-
inMaintenanceMode: maintenanceModeEnabled,
|
|
36867
|
-
siteId,
|
|
36868
|
-
surfaceId,
|
|
36869
|
-
isSiteLaunched,
|
|
36870
|
-
apiClient
|
|
36871
|
-
})
|
|
36872
|
-
});
|
|
36873
|
-
const previewBanner = /* @__PURE__ */ jsx(PreviewAuthBanner, {
|
|
36874
|
-
dashboardBaseUrl,
|
|
36875
|
-
surfaceId
|
|
36876
|
-
});
|
|
36877
36936
|
return /* @__PURE__ */ jsx(PreviewThemeOverlayProvider, {
|
|
36878
|
-
baseTheme:
|
|
36937
|
+
baseTheme: documentTheme,
|
|
36879
36938
|
children: /* @__PURE__ */ jsx(PreviewDesignCoordinatorProvider, { children: /* @__PURE__ */ jsx(SiteChromeCustomizeProvider, {
|
|
36880
36939
|
siteId,
|
|
36881
36940
|
apiClient,
|
|
36882
|
-
theme,
|
|
36941
|
+
theme: persistenceTheme,
|
|
36883
36942
|
themeId,
|
|
36884
36943
|
selectionId: themeSelectionId,
|
|
36885
36944
|
selectionVersion: themeSelectionVersion,
|
|
@@ -36888,7 +36947,6 @@ function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseU
|
|
|
36888
36947
|
selectionVersion: themeSelectionVersion,
|
|
36889
36948
|
selectionUpdatedAt: themeSelectionUpdatedAt,
|
|
36890
36949
|
buttonStyleSelection: themeSelectionButtonStyleSelection,
|
|
36891
|
-
runtimePaletteState,
|
|
36892
36950
|
headerLayoutId: themeSelectionHeaderLayoutId,
|
|
36893
36951
|
headerStyleId: themeSelectionHeaderStyleId,
|
|
36894
36952
|
headerLookId: themeSelectionHeaderLookId,
|
|
@@ -36899,8 +36957,21 @@ function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseU
|
|
|
36899
36957
|
canOpenDesignEditor: entryData == null && pageId !== null && canInspectSiteStyle(siteStyleAccess),
|
|
36900
36958
|
children: /* @__PURE__ */ jsxs(PreviewBlockCustomizeSelectionProvider, { children: [
|
|
36901
36959
|
/* @__PURE__ */ jsx(LinkedEntryEditEventBridge, {}),
|
|
36902
|
-
|
|
36903
|
-
|
|
36960
|
+
/* @__PURE__ */ jsx(React.Suspense, {
|
|
36961
|
+
fallback: null,
|
|
36962
|
+
children: /* @__PURE__ */ jsx(PreviewEditorUI, {
|
|
36963
|
+
dashboardBaseUrl,
|
|
36964
|
+
inMaintenanceMode: maintenanceModeEnabled,
|
|
36965
|
+
siteId,
|
|
36966
|
+
surfaceId,
|
|
36967
|
+
isSiteLaunched,
|
|
36968
|
+
apiClient
|
|
36969
|
+
})
|
|
36970
|
+
}),
|
|
36971
|
+
/* @__PURE__ */ jsx(PreviewAuthBanner, {
|
|
36972
|
+
dashboardBaseUrl,
|
|
36973
|
+
surfaceId
|
|
36974
|
+
}),
|
|
36904
36975
|
/* @__PURE__ */ jsx("div", {
|
|
36905
36976
|
className: "fixed inset-0 overflow-hidden bg-background",
|
|
36906
36977
|
children: isOpen ? /* @__PURE__ */ jsx(ResizableSplitPane, {
|
|
@@ -36923,14 +36994,15 @@ function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseU
|
|
|
36923
36994
|
}
|
|
36924
36995
|
//#endregion
|
|
36925
36996
|
//#region ../preview-next/src/client/preview/PreviewShell.tsx
|
|
36926
|
-
function PreviewShell({ children, apiBaseUrl, blockApiConfig, siteId, siteSlug, editableId, previewSession, previewToken, dashboardBaseUrl = null, surfaceId, theme, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null,
|
|
36997
|
+
function PreviewShell({ children, apiBaseUrl, blockApiConfig, siteId, siteSlug, editableId, previewSession, previewToken, dashboardBaseUrl = null, surfaceId, theme, renderTheme, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null, themeSelectionHeaderLayoutId = null, themeSelectionHeaderStyleId = null, themeSelectionHeaderLookId = null, themeSelectionFooterLookId = null, themeSelectionHeaderContext, pageId, routeId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, initialStatus, initialBlocks, pageMetadata, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, supabaseUrl, themeRuntime = defaultPreviewThemeRuntime, designEditorEligibility, hideSiteStyleConfigurator = false, baseFetch, onFooterSaved }) {
|
|
36927
36998
|
const apiClient = useMemo(() => createBearerAPIClient(previewToken, apiBaseUrl), [previewToken, apiBaseUrl]);
|
|
36928
|
-
const
|
|
36999
|
+
const { designEditorEnabled, siteStyleAccess } = resolveShellAccess({
|
|
37000
|
+
previewSession,
|
|
37001
|
+
designEditorEligibility,
|
|
36929
37002
|
pageId,
|
|
36930
|
-
entryData
|
|
37003
|
+
entryData,
|
|
37004
|
+
hideSiteStyleConfigurator
|
|
36931
37005
|
});
|
|
36932
|
-
const designEditorEnabled = isPreviewRuntimeSessionEditable(previewSession) && resolvedDesignEditorEligibility.kind === "managed-page" && Boolean(pageId);
|
|
36933
|
-
const siteStyleAccess = hideSiteStyleConfigurator ? { kind: "hidden" } : resolveSiteStyleAccess(previewSession);
|
|
36934
37006
|
return /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
36935
37007
|
config: blockApiConfig,
|
|
36936
37008
|
children: /* @__PURE__ */ jsx(PreviewQueryProvider, { children: /* @__PURE__ */ jsx(PreviewAuthInit, {
|
|
@@ -36965,6 +37037,7 @@ function PreviewShell({ children, apiBaseUrl, blockApiConfig, siteId, siteSlug,
|
|
|
36965
37037
|
mediaAssets,
|
|
36966
37038
|
children: [/* @__PURE__ */ jsx(PreviewKeepAliveClient, { baseFetch }), /* @__PURE__ */ jsx(PreviewShellLayout, {
|
|
36967
37039
|
theme,
|
|
37040
|
+
renderTheme,
|
|
36968
37041
|
surfaceId,
|
|
36969
37042
|
siteId,
|
|
36970
37043
|
dashboardBaseUrl,
|
|
@@ -36981,7 +37054,6 @@ function PreviewShell({ children, apiBaseUrl, blockApiConfig, siteId, siteSlug,
|
|
|
36981
37054
|
themeSelectionVersion,
|
|
36982
37055
|
themeSelectionUpdatedAt,
|
|
36983
37056
|
themeSelectionButtonStyleSelection,
|
|
36984
|
-
runtimePaletteState,
|
|
36985
37057
|
themeSelectionHeaderLayoutId,
|
|
36986
37058
|
themeSelectionHeaderStyleId,
|
|
36987
37059
|
themeSelectionHeaderLookId,
|
|
@@ -37012,6 +37084,16 @@ function defaultDesignEditorEligibility(input) {
|
|
|
37012
37084
|
if (input.pageId) return { kind: "managed-page" };
|
|
37013
37085
|
return { kind: "unsupported" };
|
|
37014
37086
|
}
|
|
37087
|
+
function resolveShellAccess(input) {
|
|
37088
|
+
const eligibility = input.designEditorEligibility ?? defaultDesignEditorEligibility({
|
|
37089
|
+
pageId: input.pageId,
|
|
37090
|
+
entryData: input.entryData
|
|
37091
|
+
});
|
|
37092
|
+
return {
|
|
37093
|
+
designEditorEnabled: isPreviewRuntimeSessionEditable(input.previewSession) && eligibility.kind === "managed-page" && Boolean(input.pageId),
|
|
37094
|
+
siteStyleAccess: input.hideSiteStyleConfigurator ? { kind: "hidden" } : resolveSiteStyleAccess(input.previewSession)
|
|
37095
|
+
};
|
|
37096
|
+
}
|
|
37015
37097
|
//#endregion
|
|
37016
37098
|
//#region ../preview-next/src/client/utils/path.ts
|
|
37017
37099
|
const PATH_SEPARATOR_REGEX = /\./g;
|
|
@@ -39404,10 +39486,6 @@ function SdkPreviewModeRuntime(props) {
|
|
|
39404
39486
|
mediaAssets: content.mediaAssets
|
|
39405
39487
|
};
|
|
39406
39488
|
return /* @__PURE__ */ jsx(PreviewShell, {
|
|
39407
|
-
runtimePaletteState: {
|
|
39408
|
-
kind: "invalid",
|
|
39409
|
-
reason: "missing-active-palette-reference"
|
|
39410
|
-
},
|
|
39411
39489
|
apiBaseUrl,
|
|
39412
39490
|
blockApiConfig: useMemo(() => ({
|
|
39413
39491
|
baseUrl: apiBaseUrl,
|