@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
|
-
import { parseAspectRatioValue, parseColorTokenParts, toBookingTimeZone, resolvePlanningDateInput, formatBookingDate, toScheduledBookingDateTime, formatBookingTime, toScheduledBookingDateRange, formatBookingDateParts, ImagePresets, getCurrentResolveImageUrlContext, renderVideo, renderAudio, resolveMediaNodeResponsiveImage, MediaPlaceholder, computeMediaTransformStyle, rgbColorValue } from './chunk-
|
|
1
|
+
import { parseAspectRatioValue, parseColorTokenParts, toBookingTimeZone, resolvePlanningDateInput, formatBookingDate, toScheduledBookingDateTime, formatBookingTime, toScheduledBookingDateRange, formatBookingDateParts, ImagePresets, getCurrentResolveImageUrlContext, renderVideo, renderAudio, resolveMediaNodeResponsiveImage, MediaPlaceholder, computeMediaTransformStyle, rgbColorValue } from './chunk-7BXX7WXH.mjs';
|
|
2
2
|
import z2, { z } from 'zod';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { forwardRef, createElement } from 'react';
|
|
@@ -281,6 +281,22 @@ var eventCategorySchema = z.object({
|
|
|
281
281
|
var pricingTypeSchema = z.enum(["free", "paid", "pass_only", "membership_only"]);
|
|
282
282
|
var accessRestrictionSchema = z.enum(["none", "category"]);
|
|
283
283
|
var eventPricingModeSchema = z.enum(["single", "ticket_types"]);
|
|
284
|
+
var publicCoursePriceDisplaySchema = z.discriminatedUnion("kind", [
|
|
285
|
+
z.object({ kind: z.literal("free"), currency: z.string() }),
|
|
286
|
+
z.object({ kind: z.literal("exact"), amount: z.number(), currency: z.string() }),
|
|
287
|
+
z.object({ kind: z.literal("from"), amount: z.number(), currency: z.string() }),
|
|
288
|
+
z.object({ kind: z.literal("unavailable"), currency: z.string() })
|
|
289
|
+
]);
|
|
290
|
+
var publicEventPriceDisplaySchema = z.discriminatedUnion("kind", [
|
|
291
|
+
z.object({ kind: z.literal("free"), currency: z.string() }),
|
|
292
|
+
z.object({ kind: z.literal("exact"), amount: z.number(), currency: z.string() }),
|
|
293
|
+
z.object({ kind: z.literal("from"), amount: z.number(), currency: z.string() }),
|
|
294
|
+
z.object({ kind: z.literal("mixed"), paidFromAmount: z.number(), currency: z.string() }),
|
|
295
|
+
z.object({ kind: z.literal("pass_only") }),
|
|
296
|
+
z.object({ kind: z.literal("membership_only") }),
|
|
297
|
+
z.object({ kind: z.literal("unavailable"), currency: z.string() }),
|
|
298
|
+
z.object({ kind: z.literal("course"), display: publicCoursePriceDisplaySchema })
|
|
299
|
+
]);
|
|
284
300
|
var publicEventAttendanceModeSchema = z.enum(["in_person", "online"]);
|
|
285
301
|
var publicEventAttendanceModeAvailabilitySchema = z.object({
|
|
286
302
|
mode: publicEventAttendanceModeSchema,
|
|
@@ -362,6 +378,7 @@ var publicEventSchema = z.object({
|
|
|
362
378
|
pricingType: pricingTypeSchema,
|
|
363
379
|
price: z.number().nullable(),
|
|
364
380
|
currency: z.string(),
|
|
381
|
+
priceDisplay: publicEventPriceDisplaySchema,
|
|
365
382
|
paymentTerms: blockBookingPaymentTermsSchema,
|
|
366
383
|
pricingMode: eventPricingModeSchema.optional(),
|
|
367
384
|
ticketTypes: z.array(publicEventTicketTypeSchema).optional(),
|
|
@@ -914,7 +931,9 @@ var buttonBorderSchema = z.object({
|
|
|
914
931
|
var variantShadowSchema = z.object({
|
|
915
932
|
elevation: z.enum(["none", "low", "medium", "high"]),
|
|
916
933
|
softness: z.enum(["crisp", "soft", "hard"]).nullable(),
|
|
917
|
-
position: z.enum(["bottom", "bottom-right"]).default("bottom")
|
|
934
|
+
position: z.enum(["bottom", "bottom-right"]).default("bottom"),
|
|
935
|
+
// Optional palette token for a coloured offset shadow; omit for neutral black.
|
|
936
|
+
colorToken: themeColorTokenSchema.optional()
|
|
918
937
|
});
|
|
919
938
|
var variantEffectsSchema = z.object({
|
|
920
939
|
base: z.array(effectApplicationSchema).optional(),
|
|
@@ -1435,6 +1454,65 @@ var inkStamp = defineButtonPersonality({
|
|
|
1435
1454
|
}
|
|
1436
1455
|
});
|
|
1437
1456
|
|
|
1457
|
+
// ../theme-core/src/buttons/personalities/joy-stamp.ts
|
|
1458
|
+
var joyStamp = defineButtonPersonality({
|
|
1459
|
+
id: "joy-stamp",
|
|
1460
|
+
name: "Joy Stamp",
|
|
1461
|
+
description: "Pill buttons with a hard, brand-coloured offset shadow that presses in on hover.",
|
|
1462
|
+
tags: { tone: "bold", energy: "vibrant", motion: "expressive", era: "organic" },
|
|
1463
|
+
buttonSystem: {
|
|
1464
|
+
global: {
|
|
1465
|
+
cornerStyle: "pill",
|
|
1466
|
+
shadow: "high",
|
|
1467
|
+
textTransform: "none",
|
|
1468
|
+
// Bold display type on the buttons: use the heading font (Bricolage) at
|
|
1469
|
+
// 700, matching the mockup's chunky button labels.
|
|
1470
|
+
typography: "heading",
|
|
1471
|
+
fontWeight: 700,
|
|
1472
|
+
borderWidth: 2,
|
|
1473
|
+
hoverTransform: "none",
|
|
1474
|
+
hoverColor: "none"
|
|
1475
|
+
},
|
|
1476
|
+
sizes: {
|
|
1477
|
+
sm: { padding: "0.625rem 1.25rem", fontSize: "text-sm" },
|
|
1478
|
+
md: { padding: "0.875rem 1.75rem", fontSize: "text-base" },
|
|
1479
|
+
lg: { padding: "1.125rem 2.25rem", fontSize: "text-lg" },
|
|
1480
|
+
xl: { padding: "1.25rem 2.75rem", fontSize: "text-xl" }
|
|
1481
|
+
},
|
|
1482
|
+
variants: [
|
|
1483
|
+
{
|
|
1484
|
+
id: "primary",
|
|
1485
|
+
name: "Primary",
|
|
1486
|
+
enabled: true,
|
|
1487
|
+
priority: 1,
|
|
1488
|
+
background: { type: "solid", colorToken: "primary" },
|
|
1489
|
+
textColorToken: "primaryForeground",
|
|
1490
|
+
borderRadius: "rounded-full",
|
|
1491
|
+
// Cream stamp shadow under the burnt-orange fill.
|
|
1492
|
+
shadow: { elevation: "high", softness: "hard", position: "bottom-right", colorToken: "text" },
|
|
1493
|
+
effects: {
|
|
1494
|
+
hover: [{ effectId: "press-down" }]
|
|
1495
|
+
}
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
id: "secondary",
|
|
1499
|
+
name: "Secondary",
|
|
1500
|
+
enabled: true,
|
|
1501
|
+
priority: 2,
|
|
1502
|
+
background: { type: "transparent" },
|
|
1503
|
+
textColorToken: "text",
|
|
1504
|
+
borderRadius: "rounded-full",
|
|
1505
|
+
border: { widthClass: "border-2", colorToken: "text" },
|
|
1506
|
+
// Brown stamp shadow under the cream outline.
|
|
1507
|
+
shadow: { elevation: "high", softness: "hard", position: "bottom-right", colorToken: "secondary" },
|
|
1508
|
+
effects: {
|
|
1509
|
+
hover: [{ effectId: "press-down" }]
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
]
|
|
1513
|
+
}
|
|
1514
|
+
});
|
|
1515
|
+
|
|
1438
1516
|
// ../theme-core/src/buttons/personalities/pebble.ts
|
|
1439
1517
|
var pebble = defineButtonPersonality({
|
|
1440
1518
|
id: "pebble",
|
|
@@ -1708,7 +1786,8 @@ var buttonPersonalities = [
|
|
|
1708
1786
|
pebble,
|
|
1709
1787
|
inkStamp,
|
|
1710
1788
|
brushedWash,
|
|
1711
|
-
showtimePill
|
|
1789
|
+
showtimePill,
|
|
1790
|
+
joyStamp
|
|
1712
1791
|
];
|
|
1713
1792
|
new Map(
|
|
1714
1793
|
buttonPersonalities.map((p) => [p.id, p])
|
|
@@ -1735,6 +1814,86 @@ function themeButtonClassName(spec) {
|
|
|
1735
1814
|
|
|
1736
1815
|
// ../theme-core/src/buttons/generateButtonCss.ts
|
|
1737
1816
|
buttonSizeNameSchema.options;
|
|
1817
|
+
var cardVariantRoleValues = ["default", "alternative"];
|
|
1818
|
+
var boxlessCardVariantValue = "none";
|
|
1819
|
+
var legacyCardVariantRoleAliases = {
|
|
1820
|
+
variant1: "alternative",
|
|
1821
|
+
variant2: "alternative"
|
|
1822
|
+
};
|
|
1823
|
+
var cardSpacingSchema = z.enum(["none", "compact", "cozy", "medium", "comfortable", "spacious"]);
|
|
1824
|
+
var gradientDirectionSchema2 = z.enum(["to-r", "to-l", "to-t", "to-b", "to-tr", "to-tl", "to-br", "to-bl"]);
|
|
1825
|
+
var cardVariantRoleSchema = z.enum(cardVariantRoleValues);
|
|
1826
|
+
z.enum([
|
|
1827
|
+
...cardVariantRoleValues,
|
|
1828
|
+
boxlessCardVariantValue
|
|
1829
|
+
]);
|
|
1830
|
+
function isCardVariantRole(value) {
|
|
1831
|
+
return typeof value === "string" && cardVariantRoleValues.includes(value);
|
|
1832
|
+
}
|
|
1833
|
+
function normalizeCardVariantRole(value) {
|
|
1834
|
+
if (isCardVariantRole(value)) return value;
|
|
1835
|
+
if (typeof value !== "string") return null;
|
|
1836
|
+
return legacyCardVariantRoleAliases[value] ?? null;
|
|
1837
|
+
}
|
|
1838
|
+
var cardBackgroundSchema = z.discriminatedUnion("type", [
|
|
1839
|
+
z.object({ type: z.literal("solid"), colorToken: themeColorTokenSchema }),
|
|
1840
|
+
z.object({
|
|
1841
|
+
type: z.literal("gradient"),
|
|
1842
|
+
fromToken: themeColorTokenSchema,
|
|
1843
|
+
toToken: themeColorTokenSchema,
|
|
1844
|
+
direction: gradientDirectionSchema2
|
|
1845
|
+
}),
|
|
1846
|
+
z.object({ type: z.literal("transparent") })
|
|
1847
|
+
]);
|
|
1848
|
+
var cardBorderSchema = z.object({
|
|
1849
|
+
widthClass: z.string(),
|
|
1850
|
+
colorToken: themeColorTokenSchema
|
|
1851
|
+
});
|
|
1852
|
+
var cardCornerValueSchema = z.enum([
|
|
1853
|
+
"square",
|
|
1854
|
+
"soft",
|
|
1855
|
+
"rounded",
|
|
1856
|
+
"pill",
|
|
1857
|
+
"expressive"
|
|
1858
|
+
]);
|
|
1859
|
+
var cardAccentEdgeSchema = z.object({
|
|
1860
|
+
edge: z.enum(["left", "top", "right", "bottom"]),
|
|
1861
|
+
colorToken: themeColorTokenSchema,
|
|
1862
|
+
width: z.enum(["thin", "medium", "thick", "heavy"])
|
|
1863
|
+
});
|
|
1864
|
+
var cardCornerRadiiSchema = z.object({
|
|
1865
|
+
topLeft: cardCornerValueSchema.optional(),
|
|
1866
|
+
topRight: cardCornerValueSchema.optional(),
|
|
1867
|
+
bottomLeft: cardCornerValueSchema.optional(),
|
|
1868
|
+
bottomRight: cardCornerValueSchema.optional()
|
|
1869
|
+
});
|
|
1870
|
+
var cardVariantSchema = z.object({
|
|
1871
|
+
id: z.string(),
|
|
1872
|
+
name: z.string().min(1).max(20),
|
|
1873
|
+
enabled: z.boolean(),
|
|
1874
|
+
priority: z.union([z.literal(1), z.literal(2), z.literal(3)]),
|
|
1875
|
+
// Appearance (token-based)
|
|
1876
|
+
background: cardBackgroundSchema,
|
|
1877
|
+
spacing: cardSpacingSchema,
|
|
1878
|
+
// Optional foreground (card text) color, for cards on a strong fill.
|
|
1879
|
+
foregroundToken: themeColorTokenSchema.optional(),
|
|
1880
|
+
// Optional overrides (uses theme defaults if not specified)
|
|
1881
|
+
shadow: z.object({
|
|
1882
|
+
elevation: z.enum(["none", "low", "medium", "high"]),
|
|
1883
|
+
softness: z.enum(["crisp", "soft", "hard"]).nullable(),
|
|
1884
|
+
position: z.enum(["bottom", "bottom-right"]).default("bottom")
|
|
1885
|
+
}).optional(),
|
|
1886
|
+
corners: z.enum(["square", "soft", "rounded", "pill"]).optional(),
|
|
1887
|
+
// Per-corner radius override; wins over `corners` when set.
|
|
1888
|
+
cornerRadii: cardCornerRadiiSchema.optional(),
|
|
1889
|
+
// Border (optional)
|
|
1890
|
+
border: cardBorderSchema.optional(),
|
|
1891
|
+
// Single accent edge; replaces `border` when set.
|
|
1892
|
+
accentEdge: cardAccentEdgeSchema.optional()
|
|
1893
|
+
});
|
|
1894
|
+
z.object({
|
|
1895
|
+
variants: z.array(cardVariantSchema).min(1).max(3)
|
|
1896
|
+
});
|
|
1738
1897
|
z.string();
|
|
1739
1898
|
var CSS_COLOR_FUNCTION_PATTERN = /^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\(/i;
|
|
1740
1899
|
var CSS_HEX_COLOR_PATTERN = /^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
|
|
@@ -4792,6 +4951,17 @@ function addMonths(date, months) {
|
|
|
4792
4951
|
base.setDate(Math.min(day, lastDayOfTargetMonth));
|
|
4793
4952
|
return base;
|
|
4794
4953
|
}
|
|
4954
|
+
function addDays(date, days) {
|
|
4955
|
+
const result = new Date(date);
|
|
4956
|
+
result.setDate(result.getDate() + days);
|
|
4957
|
+
return result;
|
|
4958
|
+
}
|
|
4959
|
+
function shiftCalendarAnchorDate(date, view, steps) {
|
|
4960
|
+
if (view === "week") {
|
|
4961
|
+
return addDays(date, steps * 7);
|
|
4962
|
+
}
|
|
4963
|
+
return addMonths(date, steps);
|
|
4964
|
+
}
|
|
4795
4965
|
function getThreeMonthRange(date) {
|
|
4796
4966
|
const year = date.getFullYear();
|
|
4797
4967
|
const month = date.getMonth();
|
|
@@ -4835,6 +5005,16 @@ function getWeekCalendarDays(baseDate, startOfWeek) {
|
|
|
4835
5005
|
}
|
|
4836
5006
|
return days;
|
|
4837
5007
|
}
|
|
5008
|
+
function getWeekCalendarDayTuple(baseDate, startOfWeek) {
|
|
5009
|
+
const days = getWeekCalendarDays(baseDate, startOfWeek);
|
|
5010
|
+
assertWeekCalendarDays(days);
|
|
5011
|
+
return days;
|
|
5012
|
+
}
|
|
5013
|
+
function assertWeekCalendarDays(days) {
|
|
5014
|
+
if (days.length !== 7) {
|
|
5015
|
+
throw new Error("Expected week calendar helper to return exactly 7 days");
|
|
5016
|
+
}
|
|
5017
|
+
}
|
|
4838
5018
|
function getOrderedDayNames(startOfWeek, dayNames = DAY_NAMES) {
|
|
4839
5019
|
if (startOfWeek === "monday") {
|
|
4840
5020
|
const sunday = dayNames[0] ?? "Sun";
|
|
@@ -4858,6 +5038,29 @@ function formatCalendarTitle(viewDate, view, days, monthNames = MONTH_NAMES) {
|
|
|
4858
5038
|
}
|
|
4859
5039
|
return `${monthNames[viewDate.getMonth()] ?? ""} ${viewDate.getFullYear()}`;
|
|
4860
5040
|
}
|
|
5041
|
+
function buildCalendarViewport(input) {
|
|
5042
|
+
const monthNames = input.monthNames ?? MONTH_NAMES;
|
|
5043
|
+
if (input.view === "week") {
|
|
5044
|
+
const days2 = getWeekCalendarDayTuple(input.anchorDate, input.startOfWeek);
|
|
5045
|
+
return {
|
|
5046
|
+
kind: "week",
|
|
5047
|
+
anchorDate: input.anchorDate,
|
|
5048
|
+
days: days2,
|
|
5049
|
+
title: formatCalendarTitle(input.anchorDate, "week", [...days2], monthNames)
|
|
5050
|
+
};
|
|
5051
|
+
}
|
|
5052
|
+
const days = getMonthCalendarDays(
|
|
5053
|
+
input.anchorDate.getFullYear(),
|
|
5054
|
+
input.anchorDate.getMonth(),
|
|
5055
|
+
input.startOfWeek
|
|
5056
|
+
);
|
|
5057
|
+
return {
|
|
5058
|
+
kind: "month",
|
|
5059
|
+
anchorDate: input.anchorDate,
|
|
5060
|
+
days,
|
|
5061
|
+
title: formatCalendarTitle(input.anchorDate, "month", days, monthNames)
|
|
5062
|
+
};
|
|
5063
|
+
}
|
|
4861
5064
|
|
|
4862
5065
|
// ../calendar/src/lane-packing.ts
|
|
4863
5066
|
function assignLanes(intervals) {
|
|
@@ -5478,47 +5681,51 @@ function groupEventsByDate(events) {
|
|
|
5478
5681
|
}
|
|
5479
5682
|
return map;
|
|
5480
5683
|
}
|
|
5481
|
-
function
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
currency: event.course.currency
|
|
5490
|
-
});
|
|
5491
|
-
if (pricing.display.kind === "exact" || pricing.display.kind === "from") {
|
|
5492
|
-
const amountLabel = formatCourseCurrencyAmount(pricing.display.amount, pricing.display.currency, {
|
|
5493
|
-
minimumFractionDigits: 0,
|
|
5494
|
-
maximumFractionDigits: 2
|
|
5495
|
-
});
|
|
5496
|
-
return pricing.display.kind === "from" ? `Course (From ${amountLabel})` : `Course (${amountLabel})`;
|
|
5497
|
-
}
|
|
5684
|
+
function formatCompactCurrencyAmount(amount, currency) {
|
|
5685
|
+
return formatCourseCurrencyAmount(amount, currency, {
|
|
5686
|
+
minimumFractionDigits: 0,
|
|
5687
|
+
maximumFractionDigits: 2
|
|
5688
|
+
});
|
|
5689
|
+
}
|
|
5690
|
+
function formatCourseEventPriceDisplay(display) {
|
|
5691
|
+
if (display.kind !== "course") {
|
|
5498
5692
|
return "Course";
|
|
5499
5693
|
}
|
|
5500
|
-
|
|
5694
|
+
if (display.display.kind === "exact" || display.display.kind === "from") {
|
|
5695
|
+
const amountLabel = formatCompactCurrencyAmount(
|
|
5696
|
+
display.display.amount,
|
|
5697
|
+
display.display.currency
|
|
5698
|
+
);
|
|
5699
|
+
return display.display.kind === "from" ? `Course (From ${amountLabel})` : `Course (${amountLabel})`;
|
|
5700
|
+
}
|
|
5701
|
+
return "Course";
|
|
5702
|
+
}
|
|
5703
|
+
function formatPublicEventPriceDisplay(display) {
|
|
5704
|
+
switch (display.kind) {
|
|
5501
5705
|
case "free":
|
|
5502
5706
|
return "Free";
|
|
5503
|
-
case "
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
}
|
|
5510
|
-
return "Free";
|
|
5707
|
+
case "exact":
|
|
5708
|
+
return formatCompactCurrencyAmount(display.amount, display.currency);
|
|
5709
|
+
case "from":
|
|
5710
|
+
return `From ${formatCompactCurrencyAmount(display.amount, display.currency)}`;
|
|
5711
|
+
case "mixed":
|
|
5712
|
+
return `Free / From ${formatCompactCurrencyAmount(display.paidFromAmount, display.currency)}`;
|
|
5511
5713
|
case "pass_only":
|
|
5512
5714
|
return "Pass Only";
|
|
5513
5715
|
case "membership_only":
|
|
5514
5716
|
return "Members Only";
|
|
5515
|
-
|
|
5516
|
-
return "
|
|
5717
|
+
case "unavailable":
|
|
5718
|
+
return "Pricing unavailable";
|
|
5719
|
+
case "course":
|
|
5720
|
+
return formatCourseEventPriceDisplay(display);
|
|
5517
5721
|
}
|
|
5518
5722
|
}
|
|
5723
|
+
function formatEventPrice(event) {
|
|
5724
|
+
return formatPublicEventPriceDisplay(event.priceDisplay);
|
|
5725
|
+
}
|
|
5519
5726
|
function resolveEventCta(event, buttonText) {
|
|
5520
5727
|
const { isFull: isSoldOut } = getEventAvailability(event);
|
|
5521
|
-
const defaultButtonText = event.kind === "course_session" ? "Book course" : "Book
|
|
5728
|
+
const defaultButtonText = event.kind === "course_session" ? "Book course" : "Book";
|
|
5522
5729
|
const effectiveButtonText = buttonText ?? defaultButtonText;
|
|
5523
5730
|
if (isSoldOut) {
|
|
5524
5731
|
return { label: "Sold out", href: event.path, hidden: true };
|
|
@@ -5537,9 +5744,10 @@ var MediaNodeServer = ({
|
|
|
5537
5744
|
size = ImagePresets.full,
|
|
5538
5745
|
fieldPath,
|
|
5539
5746
|
blockKind,
|
|
5540
|
-
blockContent
|
|
5747
|
+
blockContent,
|
|
5748
|
+
imageResolveContext: explicitImageResolveContext
|
|
5541
5749
|
}) => {
|
|
5542
|
-
const imageResolveContext = getCurrentResolveImageUrlContext();
|
|
5750
|
+
const imageResolveContext = explicitImageResolveContext ?? getCurrentResolveImageUrlContext();
|
|
5543
5751
|
if (!value) return null;
|
|
5544
5752
|
if (value.type === "video") {
|
|
5545
5753
|
return renderVideo(value, className, style, imageResolveContext, { playback: videoPlayback });
|
|
@@ -5654,7 +5862,7 @@ var EventCard = ({
|
|
|
5654
5862
|
const cta = resolveEventCta(event, buttonText);
|
|
5655
5863
|
const isSoldOut = cta.hidden;
|
|
5656
5864
|
const { available: spotsLeft } = getEventAvailability(event);
|
|
5657
|
-
const cardClass = `card-${cardVariant}`;
|
|
5865
|
+
const cardClass = `card-${normalizeCardVariantRole(cardVariant) ?? "default"}`;
|
|
5658
5866
|
const buttonClass = themeButtonClassName({ variant: buttonVariant, size: "md" });
|
|
5659
5867
|
const title = event.title;
|
|
5660
5868
|
const summary = event.presentation?.summary ?? event.description;
|
|
@@ -5941,25 +6149,28 @@ var EventCompactRow = ({
|
|
|
5941
6149
|
/* @__PURE__ */ jsx("span", { className: "event-compact-row-date-day", children: dateRail.day }),
|
|
5942
6150
|
/* @__PURE__ */ jsx("span", { className: "event-compact-row-date-month", children: dateRail.month })
|
|
5943
6151
|
] }),
|
|
5944
|
-
/* @__PURE__ */ jsxs("div", { className: "event-compact-row-
|
|
5945
|
-
/* @__PURE__ */
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
/* @__PURE__ */
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
/* @__PURE__ */ jsxs("div", { className: "event-compact-row-action", children: [
|
|
5956
|
-
/* @__PURE__ */ jsxs("span", { className: "event-compact-row-datetime", children: [
|
|
5957
|
-
/* @__PURE__ */ jsx(Clock, { "aria-hidden": "true" }),
|
|
5958
|
-
formattedTime
|
|
6152
|
+
/* @__PURE__ */ jsxs("div", { className: "event-compact-row-body", children: [
|
|
6153
|
+
/* @__PURE__ */ jsxs("div", { className: "event-compact-row-content", children: [
|
|
6154
|
+
/* @__PURE__ */ jsx("h3", { className: "event-compact-row-title", children: event.title }),
|
|
6155
|
+
/* @__PURE__ */ jsxs("div", { className: "event-compact-row-meta", children: [
|
|
6156
|
+
event.venue && /* @__PURE__ */ jsxs("span", { className: "event-compact-row-venue", children: [
|
|
6157
|
+
/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }),
|
|
6158
|
+
event.venue.name
|
|
6159
|
+
] }),
|
|
6160
|
+
teacherLine && /* @__PURE__ */ jsx("span", { className: "event-compact-row-teacher", children: teacherLine }),
|
|
6161
|
+
/* @__PURE__ */ jsx("span", { className: "event-compact-row-price", children: price })
|
|
6162
|
+
] })
|
|
5959
6163
|
] }),
|
|
5960
|
-
|
|
5961
|
-
/* @__PURE__ */
|
|
5962
|
-
|
|
6164
|
+
/* @__PURE__ */ jsxs("div", { className: "event-compact-row-action", children: [
|
|
6165
|
+
/* @__PURE__ */ jsxs("span", { className: "event-compact-row-datetime", children: [
|
|
6166
|
+
/* @__PURE__ */ jsx(Clock, { "aria-hidden": "true" }),
|
|
6167
|
+
formattedTime,
|
|
6168
|
+
/* @__PURE__ */ jsx("span", { className: "event-compact-row-action-price", children: price })
|
|
6169
|
+
] }),
|
|
6170
|
+
cta.hidden ? /* @__PURE__ */ jsx("span", { className: "event-compact-row-status", children: cta.label }) : /* @__PURE__ */ jsxs("a", { href: cta.href, className: `${buttonClass} event-compact-row-cta`, children: [
|
|
6171
|
+
/* @__PURE__ */ jsx("span", { children: cta.label }),
|
|
6172
|
+
/* @__PURE__ */ jsx(ArrowRight, { "aria-hidden": "true" })
|
|
6173
|
+
] })
|
|
5963
6174
|
] })
|
|
5964
6175
|
] })
|
|
5965
6176
|
] });
|
|
@@ -5992,8 +6203,116 @@ function DateTimeTile({ startsAt, endsAt, timeZone }) {
|
|
|
5992
6203
|
] });
|
|
5993
6204
|
}
|
|
5994
6205
|
|
|
6206
|
+
// ../blocks/src/system/runtime/hooks/utils/normalize.ts
|
|
6207
|
+
function normalizeOptionalId(value) {
|
|
6208
|
+
const trimmed = typeof value === "string" ? value.trim() : void 0;
|
|
6209
|
+
return trimmed ? trimmed : void 0;
|
|
6210
|
+
}
|
|
6211
|
+
function normalizeCsvIds(value) {
|
|
6212
|
+
if (!value) return [];
|
|
6213
|
+
const parts = Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : typeof value === "string" ? value.split(",") : [];
|
|
6214
|
+
return normalizeIdList(parts);
|
|
6215
|
+
}
|
|
6216
|
+
function normalizeCsvString(value) {
|
|
6217
|
+
const ids = normalizeCsvIds(value);
|
|
6218
|
+
return ids.length > 0 ? ids.join(",") : void 0;
|
|
6219
|
+
}
|
|
6220
|
+
|
|
6221
|
+
// ../blocks/src/system/runtime/nodes/events/shared/listOptions.ts
|
|
6222
|
+
var eventPageSizeValues = [3, 6, 10, 12, 20, 24, 30];
|
|
6223
|
+
var eventPageSizeSchema = z.union([
|
|
6224
|
+
z.literal(3),
|
|
6225
|
+
z.literal(6),
|
|
6226
|
+
z.literal(10),
|
|
6227
|
+
z.literal(12),
|
|
6228
|
+
z.literal(20),
|
|
6229
|
+
z.literal(24),
|
|
6230
|
+
z.literal(30)
|
|
6231
|
+
]);
|
|
6232
|
+
var eventPageSizeSet = new Set(eventPageSizeValues);
|
|
6233
|
+
function resolveEventPageSize(value, fallback = 12) {
|
|
6234
|
+
const candidate = typeof value === "number" ? value : typeof value === "string" && value.trim() !== "" ? Number(value.trim()) : null;
|
|
6235
|
+
return candidate != null && Number.isInteger(candidate) && eventPageSizeSet.has(candidate) ? candidate : fallback;
|
|
6236
|
+
}
|
|
6237
|
+
function resolveEventCalendarListPageSize(input) {
|
|
6238
|
+
return resolveEventPageSize(input.eventsPerPage);
|
|
6239
|
+
}
|
|
6240
|
+
var eventListPaginationActionSchema = z.discriminatedUnion("kind", [
|
|
6241
|
+
z.object({
|
|
6242
|
+
kind: z.literal("loadMore"),
|
|
6243
|
+
label: z.string()
|
|
6244
|
+
}),
|
|
6245
|
+
z.object({
|
|
6246
|
+
kind: z.literal("seeAllLink"),
|
|
6247
|
+
label: z.string(),
|
|
6248
|
+
href: z.string()
|
|
6249
|
+
})
|
|
6250
|
+
]);
|
|
6251
|
+
function resolveEventListPaginationAction(input) {
|
|
6252
|
+
const label = input.loadMoreText?.trim() || input.defaultLabel || "Load more events";
|
|
6253
|
+
const href = input.seeAllUrl?.trim();
|
|
6254
|
+
if (input.paginationMode === "seeAllLink" && href) {
|
|
6255
|
+
return { kind: "seeAllLink", label, href };
|
|
6256
|
+
}
|
|
6257
|
+
return { kind: "loadMore", label };
|
|
6258
|
+
}
|
|
6259
|
+
function normalizeFilterId(value) {
|
|
6260
|
+
const id = normalizeOptionalId(value);
|
|
6261
|
+
return id === "all" ? void 0 : id;
|
|
6262
|
+
}
|
|
6263
|
+
function buildEventRuntimeFilters(input) {
|
|
6264
|
+
const params = {};
|
|
6265
|
+
if (input.eventSurface && input.eventSurface !== "all") {
|
|
6266
|
+
params.eventSurface = input.eventSurface;
|
|
6267
|
+
}
|
|
6268
|
+
const eventPresets = normalizeCsvString(input.filterEventPresets);
|
|
6269
|
+
if (eventPresets) {
|
|
6270
|
+
params.eventPresets = eventPresets;
|
|
6271
|
+
}
|
|
6272
|
+
if (input.scheduleScope && input.scheduleScope !== "any") {
|
|
6273
|
+
params.scheduleScope = input.scheduleScope;
|
|
6274
|
+
}
|
|
6275
|
+
const venueId = normalizeFilterId(input.filterVenueId);
|
|
6276
|
+
const staffMemberId = normalizeFilterId(input.filterStaffMemberId);
|
|
6277
|
+
if (input.eventKind === "courses") {
|
|
6278
|
+
params.kind = "courses";
|
|
6279
|
+
if (venueId) params.venueId = venueId;
|
|
6280
|
+
if (staffMemberId) params.staffMemberId = staffMemberId;
|
|
6281
|
+
return params;
|
|
6282
|
+
}
|
|
6283
|
+
const categoryIds = normalizeCsvString(input.filterCategoryIds);
|
|
6284
|
+
if (categoryIds) {
|
|
6285
|
+
params.categoryIds = categoryIds;
|
|
6286
|
+
}
|
|
6287
|
+
if (input.eventKind === "events") {
|
|
6288
|
+
params.kind = "events";
|
|
6289
|
+
}
|
|
6290
|
+
if (venueId) {
|
|
6291
|
+
params.venueId = venueId;
|
|
6292
|
+
}
|
|
6293
|
+
if (staffMemberId) {
|
|
6294
|
+
params.staffMemberId = staffMemberId;
|
|
6295
|
+
}
|
|
6296
|
+
return params;
|
|
6297
|
+
}
|
|
6298
|
+
function getEventRuntimeFiltersKey(filters) {
|
|
6299
|
+
return JSON.stringify({
|
|
6300
|
+
categoryIds: normalizeCsvString(filters?.categoryIds),
|
|
6301
|
+
staffMemberId: normalizeOptionalId(filters?.staffMemberId),
|
|
6302
|
+
venueId: normalizeOptionalId(filters?.venueId),
|
|
6303
|
+
kind: filters?.kind ?? null,
|
|
6304
|
+
eventSurface: filters?.eventSurface ?? null,
|
|
6305
|
+
eventPresets: normalizeCsvString(filters?.eventPresets),
|
|
6306
|
+
scheduleScope: filters?.scheduleScope ?? null
|
|
6307
|
+
});
|
|
6308
|
+
}
|
|
6309
|
+
|
|
5995
6310
|
// ../blocks/src/system/runtime/nodes/events/EventListing.interactive.ts
|
|
5996
|
-
var
|
|
6311
|
+
var legacyEventCardVariantSchema = z.enum(["variant1", "variant2"]);
|
|
6312
|
+
var eventCardVariantInputSchema = z.union([
|
|
6313
|
+
cardVariantRoleSchema,
|
|
6314
|
+
legacyEventCardVariantSchema
|
|
6315
|
+
]);
|
|
5997
6316
|
var cardOrientationSchema = z.enum(["vertical", "horizontal"]);
|
|
5998
6317
|
var eventBlockKindSchema = z.enum(eventBlockKindValues);
|
|
5999
6318
|
var eventSurfaceScopeSchema = z.enum(eventSurfaceScopeValues);
|
|
@@ -6009,7 +6328,7 @@ var eventListingSourceSchema = z.object({
|
|
|
6009
6328
|
paginationMode: z.enum(["loadMore", "seeAllLink"]).optional(),
|
|
6010
6329
|
seeAllUrl: z.string().optional(),
|
|
6011
6330
|
loadMoreText: z.string().optional(),
|
|
6012
|
-
cardVariant:
|
|
6331
|
+
cardVariant: eventCardVariantInputSchema.optional(),
|
|
6013
6332
|
buttonVariant: eventButtonVariantSchema.optional(),
|
|
6014
6333
|
buttonText: z.string().optional(),
|
|
6015
6334
|
showVenue: z.boolean().optional(),
|
|
@@ -6037,7 +6356,7 @@ var eventListingDisplaySchema = z.object({
|
|
|
6037
6356
|
emptyMessage: z.string(),
|
|
6038
6357
|
loadingMessage: z.string(),
|
|
6039
6358
|
containerClass: z.string(),
|
|
6040
|
-
cardVariant:
|
|
6359
|
+
cardVariant: cardVariantRoleSchema,
|
|
6041
6360
|
buttonVariant: eventButtonVariantSchema,
|
|
6042
6361
|
buttonText: z.string(),
|
|
6043
6362
|
showVenue: z.boolean(),
|
|
@@ -6049,10 +6368,8 @@ var eventListingDisplaySchema = z.object({
|
|
|
6049
6368
|
var eventListingHydrationSchema = z.object({
|
|
6050
6369
|
siteId: z.string(),
|
|
6051
6370
|
stage: previewStageSchema.optional(),
|
|
6052
|
-
eventsPerPage:
|
|
6053
|
-
|
|
6054
|
-
seeAllUrl: z.string().optional(),
|
|
6055
|
-
loadMoreText: z.string(),
|
|
6371
|
+
eventsPerPage: eventPageSizeSchema,
|
|
6372
|
+
paginationAction: eventListPaginationActionSchema,
|
|
6056
6373
|
showFilters: z.boolean(),
|
|
6057
6374
|
showCategoryFilter: filterAutoShowSchema,
|
|
6058
6375
|
showVenueFilter: z.boolean(),
|
|
@@ -6085,7 +6402,7 @@ var eventListingBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
6085
6402
|
},
|
|
6086
6403
|
buildRender: (source) => {
|
|
6087
6404
|
const normalizedEvents = Array.isArray(source.events) ? source.events : [];
|
|
6088
|
-
const pageSize =
|
|
6405
|
+
const pageSize = resolveEventPageSize(source.eventsPerPage);
|
|
6089
6406
|
const initialEvents = normalizedEvents.slice(0, pageSize);
|
|
6090
6407
|
const didPrefetchEvents = source.events != null;
|
|
6091
6408
|
const layout = source.layout ?? "grid";
|
|
@@ -6098,9 +6415,9 @@ var eventListingBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
6098
6415
|
emptyMessage: source.emptyMessage ?? "No upcoming events scheduled.",
|
|
6099
6416
|
loadingMessage: "Loading events\u2026",
|
|
6100
6417
|
containerClass: getContainerClass(layout, source.columns ?? "3"),
|
|
6101
|
-
cardVariant: source.cardVariant ?? "default",
|
|
6418
|
+
cardVariant: normalizeCardVariantRole(source.cardVariant) ?? "default",
|
|
6102
6419
|
buttonVariant: source.buttonVariant ?? "primary",
|
|
6103
|
-
buttonText: source.buttonText ?? "Book
|
|
6420
|
+
buttonText: source.buttonText ?? "Book",
|
|
6104
6421
|
showVenue: source.showVenue ?? true,
|
|
6105
6422
|
showMap: source.showMap ?? true,
|
|
6106
6423
|
showCapacity: source.showCapacity ?? true,
|
|
@@ -6110,10 +6427,12 @@ var eventListingBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
6110
6427
|
hydration: {
|
|
6111
6428
|
siteId: source.siteId,
|
|
6112
6429
|
stage: source.stage,
|
|
6113
|
-
eventsPerPage:
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6430
|
+
eventsPerPage: pageSize,
|
|
6431
|
+
paginationAction: resolveEventListPaginationAction({
|
|
6432
|
+
paginationMode: source.paginationMode,
|
|
6433
|
+
seeAllUrl: source.seeAllUrl,
|
|
6434
|
+
loadMoreText: source.loadMoreText
|
|
6435
|
+
}),
|
|
6117
6436
|
showFilters: source.showFilters ?? false,
|
|
6118
6437
|
showCategoryFilter: source.showCategoryFilter ?? "auto",
|
|
6119
6438
|
showVenueFilter: source.showVenueFilter ?? false,
|
|
@@ -6168,7 +6487,8 @@ var eventCalendarSourceSchema = z.object(
|
|
|
6168
6487
|
layout: eventLayoutSchema.optional(),
|
|
6169
6488
|
columns: columnOptionSchema.optional(),
|
|
6170
6489
|
eventsPerPage: z.string().optional(),
|
|
6171
|
-
|
|
6490
|
+
paginationMode: z.enum(["loadMore", "seeAllLink"]).optional(),
|
|
6491
|
+
seeAllUrl: z.string().optional(),
|
|
6172
6492
|
loadMoreText: z.string().optional(),
|
|
6173
6493
|
startOfWeek: weekStartSchema.optional(),
|
|
6174
6494
|
calendarTabViews: calendarTabViewsSchema.optional(),
|
|
@@ -6199,8 +6519,8 @@ var eventCalendarDisplaySchema = z.object({
|
|
|
6199
6519
|
events: z.array(publicEventSchema),
|
|
6200
6520
|
listLayout: eventLayoutSchema,
|
|
6201
6521
|
listColumns: columnOptionSchema,
|
|
6202
|
-
eventsPerPage:
|
|
6203
|
-
|
|
6522
|
+
eventsPerPage: eventPageSizeSchema,
|
|
6523
|
+
paginationAction: eventListPaginationActionSchema,
|
|
6204
6524
|
startOfWeek: weekStartSchema,
|
|
6205
6525
|
calendarTabViews: calendarTabViewsSchema,
|
|
6206
6526
|
showFilters: z.boolean(),
|
|
@@ -6247,6 +6567,7 @@ var eventCalendarIslandMetaKeys = defineInteractiveIslandMetaKeys(
|
|
|
6247
6567
|
"stage"
|
|
6248
6568
|
);
|
|
6249
6569
|
function buildEventCalendarDisplay(source) {
|
|
6570
|
+
const listLayout = source.listLayout ?? source.layout ?? "stack";
|
|
6250
6571
|
return {
|
|
6251
6572
|
kind: "event-calendar",
|
|
6252
6573
|
displayMode: source.variant ?? source.displayMode ?? "combined",
|
|
@@ -6254,10 +6575,16 @@ function buildEventCalendarDisplay(source) {
|
|
|
6254
6575
|
events: (source.events ?? []).slice().sort(
|
|
6255
6576
|
(left, right) => new Date(left.startsAt).getTime() - new Date(right.startsAt).getTime()
|
|
6256
6577
|
),
|
|
6257
|
-
listLayout
|
|
6578
|
+
listLayout,
|
|
6258
6579
|
listColumns: source.listColumns ?? source.columns ?? "3",
|
|
6259
|
-
eventsPerPage: (
|
|
6260
|
-
|
|
6580
|
+
eventsPerPage: resolveEventCalendarListPageSize({
|
|
6581
|
+
eventsPerPage: source.eventsPerPage
|
|
6582
|
+
}),
|
|
6583
|
+
paginationAction: resolveEventListPaginationAction({
|
|
6584
|
+
paginationMode: source.paginationMode,
|
|
6585
|
+
seeAllUrl: source.seeAllUrl,
|
|
6586
|
+
loadMoreText: source.loadMoreText
|
|
6587
|
+
}),
|
|
6261
6588
|
startOfWeek: source.startOfWeek ?? "monday",
|
|
6262
6589
|
calendarTabViews: source.calendarTabViews ?? "both",
|
|
6263
6590
|
showFilters: source.showFilters ?? true,
|
|
@@ -6274,7 +6601,7 @@ function buildEventCalendarDisplay(source) {
|
|
|
6274
6601
|
),
|
|
6275
6602
|
filterVenueId: normalizeEventVenueId(source.filterVenueId),
|
|
6276
6603
|
buttonVariant: source.buttonVariant ?? "primary",
|
|
6277
|
-
buttonText: source.buttonText ?? "Book
|
|
6604
|
+
buttonText: source.buttonText ?? "Book",
|
|
6278
6605
|
showVenue: source.showVenue ?? true,
|
|
6279
6606
|
showMap: source.showMap ?? true,
|
|
6280
6607
|
showCapacity: source.showCapacity ?? true,
|
|
@@ -6282,7 +6609,7 @@ function buildEventCalendarDisplay(source) {
|
|
|
6282
6609
|
};
|
|
6283
6610
|
}
|
|
6284
6611
|
function buildEventCalendarListingDisplay(display, prefetchedEvents, className = display.className) {
|
|
6285
|
-
const pageSize =
|
|
6612
|
+
const pageSize = display.eventsPerPage;
|
|
6286
6613
|
const initialEvents = display.events.slice(0, pageSize);
|
|
6287
6614
|
return {
|
|
6288
6615
|
kind: "event-listing",
|
|
@@ -6315,8 +6642,7 @@ function buildEventCalendarListingRender(render, className = render.display.clas
|
|
|
6315
6642
|
siteId: hydration.siteId,
|
|
6316
6643
|
stage: hydration.stage,
|
|
6317
6644
|
eventsPerPage: display.eventsPerPage,
|
|
6318
|
-
|
|
6319
|
-
loadMoreText: display.loadMoreText,
|
|
6645
|
+
paginationAction: display.paginationAction,
|
|
6320
6646
|
showFilters: display.showFilters,
|
|
6321
6647
|
showCategoryFilter: display.showCategoryFilter,
|
|
6322
6648
|
showVenueFilter: display.showVenueFilter,
|
|
@@ -6374,7 +6700,8 @@ var eventCombinedSourceSchema = z.object(
|
|
|
6374
6700
|
listLayout: eventLayoutSchema.optional(),
|
|
6375
6701
|
listColumns: columnOptionSchema.optional(),
|
|
6376
6702
|
eventsPerPage: z.string().optional(),
|
|
6377
|
-
|
|
6703
|
+
paginationMode: z.enum(["loadMore", "seeAllLink"]).optional(),
|
|
6704
|
+
seeAllUrl: z.string().optional(),
|
|
6378
6705
|
loadMoreText: z.string().optional(),
|
|
6379
6706
|
startOfWeek: weekStartSchema.optional(),
|
|
6380
6707
|
calendarTabViews: calendarTabViewsSchema.optional(),
|
|
@@ -6404,8 +6731,8 @@ var eventCombinedDisplaySchema = z.object({
|
|
|
6404
6731
|
events: z.array(publicEventSchema),
|
|
6405
6732
|
listLayout: eventLayoutSchema,
|
|
6406
6733
|
listColumns: columnOptionSchema,
|
|
6407
|
-
eventsPerPage:
|
|
6408
|
-
|
|
6734
|
+
eventsPerPage: eventPageSizeSchema,
|
|
6735
|
+
paginationAction: eventListPaginationActionSchema,
|
|
6409
6736
|
startOfWeek: weekStartSchema,
|
|
6410
6737
|
calendarTabViews: calendarTabViewsSchema,
|
|
6411
6738
|
showFilters: z.boolean(),
|
|
@@ -6452,14 +6779,21 @@ var eventCombinedIslandMetaKeys = defineInteractiveIslandMetaKeys(
|
|
|
6452
6779
|
"stage"
|
|
6453
6780
|
);
|
|
6454
6781
|
function buildEventCombinedDisplay(source) {
|
|
6782
|
+
const listLayout = source.listLayout ?? "stack";
|
|
6455
6783
|
return {
|
|
6456
6784
|
kind: "event-combined",
|
|
6457
6785
|
className: source.className ?? null,
|
|
6458
6786
|
events: Array.isArray(source.events) ? [...source.events] : [],
|
|
6459
|
-
listLayout
|
|
6787
|
+
listLayout,
|
|
6460
6788
|
listColumns: source.listColumns ?? "3",
|
|
6461
|
-
eventsPerPage:
|
|
6462
|
-
|
|
6789
|
+
eventsPerPage: resolveEventCalendarListPageSize({
|
|
6790
|
+
eventsPerPage: source.eventsPerPage
|
|
6791
|
+
}),
|
|
6792
|
+
paginationAction: resolveEventListPaginationAction({
|
|
6793
|
+
paginationMode: source.paginationMode,
|
|
6794
|
+
seeAllUrl: source.seeAllUrl,
|
|
6795
|
+
loadMoreText: source.loadMoreText
|
|
6796
|
+
}),
|
|
6463
6797
|
startOfWeek: source.startOfWeek ?? "monday",
|
|
6464
6798
|
calendarTabViews: source.calendarTabViews ?? "both",
|
|
6465
6799
|
showFilters: source.showFilters ?? true,
|
|
@@ -6479,7 +6813,7 @@ function buildEventCombinedDisplay(source) {
|
|
|
6479
6813
|
showMap: source.showMap ?? true,
|
|
6480
6814
|
showCapacity: source.showCapacity ?? true,
|
|
6481
6815
|
buttonVariant: source.buttonVariant ?? "primary",
|
|
6482
|
-
buttonText: source.buttonText ?? "Book
|
|
6816
|
+
buttonText: source.buttonText ?? "Book",
|
|
6483
6817
|
emptyMessage: source.emptyMessage ?? "No upcoming events scheduled."
|
|
6484
6818
|
};
|
|
6485
6819
|
}
|
|
@@ -7972,4 +8306,4 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
7972
8306
|
*)
|
|
7973
8307
|
*/
|
|
7974
8308
|
|
|
7975
|
-
export { BOOKING_FORM_DATA_RESERVED_KEYS, ChevronLeft, ChevronRight, CreditCard, DateTimeTile, EMPTY_COMMERCE_CART_STATE, EmptyState, EventCard, EventCompactRow, MAX_EVENTS_PER_DAY, MONTH_NAMES, Sparkles, Star, Ticket, addMonths, assertNever11, buildCartDisplay, buildEventCalendarListingRender, buildPassCartItem, buildProductCardDisplay, buildProductCartItem, buildProductDetailDisplay, buildTimetableModel, clearWorkflowFeedback, defineIslandPropsDecoder, deriveBookingFormViewState, deriveCommerceCheckoutState, err2, formatBookingSubmissionPreparationError,
|
|
8309
|
+
export { BOOKING_FORM_DATA_RESERVED_KEYS, ChevronLeft, ChevronRight, CreditCard, DateTimeTile, EMPTY_COMMERCE_CART_STATE, EmptyState, EventCard, EventCompactRow, MAX_EVENTS_PER_DAY, MONTH_NAMES, Sparkles, Star, Ticket, addMonths, assertNever11, buildCalendarViewport, buildCartDisplay, buildEventCalendarListingRender, buildEventRuntimeFilters, buildPassCartItem, buildProductCardDisplay, buildProductCartItem, buildProductDetailDisplay, buildTimetableModel, clearWorkflowFeedback, defineIslandPropsDecoder, deriveBookingFormViewState, deriveCommerceCheckoutState, err2, formatBookingSubmissionPreparationError, formatCommercePrice, formatCoursePriceAmount, formatCoursePriceDisplay, formatDate, formatDateKey, formatEventDateParts, formatEventPrice, formatEventTeacherLine, formatInterval, formatTime, getBookingRedirectStateFromLocation, getBookingSuccessMessage, getCardOrientation, getContainerClass, getEventAvailability, getEventRuntimeFiltersKey, getOrderedDayNames, getShopDisplayForItems, getThreeMonthRange, groupEventsByDate, isEventContentType, isToday, logger, normalizeCsvIds, normalizeCsvString, normalizeEventBlockKind, normalizeOptionalId, ok, okWith2, parseStoredCommerceCartState, prepareBookingSubmission, productItemKey, reduceCommerceCart, reportWorkflowError, reportWorkflowSuccess, resolveAppointmentCheckoutVerificationState, resolveBookingPaymentStep, resolveBookingSiteId, resolveCoursePricingState, resolveDefaultBookingServiceId, shiftCalendarAnchorDate, themeButtonClassName, toSelectedCollectionOptionKind };
|