@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,7 @@
|
|
|
1
|
+
import { type PageDesignEditorBackgroundSupport } from './pageDesignEditorCapabilities';
|
|
1
2
|
import type { BlockDesignMetadata } from './blockFlow';
|
|
2
3
|
import { type PageDesignDecisions } from './pageDesignIntent';
|
|
3
|
-
import { type AppearancePresetId, type BlockDesignCapability, type BoundaryOptionId, type DesignBlockId, type DesignBoundaryId, type LayoutVariantKey, type NonEmptyReadonlyArray, type PageFlowPresetId, type SiteStyleId
|
|
4
|
+
import { type AppearancePresetId, type BlockDesignCapability, type CardRoleCapability, type BoundaryOptionId, type DesignBlockId, type DesignBoundaryId, type LayoutVariantKey, type NonEmptyReadonlyArray, type PageFlowPresetId, type SiteStyleId } from './types';
|
|
4
5
|
import { type BoundaryOption } from './sectionTransitions';
|
|
5
6
|
import type { PageDesignEditorBlockContentRevision, PageDesignEditorLayoutOption, PageDesignEditorLookOption, PageDesignEditorLooksForLayout } from './pageDesignEditorOptions';
|
|
6
7
|
export { boundaryOptions, type BoundaryOption } from './sectionTransitions';
|
|
@@ -21,13 +22,6 @@ export type PageDesignEditorBlockInput<TBlockId extends DesignBlockId = DesignBl
|
|
|
21
22
|
designCapability?: BlockDesignCapability | null;
|
|
22
23
|
layoutOptionLabels?: Readonly<Record<string, string>>;
|
|
23
24
|
}>;
|
|
24
|
-
export type PageDesignEditorBackgroundSupport = Readonly<{
|
|
25
|
-
kind: 'supported';
|
|
26
|
-
richBackgrounds: 'supported' | 'unsupported';
|
|
27
|
-
}> | Readonly<{
|
|
28
|
-
kind: 'unsupported';
|
|
29
|
-
reason: UnsupportedBlockDesignCapabilityReason | 'section-surfaces-unsupported' | 'missing-design-capability';
|
|
30
|
-
}>;
|
|
31
25
|
export type PageDesignEditorChoice<TValue> = Readonly<{
|
|
32
26
|
kind: 'auto';
|
|
33
27
|
effectiveValue: TValue | null;
|
|
@@ -61,6 +55,13 @@ export type PageDesignEditorBlock<TBlockId extends DesignBlockId = DesignBlockId
|
|
|
61
55
|
blockId: TBlockId;
|
|
62
56
|
blockKind: string;
|
|
63
57
|
backgroundSupport: PageDesignEditorBackgroundSupport;
|
|
58
|
+
/**
|
|
59
|
+
* Which card path this block renders, carried from its declared capability.
|
|
60
|
+
* The runtime compiler cannot re-derive it — it only sees design plans — and
|
|
61
|
+
* compiling a role for a block that still renders the legacy recipe would
|
|
62
|
+
* swap its card surface at render time.
|
|
63
|
+
*/
|
|
64
|
+
cardRoles: CardRoleCapability;
|
|
64
65
|
contentRevision?: PageDesignEditorBlockContentRevision;
|
|
65
66
|
layout: PageDesignEditorSelection<LayoutVariantKey> | null;
|
|
66
67
|
availableLayouts: readonly PageDesignEditorLayoutOption[];
|
|
@@ -2,9 +2,9 @@ import type { PageDesignEditorReadModel } from './pageDesignEditorModel';
|
|
|
2
2
|
import { type Theme } from '../schema';
|
|
3
3
|
import { type ButtonStyleSelection } from '../buttons/styles';
|
|
4
4
|
import { type CuratedSiteStyle } from './curatedSiteStyles';
|
|
5
|
-
import { type FooterLookId
|
|
6
|
-
import
|
|
7
|
-
import { type
|
|
5
|
+
import { type FooterLookId } from './footerLooks';
|
|
6
|
+
import type { SiteThemeCompilationPlan } from './compilationPlan';
|
|
7
|
+
import { type HeaderLayoutStyleSelection } from './headerLayoutStyles';
|
|
8
8
|
import { type CompiledBlockRuntimeFields, type CompiledBoundaryRuntime, type CompiledPageRuntime, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, type SurfaceResolutionContext } from './runtimeCompiler';
|
|
9
9
|
import { type AppearancePresetId, type DesignBlockId, type SiteStyleId } from './types';
|
|
10
10
|
import { type CuratedSiteStyleTheme } from './siteStyleThemeCompiler';
|
|
@@ -30,7 +30,7 @@ export declare const previewCustomizePurpose: "preview-customize";
|
|
|
30
30
|
/**
|
|
31
31
|
* Compiles a curated Site Style into a persisted Theme payload using the site
|
|
32
32
|
* style's defaults for the Style configurator selections. Thin wrapper around
|
|
33
|
-
* `
|
|
33
|
+
* `compileReplacementSiteThemeFromSelections` with the style's default curated palette.
|
|
34
34
|
*/
|
|
35
35
|
export declare function compileCuratedSiteStyleTheme(siteStyle: CuratedSiteStyle): CuratedSiteStyleTheme;
|
|
36
36
|
export declare function defaultConcretePaletteForSiteStyle(siteStyle: CuratedSiteStyle): Theme['palette'];
|
|
@@ -39,6 +39,11 @@ export type SelectionFallbackWarning = Readonly<{
|
|
|
39
39
|
kind: 'rejected-button-style';
|
|
40
40
|
requested: string;
|
|
41
41
|
fellBackTo: ButtonStyleSelection;
|
|
42
|
+
}> | Readonly<{
|
|
43
|
+
kind: 'repaired-header-selection';
|
|
44
|
+
requested: HeaderLayoutStyleSelection;
|
|
45
|
+
resolved: HeaderLayoutStyleSelection;
|
|
46
|
+
reason: 'style-not-curated-for-layout' | 'layout-not-curated-for-site-style';
|
|
42
47
|
}>;
|
|
43
48
|
type SiteThemeSelectionsCommonInput = Readonly<{
|
|
44
49
|
siteStyle: CuratedSiteStyle;
|
|
@@ -55,62 +60,30 @@ export type UpdateSiteThemeSelectionsInput = SiteThemeSelectionsCommonInput & Re
|
|
|
55
60
|
compilationPlan: Extract<SiteThemeCompilationPlan, {
|
|
56
61
|
kind: 'update-selection';
|
|
57
62
|
}>;
|
|
58
|
-
|
|
59
|
-
export type SiteThemeSelectionsInput = SiteThemeSelectionsCommonInput & Readonly<{
|
|
60
|
-
compilationPlan: SiteThemeCompilationPlan;
|
|
63
|
+
currentHeaderSelection: HeaderLayoutStyleSelection;
|
|
61
64
|
}>;
|
|
62
65
|
type ResolvedSiteThemeSelections = Readonly<{
|
|
63
66
|
buttonStyleSelection: ButtonStyleSelection;
|
|
64
|
-
|
|
65
|
-
headerLayoutId: HeaderLayoutId | null;
|
|
66
|
-
headerStyleId: HeaderStyleId | null;
|
|
67
|
+
headerSelection: HeaderLayoutStyleSelection;
|
|
67
68
|
footerLookId: FooterLookId | null;
|
|
68
69
|
}>;
|
|
69
70
|
type ReplacementResolvedSiteThemeSelections = ResolvedSiteThemeSelections & Readonly<{
|
|
70
|
-
headerLayoutId: HeaderLayoutId;
|
|
71
|
-
headerStyleId: HeaderStyleId;
|
|
72
71
|
footerLookId: FooterLookId;
|
|
73
72
|
}>;
|
|
74
73
|
type SiteThemeSelectionsBaseResult<TResolvedSelections extends ResolvedSiteThemeSelections> = Readonly<{
|
|
75
74
|
theme: CuratedSiteStyleTheme;
|
|
76
75
|
requestedSelections: Readonly<{
|
|
77
|
-
|
|
78
|
-
headerLayoutId: HeaderLayoutId | null;
|
|
79
|
-
headerStyleId: HeaderStyleId | null;
|
|
76
|
+
headerSelection: HeaderLayoutStyleSelection | null;
|
|
80
77
|
footerLookId: FooterLookId | null;
|
|
81
78
|
}>;
|
|
82
79
|
resolvedSelections: TResolvedSelections;
|
|
83
|
-
headerCompilation: Readonly<{
|
|
84
|
-
kind: 'preserved';
|
|
85
|
-
selection: HeaderSelectionIdentity;
|
|
86
|
-
}> | Readonly<{
|
|
87
|
-
kind: 'recompiled';
|
|
88
|
-
result: HeaderSelectionResult;
|
|
89
|
-
}>;
|
|
90
|
-
footerCompilation: Readonly<{
|
|
91
|
-
kind: 'preserved';
|
|
92
|
-
footerLookId: FooterLookId | null;
|
|
93
|
-
}> | Readonly<{
|
|
94
|
-
kind: 'applied-look';
|
|
95
|
-
result: FooterSelectionResult;
|
|
96
|
-
}>;
|
|
97
80
|
warnings: ReadonlyArray<SelectionFallbackWarning>;
|
|
98
81
|
}>;
|
|
99
82
|
export type ReplacementSiteThemeSelectionsResult = SiteThemeSelectionsBaseResult<ReplacementResolvedSiteThemeSelections>;
|
|
100
83
|
export type UpdateSiteThemeSelectionsResult = SiteThemeSelectionsBaseResult<ResolvedSiteThemeSelections>;
|
|
101
84
|
export type SiteThemeSelectionsResult = ReplacementSiteThemeSelectionsResult | UpdateSiteThemeSelectionsResult;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
* palette values into theme tokens. Palette authority is always supplied as a
|
|
105
|
-
* complete concrete value.
|
|
106
|
-
*
|
|
107
|
-
* Returns the resolved IDs so the caller can persist auto-pick decisions, plus
|
|
108
|
-
* any fallback warnings the UI can surface as "we changed your selection"
|
|
109
|
-
* notices.
|
|
110
|
-
*/
|
|
111
|
-
export declare function compileSiteThemeFromSelections(input: ReplacementSiteThemeSelectionsInput): ReplacementSiteThemeSelectionsResult;
|
|
112
|
-
export declare function compileSiteThemeFromSelections(input: UpdateSiteThemeSelectionsInput): UpdateSiteThemeSelectionsResult;
|
|
113
|
-
export declare function compileSiteThemeFromSelections(input: SiteThemeSelectionsInput): SiteThemeSelectionsResult;
|
|
85
|
+
export declare function compileReplacementSiteThemeFromSelections(input: ReplacementSiteThemeSelectionsInput): ReplacementSiteThemeSelectionsResult;
|
|
86
|
+
export declare function compileUpdatedSiteThemeFromSelections(input: UpdateSiteThemeSelectionsInput): UpdateSiteThemeSelectionsResult;
|
|
114
87
|
export declare function siteStyleIdFromTheme(theme: Pick<Theme, 'siteStyleId'> | null | undefined): SiteStyleId | null;
|
|
115
88
|
export type EditorModelRuntimeLookOverride<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
116
89
|
kind: 'pinned';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PageDesignEditorBlock } from './pageDesignEditorModel';
|
|
2
|
+
import { type BlockDesignCapabilityMap, type BlockDesignPlan, type CardRoleCapability, type DesignBlockId } from './types';
|
|
3
|
+
export declare function cardRoleCapabilitiesByBlockKind(blocks: readonly PageDesignEditorBlock<DesignBlockId>[]): ReadonlyMap<string, CardRoleCapability>;
|
|
4
|
+
/**
|
|
5
|
+
* The capability map this compiler resolves against is *synthesized from the
|
|
6
|
+
* plan itself*: every axis is set to exactly what the block already asked for,
|
|
7
|
+
* because the read model has already gated those choices against the real
|
|
8
|
+
* declared capability and re-gating them here would only re-run the same
|
|
9
|
+
* decision with less information.
|
|
10
|
+
*
|
|
11
|
+
* `cardRoles` is the exception and must be threaded through from the
|
|
12
|
+
* declaration. It does not describe a choice the plan made — it describes
|
|
13
|
+
* which card path the block's *renderer* understands. Synthesizing
|
|
14
|
+
* `'supported'` would compile `_cardStyles.role` for blocks that render no
|
|
15
|
+
* card at all, so a Look could hand a surface to a block with nowhere to put
|
|
16
|
+
* it. This compiler is not preview-only: it also serves published ordinary
|
|
17
|
+
* pages and published template/entry pages.
|
|
18
|
+
*/
|
|
19
|
+
export declare function runtimeCapabilitiesForBlocks(blocks: readonly BlockDesignPlan<DesignBlockId, string>[], cardRolesByBlockKind: ReadonlyMap<string, CardRoleCapability>): BlockDesignCapabilityMap;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type BoxBackground } from '../boxBackgroundSchema';
|
|
2
|
+
import { type ResolvedSurfaceForeground } from '../surfaces';
|
|
3
|
+
import type { CompiledBlockRuntimeFields } from './runtimeCompiler';
|
|
4
|
+
type CanonicalRuntimeBackground = Readonly<{
|
|
5
|
+
kind: 'none';
|
|
6
|
+
}> | Readonly<{
|
|
7
|
+
kind: 'block-authored';
|
|
8
|
+
background: BoxBackground;
|
|
9
|
+
}> | Readonly<{
|
|
10
|
+
kind: 'page-design-override';
|
|
11
|
+
background: BoxBackground;
|
|
12
|
+
}>;
|
|
13
|
+
export type ResolvedSectionBackground = Readonly<{
|
|
14
|
+
kind: 'none';
|
|
15
|
+
}> | Readonly<{
|
|
16
|
+
kind: 'look-default';
|
|
17
|
+
background: BoxBackground;
|
|
18
|
+
}> | Readonly<{
|
|
19
|
+
kind: 'block-authored' | 'page-design-override';
|
|
20
|
+
background: BoxBackground;
|
|
21
|
+
}>;
|
|
22
|
+
export declare function parseCanonicalRuntimeBackground(content: Record<string, unknown>): CanonicalRuntimeBackground;
|
|
23
|
+
export declare function resolveSectionBackground(source: CanonicalRuntimeBackground, lookDefault: NonNullable<NonNullable<CompiledBlockRuntimeFields['_sectionStyles']>['background']> | null | undefined): ResolvedSectionBackground;
|
|
24
|
+
export declare function resolveSectionForeground(background: ResolvedSectionBackground, palette: Readonly<Record<string, string>>): ResolvedSurfaceForeground;
|
|
25
|
+
/**
|
|
26
|
+
* Read foreground authority from post-compiler block content. The preview
|
|
27
|
+
* compiler has already materialized any Look-owned background into
|
|
28
|
+
* `_sectionStyles`; raw authored content must be composed with its Look through
|
|
29
|
+
* `resolveSectionBackground` instead.
|
|
30
|
+
*/
|
|
31
|
+
export declare function resolveCompiledSectionForegroundFromContent(content: Record<string, unknown> | null, palette: Readonly<Record<string, string>>): ResolvedSurfaceForeground;
|
|
32
|
+
export {};
|
|
@@ -2,23 +2,25 @@ import { type CardStylesOverride, type ContainerStylesOverride, type SectionStyl
|
|
|
2
2
|
import { type ExpandedPalette } from '../palette/expandPalette';
|
|
3
3
|
import { type ButtonStyleSelection } from '../buttons/styles';
|
|
4
4
|
import { type RuntimeStyleWriteResultForFields, type StyleAuthority } from './designState';
|
|
5
|
-
import { type ContentFrameIntent, type BlockCompositionIntent, type EyebrowTreatment, type FlushFrameTreatment, type DesignBoundaryId, type PanelFrameTreatment, type ResolvedBlockDesignPlan, type ResolvedPageDesignPlan, type
|
|
5
|
+
import { type ContentFrameIntent, type BlockCompositionIntent, type EyebrowTreatment, type FlushFrameTreatment, type DesignBoundaryId, type PanelFrameTreatment, type ResolvedBlockDesignPlan, type ResolvedPageDesignPlan, type SiteStyleSectionTransitionIntent, type SiteStyleSurfaceIntent, type ThemeTokenRecipes } from './types';
|
|
6
6
|
import { type SectionBoundaryRuntimeMetrics } from './sectionTransitions';
|
|
7
7
|
import { type ThemeColorToken } from '../tokens';
|
|
8
8
|
import { type GradientPresetId } from '../gradients';
|
|
9
9
|
export type SemanticSpacing = 'none' | 'compact' | 'cozy' | 'medium' | 'comfortable' | 'spacious';
|
|
10
10
|
export type SectionPaddingX = 'normal' | 'none';
|
|
11
11
|
type SectionBackgroundOverride = NonNullable<SectionStylesOverride['background']>;
|
|
12
|
+
type ColorSectionBackgroundOverride = Extract<SectionBackgroundOverride, {
|
|
13
|
+
type: 'color';
|
|
14
|
+
}>;
|
|
15
|
+
type ImageSectionBackgroundOverride = Extract<SectionBackgroundOverride, {
|
|
16
|
+
type: 'image';
|
|
17
|
+
}>;
|
|
12
18
|
type SectionForegroundRuntimeTokenKey = 'textColor' | 'headingColor' | 'linkColor' | 'supportingColor';
|
|
13
19
|
export type SectionForegroundRuntimeTokens = {
|
|
14
20
|
readonly [TKey in SectionForegroundRuntimeTokenKey]: ThemeColorToken;
|
|
15
21
|
};
|
|
16
22
|
export declare function defineSectionForegroundRuntimeTokens(input: Readonly<Record<SectionForegroundRuntimeTokenKey, unknown>>): SectionForegroundRuntimeTokens;
|
|
17
|
-
type NonGradientSectionRuntimeBackground =
|
|
18
|
-
type?: 'color' | 'image';
|
|
19
|
-
gradient?: never;
|
|
20
|
-
gradientPresetId?: never;
|
|
21
|
-
}>;
|
|
23
|
+
type NonGradientSectionRuntimeBackground = ColorSectionBackgroundOverride | ImageSectionBackgroundOverride;
|
|
22
24
|
type GradientSectionRuntimeBackground = Readonly<{
|
|
23
25
|
type: 'gradient';
|
|
24
26
|
gradientPresetId: GradientPresetId;
|
|
@@ -36,13 +38,12 @@ export type SectionSurfaceRuntimeRule = NonGradientSectionSurfaceRuntimeRule | G
|
|
|
36
38
|
export type DesignRuntimeRules = Readonly<{
|
|
37
39
|
sectionSurfaces: Readonly<Record<SiteStyleSurfaceIntent, SectionSurfaceRuntimeRule>>;
|
|
38
40
|
defaultEyebrowTreatment?: EyebrowTreatment;
|
|
39
|
-
heroLegibility: Readonly<Record<Exclude<NonNullable<ResolvedBlockDesignPlan['appliedHeroLegibility']>, 'none'>, NonNullable<
|
|
41
|
+
heroLegibility: Readonly<Record<Exclude<NonNullable<ResolvedBlockDesignPlan['appliedHeroLegibility']>, 'none'>, NonNullable<ImageSectionBackgroundOverride['overlay']>>>;
|
|
40
42
|
transitionClassName: (transition: SiteStyleSectionTransitionIntent, fromSurface: SiteStyleSurfaceIntent, toSurface: SiteStyleSurfaceIntent) => string | null;
|
|
41
43
|
}>;
|
|
42
44
|
export type ComponentRuntimeRules = Readonly<{
|
|
43
45
|
panelFrames: Readonly<Record<PanelFrameTreatment, ContainerStylesOverride>>;
|
|
44
46
|
flushFrames: Readonly<Record<FlushFrameTreatment, ContainerStylesOverride>>;
|
|
45
|
-
itemSurfaces: Readonly<Record<SiteStyleItemSurfaceIntent, CardStylesOverride | null>>;
|
|
46
47
|
}>;
|
|
47
48
|
export type CompiledBlockRuntimeFields = Readonly<{
|
|
48
49
|
_frameStyles: ContentFrameIntent;
|
|
@@ -239,66 +240,6 @@ export declare const defaultComponentRuntimeRules: {
|
|
|
239
240
|
readonly raised: false;
|
|
240
241
|
};
|
|
241
242
|
};
|
|
242
|
-
readonly itemSurfaces: {
|
|
243
|
-
readonly none: null;
|
|
244
|
-
readonly default: {
|
|
245
|
-
readonly spacing: "medium";
|
|
246
|
-
readonly rounded: "lg";
|
|
247
|
-
readonly raised: false;
|
|
248
|
-
};
|
|
249
|
-
readonly flat: {
|
|
250
|
-
readonly spacing: "medium";
|
|
251
|
-
readonly rounded: "lg";
|
|
252
|
-
readonly raised: false;
|
|
253
|
-
};
|
|
254
|
-
readonly outlined: {
|
|
255
|
-
readonly spacing: "medium";
|
|
256
|
-
readonly rounded: "lg";
|
|
257
|
-
readonly raised: false;
|
|
258
|
-
readonly border: {
|
|
259
|
-
readonly enabled: true;
|
|
260
|
-
readonly width: "1";
|
|
261
|
-
readonly colorToken: "border";
|
|
262
|
-
};
|
|
263
|
-
};
|
|
264
|
-
readonly raised: {
|
|
265
|
-
readonly spacing: "medium";
|
|
266
|
-
readonly rounded: "xl";
|
|
267
|
-
readonly raised: true;
|
|
268
|
-
};
|
|
269
|
-
readonly inset: {
|
|
270
|
-
readonly treatment: "soft-panel";
|
|
271
|
-
readonly spacing: "comfortable";
|
|
272
|
-
readonly rounded: "xl";
|
|
273
|
-
readonly raised: false;
|
|
274
|
-
readonly border: {
|
|
275
|
-
readonly enabled: false;
|
|
276
|
-
};
|
|
277
|
-
readonly background: {
|
|
278
|
-
readonly type: "color";
|
|
279
|
-
readonly color: "surfaceAlt";
|
|
280
|
-
readonly textColor: "text";
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
readonly editorial: {
|
|
284
|
-
readonly treatment: "editorial-rule";
|
|
285
|
-
readonly spacing: "none";
|
|
286
|
-
readonly rounded: "none";
|
|
287
|
-
readonly raised: false;
|
|
288
|
-
readonly border: {
|
|
289
|
-
readonly enabled: false;
|
|
290
|
-
};
|
|
291
|
-
};
|
|
292
|
-
readonly 'color-blocked': {
|
|
293
|
-
readonly treatment: "color-blocked";
|
|
294
|
-
readonly spacing: "spacious";
|
|
295
|
-
readonly rounded: "2xl";
|
|
296
|
-
readonly raised: false;
|
|
297
|
-
readonly border: {
|
|
298
|
-
readonly enabled: false;
|
|
299
|
-
};
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
243
|
};
|
|
303
244
|
/** Compiles one resolved semantic block plan into legacy block runtime fields. */
|
|
304
245
|
export declare function compileBlockRuntimeFields<TBlockId extends string, TPurpose extends string>(input: CompileBlockRuntimeInput<TBlockId, TPurpose>): CompiledBlockRuntime & Readonly<{
|
|
@@ -51,7 +51,7 @@ export declare function withHeaderNavThemePreferences(theme: Theme, preferences:
|
|
|
51
51
|
* - The nav typography TREATMENT (case/tracking identity: plain / heading /
|
|
52
52
|
* quiet-caps / brand-caps) is ALWAYS owned by the active header style and is
|
|
53
53
|
* baked into `style` before this call (see `applyNavTypography` in
|
|
54
|
-
*
|
|
54
|
+
* headerLayoutStyles.ts).
|
|
55
55
|
* - Each treatment resolves through a DEFAULT font role: `heading` resolves
|
|
56
56
|
* through the heading role; `plain` / `quiet-caps` / `brand-caps` resolve
|
|
57
57
|
* through the body role.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CardRole } from '../cards';
|
|
2
|
+
import { type AdvancedBlockDesignIntent, type ContentFrameIntent, type GeneratedBlockDesignIntent, type GeneratedContentFrameIntent, type GeneratedCardRoleIntent, type GeneratedSectionTransitionIntent, type GeneratedSurfaceIntent, type SiteStyleEmphasis, type SiteStyleSectionTransitionIntent, type SiteStyleSurfaceIntent, type UserBlockDesignIntent, type UserContentFrameIntent, type UserCardRoleIntent, type UserSectionTransitionIntent, type UserSurfaceIntent } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* Design option catalogs are source-specific whitelists for schema builders and UI
|
|
4
5
|
* controls. They describe what a choice source may express; DesignResolutionPolicy
|
|
@@ -6,18 +7,18 @@ import { type AdvancedBlockDesignIntent, type ContentFrameIntent, type Generated
|
|
|
6
7
|
*/
|
|
7
8
|
export type DesignChoiceSource = GeneratedBlockDesignIntent['sectionSurface']['source'] | UserBlockDesignIntent['sectionSurface']['source'] | Exclude<AdvancedBlockDesignIntent['sectionSurface']['source'], UserBlockDesignIntent['sectionSurface']['source']>;
|
|
8
9
|
export type DetachedCustomCapability<TSource extends DesignChoiceSource> = TSource extends 'advanced' ? true : false;
|
|
9
|
-
export type DesignOptionCatalog<TSource extends DesignChoiceSource, TSurface extends SiteStyleSurfaceIntent, TContentFrame extends ContentFrameIntent,
|
|
10
|
+
export type DesignOptionCatalog<TSource extends DesignChoiceSource, TSurface extends SiteStyleSurfaceIntent, TContentFrame extends ContentFrameIntent, TCardRole extends CardRole, TTransition extends SiteStyleSectionTransitionIntent> = Readonly<{
|
|
10
11
|
source: TSource;
|
|
11
12
|
sectionSurfaces: readonly TSurface[];
|
|
12
13
|
contentFrames: readonly TContentFrame[];
|
|
13
|
-
|
|
14
|
+
cardRoles: readonly TCardRole[];
|
|
14
15
|
transitions: readonly TTransition[];
|
|
15
16
|
emphases: readonly SiteStyleEmphasis[];
|
|
16
17
|
detachedCustom: DetachedCustomCapability<TSource>;
|
|
17
18
|
}>;
|
|
18
|
-
export type GeneratedDesignOptionCatalog = DesignOptionCatalog<'generated', GeneratedSurfaceIntent, GeneratedContentFrameIntent,
|
|
19
|
-
export type UserDesignOptionCatalog = DesignOptionCatalog<'user', UserSurfaceIntent, UserContentFrameIntent,
|
|
20
|
-
export type AdvancedDesignOptionCatalog = DesignOptionCatalog<'advanced', SiteStyleSurfaceIntent, ContentFrameIntent,
|
|
19
|
+
export type GeneratedDesignOptionCatalog = DesignOptionCatalog<'generated', GeneratedSurfaceIntent, GeneratedContentFrameIntent, GeneratedCardRoleIntent, GeneratedSectionTransitionIntent>;
|
|
20
|
+
export type UserDesignOptionCatalog = DesignOptionCatalog<'user', UserSurfaceIntent, UserContentFrameIntent, UserCardRoleIntent, UserSectionTransitionIntent>;
|
|
21
|
+
export type AdvancedDesignOptionCatalog = DesignOptionCatalog<'advanced', SiteStyleSurfaceIntent, ContentFrameIntent, CardRole, SiteStyleSectionTransitionIntent>;
|
|
21
22
|
export type DesignOptionCatalogForSource<TSource extends DesignChoiceSource> = TSource extends 'generated' ? GeneratedDesignOptionCatalog : TSource extends 'user' ? UserDesignOptionCatalog : TSource extends 'advanced' ? AdvancedDesignOptionCatalog : never;
|
|
22
23
|
export declare const generatedDesignOptionCatalog: {
|
|
23
24
|
readonly source: "generated";
|
|
@@ -35,7 +36,7 @@ export declare const generatedDesignOptionCatalog: {
|
|
|
35
36
|
treatment: import("../../../blocks/src/index").FlushFrameTreatment;
|
|
36
37
|
bleed: "start";
|
|
37
38
|
}>];
|
|
38
|
-
readonly
|
|
39
|
+
readonly cardRoles: readonly ["default", "alternative", "open", "none"];
|
|
39
40
|
readonly transitions: readonly ["none", "soft-fade-short", "soft-fade-long"];
|
|
40
41
|
readonly emphases: readonly ["low", "medium", "high"];
|
|
41
42
|
readonly detachedCustom: false;
|
|
@@ -67,7 +68,7 @@ export declare const userDesignOptionCatalog: {
|
|
|
67
68
|
treatment: import("../../../blocks/src/index").FlushFrameTreatment;
|
|
68
69
|
bleed: "both";
|
|
69
70
|
}>];
|
|
70
|
-
readonly
|
|
71
|
+
readonly cardRoles: readonly ["default", "alternative", "open", "none"];
|
|
71
72
|
readonly transitions: readonly ["none", "soft-fade-short", "soft-fade-long", "soft-fade-expansive", "wave-edge", "wave-edge-balanced", "wave-edge-gentle", "wave-edge-bold", "wave-edge-drift", "angle-edge", "angle-edge-subtle", "angle-edge-steep"];
|
|
72
73
|
readonly emphases: readonly ["low", "medium", "high"];
|
|
73
74
|
readonly detachedCustom: false;
|
|
@@ -99,7 +100,7 @@ export declare const advancedDesignOptionCatalog: {
|
|
|
99
100
|
treatment: import("../../../blocks/src/index").FlushFrameTreatment;
|
|
100
101
|
bleed: "both";
|
|
101
102
|
}>];
|
|
102
|
-
readonly
|
|
103
|
+
readonly cardRoles: readonly ["default", "alternative", "open", "none"];
|
|
103
104
|
readonly transitions: readonly ["none", "soft-fade-short", "soft-fade-long", "soft-fade-expansive", "wave-edge", "wave-edge-balanced", "wave-edge-gentle", "wave-edge-bold", "wave-edge-drift", "angle-edge", "angle-edge-subtle", "angle-edge-steep"];
|
|
104
105
|
readonly emphases: readonly ["low", "medium", "high"];
|
|
105
106
|
readonly detachedCustom: true;
|
|
@@ -121,7 +122,7 @@ export declare const designOptionCatalogs: {
|
|
|
121
122
|
treatment: import("../../../blocks/src/index").FlushFrameTreatment;
|
|
122
123
|
bleed: "start";
|
|
123
124
|
}>];
|
|
124
|
-
readonly
|
|
125
|
+
readonly cardRoles: readonly ["default", "alternative", "open", "none"];
|
|
125
126
|
readonly transitions: readonly ["none", "soft-fade-short", "soft-fade-long"];
|
|
126
127
|
readonly emphases: readonly ["low", "medium", "high"];
|
|
127
128
|
readonly detachedCustom: false;
|
|
@@ -153,7 +154,7 @@ export declare const designOptionCatalogs: {
|
|
|
153
154
|
treatment: import("../../../blocks/src/index").FlushFrameTreatment;
|
|
154
155
|
bleed: "both";
|
|
155
156
|
}>];
|
|
156
|
-
readonly
|
|
157
|
+
readonly cardRoles: readonly ["default", "alternative", "open", "none"];
|
|
157
158
|
readonly transitions: readonly ["none", "soft-fade-short", "soft-fade-long", "soft-fade-expansive", "wave-edge", "wave-edge-balanced", "wave-edge-gentle", "wave-edge-bold", "wave-edge-drift", "angle-edge", "angle-edge-subtle", "angle-edge-steep"];
|
|
158
159
|
readonly emphases: readonly ["low", "medium", "high"];
|
|
159
160
|
readonly detachedCustom: false;
|
|
@@ -185,7 +186,7 @@ export declare const designOptionCatalogs: {
|
|
|
185
186
|
treatment: import("../../../blocks/src/index").FlushFrameTreatment;
|
|
186
187
|
bleed: "both";
|
|
187
188
|
}>];
|
|
188
|
-
readonly
|
|
189
|
+
readonly cardRoles: readonly ["default", "alternative", "open", "none"];
|
|
189
190
|
readonly transitions: readonly ["none", "soft-fade-short", "soft-fade-long", "soft-fade-expansive", "wave-edge", "wave-edge-balanced", "wave-edge-gentle", "wave-edge-bold", "wave-edge-drift", "angle-edge", "angle-edge-subtle", "angle-edge-steep"];
|
|
190
191
|
readonly emphases: readonly ["low", "medium", "high"];
|
|
191
192
|
readonly detachedCustom: true;
|