@riverbankcms/sdk 0.129.1 → 0.130.2
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/CHANGELOG.md +85 -0
- package/README.md +33 -11
- package/dist/{PreviewEditorSidebar-DceRseRV.mjs → PreviewEditorSidebar-BY-1QdE2.mjs} +327 -250
- package/dist/{PreviewEditorUI-BNunq3kk.mjs → PreviewEditorUI-BS34jI9_.mjs} +3 -3
- package/dist/{PreviewQueryProvider-B1kbhaJD.mjs → PreviewQueryProvider-BD0kOjtI.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-Bt87-62u.mjs → SdkPreviewModeRuntime-B1pWnhu-.mjs} +235 -211
- package/dist/{SiteChromeCustomizeContext-BLl-OlL4.mjs → SiteChromeCustomizeContext-BhUG_72i.mjs} +12981 -11912
- package/dist/_dts/ai/src/contracts/proposalPrimitives.d.ts +52 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +5256 -29129
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +33429 -0
- package/dist/_dts/api/src/accountApi.d.ts +213 -0
- package/dist/_dts/api/src/accountEndpointDefinitions.d.ts +30 -0
- package/dist/_dts/api/src/accountEndpoints.d.ts +254 -0
- package/dist/_dts/api/src/apiCallParams.d.ts +60 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +21 -9
- package/dist/_dts/api/src/bookingConfig.d.ts +12 -64
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +17 -16
- package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +15 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/bookingSettingsSections.d.ts +9 -0
- package/dist/_dts/api/src/bookingVerticals.d.ts +2 -2
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +2 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -5
- package/dist/_dts/api/src/endpoints.d.ts +1355 -1318
- package/dist/_dts/api/src/event-destination-policy.d.ts +1 -1
- package/dist/_dts/api/src/eventManagementContracts.d.ts +152 -0
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +26 -0
- package/dist/_dts/api/src/eventSeriesPresentationPreset.d.ts +12 -0
- package/dist/_dts/api/src/index.d.ts +12 -3
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -0
- package/dist/_dts/api/src/oauth.d.ts +8 -0
- package/dist/_dts/api/src/preview-auth.d.ts +26 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +22 -47
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +5 -5
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +0 -1
- package/dist/_dts/api/src/sdk-event-schedule.d.ts +5 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +114 -20
- package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +48 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +43 -79
- package/dist/_dts/api/src/sdkEventCategoryContracts.d.ts +9 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +35 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +2256 -302
- package/dist/_dts/api/src/settings/permissions.d.ts +2 -2
- package/dist/_dts/api/src/siteApiKeyEndpointDefinitions.d.ts +66 -0
- package/dist/_dts/api/src/siteInfrastructure.d.ts +3 -3
- package/dist/_dts/api/src/siteOperations.d.ts +1 -1
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +17 -4
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +23 -37
- package/dist/_dts/api/src/types.d.ts +7 -59
- package/dist/_dts/block-form/src/client/index.d.ts +15 -23
- package/dist/_dts/block-form/src/index.d.ts +23 -22
- 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/primitives/layout/Grid.d.ts +18 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +61 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +24 -22
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +25 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +142 -120
- 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/blocks/site-header.d.ts +0 -1
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +4 -63
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +5 -5
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +9 -9
- 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 +18 -34
- package/dist/_dts/blocks/src/system/fields/gridLayout.d.ts +20 -0
- 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/node/fragments/classNameBinding.d.ts +6 -1
- package/dist/_dts/blocks/src/system/node/fragments/styledCard.d.ts +31 -0
- package/dist/_dts/blocks/src/system/registry.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +0 -1
- 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/hooks/useHeadlessBookingFlow.state.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +24 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.validationErrors.d.ts +17 -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/event-registration/event-registration.headless.planning.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +4 -1
- 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/runtime/shared/components/FeedbackMessage.d.ts +17 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/spacing.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/boxStyleClassNames.d.ts +90 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +7 -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 +29 -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 +4 -40
- 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/components/ContentFieldsForm.d.ts +2 -2
- 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/content-types/builtin-schemas.d.ts +6 -6
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +6 -6
- 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/branded.d.ts +4 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +25 -4
- 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 +4 -0
- package/dist/_dts/core/src/public-event-booking-availability.d.ts +8 -0
- package/dist/_dts/core/src/secret.d.ts +44 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +379 -18
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/preparedManifest.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/blockPayload.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonVariantField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeSelectField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/inline-text/InlineTextField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/OfferingsPreviewGroupOrderField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +1 -1
- 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 +5 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewSiteFontStorageContext.d.ts +6 -0
- 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/siteFontPreview.d.ts +5 -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/preview-next/src/client/sdk/contentStorage.d.ts +10 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -1
- package/dist/_dts/preview-next/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +3 -5
- package/dist/_dts/preview-next/src/refresh-contract.d.ts +1 -0
- package/dist/_dts/preview-next/src/route-contract.d.ts +7 -0
- 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/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +64 -79
- 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/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -16
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +4 -3
- 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 +3 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +15 -2
- 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/theme-bridge/types.d.ts +4 -2
- 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/cards/core.d.ts +54 -10
- package/dist/_dts/theme-core/src/cards/decorations.d.ts +33 -0
- package/dist/_dts/theme-core/src/cards/generateDefaultCardSystem.d.ts +7 -2
- package/dist/_dts/theme-core/src/cards/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/cards/openCardVariant.d.ts +24 -0
- package/dist/_dts/theme-core/src/cards/roles.d.ts +38 -0
- package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +53 -8
- package/dist/_dts/theme-core/src/cards/types.d.ts +489 -21
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +59 -0
- package/dist/_dts/theme-core/src/header/paintTargets.d.ts +2 -2
- package/dist/_dts/theme-core/src/header/scrollTreatment.d.ts +3 -2
- package/dist/_dts/theme-core/src/lib/media.d.ts +583 -10
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +5085 -1524
- package/dist/_dts/theme-core/src/palette/utils/contrast.d.ts +1 -0
- package/dist/_dts/theme-core/src/palette/utils/opaqueSurfaceColor.d.ts +6 -0
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -1
- package/dist/_dts/theme-core/src/schema.d.ts +5300 -2019
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +84 -102
- package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +12 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +9 -4
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +0 -20
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +84 -102
- package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +48 -0
- 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 +21 -385
- 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 +10 -18
- 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} +18 -90
- 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 -11
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -4
- 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 +6 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignAppearanceAvailability.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +22 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +9 -8
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntentEquality.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +14 -41
- package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +19 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +32 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +9 -68
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +13 -12
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +50 -39
- package/dist/_dts/theme-core/src/siteChromePlanning.d.ts +9 -9
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +39 -0
- package/dist/_dts/ui/src/navigation-tabs.d.ts +3 -2
- package/dist/client/{CourseRegistrationWizard-xRmA7REV.mjs → CourseRegistrationWizard-DGW9F0SQ.mjs} +7 -7
- package/dist/client/{DiscountCodeDisclosure-B9vriL5C.mjs → DiscountCodeDisclosure-BPZ-yfGI.mjs} +1 -1
- package/dist/client/{EventCombined.client-BgVnVTlz.mjs → EventCombined.client-Cjt3kKYR.mjs} +4 -4
- package/dist/client/{EventListing.client-CqdsO7jO.mjs → EventListing.client-DY9dn6Fh.mjs} +2 -2
- package/dist/client/{FeedbackMessage-ByMrs3cr.mjs → FeedbackMessage-CtLvvS_d.mjs} +15 -3
- package/dist/client/{LeafletStaticMap-CKPxot9M.mjs → LeafletStaticMap--2c61XYn.mjs} +1 -1
- package/dist/client/{StepIndicator-DGCYuBJ1.mjs → StepIndicator-CLjQhkDb.mjs} +3 -3
- package/dist/client/{accordion-BfN5Eqd-.mjs → accordion-_boYwHHi.mjs} +1 -1
- package/dist/client/{bookingForm-DOvCpBFP.mjs → bookingForm--AqEfyBX.mjs} +56 -39
- package/dist/client/bookings.mjs +1348 -1157
- package/dist/client/{carousel-DPNmiH0f.mjs → carousel-CVI2dqZr.mjs} +2 -2
- package/dist/client/{carousel.client-CpwTUhIo.mjs → carousel.client-59G_WMr4.mjs} +1 -1
- package/dist/client/{cart--egVXlrR.mjs → cart-DR6IiPz9.mjs} +3 -3
- package/dist/client/{checkout-DywWtMcq.mjs → checkout-CsrGAfQt.mjs} +3 -3
- package/dist/client/client.mjs +20935 -19889
- package/dist/client/{colorStyles-BWpj_h4C.mjs → colorStyles-CrxJrPjJ.mjs} +277 -1
- package/dist/client/{context-CJz1Vlsz.mjs → context-B83PiNzm.mjs} +6 -21
- package/dist/client/{courseRegistration-Dk9qFVwt.mjs → courseRegistration-aNJVaLa3.mjs} +3 -3
- package/dist/client/{eventCalendar-Bkz2HjlS.mjs → eventCalendar-OZ7h59VN.mjs} +6 -6
- package/dist/client/{eventCombined-D4kipYWg.mjs → eventCombined-BbJ6bFKz.mjs} +3 -3
- package/dist/client/{eventDetails-Dz_5ix2Q.mjs → eventDetails-BLyUBiCT.mjs} +3 -3
- package/dist/client/{eventListing-D0vm-zST.mjs → eventListing-DuP1yhBS.mjs} +3 -3
- package/dist/client/{eventRegistration-Cw1E4Q4p.mjs → eventRegistration-BXyECPa-.mjs} +11 -12
- package/dist/client/{form-C2Zf1n3K.mjs → form-BA4t3kKU.mjs} +4 -4
- package/dist/client/{headerSection-CP05gzdc.mjs → headerSection-CpNaJxhW.mjs} +151 -104
- package/dist/client/hooks.mjs +6328 -6104
- package/dist/client/{locationMap-Cl3x9PYJ.mjs → locationMap-3HGMCL7_.mjs} +3 -3
- package/dist/client/{media-CNE1Z-wb.mjs → media-BOHuueS5.mjs} +16 -4
- package/dist/client/{newsletterForm-DyEJoClm.mjs → newsletterForm-C2s6Mw67.mjs} +4 -4
- package/dist/client/{pricing-DGuNR1W4.mjs → pricing-BiqIMgZk.mjs} +1 -1
- package/dist/client/{productDetail-Cq-HrGew.mjs → productDetail-C9joWhdE.mjs} +3 -3
- package/dist/client/{productList-DbB3jwqd.mjs → productList-CjzdU3pB.mjs} +3 -3
- package/dist/client/{propsDecoder-CiTuhUwY.mjs → propsDecoder-CBPGXEYX.mjs} +2480 -2478
- package/dist/client/rendering/client.mjs +5371 -6741
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +18616 -17447
- package/dist/client/{scrollToBlock-CShkRqab.mjs → scrollToBlock-DZ73aEX6.mjs} +1 -1
- package/dist/client/{shop-Cu4Ib-ZA.mjs → shop-CQRai7hj.mjs} +36 -25
- package/dist/client/{shop-commerce-BzpsOdh7.mjs → shop-commerce-hP9UboOx.mjs} +8 -8
- package/dist/client/{shop-commerce-store-DaE7Fhj8.mjs → shop-commerce-store-DiD5a32e.mjs} +1 -1
- package/dist/client/{shopShared-cF0c20vB.mjs → shopShared-DP8DXTkF.mjs} +12 -6
- package/dist/client/{useEventFilters-QZ3HMgaJ.mjs → useEventFilters-pF_OJNQP.mjs} +137 -81
- package/dist/client/{usePolling-BKf0GcE-.mjs → usePolling-Cls91SD2.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +202 -129
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +7406 -29
- package/dist/preview-next/middleware.mjs +196 -128
- package/dist/{previewAuthStore-BesgU5Xu.mjs → previewAuthStore-CX1C_KJ4.mjs} +195 -128
- package/dist/{sdk-runtime-C20CVWbb.mjs → sdk-runtime-5CcPAI14.mjs} +2 -2
- package/dist/{separator-BE3NCquy.mjs → separator-BXlYN_gr.mjs} +1 -1
- package/dist/server/components.mjs +22644 -21375
- package/dist/server/config-validation.mjs +6507 -6309
- package/dist/server/config.mjs +6511 -6313
- package/dist/server/data.mjs +6311 -6104
- package/dist/server/date-time.mjs +22 -13
- package/dist/server/index.mjs +196 -129
- package/dist/server/next.mjs +22782 -21578
- package/dist/server/page-converter.mjs +4769 -6213
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +20525 -20291
- package/dist/server/rendering.mjs +22677 -21389
- package/dist/server/routing.mjs +6651 -5398
- package/dist/server/server.mjs +6389 -6256
- package/dist/server/theme-bridge.mjs +2251 -2465
- package/dist/server/theme.mjs +974 -642
- package/dist/styles/index.css +317 -337
- package/package.json +3 -2
- package/dist/_dts/block-form/src/client/blockDraftSaveability.d.ts +0 -1
- package/dist/_dts/block-form/src/widgets/index.d.ts +0 -20
- package/dist/_dts/blocks/src/system/runtime/api/requestBody.d.ts +0 -7
- 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
- package/dist/client/clsx-DgIEfj3H.mjs +0 -16
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $
|
|
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 { $n as richTextFragment, $r as parseGeneratedIconAssetId, $t as createSnapshotFromPageRecord, Aa as unsafeAsEditorBlockValues, An as getResponsiveScopeSpec, Ar as gradientToCss, At as useEditor, Bi as unmapValueFromSelect, Bn as resolveEntryRouteTarget, Br as backgroundAppearanceColorTokenNames, Bt as useEditorUiStoreInstance, Ci as parseThemeForPersistence, Cn as useMediaEditorOptional, Ct as MediaField, Da as cn, Di as assertNever$1, Dn as containerResponsiveThemeCss, Dt as RichTextField, Ei as asDesignBlockId, En as ThemeScope, Er as surfaceResolutionContextFromTheme, Et as useRichTextImagePicker, Fa as X, Fi as SdkConfigProvider, Fn as getDefaultComponentRegistry, Ft as prepareBlockEditorManifest, G as beginAutosaveBatch, Gn as SITE_CHROME_VISIBLE_HEADER_SELECTOR, Gr as parseBackgroundContent, Gt as pushHistoryEntry, Hi as useField, Hn as resolveRouteTarget, Hr as parseBackgroundAppearanceColorToken, Ht as canRedoHistory, Ia as Upload, Ii as useSdkConfig, In as LINKED_CONTENT_ENTRY_META_KEY, Ir as defaultSectionTransitionVariantForFamily, It as stripTopLevelRoutingUi, J as enqueueTransaction, Ji as SelectItem, Jn as visibleHeaderClearancePx, Jr as eventCalendarListLayoutCompatibleDisplayModeValues, Jt as unsafeAsLinkedContentEntryId, K as confirmAutosaveBatch, Ki as Select, Kn as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, Kr as runTransforms, Kt as redoHistory, Li as hasEmptyOption, Ln as coerceLinkedContentEntriesPayload, Lr as sectionTransitionFamilies, Lt as getBlockManifestFromSdkConfig, Ma as expectParsedBrandedId, Mi as BlockApiProvider, Mn as createCustomBlockRegistry, Mr as GRADIENT_PRESET_IDS, Mt as LinkWidgetProvider, Na as parseMediaAssetId, Ni as getFieldIntent, Nn as makeDefaultBlockComponent, Nr as getGradientPreset, Oa as parseFooterModuleId, Oi as textColorStyle, On as buildThemeRuntime, Ot as RichTextWidgetProvider, Pa as parseSiteId, Pi as isHeaderField, Pn as readBlockComposition, Pr as parseGradientPresetId, Pt as hideThemeV2RawStyleFields, Q as resolvePreviewSidebarTab, Qa as GripVertical, Qn as ImageResolveContextProvider, Qr as parseBlockIconValue, Qt as createRoutingHelpers, Ri as mapCurrentValueForSelect, Rn as getLinkedContentEntryMeta, Rr as sectionTransitionFamilyForBoundaryOptionId, Sn as MediaEditorContextProvider, Sr as componentRuntimeRulesForTheme, St as FileField, Ta as Button, Ti as pageDesignEditorBackgroundOverrideOwner, Tn as isSupportedLoaderEndpoint, Tt as ReferenceWidgetProvider, Ua as RotateCcw, Un as getBlockDefinition, Ur as defaultThemeTokens, Ut as canUndoHistory, Vi as FieldFrame, Vn as resolvePageRouteTarget, Vr as backgroundAppearanceQuickColorTokenNames, Vt as useOptionalEditorUiStoreInstance, Wn as projectRecurringSchedule, Wr as ctaButton, Wt as createHistoryState, X as rejectAutosaveBatch, Xi as SelectValue, Xn as createManifestValidator, Y as idleEditorTransactionQueueState, Yi as SelectTrigger, Yn as resolveVariantKey, Yr as eventCalendarListLayoutOptions, Yt as recordsEqual, Za as Image, Zn as clientComponentRegistry, Zr as planSiteChromePlacement, Zt as useDebouncedLatestSave, _ as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, _r as applyCompiledRuntimeFieldsToContent, _t as IconPickerField, aa as TabsContent, ai as inlineTextToPlainText, ao as __exportAll, ar as singleButtonFragment, at as useUISelector, bn as deriveLaunchReadiness, br as retargetCompiledRuntimeFieldsForContentAdjacency, bt as ButtonVariantField, ca as Dialog, ci as RichText$1, cr as testimonialsCarouselFragment, da as DialogFooter, di as resolveImageUrlWithContext, dn as FormRenderer, dr as heroCtaRowFragment, dt as createSiteOptionWidgetAdapters, ei as parseGeneratedIconSetId, en as BUILT_IN_REFERENCE_KINDS, er as headingFragment, et as renderSiteChromeBlock, f as PreviewDesignCoordinatorProvider, fa as DialogHeader, fi as setContextResolveImageUrlContext, fn as evaluateVisibility, fr as ctaRowFragment, ft as SiteOptionPickerField, g as PREVIEW_DESIGN_LOAD_ERROR_MESSAGE, gi as siblingPath, gn as getPageDesignEditorState, gr as formatSiteChromeBackgroundTokenLabel, gt as InlineTextField, h as usePreviewThemeOverlay, hi as getAtPath, hn as applyPageDesignEditorAction, hr as defineFragment, ht as OfferingsPreviewWidgetProvider, i as usePreviewDesignHistoryOrder, ia as Tabs, ii as coerceInlineTextWithFallback, ir as blogFeaturedPostFragment, ja as assertNever$2, ji as ORDINARY_TEXT_MIN_CONTRAST_RATIO, jn as escapeStyleContent, jr as GRADIENT_PRESETS, jt as LinkField, ka as unsafeAsEditorBlockId, kn as DEFAULT_THEME_RESPONSIVE_MODE, kt as EditorProvider, la as DialogContent, li as buildResolveImageUrlContext, ln as createManifestFormAdapter, lr as testimonialsHeadingFragment, lt as useEntryEditorController, m as PreviewThemeOverlayProvider, mi as attachRenderableMediaAssetFields, mn as MediaEditor, mr as bodyCopyFragment, mt as OfferingsPreviewGroupOrderField, n as useSiteChromeCustomizeOptional, ni as isObjectRecord, nn as parseReferenceKind, no as ChevronLeft, nr as faqAccordionFragment, nt as PreviewInlineTextEditor, oa as TabsList, oi as isInlineTextEmpty, on as PaletteProvider, or as formEmbedFragment, ot as EditableBlockProvider, pa as DialogTitle, pi as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, pn as createStoreBackend, pr as heroCopyFragment, pt as SiteOptionWidgetProvider, q as deriveTransactionCapabilities, qi as SelectContent, qn as planSiteOverlayHeaderClearance, qr as bindingSchema, qt as undoHistory, r as PreviewDesignHistoryOrderProvider, ri as isRecord$13, rr as faqHeadingFragment, rt as PreviewTextEditor, sa as TabsTrigger, si as Text$1, sn as usePalette, sr as formCopyFragment, st as EntryControllerProvider, t as SiteChromeCustomizeProvider, ti as renderInlineText, to as ChevronRight, tr as cardFragment, tt as PreviewRichTextEditor, ua as DialogDescription, ui as getCurrentResolveImageUrlContext, ur as ctaCopyFragment, ut as createSiteOptionApiLoader, v as reportPreviewDesignError, vn as decodePublicProductCategorySelectorQuery, vr as compileEditorModelRuntime, vt as EntryPickerField, wi as isThemeV2NormalEditorRawStyleFieldName, wn as useApiMediaUploader, wr as designRuntimeRulesForTheme, wt as ReferenceField, xn as AMBIENT_BACKGROUND_ROLES, xr as planPageDesignLayoutLookCompatibility, xt as ButtonWidgetProvider, yn as DEFAULT_LAUNCH_READINESS_INPUT, yr as retargetCompiledBoundaryRuntimeForContentAdjacency, yt as EntryPickerWidgetProvider, zi as mapOptionValueForSelect, zn as defaultTransforms, zr as sectionTransitionVariantForBoundaryOptionId, zt as useEditorUiStore } from "./SiteChromeCustomizeContext-BhUG_72i.mjs";
|
|
3
|
+
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-BD0kOjtI.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-CX1C_KJ4.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,48 @@ 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
|
+
"alternative",
|
|
1137
|
+
"open",
|
|
1136
1138
|
"elevated",
|
|
1137
1139
|
"outlined"
|
|
1138
1140
|
])).optional() })]).optional(),
|
|
1139
|
-
inputs: z
|
|
1141
|
+
inputs: z.boolean().optional()
|
|
1140
1142
|
}).optional(),
|
|
1141
|
-
overrides: z
|
|
1143
|
+
overrides: z.record(z.string(), z.string()).optional()
|
|
1142
1144
|
}).passthrough();
|
|
1143
1145
|
//#endregion
|
|
1144
1146
|
//#region ../theme-core/src/siteChromePlanning.ts
|
|
@@ -1162,8 +1164,7 @@ function planSiteTopShell(input) {
|
|
|
1162
1164
|
contentStartsUnderHeader: false,
|
|
1163
1165
|
requiresHeaderOffset: false
|
|
1164
1166
|
};
|
|
1165
|
-
const
|
|
1166
|
-
const isOverlayHeader = input.headerVariant === "transparent" && input.headerPositioning === "fixed" || isFloatingOverlayHeader;
|
|
1167
|
+
const isOverlayHeader = input.headerVariant === "floating" && (input.headerPositioning === "sticky" || input.headerPositioning === "fixed");
|
|
1167
1168
|
if (input.hasVisibleBanner && isOverlayHeader) return {
|
|
1168
1169
|
behavior: "banner-above-overlay-header",
|
|
1169
1170
|
contentStartsUnderHeader: true,
|
|
@@ -1490,6 +1491,10 @@ function coercePayload(payload) {
|
|
|
1490
1491
|
* - Frontend: provide internal API client
|
|
1491
1492
|
* - SDK: provide SDK client with endpoint mapping
|
|
1492
1493
|
*/
|
|
1494
|
+
function shouldSkipResolvedLoader(input) {
|
|
1495
|
+
if (input.loader.requiredParams?.some((param) => !input.params[param]?.trim())) return true;
|
|
1496
|
+
return Boolean(input.isValidEndpoint && !input.isValidEndpoint(input.endpoint));
|
|
1497
|
+
}
|
|
1493
1498
|
/**
|
|
1494
1499
|
* Core data prefetching logic (framework-agnostic).
|
|
1495
1500
|
*
|
|
@@ -1545,7 +1550,12 @@ async function prefetchBlockData(page, context, options) {
|
|
|
1545
1550
|
}
|
|
1546
1551
|
const params = normalizeParams(resolveParamsBindings$1(loader.params, vm, { blockKind: block.kind }));
|
|
1547
1552
|
const endpoint = loader.endpoint;
|
|
1548
|
-
if (
|
|
1553
|
+
if (shouldSkipResolvedLoader({
|
|
1554
|
+
loader,
|
|
1555
|
+
endpoint,
|
|
1556
|
+
params,
|
|
1557
|
+
isValidEndpoint
|
|
1558
|
+
})) continue;
|
|
1549
1559
|
tasks.push((async () => {
|
|
1550
1560
|
try {
|
|
1551
1561
|
const data = coercePayload(await apiClient({
|
|
@@ -2265,100 +2275,100 @@ const generateStoragePath = ({ filename, folder = "originals", variantKey, now =
|
|
|
2265
2275
|
};
|
|
2266
2276
|
const DEFAULT_BUCKET = "media";
|
|
2267
2277
|
const MAX_LIMIT = 100;
|
|
2268
|
-
const fileKindSchema = z
|
|
2269
|
-
const fileUsesSchema = z
|
|
2270
|
-
const accessPolicySchema = z
|
|
2271
|
-
const fileDomainSchema = z
|
|
2278
|
+
const fileKindSchema = z.custom((value) => parseFileKindJson(value).ok, { message: "Invalid file kind JSON" });
|
|
2279
|
+
const fileUsesSchema = z.custom((value) => parseFileUsesJson(value).ok, { message: "Invalid file uses JSON" });
|
|
2280
|
+
const accessPolicySchema = z.custom((value) => parseAccessPolicyJson(value).ok, { message: "Invalid access policy JSON" });
|
|
2281
|
+
const fileDomainSchema = z.object({
|
|
2272
2282
|
fileKind: fileKindSchema,
|
|
2273
2283
|
fileUses: fileUsesSchema,
|
|
2274
2284
|
accessPolicy: accessPolicySchema,
|
|
2275
|
-
storageClass: z
|
|
2285
|
+
storageClass: z.enum([
|
|
2276
2286
|
"public-site",
|
|
2277
2287
|
"private-site",
|
|
2278
2288
|
"temporary"
|
|
2279
2289
|
]),
|
|
2280
|
-
mimeTypeDetected: z
|
|
2281
|
-
safeDownloadFilename: z
|
|
2282
|
-
lifecycleState: z
|
|
2290
|
+
mimeTypeDetected: z.string().min(1).optional().nullable(),
|
|
2291
|
+
safeDownloadFilename: z.string().min(1).optional().nullable(),
|
|
2292
|
+
lifecycleState: z.enum([
|
|
2283
2293
|
"active",
|
|
2284
2294
|
"pending-delete",
|
|
2285
2295
|
"deleted"
|
|
2286
2296
|
]),
|
|
2287
|
-
originAssetId: z
|
|
2288
|
-
derivativeKind: z
|
|
2297
|
+
originAssetId: z.string().uuid().optional().nullable(),
|
|
2298
|
+
derivativeKind: z.enum([
|
|
2289
2299
|
"image-variant",
|
|
2290
2300
|
"video-poster",
|
|
2291
2301
|
"audio-waveform"
|
|
2292
2302
|
]).optional().nullable(),
|
|
2293
|
-
uploadSessionId: z
|
|
2303
|
+
uploadSessionId: z.string().uuid().optional().nullable()
|
|
2294
2304
|
});
|
|
2295
2305
|
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
|
|
2306
|
+
z.object({
|
|
2307
|
+
id: z.string().min(1).optional(),
|
|
2308
|
+
siteId: z.string().min(1),
|
|
2309
|
+
storagePath: z.string().min(1),
|
|
2310
|
+
storageBucket: z.string().min(1).default(DEFAULT_BUCKET),
|
|
2311
|
+
filename: z.string().min(1),
|
|
2312
|
+
identifier: z.string().min(1).optional().nullable(),
|
|
2313
|
+
mimeType: z.string().min(1),
|
|
2314
|
+
width: z.number().int().nonnegative().optional(),
|
|
2315
|
+
height: z.number().int().nonnegative().optional(),
|
|
2316
|
+
bytes: z.number().int().nonnegative(),
|
|
2317
|
+
checksumSha256: z.string().min(1).optional().nullable(),
|
|
2308
2318
|
fileDomain: fileDomainSchema,
|
|
2309
|
-
source: z
|
|
2310
|
-
title: z
|
|
2311
|
-
altText: z
|
|
2312
|
-
caption: z
|
|
2313
|
-
exif: z
|
|
2314
|
-
createdBy: z
|
|
2315
|
-
isThumbnail: z
|
|
2319
|
+
source: z.enum(["upload", "instagram"]).optional(),
|
|
2320
|
+
title: z.string().optional().nullable(),
|
|
2321
|
+
altText: z.string().optional().nullable(),
|
|
2322
|
+
caption: z.string().optional().nullable(),
|
|
2323
|
+
exif: z.record(z.string(), z.any()).optional().nullable(),
|
|
2324
|
+
createdBy: z.string().min(1).optional().nullable(),
|
|
2325
|
+
isThumbnail: z.boolean().optional()
|
|
2316
2326
|
});
|
|
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
|
|
2327
|
+
z.object({
|
|
2328
|
+
filename: z.string().optional(),
|
|
2329
|
+
identifier: z.string().nullable().optional(),
|
|
2330
|
+
mimeType: z.string().optional(),
|
|
2331
|
+
storagePath: z.string().optional(),
|
|
2332
|
+
storageBucket: z.string().optional(),
|
|
2333
|
+
width: z.number().int().nonnegative().nullable().optional(),
|
|
2334
|
+
height: z.number().int().nonnegative().nullable().optional(),
|
|
2335
|
+
bytes: z.number().int().nonnegative().nullable().optional(),
|
|
2336
|
+
checksumSha256: z.string().nullable().optional(),
|
|
2327
2337
|
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
|
|
2338
|
+
source: z.enum(["upload", "instagram"]).optional(),
|
|
2339
|
+
title: z.string().nullable().optional(),
|
|
2340
|
+
altText: z.string().nullable().optional(),
|
|
2341
|
+
caption: z.string().nullable().optional(),
|
|
2342
|
+
exif: z.record(z.string(), z.any()).nullable().optional(),
|
|
2343
|
+
durationSeconds: z.number().positive().nullable().optional(),
|
|
2344
|
+
thumbnailAssetId: z.string().uuid().nullable().optional(),
|
|
2345
|
+
isThumbnail: z.boolean().optional()
|
|
2336
2346
|
}).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
|
|
2347
|
+
z.object({
|
|
2348
|
+
siteId: z.string().min(1),
|
|
2349
|
+
limit: z.number().int().min(1).max(MAX_LIMIT).optional(),
|
|
2350
|
+
offset: z.number().int().min(0).optional(),
|
|
2351
|
+
search: z.string().optional(),
|
|
2352
|
+
orderBy: z.enum(["created_at", "filename"]).optional(),
|
|
2353
|
+
orderDirection: z.enum(["asc", "desc"]).optional(),
|
|
2354
|
+
labels: z.array(z.string()).optional(),
|
|
2355
|
+
mediaKinds: z.array(z.enum(MEDIA_KINDS)).optional(),
|
|
2356
|
+
fileFilter: z.enum(MEDIA_ASSET_FILE_FILTERS).optional(),
|
|
2357
|
+
libraryScope: z.enum(MEDIA_ASSET_LIBRARY_SCOPES).optional()
|
|
2348
2358
|
});
|
|
2349
|
-
const searchMatchRowSchema = z
|
|
2350
|
-
id: z
|
|
2351
|
-
score: z
|
|
2359
|
+
const searchMatchRowSchema = z.object({
|
|
2360
|
+
id: z.string(),
|
|
2361
|
+
score: z.number()
|
|
2352
2362
|
});
|
|
2353
|
-
z
|
|
2354
|
-
const mediaLabelRowSchema = z
|
|
2355
|
-
id: z
|
|
2356
|
-
slug: z
|
|
2357
|
-
name: z
|
|
2358
|
-
created_at: z
|
|
2359
|
-
updated_at: z
|
|
2363
|
+
z.array(searchMatchRowSchema);
|
|
2364
|
+
const mediaLabelRowSchema = z.object({
|
|
2365
|
+
id: z.number(),
|
|
2366
|
+
slug: z.string(),
|
|
2367
|
+
name: z.string(),
|
|
2368
|
+
created_at: z.string(),
|
|
2369
|
+
updated_at: z.string()
|
|
2360
2370
|
});
|
|
2361
|
-
z
|
|
2371
|
+
z.array(mediaLabelRowSchema);
|
|
2362
2372
|
//#endregion
|
|
2363
2373
|
//#region ../media-storage-api/dist/index.mjs
|
|
2364
2374
|
const DEFAULT_MESSAGES = {
|
|
@@ -3662,6 +3672,40 @@ const previewWidgetOverrides = {
|
|
|
3662
3672
|
siteOptionPicker: SiteOptionPickerField
|
|
3663
3673
|
};
|
|
3664
3674
|
//#endregion
|
|
3675
|
+
//#region ../preview-next/src/client/preview/PreviewBlockCustomizeSelectionContext.tsx
|
|
3676
|
+
const PreviewBlockCustomizeSelectionContext = createContext(null);
|
|
3677
|
+
function PreviewBlockCustomizeSelectionProvider({ children }) {
|
|
3678
|
+
const uiStore = useEditorUiStoreInstance();
|
|
3679
|
+
const previewInspection = useUISelector(uiStore, (state) => state.previewInspection);
|
|
3680
|
+
const selection = useMemo(() => previewInspection.kind === "block-customize" ? {
|
|
3681
|
+
kind: "selected",
|
|
3682
|
+
blockId: previewInspection.blockId,
|
|
3683
|
+
requestId: previewInspection.requestId
|
|
3684
|
+
} : { kind: "none" }, [previewInspection]);
|
|
3685
|
+
const inspectBlock = useCallback((blockId) => {
|
|
3686
|
+
uiStore.getState().inspectBlock(blockId);
|
|
3687
|
+
}, [uiStore]);
|
|
3688
|
+
const clearInspection = useCallback(() => {
|
|
3689
|
+
uiStore.getState().clearPreviewInspection();
|
|
3690
|
+
}, [uiStore]);
|
|
3691
|
+
const value = useMemo(() => ({
|
|
3692
|
+
selection,
|
|
3693
|
+
inspectBlock,
|
|
3694
|
+
clearInspection
|
|
3695
|
+
}), [
|
|
3696
|
+
clearInspection,
|
|
3697
|
+
inspectBlock,
|
|
3698
|
+
selection
|
|
3699
|
+
]);
|
|
3700
|
+
return /* @__PURE__ */ jsx(PreviewBlockCustomizeSelectionContext.Provider, {
|
|
3701
|
+
value,
|
|
3702
|
+
children
|
|
3703
|
+
});
|
|
3704
|
+
}
|
|
3705
|
+
function usePreviewBlockCustomizeSelectionOptional() {
|
|
3706
|
+
return useContext(PreviewBlockCustomizeSelectionContext);
|
|
3707
|
+
}
|
|
3708
|
+
//#endregion
|
|
3665
3709
|
//#region ../preview-next/src/client/blocks/previewCustomizeControlPlan.ts
|
|
3666
3710
|
const ABSOLUTE_MAX_QUICK_FIELDS = 3;
|
|
3667
3711
|
function createPreviewCustomizeControlPlan({ fields, content, quickFieldPriority = [], maxQuickFields = ABSOLUTE_MAX_QUICK_FIELDS }) {
|
|
@@ -3821,51 +3865,16 @@ function resolveBlockManifest(blockKind, sdkConfig) {
|
|
|
3821
3865
|
return getBlockManifestFromSdkConfig(blockKind, sdkConfig) ?? getBlockDefinition(blockKind)?.manifest ?? null;
|
|
3822
3866
|
}
|
|
3823
3867
|
//#endregion
|
|
3824
|
-
//#region ../preview-next/src/client/preview/
|
|
3825
|
-
const
|
|
3826
|
-
function
|
|
3827
|
-
|
|
3828
|
-
|
|
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,
|
|
3868
|
+
//#region ../preview-next/src/client/preview/PreviewSiteFontStorageContext.tsx
|
|
3869
|
+
const PreviewSiteFontStorageContext = createContext(void 0);
|
|
3870
|
+
function PreviewSiteFontStorageProvider({ siteFontStorageUrl, children }) {
|
|
3871
|
+
return /* @__PURE__ */ jsx(PreviewSiteFontStorageContext.Provider, {
|
|
3872
|
+
value: siteFontStorageUrl,
|
|
3851
3873
|
children
|
|
3852
3874
|
});
|
|
3853
3875
|
}
|
|
3854
|
-
function
|
|
3855
|
-
return useContext(
|
|
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";
|
|
3876
|
+
function usePreviewSiteFontStorageUrl() {
|
|
3877
|
+
return useContext(PreviewSiteFontStorageContext);
|
|
3869
3878
|
}
|
|
3870
3879
|
//#endregion
|
|
3871
3880
|
//#region ../preview-next/src/client/preview/previewChromeSurfacePolicy.ts
|
|
@@ -4071,6 +4080,15 @@ function buildPreviewDashboardSetupUrl(dashboardBaseUrl, handoff) {
|
|
|
4071
4080
|
return new URL(handoff.dashboardPath, dashboardBaseUrl).toString();
|
|
4072
4081
|
}
|
|
4073
4082
|
//#endregion
|
|
4083
|
+
//#region ../preview-next/src/client/preview/siteStyleAccess.ts
|
|
4084
|
+
function resolveSiteStyleAccess(session) {
|
|
4085
|
+
if (session?.kind === "userSession" && session.canEdit) return { kind: "apply-allowed" };
|
|
4086
|
+
return { kind: "hidden" };
|
|
4087
|
+
}
|
|
4088
|
+
function canInspectSiteStyle(access) {
|
|
4089
|
+
return access.kind === "apply-allowed";
|
|
4090
|
+
}
|
|
4091
|
+
//#endregion
|
|
4074
4092
|
//#region ../preview-next/src/client/preview/previewChromeSurface.ts
|
|
4075
4093
|
const PREVIEW_CHROME_THEME_CLASS_NAME = "builder-dashboard-chrome-theme";
|
|
4076
4094
|
const PREVIEW_CHROME_PORTAL_CLASS_NAME = "builder-editor-chrome";
|
|
@@ -4100,6 +4118,32 @@ function applyPreviewChromeSurfaceToElement(element, surface, options) {
|
|
|
4100
4118
|
element.removeAttribute(SURFACE_DOCUMENT_DATA_ATTRIBUTE);
|
|
4101
4119
|
}
|
|
4102
4120
|
//#endregion
|
|
4121
|
+
//#region ../blocks/src/system/customize/serializeBackgroundOverride.ts
|
|
4122
|
+
function serializeBackgroundOverride(override) {
|
|
4123
|
+
switch (override.kind) {
|
|
4124
|
+
case "default": return null;
|
|
4125
|
+
case "color": return {
|
|
4126
|
+
contentOwner: pageDesignEditorBackgroundOverrideOwner,
|
|
4127
|
+
type: "color",
|
|
4128
|
+
color: override.token
|
|
4129
|
+
};
|
|
4130
|
+
case "gradient": return {
|
|
4131
|
+
contentOwner: pageDesignEditorBackgroundOverrideOwner,
|
|
4132
|
+
type: "gradient",
|
|
4133
|
+
gradientPresetId: override.gradientId,
|
|
4134
|
+
...getGradientPreset(override.gradientId).foreground
|
|
4135
|
+
};
|
|
4136
|
+
case "image": return {
|
|
4137
|
+
contentOwner: pageDesignEditorBackgroundOverrideOwner,
|
|
4138
|
+
type: "image",
|
|
4139
|
+
image: {
|
|
4140
|
+
type: "image",
|
|
4141
|
+
assetId: override.mediaId
|
|
4142
|
+
}
|
|
4143
|
+
};
|
|
4144
|
+
}
|
|
4145
|
+
}
|
|
4146
|
+
//#endregion
|
|
4103
4147
|
//#region ../blocks/src/system/customize/backgrounds.ts
|
|
4104
4148
|
const BACKGROUND_MODES = [
|
|
4105
4149
|
"default",
|
|
@@ -4130,9 +4174,6 @@ function parseBackgroundColorToken(value) {
|
|
|
4130
4174
|
if (!token) return null;
|
|
4131
4175
|
return token ? token : null;
|
|
4132
4176
|
}
|
|
4133
|
-
function foregroundTokenForBackgroundColorToken(token) {
|
|
4134
|
-
return foregroundTokenForBackgroundAppearanceColorToken(token);
|
|
4135
|
-
}
|
|
4136
4177
|
function dedupeBackgroundColorTokensByPalette(tokens, palette) {
|
|
4137
4178
|
const seen = /* @__PURE__ */ new Set();
|
|
4138
4179
|
return tokens.filter((token) => {
|
|
@@ -4144,11 +4185,11 @@ function dedupeBackgroundColorTokensByPalette(tokens, palette) {
|
|
|
4144
4185
|
}
|
|
4145
4186
|
const TEXT_BACKGROUND_TREATMENT = {
|
|
4146
4187
|
kind: "theme-foreground",
|
|
4147
|
-
minContrastRatio:
|
|
4188
|
+
minContrastRatio: ORDINARY_TEXT_MIN_CONTRAST_RATIO
|
|
4148
4189
|
};
|
|
4149
4190
|
const IMAGE_BACKGROUND_TREATMENT = {
|
|
4150
4191
|
kind: "look-owned-image-overlay",
|
|
4151
|
-
minContrastRatio:
|
|
4192
|
+
minContrastRatio: ORDINARY_TEXT_MIN_CONTRAST_RATIO,
|
|
4152
4193
|
minOverlayOpacity: .64
|
|
4153
4194
|
};
|
|
4154
4195
|
const gradientPresetIds = GRADIENT_PRESET_IDS;
|
|
@@ -4258,9 +4299,11 @@ function parseBackgroundOverrideFromContent(content) {
|
|
|
4258
4299
|
function parseCanonicalSectionBackground(content) {
|
|
4259
4300
|
const background = (isRecord$9(content._sectionStyles) ? content._sectionStyles : null)?.background;
|
|
4260
4301
|
if (background === null || background === void 0) return { kind: "none" };
|
|
4261
|
-
|
|
4302
|
+
const canonical = parseBackgroundContent(background);
|
|
4303
|
+
if (!canonical) return { kind: "none" };
|
|
4304
|
+
if (canonical.contentOwner !== "page-design-editor") return {
|
|
4262
4305
|
kind: "block-authored",
|
|
4263
|
-
background:
|
|
4306
|
+
background: canonical
|
|
4264
4307
|
};
|
|
4265
4308
|
return {
|
|
4266
4309
|
kind: "page-design-override",
|
|
@@ -4273,7 +4316,7 @@ function parseBackgroundOverride(value) {
|
|
|
4273
4316
|
override: DEFAULT_BACKGROUND_OVERRIDE
|
|
4274
4317
|
};
|
|
4275
4318
|
if (!isRecord$9(value)) return {
|
|
4276
|
-
kind: "
|
|
4319
|
+
kind: "unsupported",
|
|
4277
4320
|
reason: "unsupported-shape",
|
|
4278
4321
|
background: {}
|
|
4279
4322
|
};
|
|
@@ -4283,14 +4326,14 @@ function parseBackgroundOverride(value) {
|
|
|
4283
4326
|
};
|
|
4284
4327
|
switch (typeof value.type === "string" ? value.type.trim() : null) {
|
|
4285
4328
|
case null: return {
|
|
4286
|
-
kind: "
|
|
4329
|
+
kind: "unsupported",
|
|
4287
4330
|
reason: "unsupported-mode",
|
|
4288
4331
|
background: value
|
|
4289
4332
|
};
|
|
4290
4333
|
case "color": {
|
|
4291
4334
|
const token = parseBackgroundColorToken(value.color);
|
|
4292
4335
|
if (!token) return {
|
|
4293
|
-
kind: "
|
|
4336
|
+
kind: "unsupported",
|
|
4294
4337
|
reason: "invalid-color-token",
|
|
4295
4338
|
background: value
|
|
4296
4339
|
};
|
|
@@ -4304,18 +4347,18 @@ function parseBackgroundOverride(value) {
|
|
|
4304
4347
|
}
|
|
4305
4348
|
case "gradient": {
|
|
4306
4349
|
if (typeof value.gradient === "string" && value.gradient.trim()) return {
|
|
4307
|
-
kind: "
|
|
4350
|
+
kind: "unsupported",
|
|
4308
4351
|
reason: "arbitrary-gradient-css",
|
|
4309
4352
|
background: value
|
|
4310
4353
|
};
|
|
4311
4354
|
if (value.gradientPresetId === void 0 || value.gradientPresetId === null) return {
|
|
4312
|
-
kind: "
|
|
4355
|
+
kind: "unsupported",
|
|
4313
4356
|
reason: "missing-gradient-preset-id",
|
|
4314
4357
|
background: value
|
|
4315
4358
|
};
|
|
4316
4359
|
const gradientId = parseGradientPresetId(value.gradientPresetId);
|
|
4317
4360
|
if (!gradientId) return {
|
|
4318
|
-
kind: "
|
|
4361
|
+
kind: "unsupported",
|
|
4319
4362
|
reason: "invalid-gradient-preset-id",
|
|
4320
4363
|
background: value
|
|
4321
4364
|
};
|
|
@@ -4330,12 +4373,12 @@ function parseBackgroundOverride(value) {
|
|
|
4330
4373
|
case "image": {
|
|
4331
4374
|
const mediaIdResult = parseImageMediaAssetId(value.image);
|
|
4332
4375
|
if (mediaIdResult.kind === "missing") return {
|
|
4333
|
-
kind: "
|
|
4376
|
+
kind: "unsupported",
|
|
4334
4377
|
reason: "missing-image-media-id",
|
|
4335
4378
|
background: value
|
|
4336
4379
|
};
|
|
4337
4380
|
if (mediaIdResult.kind === "invalid") return {
|
|
4338
|
-
kind: "
|
|
4381
|
+
kind: "unsupported",
|
|
4339
4382
|
reason: "invalid-image-media-id",
|
|
4340
4383
|
background: value
|
|
4341
4384
|
};
|
|
@@ -4348,49 +4391,17 @@ function parseBackgroundOverride(value) {
|
|
|
4348
4391
|
};
|
|
4349
4392
|
}
|
|
4350
4393
|
case "video": return {
|
|
4351
|
-
kind: "
|
|
4394
|
+
kind: "unsupported",
|
|
4352
4395
|
reason: "video-background",
|
|
4353
4396
|
background: value
|
|
4354
4397
|
};
|
|
4355
4398
|
default: return {
|
|
4356
|
-
kind: "
|
|
4399
|
+
kind: "unsupported",
|
|
4357
4400
|
reason: "unsupported-mode",
|
|
4358
4401
|
background: value
|
|
4359
4402
|
};
|
|
4360
4403
|
}
|
|
4361
4404
|
}
|
|
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
4405
|
function applyBackgroundOverrideContentPatch(content, override) {
|
|
4395
4406
|
const sectionStyles = isRecord$9(content._sectionStyles) ? content._sectionStyles : {};
|
|
4396
4407
|
const serialized = serializeBackgroundOverride(override);
|
|
@@ -4438,7 +4449,7 @@ function planBackgroundTransition(current, capability, action) {
|
|
|
4438
4449
|
function planBackgroundOverride(current, capability, override) {
|
|
4439
4450
|
if (current.kind !== "supported") return {
|
|
4440
4451
|
kind: "blocked",
|
|
4441
|
-
reason: "
|
|
4452
|
+
reason: "unsupported-current-background"
|
|
4442
4453
|
};
|
|
4443
4454
|
const mode = backgroundModeForOverride(override);
|
|
4444
4455
|
if (!enabledBackgroundModes(capability).includes(mode)) return {
|
|
@@ -6376,6 +6387,7 @@ function planResendConfirmationSuccess(input) {
|
|
|
6376
6387
|
const previewBrowserEntries = { previewAuthEntry: { pathname: "/preview/auth" } };
|
|
6377
6388
|
const previewDashboardApiEndpoints = {
|
|
6378
6389
|
previewAuthExchange: { path: `/api${API_ENDPOINTS.previewExchangeCode.path}` },
|
|
6390
|
+
previewAuthRefresh: { path: `/api${API_ENDPOINTS.previewRefreshSession.path}` },
|
|
6379
6391
|
onboardingPreviewStatus: { path: `/api${API_ENDPOINTS.getOnboardingPreviewStatus.path}` },
|
|
6380
6392
|
onboardingResendConfirmation: { path: `/api${API_ENDPOINTS.resendOnboardingPreviewConfirmation.path}` }
|
|
6381
6393
|
};
|
|
@@ -7587,19 +7599,19 @@ function SiteChromeCustomizeButton({ surface, containerClassName = "pointer-even
|
|
|
7587
7599
|
const background = surfaceState.kind === "available" ? surfaceState.background : null;
|
|
7588
7600
|
const cycleableOptionCount = useMemo(() => {
|
|
7589
7601
|
if (surfaceState.kind !== "available") return 0;
|
|
7590
|
-
return surfaceState.options.
|
|
7602
|
+
return surfaceState.options.length;
|
|
7591
7603
|
}, [surfaceState]);
|
|
7592
7604
|
const cycleableLayoutOptionCount = useMemo(() => {
|
|
7593
7605
|
if (surfaceState.kind !== "available" || surfaceState.surface !== "header") return 0;
|
|
7594
|
-
return surfaceState.layoutOptions.
|
|
7606
|
+
return surfaceState.layoutOptions.length;
|
|
7595
7607
|
}, [surfaceState]);
|
|
7596
7608
|
const controlPlan = useMemo(() => {
|
|
7597
7609
|
if (surfaceState.kind !== "available" || !background) return { cycleRows: [] };
|
|
7598
7610
|
return { cycleRows: [...surfaceState.surface === "header" ? [{
|
|
7599
7611
|
label: "Layout",
|
|
7600
7612
|
valueLabel: surfaceState.currentLayoutLabel,
|
|
7601
|
-
previousLabel: `Previous ${surface}
|
|
7602
|
-
nextLabel: `Next ${surface}
|
|
7613
|
+
previousLabel: `Previous ${surface} layout`,
|
|
7614
|
+
nextLabel: `Next ${surface} layout`,
|
|
7603
7615
|
availability: cycleAvailabilityFromFlags({
|
|
7604
7616
|
canCycle: cycleableLayoutOptionCount > 1,
|
|
7605
7617
|
applyAllowed: surfaceState.applyAllowed
|
|
@@ -7607,16 +7619,16 @@ function SiteChromeCustomizeButton({ surface, containerClassName = "pointer-even
|
|
|
7607
7619
|
onPrevious: () => customize?.cycleHeaderLayout("prev"),
|
|
7608
7620
|
onNext: () => customize?.cycleHeaderLayout("next")
|
|
7609
7621
|
}] : [], {
|
|
7610
|
-
label: surfaceState.surface === "footer" ? "Links" : "
|
|
7622
|
+
label: surfaceState.surface === "footer" ? "Links" : "Style",
|
|
7611
7623
|
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
|
|
7624
|
+
previousLabel: surfaceState.surface === "footer" ? "Previous footer link treatment" : "Previous header style",
|
|
7625
|
+
nextLabel: surfaceState.surface === "footer" ? "Next footer link treatment" : "Next header style",
|
|
7614
7626
|
availability: cycleAvailabilityFromFlags({
|
|
7615
7627
|
canCycle: cycleableOptionCount > 1,
|
|
7616
7628
|
applyAllowed: surfaceState.applyAllowed
|
|
7617
7629
|
}),
|
|
7618
|
-
onPrevious: () => customize?.
|
|
7619
|
-
onNext: () => customize?.
|
|
7630
|
+
onPrevious: () => customize?.cycleChromeSelection(surface, "prev"),
|
|
7631
|
+
onNext: () => customize?.cycleChromeSelection(surface, "next")
|
|
7620
7632
|
}] };
|
|
7621
7633
|
}, [
|
|
7622
7634
|
customize,
|
|
@@ -8268,10 +8280,10 @@ function resolveShellThemeRoles(props) {
|
|
|
8268
8280
|
}
|
|
8269
8281
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
8270
8282
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
8271
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
8283
|
+
return { default: (await import("./PreviewEditorSidebar-BY-1QdE2.mjs")).PreviewEditorSidebar };
|
|
8272
8284
|
});
|
|
8273
8285
|
const PreviewEditorUI = React.lazy(async () => {
|
|
8274
|
-
return { default: (await import("./PreviewEditorUI-
|
|
8286
|
+
return { default: (await import("./PreviewEditorUI-BS34jI9_.mjs")).PreviewEditorUI };
|
|
8275
8287
|
});
|
|
8276
8288
|
const previewPaneContainmentStyle = {
|
|
8277
8289
|
contain: "layout paint",
|
|
@@ -8295,12 +8307,10 @@ function renderShellProviders(input) {
|
|
|
8295
8307
|
selectionVersion: props.themeSelectionVersion ?? null,
|
|
8296
8308
|
selectionUpdatedAt: props.themeSelectionUpdatedAt ?? null,
|
|
8297
8309
|
buttonStyleSelection: props.themeSelectionButtonStyleSelection ?? null,
|
|
8298
|
-
|
|
8299
|
-
headerStyleId: props.themeSelectionHeaderStyleId ?? null,
|
|
8300
|
-
headerLookId: props.themeSelectionHeaderLookId ?? null,
|
|
8310
|
+
headerSelection: props.themeSelectionHeaderSelection ?? null,
|
|
8301
8311
|
footerLookId: props.themeSelectionFooterLookId ?? null
|
|
8302
8312
|
},
|
|
8303
|
-
|
|
8313
|
+
headerLogoContext: props.themeSelectionHeaderLogo,
|
|
8304
8314
|
siteStyleAccess: input.siteStyleAccess,
|
|
8305
8315
|
canOpenDesignEditor: props.entryData == null && props.pageId !== null && canInspectSiteStyle(input.siteStyleAccess),
|
|
8306
8316
|
children: input.content
|
|
@@ -8337,7 +8347,7 @@ function PreviewDocumentContent(input) {
|
|
|
8337
8347
|
}
|
|
8338
8348
|
function PreviewShellLayout(props) {
|
|
8339
8349
|
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,
|
|
8350
|
+
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
8351
|
const layout = useOptionalPreviewLayout();
|
|
8342
8352
|
const headerNode = layout?.headerNode ?? null;
|
|
8343
8353
|
const bannerNode = layout?.bannerNode ?? null;
|
|
@@ -8513,11 +8523,9 @@ function PreviewShellLayout(props) {
|
|
|
8513
8523
|
themeSelectionVersion,
|
|
8514
8524
|
themeSelectionUpdatedAt,
|
|
8515
8525
|
themeSelectionButtonStyleSelection,
|
|
8516
|
-
|
|
8517
|
-
themeSelectionHeaderStyleId,
|
|
8518
|
-
themeSelectionHeaderLookId,
|
|
8526
|
+
themeSelectionHeaderSelection,
|
|
8519
8527
|
themeSelectionFooterLookId,
|
|
8520
|
-
|
|
8528
|
+
themeSelectionHeaderLogo,
|
|
8521
8529
|
sdkConfig: sdkConfig ?? null,
|
|
8522
8530
|
activeTab: sidebarTab,
|
|
8523
8531
|
onTabChange: (tab) => {
|
|
@@ -8604,11 +8612,9 @@ function resolveShellLayoutProps(input) {
|
|
|
8604
8612
|
themeSelectionVersion: props.themeSelectionVersion ?? null,
|
|
8605
8613
|
themeSelectionUpdatedAt: props.themeSelectionUpdatedAt ?? null,
|
|
8606
8614
|
themeSelectionButtonStyleSelection: props.themeSelectionButtonStyleSelection ?? null,
|
|
8607
|
-
|
|
8608
|
-
themeSelectionHeaderStyleId: props.themeSelectionHeaderStyleId ?? null,
|
|
8609
|
-
themeSelectionHeaderLookId: props.themeSelectionHeaderLookId ?? null,
|
|
8615
|
+
themeSelectionHeaderSelection: props.themeSelectionHeaderSelection ?? null,
|
|
8610
8616
|
themeSelectionFooterLookId: props.themeSelectionFooterLookId ?? null,
|
|
8611
|
-
|
|
8617
|
+
themeSelectionHeaderLogo: props.themeSelectionHeaderLogo,
|
|
8612
8618
|
isSiteLaunched: props.isSiteLaunched,
|
|
8613
8619
|
maintenanceModeEnabled: props.maintenanceModeEnabled,
|
|
8614
8620
|
entrySubrouteContext: props.entrySubrouteContext,
|
|
@@ -8634,8 +8640,14 @@ function renderShellLayout(input) {
|
|
|
8634
8640
|
children: props.children
|
|
8635
8641
|
});
|
|
8636
8642
|
}
|
|
8643
|
+
function wrapPreviewSiteFontStorage(children, siteFontStorageUrl) {
|
|
8644
|
+
return /* @__PURE__ */ jsx(PreviewSiteFontStorageProvider, {
|
|
8645
|
+
siteFontStorageUrl,
|
|
8646
|
+
children
|
|
8647
|
+
});
|
|
8648
|
+
}
|
|
8637
8649
|
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,
|
|
8650
|
+
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
8651
|
const apiClient = useMemo(() => createBearerAPIClient(previewToken, apiBaseUrl), [previewToken, apiBaseUrl]);
|
|
8640
8652
|
const { designEditorEnabled, siteStyleAccess } = resolveShellAccess({
|
|
8641
8653
|
previewSession,
|
|
@@ -8681,7 +8693,7 @@ function PreviewShell(props) {
|
|
|
8681
8693
|
bearerToken: previewToken,
|
|
8682
8694
|
supabaseUrl,
|
|
8683
8695
|
mediaAssets,
|
|
8684
|
-
children: [/* @__PURE__ */ jsx(PreviewKeepAliveClient, { baseFetch }), shellLayout]
|
|
8696
|
+
children: [/* @__PURE__ */ jsx(PreviewKeepAliveClient, { baseFetch }), wrapPreviewSiteFontStorage(shellLayout, props.siteFontStorageUrl)]
|
|
8685
8697
|
})
|
|
8686
8698
|
}) })
|
|
8687
8699
|
})
|
|
@@ -11040,6 +11052,16 @@ function findVisibleHeaderMeasurementTarget(header) {
|
|
|
11040
11052
|
}) ?? null;
|
|
11041
11053
|
}
|
|
11042
11054
|
//#endregion
|
|
11055
|
+
//#region ../preview-next/src/client/sdk/contentStorage.ts
|
|
11056
|
+
/**
|
|
11057
|
+
* Reads the current content storage endpoint from the legacy content wire
|
|
11058
|
+
* shape. Keep the provider-specific field in this adapter so preview
|
|
11059
|
+
* rendering only depends on the neutral storage URL it receives.
|
|
11060
|
+
*/
|
|
11061
|
+
function resolveContentStorageUrl(content) {
|
|
11062
|
+
return typeof content.supabaseUrl === "string" && content.supabaseUrl.length > 0 ? content.supabaseUrl : void 0;
|
|
11063
|
+
}
|
|
11064
|
+
//#endregion
|
|
11043
11065
|
//#region ../preview-next/src/client/sdk/SdkPreviewModeRuntime.tsx
|
|
11044
11066
|
var SdkPreviewModeRuntime_exports = /* @__PURE__ */ __exportAll({ SdkPreviewModeRuntime: () => SdkPreviewModeRuntime });
|
|
11045
11067
|
function isSdkCustomBlockArray(value) {
|
|
@@ -11055,6 +11077,7 @@ function SdkPreviewModeRuntime(props) {
|
|
|
11055
11077
|
const { apiBaseUrl, siteId, siteSlug, previewSession, previewToken } = props;
|
|
11056
11078
|
const model = resolveSdkPreviewRuntimeModel(props);
|
|
11057
11079
|
const { content, customBlocks, dataContext, initialBlocks, page, pageMetadata, resolvedDashboardBaseUrl, routeMap, sdkConfig, surfaceId, typedBlockOverrides } = model;
|
|
11080
|
+
const siteFontStorageUrl = resolveContentStorageUrl(content);
|
|
11058
11081
|
const sdkConfigForEditor = useMemo(() => {
|
|
11059
11082
|
const blocks = customBlocks ?? sdkConfig?.customBlocks ?? void 0;
|
|
11060
11083
|
if (!blocks || blocks.length === 0) return null;
|
|
@@ -11114,6 +11137,7 @@ function SdkPreviewModeRuntime(props) {
|
|
|
11114
11137
|
sdkConfig: sdkConfigForEditor,
|
|
11115
11138
|
mediaAssets: content.mediaAssets,
|
|
11116
11139
|
supabaseUrl: content.supabaseUrl,
|
|
11140
|
+
siteFontStorageUrl,
|
|
11117
11141
|
designEditorEligibility: { kind: "sdk-page" },
|
|
11118
11142
|
hideSiteStyleConfigurator: true
|
|
11119
11143
|
};
|
|
@@ -11206,4 +11230,4 @@ function deriveDashboardBaseUrlFromApiBaseUrl(apiBaseUrl) {
|
|
|
11206
11230
|
}
|
|
11207
11231
|
}
|
|
11208
11232
|
//#endregion
|
|
11209
|
-
export { FixedBottomSurface as C, getSiteFontsStorageUrl as S,
|
|
11233
|
+
export { FixedBottomSurface as C, getSiteFontsStorageUrl as S, usePreviewBlockCustomizeSelectionOptional as _, usePreviewPageDesignEditorState as a, buildFontPreviewUrl as b, applyPreviewChromeSurfaceToElement as c, buildPreviewDashboardSetupUrl as d, resolvePreviewDashboardSetupHandoff as f, useBlockCustomizeControls as g, usePreviewSiteFontStorageUrl 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, PreviewFormProvider as v, generateFontFaceCss as x, previewWidgetOverrides as y };
|