@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,3 +1,218 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reusable accordion "looks" for curated site styles.
|
|
3
|
+
*
|
|
4
|
+
* Each curated site style should declare one of these (or a bespoke variant)
|
|
5
|
+
* via `themeOverrides.accordions` so its FAQ accordions carry the style's
|
|
6
|
+
* personality instead of falling back to the generic generated default. The
|
|
7
|
+
* looks vary the things that make an accordion read as designed vs. cheap:
|
|
8
|
+
* box vs. boxless, question typography (body vs. heading font + scale), icon,
|
|
9
|
+
* and how an open item is emphasised.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Boxless editorial list: transparent root, hairline dividers between rows,
|
|
13
|
+
* generous spacing, heading-font questions, plus/minus marks, and an accented
|
|
14
|
+
* tinted band on the open row. The reference "expensive" FAQ look.
|
|
15
|
+
*/
|
|
16
|
+
export declare const editorialDividedAccordionSystem: {
|
|
17
|
+
readonly background: null;
|
|
18
|
+
readonly spacing: "comfortable";
|
|
19
|
+
readonly corners: "square";
|
|
20
|
+
readonly border: null;
|
|
21
|
+
readonly shadow: null;
|
|
22
|
+
readonly icon: {
|
|
23
|
+
readonly style: "plus-minus";
|
|
24
|
+
readonly position: "right";
|
|
25
|
+
readonly size: "md";
|
|
26
|
+
readonly colorToken: "primary";
|
|
27
|
+
};
|
|
28
|
+
readonly trigger: {
|
|
29
|
+
readonly textColorToken: "text";
|
|
30
|
+
readonly fontWeight: "regular";
|
|
31
|
+
readonly fontFamily: "heading";
|
|
32
|
+
readonly fontScale: "lg";
|
|
33
|
+
};
|
|
34
|
+
readonly hover: {
|
|
35
|
+
readonly textColorToken: "primary";
|
|
36
|
+
};
|
|
37
|
+
readonly openState: {
|
|
38
|
+
readonly backgroundColorToken: "surfaceAlt";
|
|
39
|
+
readonly triggerColorToken: "primary";
|
|
40
|
+
readonly accent: {
|
|
41
|
+
readonly edge: "left";
|
|
42
|
+
readonly colorToken: "primary";
|
|
43
|
+
readonly thickness: "medium";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
readonly content: {
|
|
47
|
+
readonly textColorToken: "neutral-700";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Quiet, airy underlined rows: transparent, spacious, large calm heading-font
|
|
52
|
+
* questions, a small subtle chevron, and open emphasis carried only by the
|
|
53
|
+
* question recolouring. For minimal / premium / wellness styles.
|
|
54
|
+
*/
|
|
55
|
+
export declare const quietUnderlinedAccordionSystem: {
|
|
56
|
+
readonly background: null;
|
|
57
|
+
readonly spacing: "spacious";
|
|
58
|
+
readonly corners: "square";
|
|
59
|
+
readonly border: null;
|
|
60
|
+
readonly shadow: null;
|
|
61
|
+
readonly icon: {
|
|
62
|
+
readonly style: "chevron";
|
|
63
|
+
readonly position: "right";
|
|
64
|
+
readonly size: "sm";
|
|
65
|
+
readonly colorToken: "muted";
|
|
66
|
+
};
|
|
67
|
+
readonly trigger: {
|
|
68
|
+
readonly textColorToken: "text";
|
|
69
|
+
readonly fontWeight: "regular";
|
|
70
|
+
readonly fontFamily: "heading";
|
|
71
|
+
readonly fontScale: "lg";
|
|
72
|
+
};
|
|
73
|
+
readonly hover: {
|
|
74
|
+
readonly textColorToken: "primary";
|
|
75
|
+
};
|
|
76
|
+
readonly openState: {
|
|
77
|
+
readonly triggerColorToken: "primary";
|
|
78
|
+
};
|
|
79
|
+
readonly content: {
|
|
80
|
+
readonly textColorToken: "neutral-700";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Soft contained panel: a gentle surface box with soft corners, a hairline
|
|
85
|
+
* border and a low shadow, heading-font questions at a moderate size, chevron,
|
|
86
|
+
* and a tinted open state. For clean, trustworthy, appointment-led styles.
|
|
87
|
+
*/
|
|
88
|
+
export declare const calmPanelAccordionSystem: {
|
|
89
|
+
readonly background: {
|
|
90
|
+
readonly type: "solid";
|
|
91
|
+
readonly colorToken: "surface";
|
|
92
|
+
};
|
|
93
|
+
readonly spacing: "comfortable";
|
|
94
|
+
readonly corners: "soft";
|
|
95
|
+
readonly border: {
|
|
96
|
+
readonly widthClass: "border";
|
|
97
|
+
readonly colorToken: "border";
|
|
98
|
+
};
|
|
99
|
+
readonly shadow: {
|
|
100
|
+
readonly elevation: "low";
|
|
101
|
+
readonly softness: "soft";
|
|
102
|
+
readonly position: "bottom";
|
|
103
|
+
};
|
|
104
|
+
readonly icon: {
|
|
105
|
+
readonly style: "chevron";
|
|
106
|
+
readonly position: "right";
|
|
107
|
+
readonly size: "md";
|
|
108
|
+
readonly colorToken: "primary";
|
|
109
|
+
};
|
|
110
|
+
readonly trigger: {
|
|
111
|
+
readonly textColorToken: "text";
|
|
112
|
+
readonly fontWeight: "medium";
|
|
113
|
+
readonly fontFamily: "heading";
|
|
114
|
+
readonly fontScale: "md";
|
|
115
|
+
};
|
|
116
|
+
readonly hover: {
|
|
117
|
+
readonly backgroundColorToken: "primary/5";
|
|
118
|
+
readonly textColorToken: "primary";
|
|
119
|
+
};
|
|
120
|
+
readonly openState: {
|
|
121
|
+
readonly backgroundColorToken: "primary/5";
|
|
122
|
+
readonly triggerColorToken: "primary";
|
|
123
|
+
};
|
|
124
|
+
readonly content: {
|
|
125
|
+
readonly textColorToken: "neutral-700";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Bold bordered panel: a strong-bordered surface box, bold heading-font
|
|
130
|
+
* questions, large plus/minus marks, and a high-emphasis tinted + accented
|
|
131
|
+
* open state. For confident, conversion-led, high-energy styles.
|
|
132
|
+
*/
|
|
133
|
+
export declare const boldBorderedAccordionSystem: {
|
|
134
|
+
readonly background: {
|
|
135
|
+
readonly type: "solid";
|
|
136
|
+
readonly colorToken: "surface";
|
|
137
|
+
};
|
|
138
|
+
readonly spacing: "comfortable";
|
|
139
|
+
readonly corners: "soft";
|
|
140
|
+
readonly border: {
|
|
141
|
+
readonly widthClass: "border-2";
|
|
142
|
+
readonly colorToken: "border";
|
|
143
|
+
};
|
|
144
|
+
readonly shadow: null;
|
|
145
|
+
readonly icon: {
|
|
146
|
+
readonly style: "plus-minus";
|
|
147
|
+
readonly position: "right";
|
|
148
|
+
readonly size: "lg";
|
|
149
|
+
readonly colorToken: "primary";
|
|
150
|
+
};
|
|
151
|
+
readonly trigger: {
|
|
152
|
+
readonly textColorToken: "text";
|
|
153
|
+
readonly fontWeight: "bold";
|
|
154
|
+
readonly fontFamily: "heading";
|
|
155
|
+
readonly fontScale: "md";
|
|
156
|
+
};
|
|
157
|
+
readonly hover: {
|
|
158
|
+
readonly backgroundColorToken: "primary/10";
|
|
159
|
+
readonly textColorToken: "primary";
|
|
160
|
+
};
|
|
161
|
+
readonly openState: {
|
|
162
|
+
readonly backgroundColorToken: "primary/10";
|
|
163
|
+
readonly triggerColorToken: "primary";
|
|
164
|
+
readonly accent: {
|
|
165
|
+
readonly edge: "left";
|
|
166
|
+
readonly colorToken: "primary";
|
|
167
|
+
readonly thickness: "thick";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
readonly content: {
|
|
171
|
+
readonly textColorToken: "neutral-700";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Warm inset tiles: a tinted (surfaceAlt) root with rounded corners and no
|
|
176
|
+
* border; the open row lifts to the lighter surface colour. Friendly,
|
|
177
|
+
* hands-on, community styles.
|
|
178
|
+
*/
|
|
179
|
+
export declare const warmInsetAccordionSystem: {
|
|
180
|
+
readonly background: {
|
|
181
|
+
readonly type: "solid";
|
|
182
|
+
readonly colorToken: "surfaceAlt";
|
|
183
|
+
};
|
|
184
|
+
readonly spacing: "comfortable";
|
|
185
|
+
readonly corners: "rounded";
|
|
186
|
+
readonly border: null;
|
|
187
|
+
readonly shadow: null;
|
|
188
|
+
readonly icon: {
|
|
189
|
+
readonly style: "circle-plus-minus";
|
|
190
|
+
readonly position: "right";
|
|
191
|
+
readonly size: "md";
|
|
192
|
+
readonly colorToken: "primary";
|
|
193
|
+
};
|
|
194
|
+
readonly trigger: {
|
|
195
|
+
readonly textColorToken: "text";
|
|
196
|
+
readonly fontWeight: "semibold";
|
|
197
|
+
readonly fontFamily: "heading";
|
|
198
|
+
readonly fontScale: "md";
|
|
199
|
+
};
|
|
200
|
+
readonly hover: {
|
|
201
|
+
readonly backgroundColorToken: "primary/5";
|
|
202
|
+
readonly textColorToken: "primary";
|
|
203
|
+
};
|
|
204
|
+
readonly openState: {
|
|
205
|
+
readonly backgroundColorToken: "surface";
|
|
206
|
+
readonly triggerColorToken: "primary";
|
|
207
|
+
};
|
|
208
|
+
readonly content: {
|
|
209
|
+
readonly textColorToken: "neutral-700";
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* Soft Earth's grounded look: boxless, plus/minus, heading-font questions on
|
|
214
|
+
* a warm ground, with a quiet open recolour.
|
|
215
|
+
*/
|
|
1
216
|
export declare const softEarthAccordionSystem: {
|
|
2
217
|
readonly background: {
|
|
3
218
|
readonly type: "solid";
|
|
@@ -16,10 +231,15 @@ export declare const softEarthAccordionSystem: {
|
|
|
16
231
|
readonly trigger: {
|
|
17
232
|
readonly textColorToken: "text";
|
|
18
233
|
readonly fontWeight: "medium";
|
|
234
|
+
readonly fontFamily: "heading";
|
|
235
|
+
readonly fontScale: "md";
|
|
19
236
|
};
|
|
20
237
|
readonly hover: {
|
|
21
238
|
readonly textColorToken: "primary";
|
|
22
239
|
};
|
|
240
|
+
readonly openState: {
|
|
241
|
+
readonly triggerColorToken: "primary";
|
|
242
|
+
};
|
|
23
243
|
readonly content: {
|
|
24
244
|
readonly textColorToken: "neutral-700";
|
|
25
245
|
};
|
|
@@ -20,10 +20,10 @@ export type AccordionLucideIcon = 'Plus' | 'Minus' | 'ChevronDown' | 'ArrowDown'
|
|
|
20
20
|
* Single style per theme (no variants needed)
|
|
21
21
|
*/
|
|
22
22
|
export declare const accordionSystemSchema: z.ZodObject<{
|
|
23
|
-
background: z.ZodObject<{
|
|
23
|
+
background: z.ZodNullable<z.ZodObject<{
|
|
24
24
|
type: z.ZodLiteral<"solid">;
|
|
25
25
|
colorToken: z.ZodString;
|
|
26
|
-
}, z.core.$strip
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
27
|
spacing: z.ZodEnum<{
|
|
28
28
|
medium: "medium";
|
|
29
29
|
none: "none";
|
|
@@ -86,12 +86,47 @@ export declare const accordionSystemSchema: z.ZodObject<{
|
|
|
86
86
|
regular: "regular";
|
|
87
87
|
semibold: "semibold";
|
|
88
88
|
}>>;
|
|
89
|
+
fontFamily: z.ZodOptional<z.ZodEnum<{
|
|
90
|
+
body: "body";
|
|
91
|
+
heading: "heading";
|
|
92
|
+
}>>;
|
|
93
|
+
fontScale: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
body: "body";
|
|
95
|
+
md: "md";
|
|
96
|
+
lg: "lg";
|
|
97
|
+
}>>;
|
|
98
|
+
letterSpacing: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
wide: "wide";
|
|
100
|
+
normal: "normal";
|
|
101
|
+
tight: "tight";
|
|
102
|
+
}>>;
|
|
103
|
+
textTransform: z.ZodOptional<z.ZodEnum<{
|
|
104
|
+
none: "none";
|
|
105
|
+
uppercase: "uppercase";
|
|
106
|
+
}>>;
|
|
89
107
|
}, z.core.$strip>;
|
|
90
108
|
hover: z.ZodObject<{
|
|
91
109
|
backgroundColorToken: z.ZodOptional<z.ZodString>;
|
|
92
110
|
textColorToken: z.ZodOptional<z.ZodString>;
|
|
93
111
|
borderColorToken: z.ZodOptional<z.ZodString>;
|
|
94
112
|
}, z.core.$strip>;
|
|
113
|
+
openState: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
backgroundColorToken: z.ZodOptional<z.ZodString>;
|
|
115
|
+
triggerColorToken: z.ZodOptional<z.ZodString>;
|
|
116
|
+
accent: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
edge: z.ZodEnum<{
|
|
118
|
+
left: "left";
|
|
119
|
+
top: "top";
|
|
120
|
+
bottom: "bottom";
|
|
121
|
+
}>;
|
|
122
|
+
colorToken: z.ZodString;
|
|
123
|
+
thickness: z.ZodEnum<{
|
|
124
|
+
medium: "medium";
|
|
125
|
+
thick: "thick";
|
|
126
|
+
thin: "thin";
|
|
127
|
+
}>;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
95
130
|
content: z.ZodObject<{
|
|
96
131
|
textColorToken: z.ZodString;
|
|
97
132
|
}, z.core.$strip>;
|
|
@@ -114,3 +149,11 @@ export declare const ICON_SIZE_PX: Record<AccordionSystem['icon']['size'], strin
|
|
|
114
149
|
* Spacing map for accordion content padding
|
|
115
150
|
*/
|
|
116
151
|
export declare const ACCORDION_SPACING_MAP: Record<AccordionSystem['spacing'], string>;
|
|
152
|
+
/**
|
|
153
|
+
* Question (trigger) font-size by scale step. Kept as self-contained clamps
|
|
154
|
+
* rather than the heading-scale CSS vars so question size stays predictable
|
|
155
|
+
* even when a theme configures very large headings.
|
|
156
|
+
*/
|
|
157
|
+
export declare const ACCORDION_TRIGGER_FONT_SCALE: Record<NonNullable<AccordionSystem['trigger']['fontScale']>, string>;
|
|
158
|
+
export declare const ACCORDION_TRIGGER_LETTER_SPACING: Record<NonNullable<AccordionSystem['trigger']['letterSpacing']>, string>;
|
|
159
|
+
export declare const ACCORDION_OPEN_ACCENT_THICKNESS: Record<NonNullable<NonNullable<AccordionSystem['openState']>['accent']>['thickness'], string>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import type { BlockThemeOverride, Theme } from "./schema";
|
|
2
|
+
import type { HeadingDecorationOverride, VisibleHeadingDecoration } from "./site-styles/types";
|
|
2
3
|
export declare function normalizeBlockKind(blockKind: string): string;
|
|
4
|
+
export type EffectiveHeadingDecoration = Readonly<{
|
|
5
|
+
kind: "none";
|
|
6
|
+
}> | Readonly<{
|
|
7
|
+
kind: "visible";
|
|
8
|
+
decoration: VisibleHeadingDecoration;
|
|
9
|
+
}>;
|
|
10
|
+
export declare function resolveEffectiveHeadingDecoration(themeDecoration: Theme["headingDecoration"], override: HeadingDecorationOverride | null | undefined): EffectiveHeadingDecoration;
|
|
3
11
|
export declare function resolveBlockThemeOverride(theme: Theme | undefined, blockKind: string | undefined): BlockThemeOverride | undefined;
|
|
4
12
|
export declare function mergeContentWithBlockStyleOverrides<TContent extends Record<string, unknown>>(content: TContent, theme: Theme | undefined, blockKind: string | undefined): TContent;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Type definitions for Tier 3 (block-specific) CSS variable generation.
|
|
5
5
|
*/
|
|
6
6
|
import type { Theme } from '../schema';
|
|
7
|
-
export type BlockVarGeneratorTheme = Pick<Theme, 'corners' | 'motion'>;
|
|
7
|
+
export type BlockVarGeneratorTheme = Pick<Theme, 'corners' | 'motion' | 'testimonialQuote'>;
|
|
8
8
|
/**
|
|
9
9
|
* Context passed to block var generators.
|
|
10
10
|
* Contains the theme read surface and themeId for scoped CSS generation.
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* Tier 3 variables for the testimonials block:
|
|
5
5
|
* - Applies to [data-block="testimonials"]
|
|
6
6
|
* - Intended for theme overrides via blockCustomVars/blockCustomCss
|
|
7
|
+
*
|
|
8
|
+
* The quote-mark vars are driven by the site-style-owned quote treatment
|
|
9
|
+
* (theme.testimonialQuote); see resolveTestimonialQuoteVars.
|
|
7
10
|
*/
|
|
8
11
|
import type { BlockVarGeneratorContext } from '../types';
|
|
9
|
-
export declare function generateTestimonialsVars({ themeId }: BlockVarGeneratorContext): string;
|
|
12
|
+
export declare function generateTestimonialsVars({ themeId, theme, }: BlockVarGeneratorContext): string;
|
|
@@ -13,6 +13,23 @@ export declare const GRADIENT_DIRECTION_MAP: Record<GradientDirection, string>;
|
|
|
13
13
|
* Map Tailwind border-radius tokens to CSS values
|
|
14
14
|
*/
|
|
15
15
|
export declare const BORDER_RADIUS_MAP: Record<string, string>;
|
|
16
|
+
/**
|
|
17
|
+
* Pixel offset per shadow elevation. Single source of truth shared by
|
|
18
|
+
* `generateShadowValue` (the base box-shadow offset) and the `press-down`
|
|
19
|
+
* effect (which translates the button by the same offset on hover). Keeping
|
|
20
|
+
* these in one place ensures the "press into the shadow" illusion stays exact.
|
|
21
|
+
*/
|
|
22
|
+
export declare const ELEVATION_OFFSET: {
|
|
23
|
+
readonly none: 0;
|
|
24
|
+
readonly low: 2;
|
|
25
|
+
readonly medium: 4;
|
|
26
|
+
readonly high: 6;
|
|
27
|
+
};
|
|
28
|
+
/** Minimal offset-bearing shadow shape (a subset of the full `Shadow` type). */
|
|
29
|
+
export type ShadowOffset = {
|
|
30
|
+
elevation: 'none' | 'low' | 'medium' | 'high';
|
|
31
|
+
position?: 'bottom' | 'bottom-right';
|
|
32
|
+
};
|
|
16
33
|
/**
|
|
17
34
|
* Generate shadow CSS value dynamically based on elevation, softness, and position
|
|
18
35
|
*
|
|
@@ -24,7 +41,15 @@ export declare const BORDER_RADIUS_MAP: Record<string, string>;
|
|
|
24
41
|
* @param position - Shadow position (bottom or bottom-right diagonal)
|
|
25
42
|
* @returns CSS box-shadow value
|
|
26
43
|
*/
|
|
27
|
-
export declare function generateShadowValue(elevation: 'none' | 'low' | 'medium' | 'high', softness: 'crisp' | 'soft' | 'hard' | null, position?: 'bottom' | 'bottom-right'
|
|
44
|
+
export declare function generateShadowValue(elevation: 'none' | 'low' | 'medium' | 'high', softness: 'crisp' | 'soft' | 'hard' | null, position?: 'bottom' | 'bottom-right',
|
|
45
|
+
/**
|
|
46
|
+
* Optional resolved shadow colour (any CSS colour string). When omitted the
|
|
47
|
+
* shadow keeps its historical neutral black, so callers that don't pass a
|
|
48
|
+
* colour produce byte-identical output to before. When supplied (e.g. a
|
|
49
|
+
* palette token resolved to a CSS var) it replaces the neutral, enabling
|
|
50
|
+
* coloured offset shadows.
|
|
51
|
+
*/
|
|
52
|
+
color?: string): string;
|
|
28
53
|
/**
|
|
29
54
|
* Map Tailwind border-width tokens to CSS values
|
|
30
55
|
*/
|
|
@@ -97,6 +97,17 @@ export declare const buttonPersonalities: readonly [Readonly<{
|
|
|
97
97
|
era: import("../../../../blocks/src/index").StyleEra;
|
|
98
98
|
}>>>;
|
|
99
99
|
buttonSystem: import("../../../../blocks/src/index").ButtonSystem;
|
|
100
|
+
}>, Readonly<{
|
|
101
|
+
id: ButtonPersonalityId<"joy-stamp">;
|
|
102
|
+
name: string;
|
|
103
|
+
description: string;
|
|
104
|
+
tags: Readonly<Partial<Readonly<{
|
|
105
|
+
tone: import("../../../../blocks/src/index").StyleTone;
|
|
106
|
+
energy: import("../../../../blocks/src/index").StyleEnergy;
|
|
107
|
+
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
108
|
+
era: import("../../../../blocks/src/index").StyleEra;
|
|
109
|
+
}>>>;
|
|
110
|
+
buttonSystem: import("../../../../blocks/src/index").ButtonSystem;
|
|
100
111
|
}>];
|
|
101
112
|
type UnbrandedButtonPersonalityId<TValue> = TValue extends infer TRaw & {
|
|
102
113
|
readonly __brand: 'ButtonPersonalityId';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Joy Stamp — neo-brutalist pills with a hard, brand-coloured offset shadow
|
|
3
|
+
* that collapses as the button presses into it on hover. Authored for the
|
|
4
|
+
* Original Joy site style: a cream "stamp" shadow under the solid primary, and
|
|
5
|
+
* a brown shadow under the cream outline. Reads as bold, warm, and handmade.
|
|
6
|
+
*
|
|
7
|
+
* The coloured offset shadow relies on the per-variant `shadow.colorToken`
|
|
8
|
+
* extension; the press is the shared `press-down` effect, which matches its
|
|
9
|
+
* translate to each variant's own shadow offset.
|
|
10
|
+
*/
|
|
11
|
+
export declare const joyStamp: Readonly<{
|
|
12
|
+
id: import("./types").ButtonPersonalityId<"joy-stamp">;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
tags: Readonly<Partial<Readonly<{
|
|
16
|
+
tone: import("../../../../blocks/src/index").StyleTone;
|
|
17
|
+
energy: import("../../../../blocks/src/index").StyleEnergy;
|
|
18
|
+
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
19
|
+
era: import("../../../../blocks/src/index").StyleEra;
|
|
20
|
+
}>>>;
|
|
21
|
+
buttonSystem: import("../../../../blocks/src/index").ButtonSystem;
|
|
22
|
+
}>;
|
|
@@ -40,8 +40,8 @@ export declare const buttonPersonalitySchema: z.ZodObject<{
|
|
|
40
40
|
}>>;
|
|
41
41
|
motion: z.ZodOptional<z.ZodEnum<{
|
|
42
42
|
standard: "standard";
|
|
43
|
-
subtle: "subtle";
|
|
44
43
|
expressive: "expressive";
|
|
44
|
+
subtle: "subtle";
|
|
45
45
|
}>>;
|
|
46
46
|
era: z.ZodOptional<z.ZodEnum<{
|
|
47
47
|
editorial: "editorial";
|
|
@@ -157,6 +157,7 @@ export declare const buttonPersonalitySchema: z.ZodObject<{
|
|
|
157
157
|
bottom: "bottom";
|
|
158
158
|
"bottom-right": "bottom-right";
|
|
159
159
|
}>>;
|
|
160
|
+
colorToken: z.ZodOptional<z.ZodString>;
|
|
160
161
|
}, z.core.$strip>>;
|
|
161
162
|
border: z.ZodOptional<z.ZodObject<{
|
|
162
163
|
widthClass: z.ZodString;
|
|
@@ -8,6 +8,13 @@ export type Shadow = {
|
|
|
8
8
|
elevation: "none" | "low" | "medium" | "high";
|
|
9
9
|
softness: "crisp" | "soft" | "hard" | null;
|
|
10
10
|
position: "bottom" | "bottom-right";
|
|
11
|
+
/**
|
|
12
|
+
* Optional palette token for the shadow colour. When omitted the shadow
|
|
13
|
+
* falls back to the historical neutral black (`rgb(0 0 0 / …)`), so existing
|
|
14
|
+
* personalities are unaffected. Set it for coloured offset shadows
|
|
15
|
+
* (e.g. a cream "stamp" shadow on a dark brand surface).
|
|
16
|
+
*/
|
|
17
|
+
colorToken?: string;
|
|
11
18
|
};
|
|
12
19
|
export type CornerStyle = 'square' | 'rounded' | 'pill';
|
|
13
20
|
export type ShadowSize = 'none' | 'low' | 'medium' | 'high';
|
|
@@ -395,6 +402,7 @@ export declare const buttonVariantSchema: z.ZodObject<{
|
|
|
395
402
|
bottom: "bottom";
|
|
396
403
|
"bottom-right": "bottom-right";
|
|
397
404
|
}>>;
|
|
405
|
+
colorToken: z.ZodOptional<z.ZodString>;
|
|
398
406
|
}, z.core.$strip>>;
|
|
399
407
|
border: z.ZodOptional<z.ZodObject<{
|
|
400
408
|
widthClass: z.ZodString;
|
|
@@ -544,6 +552,7 @@ export declare const buttonSystemSchema: z.ZodObject<{
|
|
|
544
552
|
bottom: "bottom";
|
|
545
553
|
"bottom-right": "bottom-right";
|
|
546
554
|
}>>;
|
|
555
|
+
colorToken: z.ZodOptional<z.ZodString>;
|
|
547
556
|
}, z.core.$strip>>;
|
|
548
557
|
border: z.ZodOptional<z.ZodObject<{
|
|
549
558
|
widthClass: z.ZodString;
|
|
@@ -6,6 +6,20 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export type CardBackgroundType = 'solid' | 'transparent' | 'gradient';
|
|
8
8
|
export type CardSpacingCore = 'none' | 'compact' | 'cozy' | 'medium' | 'comfortable' | 'spacious';
|
|
9
|
+
export type CardCornerValueCore = 'square' | 'soft' | 'rounded' | 'pill' | 'expressive';
|
|
10
|
+
export type CardEdgeCore = 'left' | 'top' | 'right' | 'bottom';
|
|
11
|
+
export type CardEdgeWidthCore = 'thin' | 'medium' | 'thick' | 'heavy';
|
|
12
|
+
export interface CardCornerRadiiCore {
|
|
13
|
+
topLeft?: CardCornerValueCore;
|
|
14
|
+
topRight?: CardCornerValueCore;
|
|
15
|
+
bottomLeft?: CardCornerValueCore;
|
|
16
|
+
bottomRight?: CardCornerValueCore;
|
|
17
|
+
}
|
|
18
|
+
export interface CardAccentEdgeCore {
|
|
19
|
+
edge: CardEdgeCore;
|
|
20
|
+
colorToken: string;
|
|
21
|
+
width: CardEdgeWidthCore;
|
|
22
|
+
}
|
|
9
23
|
export interface CardVariantCore {
|
|
10
24
|
/** Unique variant identifier (e.g., 'default', 'elevated') */
|
|
11
25
|
id: string;
|
|
@@ -21,10 +35,16 @@ export interface CardVariantCore {
|
|
|
21
35
|
gradientDirection?: 'to-r' | 'to-l' | 'to-t' | 'to-b' | 'to-tr' | 'to-tl' | 'to-br' | 'to-bl';
|
|
22
36
|
/** Content padding */
|
|
23
37
|
spacing: CardSpacingCore;
|
|
38
|
+
/** Card text (foreground) color token, for cards on a strong fill */
|
|
39
|
+
foregroundToken?: string;
|
|
24
40
|
/** Border color token */
|
|
25
41
|
borderToken?: string;
|
|
26
42
|
/** Border width */
|
|
27
43
|
borderWidth?: 'none' | 'thin' | 'medium' | 'thick';
|
|
44
|
+
/** Single accent edge; replaces the full border when set */
|
|
45
|
+
accentEdge?: CardAccentEdgeCore;
|
|
46
|
+
/** Per-corner radius override; wins over the global corners setting */
|
|
47
|
+
cornerRadii?: CardCornerRadiiCore;
|
|
28
48
|
}
|
|
29
49
|
export interface CardCoreSettings {
|
|
30
50
|
/** Corner radius style */
|
|
@@ -3,9 +3,12 @@ import type { CardSystem } from './types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Generate a default card system from theme settings
|
|
5
5
|
*
|
|
6
|
-
* Creates
|
|
7
|
-
* -
|
|
8
|
-
* -
|
|
6
|
+
* Creates the baseline card roles that blocks can request:
|
|
7
|
+
* - `default` for everyday surfaced cards
|
|
8
|
+
* - `alternative` for emphasised cards
|
|
9
|
+
*
|
|
10
|
+
* Both variants explicitly set theme.shadow and theme.corners for runtime
|
|
11
|
+
* transform access, and both use theme.border when it has meaningful width.
|
|
9
12
|
*
|
|
10
13
|
* This ensures cards have sensible defaults even when theme.cards is undefined.
|
|
11
14
|
*
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reusable card systems for curated site styles.
|
|
3
|
+
*
|
|
4
|
+
* generateCardCss emits a `.card-{id}` class per enabled variant. The
|
|
5
|
+
* intended convention (block-level role selection is wired in a follow-up) is
|
|
6
|
+
* a role pair:
|
|
7
|
+
* - `default` — the quiet, everyday card (most blocks, most of the time)
|
|
8
|
+
* - `alternative` — the prominent "statement" card for sections that pop
|
|
9
|
+
* A card-heavy site style may add a third; the schema allows up to three
|
|
10
|
+
* variants. The planned fallback when a block references a missing variant is
|
|
11
|
+
* `alternative`, then `default`.
|
|
12
|
+
*
|
|
13
|
+
* Keep `default` close to the generated baseline so shared consumers (event
|
|
14
|
+
* cards, testimonials) stay stable; put the personality in `alternative`.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* South West Twerk School: a quiet default surface card plus a high-impact
|
|
18
|
+
* "statement" card that reproduces the legacy accent-quote testimonial surface
|
|
19
|
+
* — burgundy fill, light text, a heavy gold left accent bar, and an expressive
|
|
20
|
+
* asymmetric top-right corner.
|
|
21
|
+
*/
|
|
22
|
+
export declare const southWestCardSystem: {
|
|
23
|
+
readonly variants: [{
|
|
24
|
+
readonly id: "default";
|
|
25
|
+
readonly name: "Default";
|
|
26
|
+
readonly enabled: true;
|
|
27
|
+
readonly priority: 1;
|
|
28
|
+
readonly background: {
|
|
29
|
+
readonly type: "solid";
|
|
30
|
+
readonly colorToken: "surface";
|
|
31
|
+
};
|
|
32
|
+
readonly foregroundToken: "text";
|
|
33
|
+
readonly spacing: "comfortable";
|
|
34
|
+
readonly corners: "soft";
|
|
35
|
+
readonly shadow: {
|
|
36
|
+
readonly elevation: "low";
|
|
37
|
+
readonly softness: "soft";
|
|
38
|
+
readonly position: "bottom";
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
readonly id: "alternative";
|
|
42
|
+
readonly name: "Statement";
|
|
43
|
+
readonly enabled: true;
|
|
44
|
+
readonly priority: 2;
|
|
45
|
+
readonly background: {
|
|
46
|
+
readonly type: "solid";
|
|
47
|
+
readonly colorToken: "primary-700";
|
|
48
|
+
};
|
|
49
|
+
readonly foregroundToken: "primaryForeground";
|
|
50
|
+
readonly spacing: "comfortable";
|
|
51
|
+
readonly shadow: {
|
|
52
|
+
readonly elevation: "none";
|
|
53
|
+
readonly softness: null;
|
|
54
|
+
readonly position: "bottom";
|
|
55
|
+
};
|
|
56
|
+
readonly accentEdge: {
|
|
57
|
+
readonly edge: "left";
|
|
58
|
+
readonly colorToken: "secondary";
|
|
59
|
+
readonly width: "heavy";
|
|
60
|
+
};
|
|
61
|
+
readonly cornerRadii: {
|
|
62
|
+
readonly topLeft: "square";
|
|
63
|
+
readonly topRight: "expressive";
|
|
64
|
+
readonly bottomLeft: "square";
|
|
65
|
+
readonly bottomRight: "square";
|
|
66
|
+
};
|
|
67
|
+
}];
|
|
68
|
+
};
|
|
69
|
+
export declare const clarityZenCardSystem: {
|
|
70
|
+
readonly variants: [{
|
|
71
|
+
readonly id: "default";
|
|
72
|
+
readonly name: "Default";
|
|
73
|
+
readonly enabled: true;
|
|
74
|
+
readonly priority: 1;
|
|
75
|
+
readonly background: {
|
|
76
|
+
readonly type: "solid";
|
|
77
|
+
readonly colorToken: "surface";
|
|
78
|
+
};
|
|
79
|
+
readonly foregroundToken: "text";
|
|
80
|
+
readonly spacing: "comfortable";
|
|
81
|
+
readonly corners: "rounded";
|
|
82
|
+
readonly shadow: {
|
|
83
|
+
readonly elevation: "low";
|
|
84
|
+
readonly softness: "soft";
|
|
85
|
+
readonly position: "bottom";
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
readonly id: "alternative";
|
|
89
|
+
readonly name: "Statement";
|
|
90
|
+
readonly enabled: true;
|
|
91
|
+
readonly priority: 2;
|
|
92
|
+
readonly background: {
|
|
93
|
+
readonly type: "solid";
|
|
94
|
+
readonly colorToken: "surfaceAlt";
|
|
95
|
+
};
|
|
96
|
+
readonly foregroundToken: "text";
|
|
97
|
+
readonly spacing: "comfortable";
|
|
98
|
+
readonly corners: "rounded";
|
|
99
|
+
readonly shadow: {
|
|
100
|
+
readonly elevation: "medium";
|
|
101
|
+
readonly softness: "soft";
|
|
102
|
+
readonly position: "bottom";
|
|
103
|
+
};
|
|
104
|
+
}];
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Original Joy: warm, flat, generously rounded cards on the dark clay ground.
|
|
108
|
+
* `default` is a quiet brown surface card with cream text; `alternative` is a
|
|
109
|
+
* burnt-orange statement card for sections that should pop. Both flat (the
|
|
110
|
+
* look's depth comes from colour, not shadow), matching the bold editorial
|
|
111
|
+
* feel. Shared by event and testimonial cards.
|
|
112
|
+
*/
|
|
113
|
+
export declare const originalJoyCardSystem: {
|
|
114
|
+
readonly variants: [{
|
|
115
|
+
readonly id: "default";
|
|
116
|
+
readonly name: "Default";
|
|
117
|
+
readonly enabled: true;
|
|
118
|
+
readonly priority: 1;
|
|
119
|
+
readonly background: {
|
|
120
|
+
readonly type: "solid";
|
|
121
|
+
readonly colorToken: "surface";
|
|
122
|
+
};
|
|
123
|
+
readonly foregroundToken: "text";
|
|
124
|
+
readonly spacing: "comfortable";
|
|
125
|
+
readonly corners: "rounded";
|
|
126
|
+
readonly shadow: {
|
|
127
|
+
readonly elevation: "none";
|
|
128
|
+
readonly softness: null;
|
|
129
|
+
readonly position: "bottom";
|
|
130
|
+
};
|
|
131
|
+
}, {
|
|
132
|
+
readonly id: "alternative";
|
|
133
|
+
readonly name: "Statement";
|
|
134
|
+
readonly enabled: true;
|
|
135
|
+
readonly priority: 2;
|
|
136
|
+
readonly background: {
|
|
137
|
+
readonly type: "solid";
|
|
138
|
+
readonly colorToken: "primary";
|
|
139
|
+
};
|
|
140
|
+
readonly foregroundToken: "primaryForeground";
|
|
141
|
+
readonly spacing: "comfortable";
|
|
142
|
+
readonly corners: "rounded";
|
|
143
|
+
readonly shadow: {
|
|
144
|
+
readonly elevation: "none";
|
|
145
|
+
readonly softness: null;
|
|
146
|
+
readonly position: "bottom";
|
|
147
|
+
};
|
|
148
|
+
}];
|
|
149
|
+
};
|