@riverbankcms/sdk 0.80.0 → 0.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PreviewEditorSidebar-QZG37QIF.mjs → PreviewEditorSidebar-RDCMEXIJ.mjs} +763 -255
- package/dist/{PreviewEditorUI-AXIKSMZA.mjs → PreviewEditorUI-NYGQ6K7B.mjs} +170 -29
- package/dist/SdkPreviewModeRuntime-AKCSCZEC.mjs +8 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +12 -0
- package/dist/_dts/api/src/contentTypes.d.ts +6 -0
- package/dist/_dts/api/src/index.d.ts +2 -2
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +53 -0
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +3 -1
- package/dist/_dts/block-form/src/backend/types.d.ts +3 -3
- package/dist/_dts/blocks/src/PageRenderer.d.ts +3 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +20 -28
- package/dist/_dts/blocks/src/index.d.ts +6 -4
- package/dist/_dts/blocks/src/primitives/content/components/Text.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +1 -0
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +135 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +5 -0
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +20 -1
- package/dist/_dts/blocks/src/system/blocks/hero.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +19 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +134 -0
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +1 -0
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +13 -3
- package/dist/_dts/blocks/src/system/data/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/data/linkedContentEntries.d.ts +64 -0
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +2 -2
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +6 -1
- package/dist/_dts/blocks/src/system/fragments/library/faqHeading.d.ts +0 -1
- package/dist/_dts/blocks/src/system/media/slotContracts.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/types.d.ts +8 -1
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +44 -50
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -24
- package/dist/_dts/blocks/src/system/runtime/headingDecoration.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +45 -14
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +2 -9
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +21 -16
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +21 -16
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +17 -28
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventPaginatedListView.client.d.ts +2 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +50 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +29 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +7 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/sectionForegroundStyles.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +4 -2
- package/dist/_dts/calendar/src/grid.d.ts +27 -0
- package/dist/_dts/calendar/src/index.d.ts +2 -2
- package/dist/_dts/content-editor/src/controller/useAutosaveTriggers.d.ts +3 -1
- package/dist/_dts/content-editor/src/editorTransactionState.d.ts +1 -0
- package/dist/_dts/content-editor/src/hooks/autosaveScopePlanning.d.ts +26 -0
- package/dist/_dts/content-editor/src/hooks/publishability.d.ts +1 -0
- package/dist/_dts/content-editor/src/hooks/useLinkedEntryAutosave.d.ts +23 -0
- package/dist/_dts/content-editor/src/hooks/useReactiveToolbar.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +2 -2
- package/dist/_dts/content-editor/src/index.d.ts +3 -1
- package/dist/_dts/content-editor/src/lib/json.d.ts +2 -0
- package/dist/_dts/content-editor/src/linkedEntries/domain.d.ts +8 -0
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +58 -0
- package/dist/_dts/content-editor/src/ui/editorTransactionState.d.ts +93 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +60 -3
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +2 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +43 -0
- package/dist/_dts/content-model/src/metadataConfig.d.ts +87 -47
- package/dist/_dts/core/src/branded.d.ts +5 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/stable-json.d.ts +1 -0
- package/dist/_dts/editor/src/EditorProvider.d.ts +26 -0
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +26 -0
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +45 -0
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +25 -0
- package/dist/_dts/editor/src/components/EditingToggle.d.ts +9 -0
- package/dist/_dts/editor/src/hooks/useEditableElement.d.ts +18 -0
- package/dist/_dts/editor/src/index.d.ts +29 -0
- package/dist/_dts/editor/src/inline/InlineTextEditor.d.ts +1 -0
- package/dist/_dts/editor/src/lib/utils.d.ts +1 -0
- package/dist/_dts/editor/src/primitives/EditorPrimitivesProvider.d.ts +20 -0
- package/dist/_dts/editor/src/primitives/InlineFieldContext.d.ts +11 -0
- package/dist/_dts/editor/src/primitives/SaveContext.d.ts +12 -0
- package/dist/_dts/editor/src/primitives/helpers.d.ts +1 -0
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +26 -0
- package/dist/_dts/editor/src/primitives/rich-text/RichTextToolbar.d.ts +16 -0
- package/dist/_dts/editor/src/primitives/rich-text/config.d.ts +23 -0
- package/dist/_dts/editor/src/primitives/rich-text/extensions/RichTextImage.d.ts +2 -0
- package/dist/_dts/editor/src/primitives/rich-text/extensions/RichTextLink.d.ts +1 -0
- package/dist/_dts/editor/src/primitives/rich-text/imageActions.d.ts +22 -0
- package/dist/_dts/editor/src/primitives/rich-text/sanitize.d.ts +23 -0
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/BlockTypeDropdown.d.ts +6 -0
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/LinkPopover.d.ts +10 -0
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/ToolbarIconButton.d.ts +11 -0
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/linkPopoverUtils.d.ts +58 -0
- package/dist/_dts/editor/src/primitives/rich-text/useRichTextEditor.d.ts +19 -0
- package/dist/_dts/editor/src/primitives/rich-text/utils.d.ts +20 -0
- package/dist/_dts/editor/src/utils/optimisticTokens.d.ts +27 -0
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/actionPresentation.d.ts +15 -0
- package/dist/_dts/editor-blocks/src/block-editor/blockHeaderActionPlan.d.ts +49 -0
- package/dist/_dts/editor-blocks/src/widgets/index.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/useImagePicker.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionPickerField.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionWidgetProvider.d.ts +14 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/index.d.ts +6 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +51 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +20 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +5 -0
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/media-core/src/renderableMediaAsset.d.ts +18 -0
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +4 -1
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +2 -1
- package/dist/_dts/media-editor/src/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +5 -1
- package/dist/_dts/preview-next/src/client/blocks/blockCustomizePopoverRows.d.ts +25 -0
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +4 -30
- package/dist/_dts/preview-next/src/client/blocks/linkedEntryRenderOverlay.d.ts +11 -0
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +3 -9
- package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/index.d.ts +0 -1
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/LinkedEntryEditEventBridge.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewDesignHistoryOrderContext.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewOpenEditorButton.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +19 -19
- package/dist/_dts/preview-next/src/client/preview/PreviewSidebarSection.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +47 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +14 -1
- package/dist/_dts/preview-next/src/client/preview/linkedEntryEditEvents.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/previewChromePlacement.d.ts +46 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeControls.d.ts +68 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +8 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +11 -9
- package/dist/_dts/preview-next/src/client/preview/previewDesignHistoryOrder.d.ts +18 -0
- package/dist/_dts/preview-next/src/client/preview/previewUndoDomains.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +41 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +101 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +29 -0
- package/dist/_dts/preview-next/src/client/preview/siteStyleHistoryState.d.ts +55 -0
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetAdapters.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +3 -2
- package/dist/_dts/preview-next/src/constants.d.ts +0 -1
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +3 -1
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +5 -3
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +3 -1
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +1 -0
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +28 -2
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +10 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +42 -0
- package/dist/_dts/sdk/src/rendering/mediaAssets.d.ts +4 -0
- package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/constants.d.ts +26 -1
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +11 -0
- package/dist/_dts/theme-core/src/buttons/personalities/joy-stamp.d.ts +22 -0
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +9 -0
- package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +44 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/interactive/types.d.ts +10 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +27 -6
- package/dist/_dts/theme-core/src/palette/variants/index.d.ts +15 -0
- package/dist/_dts/theme-core/src/palette/variants/warm-dark.d.ts +27 -0
- package/dist/_dts/theme-core/src/schema.d.ts +40 -3
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +4 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +87 -31
- package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +6 -2
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +87 -31
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +30 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +18 -2
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +6 -2
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +3 -23
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +276 -4
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +33 -3
- package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +508 -0
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +10 -10
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +24 -6
- package/dist/_dts/theme-core/src/site-styles/typographyPresets.d.ts +16 -1
- package/dist/{chunk-7PCYG6YV.mjs → chunk-3PTVPAT4.mjs} +1863 -1099
- package/dist/{chunk-5NZGBSJF.mjs → chunk-3QWQ2MUQ.mjs} +469 -1000
- package/dist/{chunk-HTB4BMKD.mjs → chunk-3VT7LZY2.mjs} +321 -113
- package/dist/{chunk-MPBNEVPB.mjs → chunk-4T5JIPWY.mjs} +1 -1
- package/dist/{chunk-BBLZSQEY.mjs → chunk-E3NZYEKF.mjs} +1 -7
- package/dist/{chunk-GYXKAUFV.mjs → chunk-WUHKQBB6.mjs} +9509 -2658
- package/dist/cli/index.mjs +1347 -324
- package/dist/client/{accordion-QFZMNB7O.mjs → accordion-SFIIZWNH.mjs} +2 -2
- package/dist/client/{bookingForm-NCIXFWIG.mjs → bookingForm-CFKZVWGA.mjs} +5 -5
- package/dist/client/bookings.mjs +281 -19
- package/dist/client/{carousel-EO4BJMWD.mjs → carousel-ELXWSBLA.mjs} +3 -3
- package/dist/client/{cart-FTYCLYUW.mjs → cart-6SSCPYY5.mjs} +6 -6
- package/dist/client/{checkout-NFGLVCOX.mjs → checkout-UFQ34HPV.mjs} +6 -6
- package/dist/client/{chunk-6GVVWSPU.mjs → chunk-76JUETXQ.mjs} +139 -186
- package/dist/client/{chunk-AUJ5DBZJ.mjs → chunk-7BXX7WXH.mjs} +112 -28
- package/dist/client/{chunk-IWFZSQNZ.mjs → chunk-G56BSZAM.mjs} +2 -2
- package/dist/client/{chunk-VDS5YFLX.mjs → chunk-IUEDYLFJ.mjs} +1 -1
- package/dist/client/{chunk-PYRBIURC.mjs → chunk-NP47RHIX.mjs} +5 -5
- package/dist/client/{chunk-PUOELU4O.mjs → chunk-NX6X3GRF.mjs} +330 -80
- package/dist/client/{chunk-Y37KDO7P.mjs → chunk-PA2LJH2M.mjs} +2 -2
- package/dist/client/{chunk-CE7IBGVW.mjs → chunk-RMWMT3ZD.mjs} +1 -1
- package/dist/client/{chunk-4W66ALYT.mjs → chunk-TCJS3NY5.mjs} +1 -1
- package/dist/client/{chunk-T6UIP6UZ.mjs → chunk-V6XI4M2Q.mjs} +1 -1
- package/dist/client/client.mjs +5924 -3138
- package/dist/client/{courseRegistration-2EORROPS.mjs → courseRegistration-HJIISAAG.mjs} +5 -5
- package/dist/client/{eventCalendar-WZI4VL6N.mjs → eventCalendar-F6YVUCZR.mjs} +7 -7
- package/dist/client/{eventCombined-QCB2TCNL.mjs → eventCombined-B5DSTIOK.mjs} +7 -7
- package/dist/client/{eventDetails-TFTATAPH.mjs → eventDetails-SEJDDHQC.mjs} +7 -7
- package/dist/client/{eventListing-A2CQEHEQ.mjs → eventListing-TPMWIIBO.mjs} +7 -7
- package/dist/client/{eventRegistration-OELPVLUY.mjs → eventRegistration-QU6W2PV6.mjs} +7 -7
- package/dist/client/{form-NTIFD6WQ.mjs → form-LVTYNTDE.mjs} +2 -2
- package/dist/client/{headerSection-7TBNKCLA.mjs → headerSection-SO3MFC4U.mjs} +54 -13
- package/dist/client/hooks.mjs +2266 -1179
- package/dist/client/{locationMap-LRLB5A3H.mjs → locationMap-5E5FLAKO.mjs} +2 -2
- package/dist/client/{newsletterForm-XI52RZSN.mjs → newsletterForm-GN32JEBQ.mjs} +2 -2
- package/dist/client/{productDetail-GSNKBFLY.mjs → productDetail-Q346KSVR.mjs} +6 -6
- package/dist/client/{productList-BGCGT4KZ.mjs → productList-DTDMQYGZ.mjs} +6 -6
- package/dist/client/rendering/client.mjs +4618 -3318
- package/dist/client/rendering/islands.mjs +32 -20
- package/dist/client/rendering.mjs +4898 -2108
- package/dist/client/{shop-RQHUCLNY.mjs → shop-OFUW7KPN.mjs} +6 -6
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/constants.mjs +0 -2
- package/dist/preview-next/index.mjs +0 -2
- package/dist/{sdk-runtime-A4LHT2RS.mjs → sdk-runtime-2GIX6I7X.mjs} +6 -6
- package/dist/server/components.mjs +4377 -1852
- package/dist/server/config-validation.mjs +2283 -1303
- package/dist/server/config.mjs +2283 -1303
- package/dist/server/data.mjs +2267 -1180
- package/dist/server/index.mjs +2 -1
- package/dist/server/next.mjs +4394 -1773
- package/dist/server/page-converter.mjs +1999 -1015
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4482 -1857
- package/dist/server/rendering.mjs +4484 -1859
- package/dist/server/routing.mjs +2302 -1120
- package/dist/server/server.mjs +2284 -1197
- package/dist/server/theme-bridge.mjs +757 -85
- package/dist/server/theme.mjs +69 -4
- package/dist/styles/index.css +474 -65
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-XE5M4UKM.mjs +0 -8
- package/dist/_dts/editor-blocks/src/block-editor/actionControlMode.d.ts +0 -2
- package/dist/_dts/preview-next/src/client/preview/previewSurface.d.ts +0 -3
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type AppearancePresetId, type BoundaryOptionId, type DesignBlockId, type DesignBoundaryId, type PageFlowPresetId, type SiteStyleId } from './types';
|
|
3
3
|
import { type SchemaVersionedJsonParseIssue } from './schemaVersionedJson';
|
|
4
|
-
|
|
4
|
+
import { type SectionBoundaryTreatment } from './sectionTransitions';
|
|
5
|
+
export declare const pageDesignIntentSchemaVersion = 2;
|
|
6
|
+
export declare const legacyPageDesignIntentSchemaVersion = 1;
|
|
5
7
|
export type PageDesignAutoChoice = Readonly<{
|
|
6
8
|
kind: 'auto';
|
|
7
9
|
}>;
|
|
@@ -16,11 +18,24 @@ export type PageDesignBlockLookPin<TBlockId extends DesignBlockId = DesignBlockI
|
|
|
16
18
|
choice: PageDesignUserPinnedChoice<AppearancePresetId>;
|
|
17
19
|
}>;
|
|
18
20
|
export type PageDesignBoundaryPin<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
21
|
+
boundaryId: DesignBoundaryId;
|
|
22
|
+
previousBlockId: TBlockId;
|
|
23
|
+
nextBlockId: TBlockId;
|
|
24
|
+
choice: PageDesignUserPinnedChoice<SectionBoundaryTreatment>;
|
|
25
|
+
}>;
|
|
26
|
+
export type LegacyPageDesignBoundaryPin<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
19
27
|
boundaryId: DesignBoundaryId;
|
|
20
28
|
previousBlockId: TBlockId;
|
|
21
29
|
nextBlockId: TBlockId;
|
|
22
30
|
choice: PageDesignUserPinnedChoice<BoundaryOptionId>;
|
|
23
31
|
}>;
|
|
32
|
+
export type LegacyPageDesignIntent<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
33
|
+
schemaVersion: typeof legacyPageDesignIntentSchemaVersion;
|
|
34
|
+
siteStyleId: SiteStyleId;
|
|
35
|
+
pageFlowPresetId: PageFlowPresetId;
|
|
36
|
+
blockLookPins: readonly PageDesignBlockLookPin<TBlockId>[];
|
|
37
|
+
boundaryPins: readonly LegacyPageDesignBoundaryPin<TBlockId>[];
|
|
38
|
+
}>;
|
|
24
39
|
export type PageDesignIntent<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
25
40
|
schemaVersion: typeof pageDesignIntentSchemaVersion;
|
|
26
41
|
siteStyleId: SiteStyleId;
|
|
@@ -63,7 +78,7 @@ export type PageDesignUserAction<TBlockId extends DesignBlockId = DesignBlockId>
|
|
|
63
78
|
kind: 'set-boundary';
|
|
64
79
|
previousBlockId: TBlockId;
|
|
65
80
|
nextBlockId: TBlockId;
|
|
66
|
-
choice: PageDesignChoice<
|
|
81
|
+
choice: PageDesignChoice<SectionBoundaryTreatment>;
|
|
67
82
|
}>;
|
|
68
83
|
export type PageDesignIntentIssueFeedback = 'debug' | 'user-facing';
|
|
69
84
|
export type PageDesignIntentIssue<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
@@ -122,6 +137,121 @@ export declare const pageDesignUserPinnedBoundaryChoiceSchema: z.ZodObject<{
|
|
|
122
137
|
kind: z.ZodLiteral<"user-pinned">;
|
|
123
138
|
value: z.ZodPipe<z.ZodString, z.ZodTransform<BoundaryOptionId, string>>;
|
|
124
139
|
}, z.core.$strict>;
|
|
140
|
+
export declare const pageDesignBoundaryTreatmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
141
|
+
kind: z.ZodLiteral<"none">;
|
|
142
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
143
|
+
kind: z.ZodLiteral<"soft-fade">;
|
|
144
|
+
height: z.ZodEnum<{
|
|
145
|
+
medium: "medium";
|
|
146
|
+
compact: "compact";
|
|
147
|
+
large: "large";
|
|
148
|
+
expansive: "expansive";
|
|
149
|
+
}>;
|
|
150
|
+
curve: z.ZodEnum<{
|
|
151
|
+
spacious: "spacious";
|
|
152
|
+
soft: "soft";
|
|
153
|
+
expansive: "expansive";
|
|
154
|
+
}>;
|
|
155
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
156
|
+
kind: z.ZodLiteral<"wave-edge">;
|
|
157
|
+
height: z.ZodEnum<{
|
|
158
|
+
medium: "medium";
|
|
159
|
+
compact: "compact";
|
|
160
|
+
large: "large";
|
|
161
|
+
}>;
|
|
162
|
+
amplitude: z.ZodEnum<{
|
|
163
|
+
bold: "bold";
|
|
164
|
+
subtle: "subtle";
|
|
165
|
+
balanced: "balanced";
|
|
166
|
+
}>;
|
|
167
|
+
rhythm: z.ZodEnum<{
|
|
168
|
+
single: "single";
|
|
169
|
+
double: "double";
|
|
170
|
+
}>;
|
|
171
|
+
symmetry: z.ZodEnum<{
|
|
172
|
+
symmetrical: "symmetrical";
|
|
173
|
+
asymmetrical: "asymmetrical";
|
|
174
|
+
drift: "drift";
|
|
175
|
+
}>;
|
|
176
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
177
|
+
kind: z.ZodLiteral<"angle-edge">;
|
|
178
|
+
height: z.ZodEnum<{
|
|
179
|
+
medium: "medium";
|
|
180
|
+
compact: "compact";
|
|
181
|
+
large: "large";
|
|
182
|
+
}>;
|
|
183
|
+
slope: z.ZodEnum<{
|
|
184
|
+
subtle: "subtle";
|
|
185
|
+
balanced: "balanced";
|
|
186
|
+
steep: "steep";
|
|
187
|
+
}>;
|
|
188
|
+
direction: z.ZodEnum<{
|
|
189
|
+
reverse: "reverse";
|
|
190
|
+
forward: "forward";
|
|
191
|
+
}>;
|
|
192
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
193
|
+
kind: z.ZodLiteral<"legacy-unsupported">;
|
|
194
|
+
boundaryOptionId: z.ZodPipe<z.ZodString, z.ZodTransform<BoundaryOptionId, string>>;
|
|
195
|
+
}, z.core.$strict>], "kind">;
|
|
196
|
+
export declare const pageDesignUserPinnedBoundaryTreatmentChoiceSchema: z.ZodObject<{
|
|
197
|
+
kind: z.ZodLiteral<"user-pinned">;
|
|
198
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
199
|
+
kind: z.ZodLiteral<"none">;
|
|
200
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
201
|
+
kind: z.ZodLiteral<"soft-fade">;
|
|
202
|
+
height: z.ZodEnum<{
|
|
203
|
+
medium: "medium";
|
|
204
|
+
compact: "compact";
|
|
205
|
+
large: "large";
|
|
206
|
+
expansive: "expansive";
|
|
207
|
+
}>;
|
|
208
|
+
curve: z.ZodEnum<{
|
|
209
|
+
spacious: "spacious";
|
|
210
|
+
soft: "soft";
|
|
211
|
+
expansive: "expansive";
|
|
212
|
+
}>;
|
|
213
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
214
|
+
kind: z.ZodLiteral<"wave-edge">;
|
|
215
|
+
height: z.ZodEnum<{
|
|
216
|
+
medium: "medium";
|
|
217
|
+
compact: "compact";
|
|
218
|
+
large: "large";
|
|
219
|
+
}>;
|
|
220
|
+
amplitude: z.ZodEnum<{
|
|
221
|
+
bold: "bold";
|
|
222
|
+
subtle: "subtle";
|
|
223
|
+
balanced: "balanced";
|
|
224
|
+
}>;
|
|
225
|
+
rhythm: z.ZodEnum<{
|
|
226
|
+
single: "single";
|
|
227
|
+
double: "double";
|
|
228
|
+
}>;
|
|
229
|
+
symmetry: z.ZodEnum<{
|
|
230
|
+
symmetrical: "symmetrical";
|
|
231
|
+
asymmetrical: "asymmetrical";
|
|
232
|
+
drift: "drift";
|
|
233
|
+
}>;
|
|
234
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
235
|
+
kind: z.ZodLiteral<"angle-edge">;
|
|
236
|
+
height: z.ZodEnum<{
|
|
237
|
+
medium: "medium";
|
|
238
|
+
compact: "compact";
|
|
239
|
+
large: "large";
|
|
240
|
+
}>;
|
|
241
|
+
slope: z.ZodEnum<{
|
|
242
|
+
subtle: "subtle";
|
|
243
|
+
balanced: "balanced";
|
|
244
|
+
steep: "steep";
|
|
245
|
+
}>;
|
|
246
|
+
direction: z.ZodEnum<{
|
|
247
|
+
reverse: "reverse";
|
|
248
|
+
forward: "forward";
|
|
249
|
+
}>;
|
|
250
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
251
|
+
kind: z.ZodLiteral<"legacy-unsupported">;
|
|
252
|
+
boundaryOptionId: z.ZodPipe<z.ZodString, z.ZodTransform<BoundaryOptionId, string>>;
|
|
253
|
+
}, z.core.$strict>], "kind">;
|
|
254
|
+
}, z.core.$strict>;
|
|
125
255
|
export declare const pageDesignBlockLookPinSchema: z.ZodObject<{
|
|
126
256
|
blockId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBlockId, string>>;
|
|
127
257
|
blockKind: z.ZodString;
|
|
@@ -131,6 +261,70 @@ export declare const pageDesignBlockLookPinSchema: z.ZodObject<{
|
|
|
131
261
|
}, z.core.$strict>;
|
|
132
262
|
}, z.core.$strict>;
|
|
133
263
|
export declare const pageDesignBoundaryPinSchema: z.ZodObject<{
|
|
264
|
+
boundaryId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBoundaryId, string>>;
|
|
265
|
+
previousBlockId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBlockId, string>>;
|
|
266
|
+
nextBlockId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBlockId, string>>;
|
|
267
|
+
choice: z.ZodObject<{
|
|
268
|
+
kind: z.ZodLiteral<"user-pinned">;
|
|
269
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
270
|
+
kind: z.ZodLiteral<"none">;
|
|
271
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
272
|
+
kind: z.ZodLiteral<"soft-fade">;
|
|
273
|
+
height: z.ZodEnum<{
|
|
274
|
+
medium: "medium";
|
|
275
|
+
compact: "compact";
|
|
276
|
+
large: "large";
|
|
277
|
+
expansive: "expansive";
|
|
278
|
+
}>;
|
|
279
|
+
curve: z.ZodEnum<{
|
|
280
|
+
spacious: "spacious";
|
|
281
|
+
soft: "soft";
|
|
282
|
+
expansive: "expansive";
|
|
283
|
+
}>;
|
|
284
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
285
|
+
kind: z.ZodLiteral<"wave-edge">;
|
|
286
|
+
height: z.ZodEnum<{
|
|
287
|
+
medium: "medium";
|
|
288
|
+
compact: "compact";
|
|
289
|
+
large: "large";
|
|
290
|
+
}>;
|
|
291
|
+
amplitude: z.ZodEnum<{
|
|
292
|
+
bold: "bold";
|
|
293
|
+
subtle: "subtle";
|
|
294
|
+
balanced: "balanced";
|
|
295
|
+
}>;
|
|
296
|
+
rhythm: z.ZodEnum<{
|
|
297
|
+
single: "single";
|
|
298
|
+
double: "double";
|
|
299
|
+
}>;
|
|
300
|
+
symmetry: z.ZodEnum<{
|
|
301
|
+
symmetrical: "symmetrical";
|
|
302
|
+
asymmetrical: "asymmetrical";
|
|
303
|
+
drift: "drift";
|
|
304
|
+
}>;
|
|
305
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
306
|
+
kind: z.ZodLiteral<"angle-edge">;
|
|
307
|
+
height: z.ZodEnum<{
|
|
308
|
+
medium: "medium";
|
|
309
|
+
compact: "compact";
|
|
310
|
+
large: "large";
|
|
311
|
+
}>;
|
|
312
|
+
slope: z.ZodEnum<{
|
|
313
|
+
subtle: "subtle";
|
|
314
|
+
balanced: "balanced";
|
|
315
|
+
steep: "steep";
|
|
316
|
+
}>;
|
|
317
|
+
direction: z.ZodEnum<{
|
|
318
|
+
reverse: "reverse";
|
|
319
|
+
forward: "forward";
|
|
320
|
+
}>;
|
|
321
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
322
|
+
kind: z.ZodLiteral<"legacy-unsupported">;
|
|
323
|
+
boundaryOptionId: z.ZodPipe<z.ZodString, z.ZodTransform<BoundaryOptionId, string>>;
|
|
324
|
+
}, z.core.$strict>], "kind">;
|
|
325
|
+
}, z.core.$strict>;
|
|
326
|
+
}, z.core.$strict>;
|
|
327
|
+
export declare const legacyPageDesignBoundaryPinSchema: z.ZodObject<{
|
|
134
328
|
boundaryId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBoundaryId, string>>;
|
|
135
329
|
previousBlockId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBlockId, string>>;
|
|
136
330
|
nextBlockId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBlockId, string>>;
|
|
@@ -166,12 +360,90 @@ export declare const pageDesignIntentV1Schema: z.ZodObject<{
|
|
|
166
360
|
}, z.core.$strict>;
|
|
167
361
|
}, z.core.$strict>>;
|
|
168
362
|
}, z.core.$strict>;
|
|
363
|
+
export declare const pageDesignIntentV2Schema: z.ZodObject<{
|
|
364
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
365
|
+
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleId, string>>;
|
|
366
|
+
pageFlowPresetId: z.ZodPipe<z.ZodString, z.ZodTransform<PageFlowPresetId, string>>;
|
|
367
|
+
blockLookPins: z.ZodArray<z.ZodObject<{
|
|
368
|
+
blockId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBlockId, string>>;
|
|
369
|
+
blockKind: z.ZodString;
|
|
370
|
+
choice: z.ZodObject<{
|
|
371
|
+
kind: z.ZodLiteral<"user-pinned">;
|
|
372
|
+
value: z.ZodPipe<z.ZodString, z.ZodTransform<AppearancePresetId, string>>;
|
|
373
|
+
}, z.core.$strict>;
|
|
374
|
+
}, z.core.$strict>>;
|
|
375
|
+
boundaryPins: z.ZodArray<z.ZodObject<{
|
|
376
|
+
boundaryId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBoundaryId, string>>;
|
|
377
|
+
previousBlockId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBlockId, string>>;
|
|
378
|
+
nextBlockId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignBlockId, string>>;
|
|
379
|
+
choice: z.ZodObject<{
|
|
380
|
+
kind: z.ZodLiteral<"user-pinned">;
|
|
381
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
382
|
+
kind: z.ZodLiteral<"none">;
|
|
383
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
384
|
+
kind: z.ZodLiteral<"soft-fade">;
|
|
385
|
+
height: z.ZodEnum<{
|
|
386
|
+
medium: "medium";
|
|
387
|
+
compact: "compact";
|
|
388
|
+
large: "large";
|
|
389
|
+
expansive: "expansive";
|
|
390
|
+
}>;
|
|
391
|
+
curve: z.ZodEnum<{
|
|
392
|
+
spacious: "spacious";
|
|
393
|
+
soft: "soft";
|
|
394
|
+
expansive: "expansive";
|
|
395
|
+
}>;
|
|
396
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
397
|
+
kind: z.ZodLiteral<"wave-edge">;
|
|
398
|
+
height: z.ZodEnum<{
|
|
399
|
+
medium: "medium";
|
|
400
|
+
compact: "compact";
|
|
401
|
+
large: "large";
|
|
402
|
+
}>;
|
|
403
|
+
amplitude: z.ZodEnum<{
|
|
404
|
+
bold: "bold";
|
|
405
|
+
subtle: "subtle";
|
|
406
|
+
balanced: "balanced";
|
|
407
|
+
}>;
|
|
408
|
+
rhythm: z.ZodEnum<{
|
|
409
|
+
single: "single";
|
|
410
|
+
double: "double";
|
|
411
|
+
}>;
|
|
412
|
+
symmetry: z.ZodEnum<{
|
|
413
|
+
symmetrical: "symmetrical";
|
|
414
|
+
asymmetrical: "asymmetrical";
|
|
415
|
+
drift: "drift";
|
|
416
|
+
}>;
|
|
417
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
418
|
+
kind: z.ZodLiteral<"angle-edge">;
|
|
419
|
+
height: z.ZodEnum<{
|
|
420
|
+
medium: "medium";
|
|
421
|
+
compact: "compact";
|
|
422
|
+
large: "large";
|
|
423
|
+
}>;
|
|
424
|
+
slope: z.ZodEnum<{
|
|
425
|
+
subtle: "subtle";
|
|
426
|
+
balanced: "balanced";
|
|
427
|
+
steep: "steep";
|
|
428
|
+
}>;
|
|
429
|
+
direction: z.ZodEnum<{
|
|
430
|
+
reverse: "reverse";
|
|
431
|
+
forward: "forward";
|
|
432
|
+
}>;
|
|
433
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
434
|
+
kind: z.ZodLiteral<"legacy-unsupported">;
|
|
435
|
+
boundaryOptionId: z.ZodPipe<z.ZodString, z.ZodTransform<BoundaryOptionId, string>>;
|
|
436
|
+
}, z.core.$strict>], "kind">;
|
|
437
|
+
}, z.core.$strict>;
|
|
438
|
+
}, z.core.$strict>>;
|
|
439
|
+
}, z.core.$strict>;
|
|
169
440
|
export declare function parsePageDesignIntent(value: unknown, options?: ParsePageDesignIntentOptions): PageDesignIntentParseResult;
|
|
441
|
+
export declare function normalizeLegacyPageDesignIntent<TBlockId extends DesignBlockId>(intent: LegacyPageDesignIntent<TBlockId>): PageDesignIntent<TBlockId>;
|
|
170
442
|
export declare function autoDesignChoice(): PageDesignAutoChoice;
|
|
171
443
|
export declare function userPinnedDesignChoice<TValue>(value: TValue): PageDesignUserPinnedChoice<TValue>;
|
|
172
444
|
export declare function resolvePageDesignBlockLookChoice<TBlockId extends DesignBlockId>(intent: PageDesignIntent<TBlockId>, blockId: TBlockId): PageDesignChoice<AppearancePresetId>;
|
|
173
|
-
export declare function resolvePageDesignBoundaryChoice<TBlockId extends DesignBlockId>(intent: PageDesignIntent<TBlockId>, previousBlockId: TBlockId, nextBlockId: TBlockId): PageDesignChoice<
|
|
174
|
-
export declare function buildBoundaryPin<TBlockId extends DesignBlockId>(previousBlockId: TBlockId, nextBlockId: TBlockId, choice: PageDesignUserPinnedChoice<
|
|
445
|
+
export declare function resolvePageDesignBoundaryChoice<TBlockId extends DesignBlockId>(intent: PageDesignIntent<TBlockId>, previousBlockId: TBlockId, nextBlockId: TBlockId): PageDesignChoice<SectionBoundaryTreatment>;
|
|
446
|
+
export declare function buildBoundaryPin<TBlockId extends DesignBlockId>(previousBlockId: TBlockId, nextBlockId: TBlockId, choice: PageDesignUserPinnedChoice<SectionBoundaryTreatment>): PageDesignBoundaryPin<TBlockId>;
|
|
175
447
|
export declare function reducePageDesignIntentForStructureEvent<TBlockId extends DesignBlockId>(intent: PageDesignIntent<TBlockId>, event: PageDesignStructureEvent<TBlockId>): PageDesignIntentUpdate<TBlockId>;
|
|
176
448
|
export declare function reducePageDesignIntentForUserAction<TBlockId extends DesignBlockId>(intent: PageDesignIntent<TBlockId>, action: PageDesignUserAction<TBlockId>): PageDesignIntent<TBlockId>;
|
|
177
449
|
export declare function remapPageDesignIntentForDuplicate<TBlockId extends DesignBlockId>(intent: PageDesignIntent<TBlockId>, input: Readonly<{
|
|
@@ -26,6 +26,7 @@ export type CompiledBlockRuntimeFields = Readonly<{
|
|
|
26
26
|
_contentCardStyles?: ContainerStylesOverride;
|
|
27
27
|
_heroLayoutStyles?: HeroLayoutStylesOverride;
|
|
28
28
|
_cardStyles?: CardStylesOverride;
|
|
29
|
+
blockLook?: string;
|
|
29
30
|
styleGroup?: string;
|
|
30
31
|
}>;
|
|
31
32
|
export type HeroLayoutStylesOverride = Readonly<{
|
|
@@ -34,7 +35,7 @@ export type HeroLayoutStylesOverride = Readonly<{
|
|
|
34
35
|
contentMaxWidth?: 'default' | 'narrow' | 'medium' | 'wide';
|
|
35
36
|
typographyScale?: NonNullable<ResolvedBlockDesignPlan['heroTypographyScale']>;
|
|
36
37
|
}>;
|
|
37
|
-
export declare const compiledRuntimeStyleFieldNames: readonly ["_frameStyles", "_sectionStyles", "_containerStyles", "_contentCardStyles", "_heroLayoutStyles", "_cardStyles", "styleGroup"];
|
|
38
|
+
export declare const compiledRuntimeStyleFieldNames: readonly ["_frameStyles", "_sectionStyles", "_containerStyles", "_contentCardStyles", "_heroLayoutStyles", "_cardStyles", "blockLook", "styleGroup"];
|
|
38
39
|
export declare function stripCompiledRuntimeStyleFields<TContent extends Record<string, unknown>>(content: TContent): Record<string, unknown>;
|
|
39
40
|
export type CompiledBlockRuntime = Readonly<{
|
|
40
41
|
blockId: string;
|
|
@@ -54,6 +55,11 @@ export type CompileBlockRuntimeInput<TBlockId extends string, TPurpose extends s
|
|
|
54
55
|
designRules?: DesignRuntimeRules;
|
|
55
56
|
componentRules?: ComponentRuntimeRules;
|
|
56
57
|
sectionSpacing?: SemanticSpacing;
|
|
58
|
+
sectionAdjacency?: SectionAdjacency;
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated Prefer `sectionAdjacency`. Kept for isolated block callers that
|
|
61
|
+
* compile one block with an explicit following section surface.
|
|
62
|
+
*/
|
|
57
63
|
nextSectionSurface?: SiteStyleSurfaceIntent;
|
|
58
64
|
}>;
|
|
59
65
|
export type CompileBlockRuntimeIntoContentInput<TBlockId extends string, TPurpose extends string, TContent extends Record<string, unknown>> = CompileBlockRuntimeInput<TBlockId, TPurpose> & Readonly<{
|
|
@@ -65,6 +71,18 @@ export type CompiledPageRuntime<TBlockId extends string = string> = Readonly<{
|
|
|
65
71
|
blockId: TBlockId;
|
|
66
72
|
}>)[];
|
|
67
73
|
}>;
|
|
74
|
+
export type SectionAdjacency = Readonly<{
|
|
75
|
+
kind: 'next-section';
|
|
76
|
+
surface: SiteStyleSurfaceIntent;
|
|
77
|
+
}> | Readonly<{
|
|
78
|
+
kind: 'terminal-surface';
|
|
79
|
+
surface: SiteStyleSurfaceIntent;
|
|
80
|
+
}> | Readonly<{
|
|
81
|
+
kind: 'page-end';
|
|
82
|
+
}>;
|
|
83
|
+
export type TerminalSectionAdjacency = Extract<SectionAdjacency, Readonly<{
|
|
84
|
+
kind: 'terminal-surface' | 'page-end';
|
|
85
|
+
}>>;
|
|
68
86
|
export declare function defineDesignRuntimeRules<const TRules extends DesignRuntimeRules>(rules: TRules): TRules;
|
|
69
87
|
export declare function defineComponentRuntimeRules<const TRules extends ComponentRuntimeRules>(rules: TRules): TRules;
|
|
70
88
|
/**
|
|
@@ -94,11 +112,13 @@ export declare const defaultDesignRuntimeRules: {
|
|
|
94
112
|
};
|
|
95
113
|
readonly 'hero-image': {
|
|
96
114
|
readonly background: {
|
|
115
|
+
readonly textColor?: string | null | undefined;
|
|
116
|
+
readonly headingColor?: string | null | undefined;
|
|
117
|
+
readonly linkColor?: string | null | undefined;
|
|
118
|
+
readonly supportingColor?: string | null | undefined;
|
|
97
119
|
readonly type: "image";
|
|
98
120
|
readonly opacity: 1;
|
|
99
121
|
readonly position: "center center";
|
|
100
|
-
readonly textColor: "text";
|
|
101
|
-
readonly headingColor: "text";
|
|
102
122
|
};
|
|
103
123
|
};
|
|
104
124
|
};
|
|
@@ -211,6 +231,15 @@ export declare const defaultComponentRuntimeRules: {
|
|
|
211
231
|
readonly enabled: false;
|
|
212
232
|
};
|
|
213
233
|
};
|
|
234
|
+
readonly 'color-blocked': {
|
|
235
|
+
readonly treatment: "color-blocked";
|
|
236
|
+
readonly spacing: "spacious";
|
|
237
|
+
readonly rounded: "2xl";
|
|
238
|
+
readonly raised: false;
|
|
239
|
+
readonly border: {
|
|
240
|
+
readonly enabled: false;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
214
243
|
};
|
|
215
244
|
};
|
|
216
245
|
/** Compiles one resolved semantic block plan into legacy block runtime fields. */
|
|
@@ -229,6 +258,7 @@ export declare function compilePageRuntimeFields<TBlockId extends string, TPurpo
|
|
|
229
258
|
designRules?: DesignRuntimeRules;
|
|
230
259
|
componentRules?: ComponentRuntimeRules;
|
|
231
260
|
sectionSpacing?: SemanticSpacing;
|
|
261
|
+
terminalSectionAdjacency?: TerminalSectionAdjacency;
|
|
232
262
|
}>): CompiledPageRuntime<TBlockId>;
|
|
233
263
|
export type CompileTokenRecipesOptions = Readonly<{
|
|
234
264
|
/** Resolved button personality ID. When provided, emits `theme.buttons`. */
|