@riverbankcms/sdk 0.79.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-RDCMEXIJ.mjs +3163 -0
- package/dist/{PreviewEditorUI-27KJVEET.mjs → PreviewEditorUI-NYGQ6K7B.mjs} +194 -30
- package/dist/SdkPreviewModeRuntime-AKCSCZEC.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +20 -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/endpoints.d.ts +24 -0
- package/dist/_dts/api/src/index.d.ts +3 -3
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +53 -0
- package/dist/_dts/api/src/siteInfrastructure.d.ts +124 -0
- package/dist/_dts/api/src/siteOnboarding.d.ts +13 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +10 -1
- 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/block-form/src/client/index.d.ts +2 -0
- package/dist/_dts/block-form/src/index.d.ts +2 -0
- package/dist/_dts/block-form/src/utils/evaluateVisibility.d.ts +2 -1
- package/dist/_dts/blocks/src/PageRenderer.d.ts +3 -0
- package/dist/_dts/blocks/src/client/header.d.ts +1 -1
- package/dist/_dts/blocks/src/client.d.ts +12 -12
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +20 -28
- package/dist/_dts/blocks/src/index.d.ts +7 -5
- 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/event-listing.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -1
- 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 +9 -1
- 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/blocks/testimonials.d.ts +7 -1
- 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 +34 -15
- 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 +10 -3
- package/dist/_dts/blocks/src/system/fragments/library/testimonialsCarousel.d.ts +5 -0
- package/dist/_dts/blocks/src/system/media/slotContracts.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/fragments/headingDecoration.d.ts +1 -4
- package/dist/_dts/blocks/src/system/node/types.d.ts +8 -1
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +2 -2
- package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +51 -57
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -27
- package/dist/_dts/blocks/src/system/runtime/header/enhanceHeaderSection.d.ts +10 -2
- 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 +22 -33
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.server.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventSpotlight.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventDetailModal.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModals.d.ts +2 -2
- 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/header-section.client.d.ts +2 -2
- 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 +7 -2
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +9 -0
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +14 -1
- 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/db/src/generated/supabase/database.types.d.ts +9 -3
- 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 +5 -9
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +2 -6
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +6 -10
- package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +2 -6
- package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +6 -4
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +4 -8
- 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/index.d.ts +2 -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 +7 -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/previewCustomizeControlPlan.d.ts +24 -0
- package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +35 -0
- 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 +5 -6
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +4 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewBlockCustomizeSelectionContext.d.ts +20 -0
- 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 +2 -0
- 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/SelectedBlockCustomizePanel.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/previewCustomizeEditorDraftPatch.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +8 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +2 -0
- 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/storeTypes.d.ts +4 -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 +6 -3
- package/dist/_dts/preview-next/src/constants.d.ts +0 -1
- package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +44 -0
- 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/client/management/index.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +56 -0
- package/dist/_dts/sdk/src/client/management/webhooks.d.ts +3 -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 +34 -5
- 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/accordions/siteStyleDefaults.d.ts +220 -0
- package/dist/_dts/theme-core/src/accordions/types.d.ts +45 -2
- package/dist/_dts/theme-core/src/blockOverrides.d.ts +8 -0
- package/dist/_dts/theme-core/src/blocks/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/vars/testimonials.d.ts +4 -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 +2 -1
- package/dist/_dts/theme-core/src/buttons/types.d.ts +9 -0
- package/dist/_dts/theme-core/src/cards/core.d.ts +20 -0
- package/dist/_dts/theme-core/src/cards/generateDefaultCardSystem.d.ts +6 -3
- package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +149 -0
- package/dist/_dts/theme-core/src/cards/types.d.ts +177 -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 +180 -21
- package/dist/_dts/theme-core/src/palette/variants/index.d.ts +30 -0
- package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +16 -0
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/variants/warm-dark.d.ts +27 -0
- package/dist/_dts/theme-core/src/schema.d.ts +486 -55
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +4 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +172 -47
- package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +6 -2
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +2 -3
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +172 -47
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +140 -2
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +18 -2
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +20 -1
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +10 -2
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +291 -6
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +193 -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/previewCompiler.d.ts +2 -8
- package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +43 -10
- package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +508 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleThemeCompiler.d.ts +11 -0
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +10 -10
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/testimonialQuotePresets.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +28 -32
- package/dist/_dts/theme-core/src/site-styles/typographyPresets.d.ts +16 -1
- package/dist/{chunk-4HCW7FHJ.mjs → chunk-3PTVPAT4.mjs} +1984 -1142
- package/dist/{PreviewEditorSidebar-56NMJMIK.mjs → chunk-3QWQ2MUQ.mjs} +1050 -2609
- package/dist/{chunk-GP555I66.mjs → chunk-3VT7LZY2.mjs} +413 -157
- package/dist/{chunk-A3HHFKVT.mjs → chunk-4T5JIPWY.mjs} +1 -1
- package/dist/{chunk-K2IIF34C.mjs → chunk-E3NZYEKF.mjs} +25 -7
- package/dist/{chunk-V47ZU33I.mjs → chunk-WUHKQBB6.mjs} +12062 -3211
- package/dist/cli/index.mjs +3395 -817
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +16 -4
- package/dist/client/{accordion-QLA7KBYO.mjs → accordion-SFIIZWNH.mjs} +2 -2
- package/dist/client/{bookingForm-PYZIPA5G.mjs → bookingForm-CFKZVWGA.mjs} +5 -5
- package/dist/client/bookings.mjs +1422 -345
- package/dist/client/{carousel-5EIULWBI.mjs → carousel-ELXWSBLA.mjs} +3 -3
- package/dist/client/{cart-DOP3FNI4.mjs → cart-6SSCPYY5.mjs} +6 -6
- package/dist/client/{checkout-BVMF6FBV.mjs → checkout-UFQ34HPV.mjs} +6 -6
- package/dist/client/{chunk-44K2U3QI.mjs → chunk-76JUETXQ.mjs} +139 -186
- package/dist/client/{chunk-AUJ5DBZJ.mjs → chunk-7BXX7WXH.mjs} +112 -28
- package/dist/client/{chunk-UDS3NTWA.mjs → chunk-G56BSZAM.mjs} +2 -2
- package/dist/client/{chunk-V6M5FCR5.mjs → chunk-IUEDYLFJ.mjs} +1 -1
- package/dist/client/{chunk-YLDYVRZL.mjs → chunk-NP47RHIX.mjs} +5 -5
- package/dist/client/{chunk-R5ESWNKX.mjs → chunk-NX6X3GRF.mjs} +419 -85
- package/dist/client/{chunk-CCNTDRCF.mjs → chunk-PA2LJH2M.mjs} +2 -2
- package/dist/client/{chunk-CE7IBGVW.mjs → chunk-RMWMT3ZD.mjs} +1 -1
- package/dist/client/{chunk-TYONZMST.mjs → chunk-TCJS3NY5.mjs} +1 -1
- package/dist/client/{chunk-GG4M2NP6.mjs → chunk-V6XI4M2Q.mjs} +1 -1
- package/dist/client/client.mjs +9077 -4410
- package/dist/client/{courseRegistration-E6EAA6NL.mjs → courseRegistration-HJIISAAG.mjs} +5 -5
- package/dist/client/{eventCalendar-HBG3HAK6.mjs → eventCalendar-F6YVUCZR.mjs} +7 -7
- package/dist/client/{eventCombined-6K5ZZWAK.mjs → eventCombined-B5DSTIOK.mjs} +7 -7
- package/dist/client/{eventDetails-Q75ICXLT.mjs → eventDetails-SEJDDHQC.mjs} +7 -7
- package/dist/client/{eventListing-27P5F7DZ.mjs → eventListing-TPMWIIBO.mjs} +7 -7
- package/dist/client/{eventRegistration-IQ7AMASR.mjs → eventRegistration-QU6W2PV6.mjs} +7 -7
- package/dist/client/{form-JRTD65FN.mjs → form-LVTYNTDE.mjs} +2 -2
- package/dist/client/{headerSection-7FPSSZHS.mjs → headerSection-SO3MFC4U.mjs} +110 -28
- package/dist/client/hooks.mjs +4695 -2260
- package/dist/client/{locationMap-7NGFNYBH.mjs → locationMap-5E5FLAKO.mjs} +2 -2
- package/dist/client/{newsletterForm-F3BADCI2.mjs → newsletterForm-GN32JEBQ.mjs} +2 -2
- package/dist/client/{productDetail-V3HP7ITJ.mjs → productDetail-Q346KSVR.mjs} +6 -6
- package/dist/client/{productList-L3EGJUF2.mjs → productList-DTDMQYGZ.mjs} +6 -6
- package/dist/client/rendering/client.mjs +5795 -3582
- package/dist/client/rendering/islands.mjs +32 -20
- package/dist/client/rendering.mjs +7988 -3317
- package/dist/client/{shop-DQUB5E2C.mjs → shop-OFUW7KPN.mjs} +6 -6
- package/dist/preview-next/before-render.mjs +24 -0
- 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/preview-next/middleware.mjs +24 -0
- package/dist/{sdk-runtime-AF6KXJU4.mjs → sdk-runtime-2GIX6I7X.mjs} +6 -6
- package/dist/server/components.mjs +7384 -3089
- package/dist/server/config-validation.mjs +4747 -2418
- package/dist/server/config.mjs +4747 -2418
- package/dist/server/data.mjs +4695 -2260
- package/dist/server/index.mjs +26 -1
- package/dist/server/next.mjs +7430 -3039
- package/dist/server/page-converter.mjs +3985 -2070
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +7489 -3094
- package/dist/server/rendering.mjs +7491 -3096
- package/dist/server/routing.mjs +4965 -2386
- package/dist/server/server.mjs +4713 -2278
- package/dist/server/theme-bridge.mjs +2181 -383
- package/dist/server/theme.mjs +477 -222
- package/dist/styles/index.css +747 -71
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-H4BSP6E7.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
- package/dist/chunk-LCY32PXF.mjs +0 -1175
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as PageRenderer } from './PageRenderer';
|
|
2
|
-
export type { BlockOverrideComponent, BlockOverrideProps, BlockOverrides, EntrySubrouteContextData, OccurrenceContextData, SdkConfigForRenderer, } from './PageRenderer';
|
|
2
|
+
export type { BlockOverrideComponent, BlockOverrideProps, BlockOverrides, EntrySubrouteContextData, OccurrenceContextData, PageBlockPosition, SdkConfigForRenderer, } from './PageRenderer';
|
|
3
3
|
export * from './subroutes';
|
|
4
4
|
export { ThemeScope } from '../../theme-core/src/ThemeScope';
|
|
@@ -48,8 +48,9 @@ export type EventCalendarContent = {
|
|
|
48
48
|
listColumns?: ColumnOption | null;
|
|
49
49
|
layout?: EventLayout | null;
|
|
50
50
|
columns?: ColumnOption | null;
|
|
51
|
-
eventsPerPage?: '6' | '12' | '24' | null;
|
|
52
|
-
|
|
51
|
+
eventsPerPage?: '6' | '10' | '12' | '20' | '24' | '30' | null;
|
|
52
|
+
paginationMode?: 'loadMore' | 'seeAllLink' | null;
|
|
53
|
+
seeAllUrl?: string | null;
|
|
53
54
|
loadMoreText?: string | null;
|
|
54
55
|
startOfWeek?: WeekStart | null;
|
|
55
56
|
calendarTabViews?: CalendarTabViews | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SystemBlockDefinition } from "../../registry";
|
|
2
2
|
import { type SectionStylesContent } from "../../fields/boxStyles";
|
|
3
3
|
import { eventListingBlockRuntime } from "../../runtime/nodes/events/EventListing.interactive";
|
|
4
|
-
import type { EventBlockKind, EventScheduleScope, EventSurfacePreset, EventSurfaceScope } from "./shared/types";
|
|
4
|
+
import type { EventBlockKind, EventCardVariantInput, EventScheduleScope, EventSurfacePreset, EventSurfaceScope } from "./shared/types";
|
|
5
5
|
export declare const eventListingManifest: import("../..").DefinedBlockManifest<{
|
|
6
6
|
readonly additionalFields: readonly [{
|
|
7
7
|
readonly id: "layout";
|
|
@@ -35,7 +35,7 @@ export type EventListingContent = {
|
|
|
35
35
|
paginationMode?: "loadMore" | "seeAllLink" | null;
|
|
36
36
|
seeAllUrl?: string | null;
|
|
37
37
|
loadMoreText?: string | null;
|
|
38
|
-
cardVariant?:
|
|
38
|
+
cardVariant?: EventCardVariantInput | null;
|
|
39
39
|
buttonVariant?: "primary" | "secondary" | "outline" | "link" | null;
|
|
40
40
|
buttonText?: string | null;
|
|
41
41
|
showVenue?: boolean | null;
|
|
@@ -3,6 +3,7 @@ import type { SystemBlockDefinition } from "../../registry";
|
|
|
3
3
|
import type { NodeDefinition } from "../../node";
|
|
4
4
|
import { type SectionStylesContent } from "../../fields/boxStyles";
|
|
5
5
|
import { type BlockConfig, type BlockContentShapeInput, type DefinedBlockManifest } from "../../defineBlock";
|
|
6
|
+
import type { EventCardVariantInput } from "./shared/types";
|
|
6
7
|
/**
|
|
7
8
|
* Event Spotlight Block
|
|
8
9
|
*
|
|
@@ -32,7 +33,7 @@ export type EventSpotlightContent = {
|
|
|
32
33
|
ctaUrl?: LinkValue | string | null;
|
|
33
34
|
layout?: "grid" | "stack" | null;
|
|
34
35
|
columns?: "2" | "3" | null;
|
|
35
|
-
cardVariant?:
|
|
36
|
+
cardVariant?: EventCardVariantInput | null;
|
|
36
37
|
buttonVariant?: "primary" | "secondary" | "outline" | "link" | null;
|
|
37
38
|
buttonText?: string | null;
|
|
38
39
|
showVenue?: boolean | null;
|
|
@@ -50,6 +50,61 @@ export declare const eventPricingModeSchema: z.ZodEnum<{
|
|
|
50
50
|
single: "single";
|
|
51
51
|
ticket_types: "ticket_types";
|
|
52
52
|
}>;
|
|
53
|
+
export declare const publicCoursePriceDisplaySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54
|
+
kind: z.ZodLiteral<"free">;
|
|
55
|
+
currency: z.ZodString;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
kind: z.ZodLiteral<"exact">;
|
|
58
|
+
amount: z.ZodNumber;
|
|
59
|
+
currency: z.ZodString;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
kind: z.ZodLiteral<"from">;
|
|
62
|
+
amount: z.ZodNumber;
|
|
63
|
+
currency: z.ZodString;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
66
|
+
currency: z.ZodString;
|
|
67
|
+
}, z.core.$strip>], "kind">;
|
|
68
|
+
export declare const publicEventPriceDisplaySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
69
|
+
kind: z.ZodLiteral<"free">;
|
|
70
|
+
currency: z.ZodString;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
kind: z.ZodLiteral<"exact">;
|
|
73
|
+
amount: z.ZodNumber;
|
|
74
|
+
currency: z.ZodString;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
+
kind: z.ZodLiteral<"from">;
|
|
77
|
+
amount: z.ZodNumber;
|
|
78
|
+
currency: z.ZodString;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
kind: z.ZodLiteral<"mixed">;
|
|
81
|
+
paidFromAmount: z.ZodNumber;
|
|
82
|
+
currency: z.ZodString;
|
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
+
kind: z.ZodLiteral<"pass_only">;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
kind: z.ZodLiteral<"membership_only">;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
89
|
+
currency: z.ZodString;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
+
kind: z.ZodLiteral<"course">;
|
|
92
|
+
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
|
+
kind: z.ZodLiteral<"free">;
|
|
94
|
+
currency: z.ZodString;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
kind: z.ZodLiteral<"exact">;
|
|
97
|
+
amount: z.ZodNumber;
|
|
98
|
+
currency: z.ZodString;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
kind: z.ZodLiteral<"from">;
|
|
101
|
+
amount: z.ZodNumber;
|
|
102
|
+
currency: z.ZodString;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
105
|
+
currency: z.ZodString;
|
|
106
|
+
}, z.core.$strip>], "kind">;
|
|
107
|
+
}, z.core.$strip>], "kind">;
|
|
53
108
|
export declare const publicEventAttendanceModeSchema: z.ZodEnum<{
|
|
54
109
|
in_person: "in_person";
|
|
55
110
|
online: "online";
|
|
@@ -472,6 +527,46 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
472
527
|
}>;
|
|
473
528
|
price: z.ZodNullable<z.ZodNumber>;
|
|
474
529
|
currency: z.ZodString;
|
|
530
|
+
priceDisplay: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
531
|
+
kind: z.ZodLiteral<"free">;
|
|
532
|
+
currency: z.ZodString;
|
|
533
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
534
|
+
kind: z.ZodLiteral<"exact">;
|
|
535
|
+
amount: z.ZodNumber;
|
|
536
|
+
currency: z.ZodString;
|
|
537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
538
|
+
kind: z.ZodLiteral<"from">;
|
|
539
|
+
amount: z.ZodNumber;
|
|
540
|
+
currency: z.ZodString;
|
|
541
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
542
|
+
kind: z.ZodLiteral<"mixed">;
|
|
543
|
+
paidFromAmount: z.ZodNumber;
|
|
544
|
+
currency: z.ZodString;
|
|
545
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
546
|
+
kind: z.ZodLiteral<"pass_only">;
|
|
547
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
548
|
+
kind: z.ZodLiteral<"membership_only">;
|
|
549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
550
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
551
|
+
currency: z.ZodString;
|
|
552
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
553
|
+
kind: z.ZodLiteral<"course">;
|
|
554
|
+
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
555
|
+
kind: z.ZodLiteral<"free">;
|
|
556
|
+
currency: z.ZodString;
|
|
557
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
558
|
+
kind: z.ZodLiteral<"exact">;
|
|
559
|
+
amount: z.ZodNumber;
|
|
560
|
+
currency: z.ZodString;
|
|
561
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
562
|
+
kind: z.ZodLiteral<"from">;
|
|
563
|
+
amount: z.ZodNumber;
|
|
564
|
+
currency: z.ZodString;
|
|
565
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
566
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
567
|
+
currency: z.ZodString;
|
|
568
|
+
}, z.core.$strip>], "kind">;
|
|
569
|
+
}, z.core.$strip>], "kind">;
|
|
475
570
|
paymentTerms: z.ZodObject<{
|
|
476
571
|
allowedOptions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
477
572
|
kind: z.ZodLiteral<"upfront">;
|
|
@@ -1031,6 +1126,46 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1031
1126
|
}>;
|
|
1032
1127
|
price: z.ZodNullable<z.ZodNumber>;
|
|
1033
1128
|
currency: z.ZodString;
|
|
1129
|
+
priceDisplay: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1130
|
+
kind: z.ZodLiteral<"free">;
|
|
1131
|
+
currency: z.ZodString;
|
|
1132
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1133
|
+
kind: z.ZodLiteral<"exact">;
|
|
1134
|
+
amount: z.ZodNumber;
|
|
1135
|
+
currency: z.ZodString;
|
|
1136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1137
|
+
kind: z.ZodLiteral<"from">;
|
|
1138
|
+
amount: z.ZodNumber;
|
|
1139
|
+
currency: z.ZodString;
|
|
1140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1141
|
+
kind: z.ZodLiteral<"mixed">;
|
|
1142
|
+
paidFromAmount: z.ZodNumber;
|
|
1143
|
+
currency: z.ZodString;
|
|
1144
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1145
|
+
kind: z.ZodLiteral<"pass_only">;
|
|
1146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1147
|
+
kind: z.ZodLiteral<"membership_only">;
|
|
1148
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1149
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
1150
|
+
currency: z.ZodString;
|
|
1151
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1152
|
+
kind: z.ZodLiteral<"course">;
|
|
1153
|
+
display: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1154
|
+
kind: z.ZodLiteral<"free">;
|
|
1155
|
+
currency: z.ZodString;
|
|
1156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1157
|
+
kind: z.ZodLiteral<"exact">;
|
|
1158
|
+
amount: z.ZodNumber;
|
|
1159
|
+
currency: z.ZodString;
|
|
1160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1161
|
+
kind: z.ZodLiteral<"from">;
|
|
1162
|
+
amount: z.ZodNumber;
|
|
1163
|
+
currency: z.ZodString;
|
|
1164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1165
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
1166
|
+
currency: z.ZodString;
|
|
1167
|
+
}, z.core.$strip>], "kind">;
|
|
1168
|
+
}, z.core.$strip>], "kind">;
|
|
1034
1169
|
paymentTerms: z.ZodObject<{
|
|
1035
1170
|
allowedOptions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1036
1171
|
kind: z.ZodLiteral<"upfront">;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared types for event display blocks
|
|
3
3
|
*/
|
|
4
|
+
import type { z } from 'zod';
|
|
4
5
|
import type { LocationCoordinates } from '../../../../../../core/src/index';
|
|
5
6
|
import type { Media } from '../../../../lib/media';
|
|
6
7
|
import type { BlockBookingPaymentTerms } from '../../shared/bookingPaymentTerms';
|
|
@@ -8,6 +9,8 @@ import type { PublicTeamMemberSummary } from '../../shared/teamMembers';
|
|
|
8
9
|
import type { CoursePricing } from '../../courses/shared/types';
|
|
9
10
|
import type { eventCalendarDisplayModeValues, eventCalendarListLayoutValues } from '../../../constants/events';
|
|
10
11
|
import type { EventBlockKind, EventScheduleScope, EventSurfacePreset, EventSurfaceScope } from './filtering';
|
|
12
|
+
import type { CardVariantRole, LegacyCardVariantRoleAlias } from '../../../../../../theme-core/src/cards/index';
|
|
13
|
+
import type { publicEventPriceDisplaySchema } from './schemas';
|
|
11
14
|
/**
|
|
12
15
|
* Geographic coordinates for venue location
|
|
13
16
|
*/
|
|
@@ -33,6 +36,7 @@ export type EventCategory = {
|
|
|
33
36
|
* Pricing type for events
|
|
34
37
|
*/
|
|
35
38
|
export type PricingType = "free" | "paid" | "pass_only" | "membership_only";
|
|
39
|
+
export type PublicEventPriceDisplay = z.infer<typeof publicEventPriceDisplaySchema>;
|
|
36
40
|
/**
|
|
37
41
|
* Access restriction type for events
|
|
38
42
|
*/
|
|
@@ -126,6 +130,8 @@ export type PublicEvent = {
|
|
|
126
130
|
price: number | null;
|
|
127
131
|
/** Currency code (ISO 4217), defaults to 'USD' */
|
|
128
132
|
currency: string;
|
|
133
|
+
/** Canonical display pricing derived by the public API boundary. */
|
|
134
|
+
priceDisplay: PublicEventPriceDisplay;
|
|
129
135
|
/** Shared booking payment-terms model for appointments/events/courses. */
|
|
130
136
|
paymentTerms: BlockBookingPaymentTerms;
|
|
131
137
|
/** Persisted pricing mode: legacy single-price or explicit ticket types. */
|
|
@@ -156,7 +162,9 @@ export type PublicEvent = {
|
|
|
156
162
|
/**
|
|
157
163
|
* Card variant options for event display
|
|
158
164
|
*/
|
|
159
|
-
export type CardVariant =
|
|
165
|
+
export type CardVariant = CardVariantRole;
|
|
166
|
+
export type LegacyEventCardVariant = LegacyCardVariantRoleAlias;
|
|
167
|
+
export type EventCardVariantInput = CardVariant | LegacyEventCardVariant;
|
|
160
168
|
/**
|
|
161
169
|
* Card orientation options for event display
|
|
162
170
|
* - vertical: Standard card layout with image on top (grid mode)
|
|
@@ -17,11 +17,13 @@ export type FeatureCard = {
|
|
|
17
17
|
body?: TipTapNode | null;
|
|
18
18
|
ctas?: BlockCtaContent[] | null;
|
|
19
19
|
};
|
|
20
|
+
export type FeatureCardsCardMarker = "icons" | "numbers" | "none";
|
|
20
21
|
export type FeatureCardsContent = {
|
|
21
22
|
variant?: FeatureCardsVariant | null;
|
|
22
23
|
title?: string | null;
|
|
23
24
|
description?: TipTapNode | null;
|
|
24
25
|
columns?: FeatureCardsColumns | null;
|
|
26
|
+
cardMarker?: FeatureCardsCardMarker | null;
|
|
25
27
|
_iconTreatment?: FeatureCardIconTreatment | null;
|
|
26
28
|
cards?: FeatureCard[] | null;
|
|
27
29
|
};
|
|
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import type { SystemBlockDefinition } from "../registry";
|
|
3
3
|
import type { ContainerStylesContent, SectionStylesContent } from "../fields/boxStyles";
|
|
4
4
|
import { formBlockRuntime } from "../runtime/nodes/form.interactive";
|
|
5
|
+
import type { NodeDefinition } from "../node";
|
|
5
6
|
export declare const formManifest: import("..").DefinedBlockManifest<import("..").BlockContentShapeInput<{
|
|
6
7
|
readonly id: "block.form";
|
|
7
8
|
readonly title: "Form";
|
|
@@ -47,7 +48,24 @@ export declare const formManifest: import("..").DefinedBlockManifest<import(".."
|
|
|
47
48
|
}];
|
|
48
49
|
}>;
|
|
49
50
|
}];
|
|
50
|
-
readonly layout:
|
|
51
|
+
readonly layout: NodeDefinition;
|
|
52
|
+
readonly variants: {
|
|
53
|
+
readonly default: NodeDefinition;
|
|
54
|
+
readonly "two-column": NodeDefinition;
|
|
55
|
+
};
|
|
56
|
+
readonly defaultVariant: "default";
|
|
57
|
+
readonly variantOptions: {
|
|
58
|
+
readonly default: {
|
|
59
|
+
readonly label: "Stacked";
|
|
60
|
+
readonly description: "Copy above the form.";
|
|
61
|
+
readonly icon: "PanelTop";
|
|
62
|
+
};
|
|
63
|
+
readonly "two-column": {
|
|
64
|
+
readonly label: "Two column";
|
|
65
|
+
readonly description: "Copy on the left and form on the right.";
|
|
66
|
+
readonly icon: "Columns2";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
51
69
|
readonly styleTokens: {
|
|
52
70
|
readonly background: "surface";
|
|
53
71
|
readonly typography: "body";
|
|
@@ -84,6 +102,7 @@ export type FormBlockContent = {
|
|
|
84
102
|
formSlug: string;
|
|
85
103
|
submitLabel?: string | null;
|
|
86
104
|
successMessage?: string | null;
|
|
105
|
+
variant?: "default" | "two-column" | null;
|
|
87
106
|
_sectionStyles?: SectionStylesContent;
|
|
88
107
|
_containerStyles?: ContainerStylesContent;
|
|
89
108
|
};
|
|
@@ -11,6 +11,7 @@ declare const classicLayout: NodeDefinition;
|
|
|
11
11
|
declare const microLayout: NodeDefinition;
|
|
12
12
|
declare const splitLayout: NodeDefinition;
|
|
13
13
|
declare const splitReverseLayout: NodeDefinition;
|
|
14
|
+
declare const splitEditorialLayout: NodeDefinition;
|
|
14
15
|
type HeroConfig = Omit<BlockConfig, "additionalFields" | "defaultVariant" | "fragments" | "includeContainerStyles" | "promotedFields" | "variants"> & {
|
|
15
16
|
readonly includeContainerStyles: true;
|
|
16
17
|
readonly promotedFields: readonly ["_sectionStyles.background.image"];
|
|
@@ -39,6 +40,7 @@ type HeroConfig = Omit<BlockConfig, "additionalFields" | "defaultVariant" | "fra
|
|
|
39
40
|
readonly micro: typeof microLayout;
|
|
40
41
|
readonly split: typeof splitLayout;
|
|
41
42
|
readonly splitReverse: typeof splitReverseLayout;
|
|
43
|
+
readonly splitEditorial: typeof splitEditorialLayout;
|
|
42
44
|
};
|
|
43
45
|
readonly defaultVariant: "classic";
|
|
44
46
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SystemBlockDefinition } from "../../registry";
|
|
2
|
+
import type { BlockManifest } from "../../manifest";
|
|
3
|
+
import { type CardStylesContent, type SectionStylesContent } from "../../fields/boxStyles";
|
|
4
|
+
import type { ButtonVariant } from "../events/shared/types";
|
|
5
|
+
import { type OfferingsPreviewGroupOverride } from "./model";
|
|
6
|
+
export declare const offeringsPreviewManifest: BlockManifest;
|
|
7
|
+
export type OfferingsPreviewContent = {
|
|
8
|
+
heading?: string | null;
|
|
9
|
+
description?: unknown;
|
|
10
|
+
itemLimit?: "1" | "2" | "3" | "4" | "5" | "6" | null;
|
|
11
|
+
groupOverrides?: readonly OfferingsPreviewGroupOverride[] | null;
|
|
12
|
+
_cardStyles?: CardStylesContent;
|
|
13
|
+
buttonVariant?: ButtonVariant | null;
|
|
14
|
+
buttonText?: string | null;
|
|
15
|
+
emptyMessage?: string | null;
|
|
16
|
+
_sectionStyles?: SectionStylesContent;
|
|
17
|
+
};
|
|
18
|
+
export declare const offeringsPreviewBlockDefinition: SystemBlockDefinition<OfferingsPreviewContent>;
|
|
19
|
+
export type { BookingOfferingPresetSummary, OfferingsPreviewGroupOverride, OfferingsPreviewSourceKey, } from "./model";
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import type { PublicEvent } from "../events/shared/types";
|
|
2
|
+
import type { PublicCourse } from "../courses/shared/types";
|
|
3
|
+
export declare const OFFERINGS_PREVIEW_DEFAULT_ITEM_LIMIT = "3";
|
|
4
|
+
export declare const OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT = "Book";
|
|
5
|
+
export declare const OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE = "Nothing scheduled just yet.";
|
|
6
|
+
export declare const OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE = "This list is unavailable right now.";
|
|
7
|
+
export declare const OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS: readonly [{
|
|
8
|
+
readonly preset: "class";
|
|
9
|
+
readonly sourceKey: "eventPreset:class";
|
|
10
|
+
readonly dataKey: "classEvents";
|
|
11
|
+
readonly label: "Classes";
|
|
12
|
+
}, {
|
|
13
|
+
readonly preset: "workshop";
|
|
14
|
+
readonly sourceKey: "eventPreset:workshop";
|
|
15
|
+
readonly dataKey: "workshopEvents";
|
|
16
|
+
readonly label: "Workshops";
|
|
17
|
+
}, {
|
|
18
|
+
readonly preset: "retreat";
|
|
19
|
+
readonly sourceKey: "eventPreset:retreat";
|
|
20
|
+
readonly dataKey: "retreatEvents";
|
|
21
|
+
readonly label: "Retreats";
|
|
22
|
+
}, {
|
|
23
|
+
readonly preset: "performance";
|
|
24
|
+
readonly sourceKey: "eventPreset:performance";
|
|
25
|
+
readonly dataKey: "performanceEvents";
|
|
26
|
+
readonly label: "Performances";
|
|
27
|
+
}];
|
|
28
|
+
export type OfferingsPreviewEventPreset = (typeof OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS)[number]["preset"];
|
|
29
|
+
export type OfferingsPreviewEventSourceKey = (typeof OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS)[number]["sourceKey"];
|
|
30
|
+
export type OfferingsPreviewEventDataKey = (typeof OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS)[number]["dataKey"];
|
|
31
|
+
export declare const OFFERINGS_PREVIEW_EVENT_PRESETS: ("class" | "workshop" | "retreat" | "performance")[];
|
|
32
|
+
export declare const OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS: readonly [...("eventPreset:class" | "eventPreset:workshop" | "eventPreset:retreat" | "eventPreset:performance")[], "course"];
|
|
33
|
+
export declare const OFFERINGS_PREVIEW_SOURCE_KEYS: readonly [...("eventPreset:class" | "eventPreset:workshop" | "eventPreset:retreat" | "eventPreset:performance")[], "course"];
|
|
34
|
+
export type OfferingsPreviewSourceKey = OfferingsPreviewEventSourceKey | "course";
|
|
35
|
+
export type OfferingsPreviewSource = Readonly<{
|
|
36
|
+
kind: "eventPreset";
|
|
37
|
+
preset: OfferingsPreviewEventPreset;
|
|
38
|
+
}> | Readonly<{
|
|
39
|
+
kind: "course";
|
|
40
|
+
}>;
|
|
41
|
+
export type OfferingsPreviewCtaMode = "auto" | "custom" | "hidden";
|
|
42
|
+
export type OfferingsPreviewGroupPresentation = "compact-list" | "single-card";
|
|
43
|
+
export type OfferingsPreviewRouteCandidate = Readonly<{
|
|
44
|
+
entityId: string;
|
|
45
|
+
path: string;
|
|
46
|
+
title: string;
|
|
47
|
+
kind: "page" | "content";
|
|
48
|
+
contentTypeKey?: string | null;
|
|
49
|
+
}>;
|
|
50
|
+
export type OfferingsPreviewGroupCtaConfig = Readonly<{
|
|
51
|
+
mode: OfferingsPreviewCtaMode;
|
|
52
|
+
href: string | null;
|
|
53
|
+
label: string | null;
|
|
54
|
+
}>;
|
|
55
|
+
export type OfferingsPreviewResolvedCta = Readonly<{
|
|
56
|
+
href: string;
|
|
57
|
+
label: string;
|
|
58
|
+
}>;
|
|
59
|
+
export type BookingOfferingCanonicalBehaviour = OfferingsPreviewEventPreset | "course" | "appointment";
|
|
60
|
+
export type BookingOfferingEngine = "event_series" | "course" | "appointment_service";
|
|
61
|
+
export type BookingOfferingPresetSummary = Readonly<{
|
|
62
|
+
id: string;
|
|
63
|
+
canonicalBehaviour: BookingOfferingCanonicalBehaviour;
|
|
64
|
+
engine: BookingOfferingEngine;
|
|
65
|
+
label: string;
|
|
66
|
+
pluralLabel: string;
|
|
67
|
+
}>;
|
|
68
|
+
export type OfferingsPreviewGroupOverride = Readonly<{
|
|
69
|
+
sourceKey?: OfferingsPreviewSourceKey | null;
|
|
70
|
+
title?: string | null;
|
|
71
|
+
intro?: string | null;
|
|
72
|
+
hidden?: boolean | null;
|
|
73
|
+
presentation?: OfferingsPreviewGroupPresentation | null;
|
|
74
|
+
ctaMode?: OfferingsPreviewCtaMode | null;
|
|
75
|
+
ctaHref?: string | null;
|
|
76
|
+
ctaLabel?: string | null;
|
|
77
|
+
}>;
|
|
78
|
+
export type ResolvedOfferingsPreviewGroup = Readonly<{
|
|
79
|
+
sourceKey: OfferingsPreviewSourceKey;
|
|
80
|
+
source: OfferingsPreviewSource;
|
|
81
|
+
title: string;
|
|
82
|
+
intro: string | null;
|
|
83
|
+
hidden: boolean;
|
|
84
|
+
presentation: OfferingsPreviewGroupPresentation;
|
|
85
|
+
cta: OfferingsPreviewGroupCtaConfig;
|
|
86
|
+
}>;
|
|
87
|
+
export type OfferingsPreviewItem = Readonly<{
|
|
88
|
+
kind: "event";
|
|
89
|
+
event: PublicEvent;
|
|
90
|
+
} | {
|
|
91
|
+
kind: "course";
|
|
92
|
+
course: PublicCourse;
|
|
93
|
+
path: string | null;
|
|
94
|
+
}>;
|
|
95
|
+
export type OfferingsPreviewGroupItemData = Readonly<{
|
|
96
|
+
kind: "ready";
|
|
97
|
+
items: readonly OfferingsPreviewItem[];
|
|
98
|
+
} | {
|
|
99
|
+
kind: "failed";
|
|
100
|
+
reason: "not_loaded";
|
|
101
|
+
}>;
|
|
102
|
+
export type OfferingsPreviewGroupEventData = OfferingsPreviewGroupItemData;
|
|
103
|
+
export type OfferingsPreviewGroupRenderState = Readonly<{
|
|
104
|
+
kind: "items";
|
|
105
|
+
group: ResolvedOfferingsPreviewGroup;
|
|
106
|
+
items: readonly OfferingsPreviewItem[];
|
|
107
|
+
} | {
|
|
108
|
+
kind: "empty";
|
|
109
|
+
group: ResolvedOfferingsPreviewGroup;
|
|
110
|
+
message: string;
|
|
111
|
+
}>;
|
|
112
|
+
export declare function isOfferingsPreviewSourceKey(value: unknown): value is OfferingsPreviewSourceKey;
|
|
113
|
+
export declare function sourceKeyForEventPreset(preset: OfferingsPreviewEventPreset): OfferingsPreviewSourceKey;
|
|
114
|
+
export declare function sourceKeyForOfferingPreviewSource(source: OfferingsPreviewSource): OfferingsPreviewSourceKey;
|
|
115
|
+
export declare function offeringPreviewSourceFromKey(sourceKey: OfferingsPreviewSourceKey): OfferingsPreviewSource;
|
|
116
|
+
export declare function normalizeOfferingsPreviewItemLimit(value: unknown): number;
|
|
117
|
+
export declare function deriveDefaultOfferingsPreviewGroups(presets: readonly BookingOfferingPresetSummary[] | null | undefined): readonly ResolvedOfferingsPreviewGroup[];
|
|
118
|
+
export declare function resolveOfferingsPreviewGroups(input: Readonly<{
|
|
119
|
+
presets?: readonly BookingOfferingPresetSummary[] | null;
|
|
120
|
+
overrides?: readonly OfferingsPreviewGroupOverride[] | null;
|
|
121
|
+
}>): readonly ResolvedOfferingsPreviewGroup[];
|
|
122
|
+
export declare function resolveOfferingsPreviewGroupCta(input: Readonly<{
|
|
123
|
+
group: ResolvedOfferingsPreviewGroup;
|
|
124
|
+
routes: readonly OfferingsPreviewRouteCandidate[] | null | undefined;
|
|
125
|
+
defaultLabel?: string | null;
|
|
126
|
+
}>): OfferingsPreviewResolvedCta | null;
|
|
127
|
+
export declare function buildOfferingsPreviewRenderStates(input: Readonly<{
|
|
128
|
+
groups: readonly ResolvedOfferingsPreviewGroup[];
|
|
129
|
+
itemsBySourceKey: ReadonlyMap<OfferingsPreviewSourceKey, OfferingsPreviewGroupItemData>;
|
|
130
|
+
itemLimit: number;
|
|
131
|
+
emptyMessage: string;
|
|
132
|
+
failedMessage: string;
|
|
133
|
+
}>): readonly OfferingsPreviewGroupRenderState[];
|
|
134
|
+
export declare function resolveOfferingsPreviewCoursePath(course: Pick<PublicCourse, "contentEntryId" | "slug">, routes: readonly OfferingsPreviewRouteCandidate[] | null | undefined): string | null;
|
|
@@ -11,6 +11,7 @@ export declare const testimonialsManifest: import("..").DefinedBlockManifest<imp
|
|
|
11
11
|
readonly carousel: NodeDefinition;
|
|
12
12
|
readonly grid: NodeDefinition;
|
|
13
13
|
readonly 'split-grid': NodeDefinition;
|
|
14
|
+
readonly highlight: NodeDefinition;
|
|
14
15
|
};
|
|
15
16
|
readonly defaultVariant: "carousel";
|
|
16
17
|
readonly variantOptions: {
|
|
@@ -29,6 +30,11 @@ export declare const testimonialsManifest: import("..").DefinedBlockManifest<imp
|
|
|
29
30
|
readonly description: "Heading on the left with testimonial cards on the right";
|
|
30
31
|
readonly icon: "PanelLeft";
|
|
31
32
|
};
|
|
33
|
+
readonly highlight: {
|
|
34
|
+
readonly label: "Highlight";
|
|
35
|
+
readonly description: "A single, centered testimonial with no carousel";
|
|
36
|
+
readonly icon: "Quote";
|
|
37
|
+
};
|
|
32
38
|
};
|
|
33
39
|
readonly additionalFields: import("../../../../block-form/src/backend/index").FieldDefinition[];
|
|
34
40
|
readonly description: "Display customer testimonials in carousel or grid layouts.";
|
|
@@ -47,7 +53,7 @@ export declare const testimonialsManifest: import("..").DefinedBlockManifest<imp
|
|
|
47
53
|
};
|
|
48
54
|
}>>;
|
|
49
55
|
export type TestimonialsBlockContent = {
|
|
50
|
-
variant?: 'carousel' | 'grid' | 'split-grid' | null;
|
|
56
|
+
variant?: 'carousel' | 'grid' | 'split-grid' | 'highlight' | null;
|
|
51
57
|
heading?: string | null;
|
|
52
58
|
subheading?: string | null;
|
|
53
59
|
avatarLayout?: 'above-centered' | 'inline-left' | 'hidden' | null;
|
|
@@ -12,6 +12,7 @@ type RenderOptions = {
|
|
|
12
12
|
viewModelOverrides?: Record<string, unknown>;
|
|
13
13
|
data?: Record<string, unknown>;
|
|
14
14
|
pathBase?: string;
|
|
15
|
+
imageResolveContext?: Parameters<typeof resolveTree>[1]["imageResolveContext"];
|
|
15
16
|
};
|
|
16
17
|
/**
|
|
17
18
|
* Resolves the layout definition for a block based on its manifest and content.
|
|
@@ -54,7 +54,7 @@ export declare const BACKGROUND_POSITION_PRESETS: readonly [{
|
|
|
54
54
|
readonly value: "right bottom";
|
|
55
55
|
readonly label: "Right Bottom";
|
|
56
56
|
}];
|
|
57
|
-
export declare const BACKGROUND_POSITION_PRESET_VALUES: ("
|
|
57
|
+
export declare const BACKGROUND_POSITION_PRESET_VALUES: ("left" | "right" | "center" | "top" | "bottom" | "right center" | "top left" | "top right" | "bottom left" | "bottom right" | "top center" | "bottom center" | "left center" | "left top" | "right top" | "left bottom" | "right bottom")[];
|
|
58
58
|
/**
|
|
59
59
|
* Maps position keywords to rb-* anchor positioning classes.
|
|
60
60
|
* Used for positioning scaled/overflow images within their containers.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SYSTEM_BLOCK_KINDS: readonly ["block.hero", "block.intro", "block.columns", "block.collection", "block.feature-cards", "block.media-text", "block.cta-full", "block.single-button", "block.body-text", "block.location-map", "block.faq", "block.testimonials", "block.team-members", "block.embed", "block.blog-post", "block.blog-listing", "block.site-header", "block.site-footer", "block.form", "block.appointment-booking", "block.event-registration", "block.event-details", "block.course-registration", "block.course-details", "block.event-spotlight", "block.event-listing", "block.event-calendar", "block.shop", "block.product-list", "block.product-detail", "block.cart", "block.checkout", "block.gifting", "block.newsletter-signup", "block.image-gallery", "block.video-grid", "block.audio-player", "block.file-download"];
|
|
1
|
+
export declare const SYSTEM_BLOCK_KINDS: readonly ["block.hero", "block.intro", "block.columns", "block.collection", "block.feature-cards", "block.media-text", "block.cta-full", "block.single-button", "block.body-text", "block.location-map", "block.faq", "block.testimonials", "block.team-members", "block.embed", "block.blog-post", "block.blog-listing", "block.site-header", "block.site-footer", "block.form", "block.appointment-booking", "block.event-registration", "block.event-details", "block.course-registration", "block.course-details", "block.event-spotlight", "block.event-listing", "block.event-calendar", "block.offerings-preview", "block.shop", "block.product-list", "block.product-detail", "block.cart", "block.checkout", "block.gifting", "block.newsletter-signup", "block.image-gallery", "block.video-grid", "block.audio-player", "block.file-download"];
|
|
2
2
|
export type SystemBlockKind = (typeof SYSTEM_BLOCK_KINDS)[number];
|
|
3
3
|
export type CustomBlockKind = `custom.${string}`;
|
|
4
4
|
export type BlockKind = SystemBlockKind | CustomBlockKind;
|