@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,6 +1,6 @@
|
|
|
1
1
|
import type { SystemBlockDefinition } from "../registry";
|
|
2
2
|
import { type SectionStylesContent } from "../fields/boxStyles";
|
|
3
|
-
import { publicMembershipProductSchema, publicPassProductSchema, publicMembershipProductCollectionSchema, publicPassProductCollectionSchema, type PublicMembershipProductCollection, type PublicMembershipProduct, type PublicPassProductCollection, type PublicPassProduct } from "./shop.shared";
|
|
3
|
+
import { publicMembershipProductSchema, publicPassProductSchema, publicMembershipProductCollectionSchema, publicPassProductCollectionSchema, type PublicMembershipProductCollection, type PublicMembershipProduct, type PublicPassProductCollection, type PublicPassProduct, type PurchasablePublicPassProduct } from "./shop.shared";
|
|
4
4
|
import { shopBlockRuntime } from "../runtime/nodes/shop.interactive";
|
|
5
5
|
import type { BlockManifest } from "../manifest/schema";
|
|
6
6
|
import type { BlockButtonRole } from "../constants/buttonRoles";
|
|
@@ -39,5 +39,5 @@ export type ShopContent = {
|
|
|
39
39
|
_sectionStyles?: SectionStylesContent;
|
|
40
40
|
};
|
|
41
41
|
export { publicMembershipProductCollectionSchema, publicMembershipProductSchema, publicPassProductCollectionSchema, publicPassProductSchema, };
|
|
42
|
-
export type { PublicMembershipProductCollection, PublicMembershipProduct, PublicPassProductCollection, PublicPassProduct, };
|
|
42
|
+
export type { PublicMembershipProductCollection, PublicMembershipProduct, PublicPassProductCollection, PublicPassProduct, PurchasablePublicPassProduct, };
|
|
43
43
|
export declare const shopBlockDefinition: SystemBlockDefinition<ShopContent, typeof shopBlockRuntime>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export declare const publicPassProductSchema: z.ZodObject<{
|
|
2
|
+
export declare const purchasablePublicPassProductSchema: z.ZodObject<{
|
|
3
|
+
purchaseAvailability: z.ZodLiteral<"purchasable">;
|
|
6
4
|
id: z.ZodString;
|
|
7
5
|
productUseCase: z.ZodDefault<z.ZodEnum<{
|
|
8
6
|
event_pass: "event_pass";
|
|
@@ -18,7 +16,42 @@ export declare const publicPassProductSchema: z.ZodObject<{
|
|
|
18
16
|
eligibleCategoryIds: z.ZodArray<z.ZodString>;
|
|
19
17
|
eligibleCategoryNames: z.ZodArray<z.ZodString>;
|
|
20
18
|
}, z.core.$strip>;
|
|
19
|
+
export declare const publicPassProductSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20
|
+
purchaseAvailability: z.ZodLiteral<"purchasable">;
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
productUseCase: z.ZodDefault<z.ZodEnum<{
|
|
23
|
+
event_pass: "event_pass";
|
|
24
|
+
appointment_package: "appointment_package";
|
|
25
|
+
}>>;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
description: z.ZodNullable<z.ZodString>;
|
|
28
|
+
price: z.ZodNumber;
|
|
29
|
+
currency: z.ZodString;
|
|
30
|
+
creditsTotal: z.ZodNumber;
|
|
31
|
+
pricePerCredit: z.ZodNumber;
|
|
32
|
+
validDays: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
eligibleCategoryIds: z.ZodArray<z.ZodString>;
|
|
34
|
+
eligibleCategoryNames: z.ZodArray<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
+
purchaseAvailability: z.ZodLiteral<"display_only">;
|
|
37
|
+
unavailabilityReason: z.ZodLiteral<"online_payments_unavailable">;
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
productUseCase: z.ZodDefault<z.ZodEnum<{
|
|
40
|
+
event_pass: "event_pass";
|
|
41
|
+
appointment_package: "appointment_package";
|
|
42
|
+
}>>;
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
description: z.ZodNullable<z.ZodString>;
|
|
45
|
+
price: z.ZodNumber;
|
|
46
|
+
currency: z.ZodString;
|
|
47
|
+
creditsTotal: z.ZodNumber;
|
|
48
|
+
pricePerCredit: z.ZodNumber;
|
|
49
|
+
validDays: z.ZodNullable<z.ZodNumber>;
|
|
50
|
+
eligibleCategoryIds: z.ZodArray<z.ZodString>;
|
|
51
|
+
eligibleCategoryNames: z.ZodArray<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>], "purchaseAvailability">;
|
|
21
53
|
export type PublicPassProduct = z.infer<typeof publicPassProductSchema>;
|
|
54
|
+
export type PurchasablePublicPassProduct = z.infer<typeof purchasablePublicPassProductSchema>;
|
|
22
55
|
export type PublicPassProductCollection = Readonly<{
|
|
23
56
|
passes: readonly PublicPassProduct[];
|
|
24
57
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { NodeDefinition } from
|
|
1
|
+
import type { NodeDefinition } from '../node';
|
|
2
2
|
export declare const footerNavGroupsLayout: NodeDefinition;
|
|
@@ -27,6 +27,7 @@ type FooterRuntimeModuleVariant = (FooterRuntimeModuleBase<'brand'> & Readonly<{
|
|
|
27
27
|
showTitle: boolean;
|
|
28
28
|
}>) | (FooterRuntimeModuleBase<'navigation'> & Readonly<{
|
|
29
29
|
navigationClassName?: string;
|
|
30
|
+
navigationGroupsClassName?: string;
|
|
30
31
|
}>) | FooterRuntimeModuleBase<'legal-navigation'> | (FooterRuntimeModuleBase<'business-address'> & Readonly<{
|
|
31
32
|
address: string;
|
|
32
33
|
}>) | (FooterRuntimeModuleBase<'contact'> & Readonly<{
|
|
@@ -103,6 +104,7 @@ export type FooterRuntimeViewModel = Readonly<{
|
|
|
103
104
|
}>;
|
|
104
105
|
export type FooterRuntimeGroup = Readonly<{
|
|
105
106
|
kind: 'identity' | 'main-navigation' | 'visit' | 'engagement' | 'legal-ending';
|
|
107
|
+
className: string;
|
|
106
108
|
modules: readonly FooterRuntimeModule[];
|
|
107
109
|
}>;
|
|
108
110
|
export type FooterRuntimeRegion = Readonly<{
|
|
@@ -119,6 +121,7 @@ type FooterRuntimeViewModelInput = Readonly<{
|
|
|
119
121
|
hasLogo?: boolean;
|
|
120
122
|
legalRegion?: 'integrated' | 'separate';
|
|
121
123
|
layoutVariant?: 'simple' | 'columns' | 'split';
|
|
124
|
+
navigationLayout?: 'stack' | 'inline' | 'inline-wrap';
|
|
122
125
|
engagement: FooterResolvedEngagement;
|
|
123
126
|
}>;
|
|
124
127
|
type FooterRuntimeSectionProjectionInput = Readonly<{
|
|
@@ -35,7 +35,6 @@ export declare const siteHeaderManifest: import("..").DefinedBlockManifest<impor
|
|
|
35
35
|
readonly paletteHidden: true;
|
|
36
36
|
}>>;
|
|
37
37
|
export type SiteHeaderManifest = typeof siteHeaderManifest;
|
|
38
|
-
export type SiteHeaderVariant = 'classic' | 'centered' | 'transparent' | 'floating';
|
|
39
38
|
export declare const SITE_HEADER_MODES: readonly ["default", "hidden"];
|
|
40
39
|
export type SiteHeaderMode = (typeof SITE_HEADER_MODES)[number];
|
|
41
40
|
export type SiteHeaderContent = Readonly<{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type BlockManifest } from "../manifest/schema";
|
|
1
2
|
import type { SystemBlockDefinition } from "../registry";
|
|
3
|
+
import { type CardStylesContent } from "../fields/boxStyles";
|
|
2
4
|
import type { SemanticSpacing } from "../spacing";
|
|
3
|
-
import type { NodeDefinition } from "../node";
|
|
4
5
|
import { type ImageColSize } from "../fields/imageLayout";
|
|
5
6
|
import type { PublicTeamMemberPhoto } from "./shared/teamMembers";
|
|
6
7
|
type ThumbnailShape = "round" | "rounded" | "square";
|
|
@@ -9,68 +10,7 @@ type LayoutWidth = "full" | "lg-3-4-left";
|
|
|
9
10
|
type ThumbnailPadding = "none" | "sm" | "md" | "lg";
|
|
10
11
|
type StackImagePosition = "left" | "right" | "alternate";
|
|
11
12
|
type StackContentAlignment = "top" | "center";
|
|
12
|
-
export declare const teamMembersManifest:
|
|
13
|
-
readonly id: "block.team-members";
|
|
14
|
-
readonly title: "Team Members";
|
|
15
|
-
readonly category: "content";
|
|
16
|
-
readonly contentSource: {
|
|
17
|
-
readonly kind: "mixed";
|
|
18
|
-
};
|
|
19
|
-
readonly titleSource: "heading";
|
|
20
|
-
readonly additionalFields: readonly [import("../../../../block-form/src/backend/index").FieldDefinition, import("../../../../block-form/src/backend/index").FieldDefinition, import("../../../../block-form/src/backend/index").FieldDefinition, import("../../../../block-form/src/backend/index").FieldDefinition, import("../../../../block-form/src/backend/index").FieldDefinition, import("../../../../block-form/src/backend/index").FieldDefinition, import("../../../../block-form/src/backend/index").FieldDefinition, import("../../../../block-form/src/backend/index").FieldDefinition, import("../../../../block-form/src/backend/index").FieldDefinition, import("../../../../block-form/src/backend/index").FieldDefinition, import("../../../../block-form/src/backend/index").FieldDefinition, {
|
|
21
|
-
readonly ui: {
|
|
22
|
-
readonly intent: "content";
|
|
23
|
-
readonly visibleWhen: {
|
|
24
|
-
readonly field: "source";
|
|
25
|
-
readonly equals: "manual";
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
readonly label: string;
|
|
29
|
-
readonly id: string;
|
|
30
|
-
readonly type: "repeater";
|
|
31
|
-
readonly required: boolean;
|
|
32
|
-
readonly description?: string | undefined;
|
|
33
|
-
readonly minItems: number;
|
|
34
|
-
readonly maxItems?: number | undefined;
|
|
35
|
-
readonly visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
36
|
-
readonly defaultValue?: any;
|
|
37
|
-
readonly itemLabel: string;
|
|
38
|
-
readonly itemLabelSource?: string | undefined;
|
|
39
|
-
readonly showSummary?: boolean | undefined;
|
|
40
|
-
readonly summaryFields?: string[] | undefined;
|
|
41
|
-
readonly summaryMaxChars?: number | undefined;
|
|
42
|
-
readonly polymorphic?: boolean | undefined;
|
|
43
|
-
readonly allowConversion: boolean;
|
|
44
|
-
readonly schema?: {
|
|
45
|
-
fields: import("../../../../block-form/src/backend/index").FieldDefinition[];
|
|
46
|
-
};
|
|
47
|
-
readonly itemTypes?: Record<string, import("..").ItemTypeDefinition>;
|
|
48
|
-
}];
|
|
49
|
-
readonly layout: NodeDefinition;
|
|
50
|
-
readonly variants: {
|
|
51
|
-
readonly grid: NodeDefinition;
|
|
52
|
-
readonly stack: NodeDefinition;
|
|
53
|
-
};
|
|
54
|
-
readonly defaultVariant: "grid";
|
|
55
|
-
readonly variantOptions: {
|
|
56
|
-
readonly grid: {
|
|
57
|
-
readonly label: "Grid";
|
|
58
|
-
readonly description: "Members in a responsive grid";
|
|
59
|
-
readonly icon: "Grid3X3";
|
|
60
|
-
};
|
|
61
|
-
readonly stack: {
|
|
62
|
-
readonly label: "Stack";
|
|
63
|
-
readonly description: "Members in a stacked list with photo + bio";
|
|
64
|
-
readonly icon: "List";
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
readonly description: "Show your team members in a grid or stacked list.";
|
|
68
|
-
readonly tags: readonly ["team", "people", "members"];
|
|
69
|
-
readonly icon: "Users";
|
|
70
|
-
readonly styleTokens: {
|
|
71
|
-
readonly spacing: "lg";
|
|
72
|
-
};
|
|
73
|
-
}>>;
|
|
13
|
+
export declare const teamMembersManifest: BlockManifest;
|
|
74
14
|
type ManualTeamMemberItem = {
|
|
75
15
|
_type: "teamMember";
|
|
76
16
|
name: string;
|
|
@@ -91,6 +31,7 @@ type TeamMembersCommonContent = {
|
|
|
91
31
|
stackContentAlignment?: StackContentAlignment | null;
|
|
92
32
|
columns?: string | number | null;
|
|
93
33
|
gap?: SemanticSpacing;
|
|
34
|
+
_cardStyles?: CardStylesContent;
|
|
94
35
|
};
|
|
95
36
|
export type TeamMembersContent = (TeamMembersCommonContent & {
|
|
96
37
|
source?: "manual" | null;
|
|
@@ -5,15 +5,15 @@ import { resolveTree } from './runtime';
|
|
|
5
5
|
import type { Theme } from '../../../theme-core/src/schema';
|
|
6
6
|
import type { NodeDefinition } from './node';
|
|
7
7
|
type RenderOptions = {
|
|
8
|
-
registry?: Parameters<typeof resolveTree>[1][
|
|
9
|
-
theme?: Parameters<typeof resolveTree>[1][
|
|
8
|
+
registry?: Parameters<typeof resolveTree>[1]['registry'];
|
|
9
|
+
theme?: Parameters<typeof resolveTree>[1]['theme'];
|
|
10
10
|
themeConfig?: Theme;
|
|
11
|
-
transforms?: Parameters<typeof resolveTree>[1][
|
|
11
|
+
transforms?: Parameters<typeof resolveTree>[1]['transforms'];
|
|
12
12
|
viewModelOverrides?: Record<string, unknown>;
|
|
13
13
|
data?: Record<string, unknown>;
|
|
14
14
|
pathBase?: string;
|
|
15
|
-
imageResolveContext?: Parameters<typeof resolveTree>[1][
|
|
16
|
-
previewAuthoring?: Parameters<typeof resolveTree>[1][
|
|
15
|
+
imageResolveContext?: Parameters<typeof resolveTree>[1]['imageResolveContext'];
|
|
16
|
+
previewAuthoring?: Parameters<typeof resolveTree>[1]['previewAuthoring'];
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* Resolves the layout definition for a block based on its manifest and content.
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { type MediaAssetId } from '../../../../core/src/index';
|
|
2
|
-
import { type
|
|
2
|
+
import { type AppearancePresetId, type LayoutVariantKey, type PageDesignEditorBackgroundSupport } from '../../../../theme-core/src/site-styles/index';
|
|
3
3
|
import type { ThemeColorToken } from '../../../../theme-core/src/tokens/index';
|
|
4
4
|
import { type GradientPresetId } from '../../../../theme-core/src/gradients/index';
|
|
5
5
|
import type { RenderableMediaAsset } from '../../../../media-core/src/index';
|
|
6
|
+
import { type BackgroundContent } from '../fields/backgroundContent';
|
|
7
|
+
import { serializeBackgroundOverride } from './serializeBackgroundOverride';
|
|
8
|
+
export { serializeBackgroundOverride };
|
|
6
9
|
export { isGradientPresetId, parseGradientPresetId, type GradientPresetId, } from '../../../../theme-core/src/gradients/index';
|
|
7
10
|
export type BackgroundMode = 'default' | 'color' | 'gradient' | 'image';
|
|
8
11
|
export type BackgroundModeCycleDirection = 'prev' | 'next';
|
|
@@ -21,20 +24,20 @@ export type BackgroundOverride = Readonly<{
|
|
|
21
24
|
kind: 'image';
|
|
22
25
|
mediaId: MediaAssetId;
|
|
23
26
|
}>;
|
|
24
|
-
export type
|
|
27
|
+
export type UnsupportedBackgroundReason = 'unsupported-shape' | 'unsupported-mode' | 'invalid-color-token' | 'arbitrary-gradient-css' | 'missing-gradient-preset-id' | 'invalid-gradient-preset-id' | 'missing-image-media-id' | 'invalid-image-media-id' | 'video-background';
|
|
25
28
|
export type ParsedBackgroundOverride = Readonly<{
|
|
26
29
|
kind: 'supported';
|
|
27
30
|
override: BackgroundOverride;
|
|
28
31
|
}> | Readonly<{
|
|
29
|
-
kind: '
|
|
30
|
-
reason:
|
|
32
|
+
kind: 'unsupported';
|
|
33
|
+
reason: UnsupportedBackgroundReason;
|
|
31
34
|
background: Readonly<Record<string, unknown>>;
|
|
32
35
|
}>;
|
|
33
36
|
export type CanonicalSectionBackground = Readonly<{
|
|
34
37
|
kind: 'none';
|
|
35
38
|
}> | Readonly<{
|
|
36
39
|
kind: 'block-authored';
|
|
37
|
-
background:
|
|
40
|
+
background: BackgroundContent;
|
|
38
41
|
}> | Readonly<{
|
|
39
42
|
kind: 'page-design-override';
|
|
40
43
|
parsed: ParsedBackgroundOverride;
|
|
@@ -133,7 +136,7 @@ export type BackgroundOverridePlan = Readonly<{
|
|
|
133
136
|
kind: 'blocked';
|
|
134
137
|
reason: BackgroundOverrideBlockedReason;
|
|
135
138
|
}>;
|
|
136
|
-
export type BackgroundOverrideBlockedReason = 'mode-unavailable' | 'value-unavailable' | '
|
|
139
|
+
export type BackgroundOverrideBlockedReason = 'mode-unavailable' | 'value-unavailable' | 'unsupported-current-background';
|
|
137
140
|
export type BackgroundCustomizeContent = Record<string, unknown>;
|
|
138
141
|
export type BackgroundCapabilityBlock = Readonly<{
|
|
139
142
|
blockKind: string;
|
|
@@ -174,8 +177,6 @@ export declare const recommendedBackgroundColorTokens: readonly BackgroundColorT
|
|
|
174
177
|
export declare const advancedBackgroundColorTokens: BackgroundColorToken[];
|
|
175
178
|
export declare function parseBackgroundColorToken(value: unknown): BackgroundColorToken | null;
|
|
176
179
|
export declare function isBackgroundColorToken(value: unknown): value is BackgroundColorToken;
|
|
177
|
-
export declare function foregroundTokenForBackgroundColorToken(token: BackgroundColorToken): string;
|
|
178
|
-
export declare function planBackgroundColorTextLegibility(token: BackgroundColorToken): ThemeBackgroundTextLegibilityPlan;
|
|
179
180
|
export declare function dedupeBackgroundColorTokensByPalette(tokens: readonly BackgroundColorToken[], palette: BackgroundColorPalette): readonly BackgroundColorToken[];
|
|
180
181
|
export declare function backgroundModeForOverride(override: BackgroundOverride): BackgroundMode;
|
|
181
182
|
export declare function backgroundOverrideEquals(left: BackgroundOverride, right: BackgroundOverride): boolean;
|
|
@@ -190,7 +191,6 @@ export declare function parseBackgroundOverrideFromContent(content: BackgroundCu
|
|
|
190
191
|
*/
|
|
191
192
|
export declare function parseCanonicalSectionBackground(content: BackgroundCustomizeContent): CanonicalSectionBackground;
|
|
192
193
|
export declare function parseBackgroundOverride(value: unknown): ParsedBackgroundOverride;
|
|
193
|
-
export declare function serializeBackgroundOverride(override: BackgroundOverride): Record<string, unknown> | null;
|
|
194
194
|
export declare function applyBackgroundOverrideContentPatch(content: BackgroundCustomizeContent, override: BackgroundOverride): BackgroundCustomizeContent;
|
|
195
195
|
export declare function planBackgroundTransition(current: BackgroundOverride, capability: BackgroundCapability, action: BackgroundTransitionAction): BackgroundTransitionPlan;
|
|
196
196
|
export declare function planBackgroundOverride(current: ParsedBackgroundOverride, capability: BackgroundCapability, override: BackgroundOverride): BackgroundOverridePlan;
|
|
@@ -17,26 +17,8 @@ type BackgroundFieldOptions = {
|
|
|
17
17
|
* declared but is managed implicitly by TabGroupField. When the user switches tabs,
|
|
18
18
|
* the widget writes the tab ID to the path `{id}.type`.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* {
|
|
23
|
-
* type: 'color' | 'gradient' | 'image' | 'video', // Managed by TabGroupField
|
|
24
|
-
* color?: string, // From Color tab
|
|
25
|
-
* gradient?: string, // From Gradient tab (CSS value)
|
|
26
|
-
* image?: MediaReference, // From Image tab (image or decorative video)
|
|
27
|
-
* showVideoOnMobile?: boolean, // From Video tab
|
|
28
|
-
* objectFit?: 'fill' | 'fit' | 'original' | 'custom',
|
|
29
|
-
* scale?: string,
|
|
30
|
-
* position?: string,
|
|
31
|
-
* opacity?: number,
|
|
32
|
-
* overlay?: { // Image/video overlay (when includeAdvanced)
|
|
33
|
-
* type: 'color' | 'gradient' | 'none',
|
|
34
|
-
* color?: string, // Token or hex
|
|
35
|
-
* gradient?: string, // CSS gradient
|
|
36
|
-
* opacity?: number, // 0-100
|
|
37
|
-
* },
|
|
38
|
-
* }
|
|
39
|
-
* ```
|
|
20
|
+
* Persistence projects the selected tab into the canonical discriminated
|
|
21
|
+
* `BackgroundContent` union. Fields owned by inactive tabs are not stored.
|
|
40
22
|
*
|
|
41
23
|
* ## SDK Filtering
|
|
42
24
|
*
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { boxBackgroundOverlaySchema, type BoxBackground } from '../../../../theme-core/src/schema';
|
|
2
|
+
import type { ImageMedia } from '../../lib/media';
|
|
3
|
+
export type BackgroundContent = BoxBackground;
|
|
4
|
+
export type BackgroundForeground = Pick<BackgroundContent, 'textColor' | 'headingColor' | 'linkColor' | 'supportingColor'>;
|
|
5
|
+
export type BackgroundOverlay = ReturnType<typeof boxBackgroundOverlaySchema.parse>;
|
|
6
|
+
export type ImageBackgroundContent = Extract<BackgroundContent, {
|
|
7
|
+
type: 'image';
|
|
8
|
+
}>;
|
|
9
|
+
export type ImageBackgroundDefaults = Partial<Omit<ImageBackgroundContent, 'type' | 'image'>>;
|
|
10
|
+
/**
|
|
11
|
+
* Replaces only the background medium while retaining presentation fields that
|
|
12
|
+
* are valid for the resulting image variant. Stale color/gradient tab state is
|
|
13
|
+
* never copied into the new value.
|
|
14
|
+
*/
|
|
15
|
+
export declare function replaceBackgroundWithImage(value: unknown, image: ImageMedia, defaults?: ImageBackgroundDefaults): ImageBackgroundContent;
|
|
16
|
+
export declare function parseBackgroundContent(value: unknown): BackgroundContent | null;
|
|
17
|
+
export declare function parseBackgroundOverlay(value: unknown): BackgroundOverlay | undefined;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const BACKGROUND_SLOTS: readonly ["_sectionStyles", "_containerStyles", "_cardStyles"];
|
|
2
|
+
export type BoxBackgroundAuditRecord = Readonly<Record<string, unknown>>;
|
|
3
|
+
export type BoxBackgroundAuditFinding = Readonly<{
|
|
4
|
+
contentVersionId: string;
|
|
5
|
+
siteId: string | null;
|
|
6
|
+
blockId: string;
|
|
7
|
+
stage: string | null;
|
|
8
|
+
slot: (typeof BACKGROUND_SLOTS)[number];
|
|
9
|
+
issues: readonly Readonly<{
|
|
10
|
+
path: readonly PropertyKey[];
|
|
11
|
+
code: string;
|
|
12
|
+
message: string;
|
|
13
|
+
}>[];
|
|
14
|
+
}>;
|
|
15
|
+
export type BoxBackgroundAuditReport = Readonly<{
|
|
16
|
+
inspectedBackgrounds: number;
|
|
17
|
+
findings: readonly BoxBackgroundAuditFinding[];
|
|
18
|
+
}>;
|
|
19
|
+
export declare function auditBoxBackgroundContentVersions(records: readonly BoxBackgroundAuditRecord[]): BoxBackgroundAuditReport;
|
|
20
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ModalFieldDefinition } from '../manifest/schema';
|
|
2
|
-
import type { AccordionIconTreatment, EyebrowTreatment, EventListTreatment, HeadingDecorationOverride,
|
|
3
|
-
import type {
|
|
2
|
+
import type { AccordionIconTreatment, EyebrowTreatment, EventListTreatment, HeadingDecorationOverride, TileTreatment } from '../../../../theme-core/src/site-styles/index';
|
|
3
|
+
import type { CardRole } from '../../../../theme-core/src/cards/index';
|
|
4
|
+
import type { BackgroundContent } from './backgroundContent';
|
|
4
5
|
/**
|
|
5
6
|
* Options for customizing a section styles field.
|
|
6
7
|
*/
|
|
@@ -65,35 +66,7 @@ type CardStylesOptions = {
|
|
|
65
66
|
* ```
|
|
66
67
|
*/
|
|
67
68
|
export type SectionStylesContent = {
|
|
68
|
-
background?:
|
|
69
|
-
type?: 'color' | 'gradient' | 'image';
|
|
70
|
-
contentOwner?: PageDesignEditorBackgroundOverrideOwner | null;
|
|
71
|
-
color?: string | null;
|
|
72
|
-
/** CSS gradient string (e.g., "linear-gradient(...)") */
|
|
73
|
-
gradient?: string | null;
|
|
74
|
-
/** Curated gradient preset identifier. */
|
|
75
|
-
gradientPresetId?: string | null;
|
|
76
|
-
image?: Media | null;
|
|
77
|
-
objectFit?: 'fill' | 'fit' | 'original' | 'custom' | null;
|
|
78
|
-
scale?: string | null;
|
|
79
|
-
position?: string | null;
|
|
80
|
-
opacity?: number | null;
|
|
81
|
-
motion?: 'static' | 'fixed-frame' | null;
|
|
82
|
-
overlay?: {
|
|
83
|
-
type?: 'none' | 'color' | 'gradient' | null;
|
|
84
|
-
color?: string | null;
|
|
85
|
-
/** CSS gradient string (e.g., "linear-gradient(...)") */
|
|
86
|
-
gradient?: string | null;
|
|
87
|
-
opacity?: number | null;
|
|
88
|
-
} | null;
|
|
89
|
-
textColor?: string | null;
|
|
90
|
-
/** Optional color token for headings. Falls back to textColor if not set. */
|
|
91
|
-
headingColor?: string | null;
|
|
92
|
-
/** Optional color token for links. Falls back to textColor if not set. */
|
|
93
|
-
linkColor?: string | null;
|
|
94
|
-
/** Optional color token for supporting copy. Falls back to textColor if not set. */
|
|
95
|
-
supportingColor?: string | null;
|
|
96
|
-
} | null;
|
|
69
|
+
background?: BackgroundContent | null;
|
|
97
70
|
spacing?: string | null;
|
|
98
71
|
minHeight?: 'none' | 'banner' | 'hero' | 'immersive' | null;
|
|
99
72
|
tileTreatment?: TileTreatment | null;
|
|
@@ -103,7 +76,7 @@ export type SectionStylesContent = {
|
|
|
103
76
|
accordionIconTreatment?: AccordionIconTreatment | null;
|
|
104
77
|
} | null;
|
|
105
78
|
export type CardStylesContent = {
|
|
106
|
-
background?:
|
|
79
|
+
background?: BackgroundContent | null;
|
|
107
80
|
border?: {
|
|
108
81
|
enabled?: boolean | null;
|
|
109
82
|
width?: 'none' | '1' | '2' | '3' | null;
|
|
@@ -112,11 +85,22 @@ export type CardStylesContent = {
|
|
|
112
85
|
spacing?: string | null;
|
|
113
86
|
raised?: boolean | null;
|
|
114
87
|
rounded?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* The card role the block's Look asked for. Compiled by the site-style
|
|
90
|
+
* runtime; the site style owns what the role looks like. The one field that
|
|
91
|
+
* names a card surface.
|
|
92
|
+
*/
|
|
93
|
+
role?: CardRole | null;
|
|
94
|
+
/**
|
|
95
|
+
* Legacy name for `role` — it only ever held role names. Read-only history:
|
|
96
|
+
* content persisted before the role contract still carries it, and it reads
|
|
97
|
+
* as a role at the render boundary (`resolveCardRoleForBoxStyles`), where an
|
|
98
|
+
* explicit `role` wins.
|
|
99
|
+
*/
|
|
115
100
|
cardVariant?: string | null;
|
|
116
|
-
treatment?: 'accent-quote' | 'editorial-rule' | 'soft-panel' | 'editorial-serif-quote' | 'editorial-open' | null;
|
|
117
101
|
} | null;
|
|
118
102
|
export type ContainerStylesContent = {
|
|
119
|
-
background?:
|
|
103
|
+
background?: BackgroundContent | null;
|
|
120
104
|
spacing?: string | null;
|
|
121
105
|
raised?: boolean | null;
|
|
122
106
|
rounded?: string | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type FieldDefinition } from "../manifest/schema";
|
|
2
|
+
type FieldUi = NonNullable<FieldDefinition["ui"]>;
|
|
3
|
+
type FieldVisibleWhen = FieldUi["visibleWhen"];
|
|
4
|
+
type SharedSelectOptions = Readonly<{
|
|
5
|
+
label?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
visibleWhen?: FieldVisibleWhen;
|
|
9
|
+
}>;
|
|
10
|
+
/**
|
|
11
|
+
* Grid `userColumns` binding for blocks with a user-configured column count.
|
|
12
|
+
* The count renders through the canonical responsive ladder — see
|
|
13
|
+
* {@link gridUserColumnLadder}.
|
|
14
|
+
*/
|
|
15
|
+
export declare function userColumnsGridBinding(): Record<string, unknown>;
|
|
16
|
+
/** Shared "Columns" select (2/3/4) for grid-layout blocks. */
|
|
17
|
+
export declare function columnsSelectField(options?: SharedSelectOptions): FieldDefinition;
|
|
18
|
+
/** Shared semantic "Gap" select for layout blocks. */
|
|
19
|
+
export declare function gapSelectField(options?: SharedSelectOptions): FieldDefinition;
|
|
20
|
+
export {};
|
|
@@ -25,6 +25,7 @@ export type FragmentComposition = {
|
|
|
25
25
|
export type FragmentDataLoaders = Record<string, {
|
|
26
26
|
endpoint: string;
|
|
27
27
|
params: Record<string, unknown>;
|
|
28
|
+
requiredParams?: readonly string[];
|
|
28
29
|
mode: "server" | "client";
|
|
29
30
|
}>;
|
|
30
31
|
export declare class FragmentCompositionError extends Error {
|
|
@@ -6,6 +6,7 @@ declare const fragmentDataSchema: z.ZodObject<{
|
|
|
6
6
|
loader: z.ZodOptional<z.ZodObject<{
|
|
7
7
|
endpoint: z.ZodString;
|
|
8
8
|
params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
requiredParams: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
10
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
10
11
|
server: "server";
|
|
11
12
|
client: "client";
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* These helpers make it easy to build custom block overrides that integrate
|
|
5
5
|
* seamlessly with Riverbank CMS theme tokens and content fields.
|
|
6
6
|
*/
|
|
7
|
-
export { resolveBackground, SectionBackground, type
|
|
7
|
+
export { resolveBackground, SectionBackground, type ResolvedBackground, type SectionBackgroundProps, } from './resolveBackground';
|
|
8
8
|
export { apiBindings, withApiBindings, type ApiBinding, } from './api-bindings';
|
|
@@ -5,50 +5,15 @@
|
|
|
5
5
|
* (color, gradient, image, and decorative video) with full theme token support, matching the
|
|
6
6
|
* behavior of the default declarative block system.
|
|
7
7
|
*/
|
|
8
|
-
import * as React from
|
|
9
|
-
import { type ThemeTokens } from
|
|
10
|
-
import type
|
|
11
|
-
import { type
|
|
12
|
-
import { type ResolveImageUrlContext } from
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import { type ThemeTokens } from '../theme';
|
|
10
|
+
import { type BackgroundMedia } from './backgroundMedia';
|
|
11
|
+
import { type BackgroundContent } from '../fields/backgroundContent';
|
|
12
|
+
import { type ResolveImageUrlContext } from '../runtime/nodes/media';
|
|
13
13
|
/**
|
|
14
14
|
* Raw background data from CMS content fields.
|
|
15
15
|
* This is the shape of `_sectionStyles.background`, `_containerStyles.background`, etc.
|
|
16
16
|
*/
|
|
17
|
-
export type BackgroundInput = {
|
|
18
|
-
/** Color token name (e.g., "primary") or raw hex value */
|
|
19
|
-
color?: string | null;
|
|
20
|
-
/** CSS gradient string */
|
|
21
|
-
gradient?: string | null;
|
|
22
|
-
/** Curated gradient preset identifier. Used for Customize-mode backgrounds. */
|
|
23
|
-
gradientPresetId?: string | null;
|
|
24
|
-
/** Background image or decorative video media object */
|
|
25
|
-
image?: Media | null;
|
|
26
|
-
/** Whether decorative background video should play on mobile. Defaults to false. */
|
|
27
|
-
showVideoOnMobile?: boolean | null;
|
|
28
|
-
/** Media sizing mode: 'fill' (cover), 'fit' (contain), 'original', 'custom' */
|
|
29
|
-
objectFit?: string | null;
|
|
30
|
-
/** Media position: preset keyword or custom CSS value */
|
|
31
|
-
position?: string | null;
|
|
32
|
-
/** Media scale value (e.g., "150%", "200px") - only for 'custom'/'original' modes */
|
|
33
|
-
scale?: string | null;
|
|
34
|
-
/** Background opacity (0-1 decimal; legacy 1-100 percentages are still accepted) */
|
|
35
|
-
opacity?: number | null;
|
|
36
|
-
/** Image scroll behavior for image-backed sections. */
|
|
37
|
-
motion?: "static" | "fixed-frame" | null;
|
|
38
|
-
/** Whether background should overflow container bounds */
|
|
39
|
-
overflow?: boolean | null;
|
|
40
|
-
/** Overlay configuration for image/video media */
|
|
41
|
-
overlay?: {
|
|
42
|
-
/** Overlay type: 'color', 'gradient', or 'none' */
|
|
43
|
-
type?: "color" | "gradient" | "none" | null;
|
|
44
|
-
/** Overlay color token or hex value */
|
|
45
|
-
color?: string | null;
|
|
46
|
-
/** Overlay CSS gradient string */
|
|
47
|
-
gradient?: string | null;
|
|
48
|
-
/** Overlay opacity (0-1 decimal; legacy 1-100 percentages are still accepted) */
|
|
49
|
-
opacity?: number | null;
|
|
50
|
-
} | null;
|
|
51
|
-
};
|
|
52
17
|
/**
|
|
53
18
|
* Resolved background ready for rendering.
|
|
54
19
|
* Token names are converted to actual hex values.
|
|
@@ -62,10 +27,10 @@ export type ResolvedBackground = {
|
|
|
62
27
|
opacity: number | null;
|
|
63
28
|
/** Whether background should overflow */
|
|
64
29
|
overflow: boolean;
|
|
65
|
-
/** Resolved image/video media data
|
|
30
|
+
/** Resolved image/video media data from the background contract's shared `image` slot. */
|
|
66
31
|
image: {
|
|
67
32
|
/** Media kind */
|
|
68
|
-
kind: BackgroundMedia[
|
|
33
|
+
kind: BackgroundMedia['type'];
|
|
69
34
|
/** Media URL */
|
|
70
35
|
url: string;
|
|
71
36
|
/** Alt text */
|
|
@@ -86,7 +51,7 @@ export type ResolvedBackground = {
|
|
|
86
51
|
/** Resolved overlay data for rendering on top of image/video media */
|
|
87
52
|
overlay: {
|
|
88
53
|
/** Overlay type */
|
|
89
|
-
type:
|
|
54
|
+
type: 'color' | 'gradient' | 'none';
|
|
90
55
|
/** Resolved background color (hex) */
|
|
91
56
|
backgroundColor: string | null;
|
|
92
57
|
/** CSS gradient string */
|
|
@@ -139,10 +104,10 @@ export type ResolveBackgroundOptions = {
|
|
|
139
104
|
* }
|
|
140
105
|
* ```
|
|
141
106
|
*/
|
|
142
|
-
export declare function resolveBackground(
|
|
107
|
+
export declare function resolveBackground(input: BackgroundContent | null | undefined, theme?: ThemeTokens, options?: ResolveBackgroundOptions): ResolvedBackground;
|
|
143
108
|
export type SectionBackgroundProps = {
|
|
144
109
|
/** Raw background data from content (e.g., content._sectionStyles?.background) */
|
|
145
|
-
background:
|
|
110
|
+
background: BackgroundContent | null | undefined;
|
|
146
111
|
/** Theme tokens for resolving color tokens to hex values */
|
|
147
112
|
theme?: ThemeTokens;
|
|
148
113
|
/** Target aspect ratio used to resolve aspect-specific crop metadata */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
import { linkSchema, customLinkSchema, entryLinkSchema, externalLinkSchema, internalLinkSchema, internalResolvedLinkSchema, internalRouteOnlyLinkSchema, pageLinkSchema } from "../../types/link";
|
|
3
|
-
import { type FieldDefinition, type VisibilityLevel } from
|
|
3
|
+
import { type FieldDefinition, type VisibilityLevel } from '../schema';
|
|
4
|
+
export { auditBoxBackgroundContentVersions, type BoxBackgroundAuditFinding, type BoxBackgroundAuditRecord, type BoxBackgroundAuditReport, } from '../../fields/backgroundContentAudit';
|
|
4
5
|
export { linkSchema, customLinkSchema, entryLinkSchema, externalLinkSchema, internalLinkSchema, internalResolvedLinkSchema, internalRouteOnlyLinkSchema, pageLinkSchema, };
|
|
5
6
|
export type FieldPath = readonly (string | number)[];
|
|
6
7
|
export type FieldValidationMode = "strict" | "draft";
|
|
@@ -135,7 +136,7 @@ export type FieldValidationIssue = BaseIssue<"required", {
|
|
|
135
136
|
}> | BaseIssue<"tooManyItems", {
|
|
136
137
|
maximum: number;
|
|
137
138
|
itemLabel: string;
|
|
138
|
-
}> | BaseIssue<"invalidRichText"> | BaseIssue<"invalidInlineText"> | BaseIssue<"invalidMedia"> | BaseIssue<"invalidLink"> | BaseIssue<"invalidReference">;
|
|
139
|
+
}> | BaseIssue<"invalidRichText"> | BaseIssue<"invalidInlineText"> | BaseIssue<"invalidMedia"> | BaseIssue<"invalidBoxBackground"> | BaseIssue<"invalidLink"> | BaseIssue<"invalidReference">;
|
|
139
140
|
type BaseIssue<K extends string, Extra extends object = Record<never, never>> = Readonly<{
|
|
140
141
|
kind: K;
|
|
141
142
|
path: FieldPath;
|
|
@@ -150,8 +151,9 @@ export type ManifestContentValidationIssue = Readonly<{
|
|
|
150
151
|
requiredScope: ManifestContentRequiredScope | null;
|
|
151
152
|
}>;
|
|
152
153
|
export type ManifestContentValidationResult = Readonly<{
|
|
153
|
-
kind:
|
|
154
|
+
kind: 'valid';
|
|
154
155
|
issues: readonly [];
|
|
156
|
+
data: Readonly<Record<string, unknown>>;
|
|
155
157
|
}> | Readonly<{
|
|
156
158
|
kind: "invalid";
|
|
157
159
|
issues: readonly ManifestContentValidationIssue[];
|
|
@@ -228,6 +230,7 @@ export type GroupFieldValidationPlan = PlanBase<"group", "object", ObjectConstra
|
|
|
228
230
|
}>[];
|
|
229
231
|
}>;
|
|
230
232
|
allowNullChildren?: boolean;
|
|
233
|
+
valueContract?: "boxBackground";
|
|
231
234
|
}>;
|
|
232
235
|
export type PassthroughFieldValidationPlan = PlanBase<"passthrough", "unknown", RequiredConstraint> & Readonly<{
|
|
233
236
|
fieldType: "presetOrCustom" | "contentTypeSelect" | "entryPicker";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { FieldValidationPlan, GroupFieldValidationPlan } from './index';
|
|
2
|
+
export declare function allGroupChildPlans(plan: GroupFieldValidationPlan): readonly FieldValidationPlan[];
|
|
3
|
+
export declare function selectedGroupChildPlans(plan: GroupFieldValidationPlan, value: unknown): readonly FieldValidationPlan[];
|
|
4
|
+
export declare function canonicalizeObjectForWrite(plans: readonly FieldValidationPlan[], value: unknown): unknown;
|