@riverbankcms/sdk 0.129.1 → 0.130.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +85 -0
- package/README.md +33 -11
- package/dist/{PreviewEditorSidebar-DceRseRV.mjs → PreviewEditorSidebar-BY-1QdE2.mjs} +327 -250
- package/dist/{PreviewEditorUI-BNunq3kk.mjs → PreviewEditorUI-BS34jI9_.mjs} +3 -3
- package/dist/{PreviewQueryProvider-B1kbhaJD.mjs → PreviewQueryProvider-BD0kOjtI.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-Bt87-62u.mjs → SdkPreviewModeRuntime-B1pWnhu-.mjs} +235 -211
- package/dist/{SiteChromeCustomizeContext-BLl-OlL4.mjs → SiteChromeCustomizeContext-BhUG_72i.mjs} +12981 -11912
- package/dist/_dts/ai/src/contracts/proposalPrimitives.d.ts +52 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +5256 -29129
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +33429 -0
- package/dist/_dts/api/src/accountApi.d.ts +213 -0
- package/dist/_dts/api/src/accountEndpointDefinitions.d.ts +30 -0
- package/dist/_dts/api/src/accountEndpoints.d.ts +254 -0
- package/dist/_dts/api/src/apiCallParams.d.ts +60 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +21 -9
- package/dist/_dts/api/src/bookingConfig.d.ts +12 -64
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +17 -16
- package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +15 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/bookingSettingsSections.d.ts +9 -0
- package/dist/_dts/api/src/bookingVerticals.d.ts +2 -2
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +2 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -5
- package/dist/_dts/api/src/endpoints.d.ts +1355 -1318
- package/dist/_dts/api/src/event-destination-policy.d.ts +1 -1
- package/dist/_dts/api/src/eventManagementContracts.d.ts +152 -0
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +26 -0
- package/dist/_dts/api/src/eventSeriesPresentationPreset.d.ts +12 -0
- package/dist/_dts/api/src/index.d.ts +12 -3
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -0
- package/dist/_dts/api/src/oauth.d.ts +8 -0
- package/dist/_dts/api/src/preview-auth.d.ts +26 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +22 -47
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +5 -5
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +0 -1
- package/dist/_dts/api/src/sdk-event-schedule.d.ts +5 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +114 -20
- package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +48 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +43 -79
- package/dist/_dts/api/src/sdkEventCategoryContracts.d.ts +9 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +35 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +2256 -302
- package/dist/_dts/api/src/settings/permissions.d.ts +2 -2
- package/dist/_dts/api/src/siteApiKeyEndpointDefinitions.d.ts +66 -0
- package/dist/_dts/api/src/siteInfrastructure.d.ts +3 -3
- package/dist/_dts/api/src/siteOperations.d.ts +1 -1
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +17 -4
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +23 -37
- package/dist/_dts/api/src/types.d.ts +7 -59
- package/dist/_dts/block-form/src/client/index.d.ts +15 -23
- package/dist/_dts/block-form/src/index.d.ts +23 -22
- package/dist/_dts/blocks/src/contracts/index.d.ts +2 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +6 -8
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +36 -14
- package/dist/_dts/blocks/src/index.d.ts +5 -3
- package/dist/_dts/blocks/src/lib/media.d.ts +9 -539
- package/dist/_dts/blocks/src/primitives/layout/Grid.d.ts +18 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +61 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +24 -22
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +25 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +142 -120
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +37 -4
- package/dist/_dts/blocks/src/system/blocks/site-footer-nav-groups-layout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +0 -1
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +4 -63
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +5 -5
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +9 -9
- package/dist/_dts/blocks/src/system/customize/serializeBackgroundOverride.d.ts +3 -0
- package/dist/_dts/blocks/src/system/fields/background.d.ts +2 -20
- package/dist/_dts/blocks/src/system/fields/backgroundContent.d.ts +17 -0
- package/dist/_dts/blocks/src/system/fields/backgroundContentAudit.d.ts +20 -0
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +18 -34
- package/dist/_dts/blocks/src/system/fields/gridLayout.d.ts +20 -0
- package/dist/_dts/blocks/src/system/fragments/builder.d.ts +1 -0
- package/dist/_dts/blocks/src/system/fragments/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/helpers/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +10 -45
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +7 -4
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/writeCanonicalization.d.ts +4 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +123 -55
- package/dist/_dts/blocks/src/system/node/fragments/classNameBinding.d.ts +6 -1
- package/dist/_dts/blocks/src/system/node/fragments/styledCard.d.ts +31 -0
- package/dist/_dts/blocks/src/system/registry.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +2 -37
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +61 -24
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +30 -12
- package/dist/_dts/blocks/src/system/runtime/header/enhanceHeaderSection.d.ts +3 -5
- package/dist/_dts/blocks/src/system/runtime/header/headerScrollRuntime.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/header/runtimeContract.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +24 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.validationErrors.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/view.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.frame.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.server.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.pass-contract.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.state.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/shared/components/FeedbackMessage.d.ts +17 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/spacing.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/boxStyleClassNames.d.ts +90 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +7 -1
- package/dist/_dts/blocks/src/system/transforms/registry/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +29 -1
- package/dist/_dts/blocks/src/system/transforms/registry/core.d.ts +4 -1
- package/dist/_dts/blocks/src/system/transforms/registry/headerRuntime.d.ts +3 -0
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +4 -40
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +41 -43
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +4 -2
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +2 -17
- package/dist/_dts/content-editor/src/FooterNavigationLayoutControl.d.ts +5 -0
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +2 -2
- package/dist/_dts/content-editor/src/footerComposer.d.ts +2 -1
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +21 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +2 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +11 -1
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +26 -0
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +6 -6
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +6 -6
- package/dist/_dts/content-model/src/templates/defaults.d.ts +7 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +2 -2
- package/dist/_dts/core/src/booking-time-zone.d.ts +6 -0
- package/dist/_dts/core/src/branded.d.ts +4 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +25 -4
- package/dist/_dts/core/src/footer-composition-types.d.ts +4 -4
- package/dist/_dts/core/src/footer-navigation-layout.d.ts +4 -0
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/public-event-booking-availability.d.ts +8 -0
- package/dist/_dts/core/src/secret.d.ts +44 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +379 -18
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/preparedManifest.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/blockPayload.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonVariantField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeSelectField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/inline-text/InlineTextField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/OfferingsPreviewGroupOrderField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/FooterSidebarDisclosure.d.ts +8 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +15 -17
- package/dist/_dts/preview-next/src/client/preview/PreviewFooterEditorPanel.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewSiteFontStorageContext.d.ts +6 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +6 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +7 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeCustomizeTypes.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +12 -11
- package/dist/_dts/preview-next/src/client/preview/siteChromeSelectionRows.d.ts +53 -0
- package/dist/_dts/preview-next/src/client/preview/siteFontPreview.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/siteStyleAccess.d.ts +1 -6
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +6 -15
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +4 -6
- package/dist/_dts/preview-next/src/client/sdk/contentStorage.d.ts +10 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -1
- package/dist/_dts/preview-next/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +3 -5
- package/dist/_dts/preview-next/src/refresh-contract.d.ts +1 -0
- package/dist/_dts/preview-next/src/route-contract.d.ts +7 -0
- package/dist/_dts/sdk/src/config/types.d.ts +1 -0
- package/dist/_dts/sdk/src/config/validation.d.ts +2 -0
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +64 -79
- package/dist/_dts/sdk/src/next/catch-all-theme-admission.d.ts +23 -0
- package/dist/_dts/sdk/src/next/index.d.ts +8 -6
- package/dist/_dts/sdk/src/next/resolveTheme.d.ts +1 -2
- package/dist/_dts/sdk/src/next/types.d.ts +10 -0
- package/dist/_dts/sdk/src/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -16
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +4 -3
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +5 -3
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +4 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +15 -2
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +11 -0
- package/dist/_dts/sdk/src/theme-bridge/types.d.ts +4 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blockOverrides.d.ts +1 -1
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +184 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +96 -0
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +78 -0
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/parseThemeForPersistence.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +9 -57
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +6 -3
- package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +8 -7
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +11 -0
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -0
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +5 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +51 -4
- package/dist/_dts/theme-core/src/cards/core.d.ts +54 -10
- package/dist/_dts/theme-core/src/cards/decorations.d.ts +33 -0
- package/dist/_dts/theme-core/src/cards/generateDefaultCardSystem.d.ts +7 -2
- package/dist/_dts/theme-core/src/cards/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/cards/openCardVariant.d.ts +24 -0
- package/dist/_dts/theme-core/src/cards/roles.d.ts +38 -0
- package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +53 -8
- package/dist/_dts/theme-core/src/cards/types.d.ts +489 -21
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +59 -0
- package/dist/_dts/theme-core/src/header/paintTargets.d.ts +2 -2
- package/dist/_dts/theme-core/src/header/scrollTreatment.d.ts +3 -2
- package/dist/_dts/theme-core/src/lib/media.d.ts +583 -10
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +5085 -1524
- package/dist/_dts/theme-core/src/palette/utils/contrast.d.ts +1 -0
- package/dist/_dts/theme-core/src/palette/utils/opaqueSurfaceColor.d.ts +6 -0
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -1
- package/dist/_dts/theme-core/src/schema.d.ts +5300 -2019
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +84 -102
- package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +12 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +9 -4
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +0 -20
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +84 -102
- package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +48 -0
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +6 -14
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +29 -102
- package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +3 -76
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +21 -385
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -7
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipelineHelpers.d.ts +17 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +10 -18
- package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +281 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutResolution.d.ts +13 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyles.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/{headerLookTypes.d.ts → headerLayoutTypes.d.ts} +18 -90
- package/dist/_dts/theme-core/src/site-styles/headerNavStyles.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +7 -11
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -4
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/imageSurfaceBackground.d.ts +14 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +6 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignAppearanceAvailability.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +22 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +9 -8
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntentEquality.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +14 -41
- package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +19 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +32 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +9 -68
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +13 -12
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +50 -39
- package/dist/_dts/theme-core/src/siteChromePlanning.d.ts +9 -9
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +39 -0
- package/dist/_dts/ui/src/navigation-tabs.d.ts +3 -2
- package/dist/client/{CourseRegistrationWizard-xRmA7REV.mjs → CourseRegistrationWizard-DGW9F0SQ.mjs} +7 -7
- package/dist/client/{DiscountCodeDisclosure-B9vriL5C.mjs → DiscountCodeDisclosure-BPZ-yfGI.mjs} +1 -1
- package/dist/client/{EventCombined.client-BgVnVTlz.mjs → EventCombined.client-Cjt3kKYR.mjs} +4 -4
- package/dist/client/{EventListing.client-CqdsO7jO.mjs → EventListing.client-DY9dn6Fh.mjs} +2 -2
- package/dist/client/{FeedbackMessage-ByMrs3cr.mjs → FeedbackMessage-CtLvvS_d.mjs} +15 -3
- package/dist/client/{LeafletStaticMap-CKPxot9M.mjs → LeafletStaticMap--2c61XYn.mjs} +1 -1
- package/dist/client/{StepIndicator-DGCYuBJ1.mjs → StepIndicator-CLjQhkDb.mjs} +3 -3
- package/dist/client/{accordion-BfN5Eqd-.mjs → accordion-_boYwHHi.mjs} +1 -1
- package/dist/client/{bookingForm-DOvCpBFP.mjs → bookingForm--AqEfyBX.mjs} +56 -39
- package/dist/client/bookings.mjs +1348 -1157
- package/dist/client/{carousel-DPNmiH0f.mjs → carousel-CVI2dqZr.mjs} +2 -2
- package/dist/client/{carousel.client-CpwTUhIo.mjs → carousel.client-59G_WMr4.mjs} +1 -1
- package/dist/client/{cart--egVXlrR.mjs → cart-DR6IiPz9.mjs} +3 -3
- package/dist/client/{checkout-DywWtMcq.mjs → checkout-CsrGAfQt.mjs} +3 -3
- package/dist/client/client.mjs +20935 -19889
- package/dist/client/{colorStyles-BWpj_h4C.mjs → colorStyles-CrxJrPjJ.mjs} +277 -1
- package/dist/client/{context-CJz1Vlsz.mjs → context-B83PiNzm.mjs} +6 -21
- package/dist/client/{courseRegistration-Dk9qFVwt.mjs → courseRegistration-aNJVaLa3.mjs} +3 -3
- package/dist/client/{eventCalendar-Bkz2HjlS.mjs → eventCalendar-OZ7h59VN.mjs} +6 -6
- package/dist/client/{eventCombined-D4kipYWg.mjs → eventCombined-BbJ6bFKz.mjs} +3 -3
- package/dist/client/{eventDetails-Dz_5ix2Q.mjs → eventDetails-BLyUBiCT.mjs} +3 -3
- package/dist/client/{eventListing-D0vm-zST.mjs → eventListing-DuP1yhBS.mjs} +3 -3
- package/dist/client/{eventRegistration-Cw1E4Q4p.mjs → eventRegistration-BXyECPa-.mjs} +11 -12
- package/dist/client/{form-C2Zf1n3K.mjs → form-BA4t3kKU.mjs} +4 -4
- package/dist/client/{headerSection-CP05gzdc.mjs → headerSection-CpNaJxhW.mjs} +151 -104
- package/dist/client/hooks.mjs +6328 -6104
- package/dist/client/{locationMap-Cl3x9PYJ.mjs → locationMap-3HGMCL7_.mjs} +3 -3
- package/dist/client/{media-CNE1Z-wb.mjs → media-BOHuueS5.mjs} +16 -4
- package/dist/client/{newsletterForm-DyEJoClm.mjs → newsletterForm-C2s6Mw67.mjs} +4 -4
- package/dist/client/{pricing-DGuNR1W4.mjs → pricing-BiqIMgZk.mjs} +1 -1
- package/dist/client/{productDetail-Cq-HrGew.mjs → productDetail-C9joWhdE.mjs} +3 -3
- package/dist/client/{productList-DbB3jwqd.mjs → productList-CjzdU3pB.mjs} +3 -3
- package/dist/client/{propsDecoder-CiTuhUwY.mjs → propsDecoder-CBPGXEYX.mjs} +2480 -2478
- package/dist/client/rendering/client.mjs +5371 -6741
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +18616 -17447
- package/dist/client/{scrollToBlock-CShkRqab.mjs → scrollToBlock-DZ73aEX6.mjs} +1 -1
- package/dist/client/{shop-Cu4Ib-ZA.mjs → shop-CQRai7hj.mjs} +36 -25
- package/dist/client/{shop-commerce-BzpsOdh7.mjs → shop-commerce-hP9UboOx.mjs} +8 -8
- package/dist/client/{shop-commerce-store-DaE7Fhj8.mjs → shop-commerce-store-DiD5a32e.mjs} +1 -1
- package/dist/client/{shopShared-cF0c20vB.mjs → shopShared-DP8DXTkF.mjs} +12 -6
- package/dist/client/{useEventFilters-QZ3HMgaJ.mjs → useEventFilters-pF_OJNQP.mjs} +137 -81
- package/dist/client/{usePolling-BKf0GcE-.mjs → usePolling-Cls91SD2.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +202 -129
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +7406 -29
- package/dist/preview-next/middleware.mjs +196 -128
- package/dist/{previewAuthStore-BesgU5Xu.mjs → previewAuthStore-CX1C_KJ4.mjs} +195 -128
- package/dist/{sdk-runtime-C20CVWbb.mjs → sdk-runtime-5CcPAI14.mjs} +2 -2
- package/dist/{separator-BE3NCquy.mjs → separator-BXlYN_gr.mjs} +1 -1
- package/dist/server/components.mjs +22644 -21375
- package/dist/server/config-validation.mjs +6507 -6309
- package/dist/server/config.mjs +6511 -6313
- package/dist/server/data.mjs +6311 -6104
- package/dist/server/date-time.mjs +22 -13
- package/dist/server/index.mjs +196 -129
- package/dist/server/next.mjs +22782 -21578
- package/dist/server/page-converter.mjs +4769 -6213
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +20525 -20291
- package/dist/server/rendering.mjs +22677 -21389
- package/dist/server/routing.mjs +6651 -5398
- package/dist/server/server.mjs +6389 -6256
- package/dist/server/theme-bridge.mjs +2251 -2465
- package/dist/server/theme.mjs +974 -642
- package/dist/styles/index.css +317 -337
- package/package.json +3 -2
- package/dist/_dts/block-form/src/client/blockDraftSaveability.d.ts +0 -1
- package/dist/_dts/block-form/src/widgets/index.d.ts +0 -20
- package/dist/_dts/blocks/src/system/runtime/api/requestBody.d.ts +0 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +0 -66
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyleCatalog.d.ts +0 -254
- package/dist/_dts/theme-core/src/site-styles/headerLegacyLooks.d.ts +0 -372
- package/dist/_dts/theme-core/src/site-styles/headerLookBranding.d.ts +0 -106
- package/dist/_dts/theme-core/src/site-styles/headerLookSelection.d.ts +0 -2
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +0 -7
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompilerPrimitives.d.ts +0 -23
- package/dist/client/clsx-DgIEfj3H.mjs +0 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-
|
|
2
|
+
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-BPZ-yfGI.mjs";
|
|
3
3
|
import { useEffect, useReducer, useRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/CheckIcon.tsx
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
-
import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-
|
|
5
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
6
|
-
import { t as FeedbackMessage } from "./FeedbackMessage-
|
|
2
|
+
import { Wt as assertNever$1, Z as themeButtonClassName, o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder, vt as assertNever } from "./propsDecoder-CBPGXEYX.mjs";
|
|
3
|
+
import { n as useBlockApi } from "./context-B83PiNzm.mjs";
|
|
4
|
+
import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-DZ73aEX6.mjs";
|
|
5
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-BPZ-yfGI.mjs";
|
|
6
|
+
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
7
7
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
|
|
8
8
|
import { n as consumeSearchParams } from "./urlParams-D71VXFGx.mjs";
|
|
9
9
|
import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
|
|
10
|
-
import { _ as MembershipCardView, a as getDiscountApplyFeedback, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as
|
|
11
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store-
|
|
10
|
+
import { _ as MembershipCardView, a as getDiscountApplyFeedback, b as PassesMembershipsSectionView, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassPurchaseUnavailable } from "./shopShared-DP8DXTkF.mjs";
|
|
11
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-DiD5a32e.mjs";
|
|
12
12
|
import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
|
|
13
13
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -135,6 +135,30 @@ const SHOP_ANCHOR_ID = "shop";
|
|
|
135
135
|
function ShopClient(props) {
|
|
136
136
|
return /* @__PURE__ */ jsx(PassesMembershipsController, { render: props.render });
|
|
137
137
|
}
|
|
138
|
+
function PassProductCard(props) {
|
|
139
|
+
const action = props.display.action;
|
|
140
|
+
if (action.kind === "unavailable") return /* @__PURE__ */ jsx(PassCardView, {
|
|
141
|
+
display: props.display,
|
|
142
|
+
action: /* @__PURE__ */ jsx(PassPurchaseUnavailable, { label: action.label })
|
|
143
|
+
});
|
|
144
|
+
return /* @__PURE__ */ jsx(PassCardView, {
|
|
145
|
+
display: props.display,
|
|
146
|
+
action: /* @__PURE__ */ jsx("button", {
|
|
147
|
+
type: "button",
|
|
148
|
+
className: themeButtonClassName({
|
|
149
|
+
variant: props.buttonVariant,
|
|
150
|
+
size: "md",
|
|
151
|
+
extraClassName: "shop__cta"
|
|
152
|
+
}),
|
|
153
|
+
onClick: () => props.onBuy(action.product),
|
|
154
|
+
children: action.label
|
|
155
|
+
}),
|
|
156
|
+
feedback: /* @__PURE__ */ jsx(ShopAddFeedback, {
|
|
157
|
+
active: props.feedbackActive,
|
|
158
|
+
itemLabel: action.product.name
|
|
159
|
+
})
|
|
160
|
+
});
|
|
161
|
+
}
|
|
138
162
|
function getCheckoutModalTitle(checkout) {
|
|
139
163
|
if (!checkout) return "";
|
|
140
164
|
if (checkout.item.productType === "membership") return "Subscribe to Membership";
|
|
@@ -365,25 +389,12 @@ function PassesMembershipsController({ render }) {
|
|
|
365
389
|
})
|
|
366
390
|
}) : null }),
|
|
367
391
|
passCards: display.passes.map((passDisplay) => {
|
|
368
|
-
|
|
369
|
-
if (!pass) return null;
|
|
370
|
-
return /* @__PURE__ */ jsx(PassCardView, {
|
|
392
|
+
return /* @__PURE__ */ jsx(PassProductCard, {
|
|
371
393
|
display: passDisplay,
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
size: "md",
|
|
377
|
-
extraClassName: "shop__cta"
|
|
378
|
-
}),
|
|
379
|
-
onClick: () => handleBuyPass(pass),
|
|
380
|
-
children: passDisplay.actionLabel
|
|
381
|
-
}),
|
|
382
|
-
feedback: /* @__PURE__ */ jsx(ShopAddFeedback, {
|
|
383
|
-
active: passAddFeedback.activeKey === pass.id,
|
|
384
|
-
itemLabel: pass.name
|
|
385
|
-
})
|
|
386
|
-
}, pass.id);
|
|
394
|
+
buttonVariant: hydration.buttonVariant,
|
|
395
|
+
feedbackActive: passAddFeedback.activeKey === passDisplay.id,
|
|
396
|
+
onBuy: handleBuyPass
|
|
397
|
+
}, passDisplay.id);
|
|
387
398
|
}),
|
|
388
399
|
membershipCards: display.memberships.map((membershipDisplay) => {
|
|
389
400
|
const membership = hydration.memberships.find((candidate) => candidate.id === membershipDisplay.id);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { a as getCurrentResolveImageUrlContext, c as resolveImageUrlWithContext, t as ImagePresets } from "./media-
|
|
4
|
-
import { n as useBlockApi } from "./context-
|
|
5
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
6
|
-
import { t as FeedbackMessage } from "./FeedbackMessage-
|
|
2
|
+
import { Ct as reportWorkflowError, J as RichTextDocSchema, Z as themeButtonClassName, a as buildProductDetailDisplay, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, nt as logger, o as formatCommercePrice, p as productItemKey, u as buildProductCartItem, vt as assertNever, yt as clearWorkflowFeedback } from "./propsDecoder-CBPGXEYX.mjs";
|
|
3
|
+
import { a as getCurrentResolveImageUrlContext, c as resolveImageUrlWithContext, t as ImagePresets } from "./media-BOHuueS5.mjs";
|
|
4
|
+
import { n as useBlockApi } from "./context-B83PiNzm.mjs";
|
|
5
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-BPZ-yfGI.mjs";
|
|
6
|
+
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
7
7
|
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-Ct8Mxna3.mjs";
|
|
8
8
|
import { t as consumeSearchParam } from "./urlParams-D71VXFGx.mjs";
|
|
9
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
9
|
+
import { t as CarouselNodeClient } from "./carousel.client-59G_WMr4.mjs";
|
|
10
10
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
|
|
11
|
-
import { C as
|
|
12
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
11
|
+
import { C as ProductGalleryFrameView, S as ProductDetailView, T as VariantSelectView, a as getDiscountApplyFeedback, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as ProductListSectionView, x as ProductCardView } from "./shopShared-DP8DXTkF.mjs";
|
|
12
|
+
import { n as useCommerceCart } from "./shop-commerce-store-DiD5a32e.mjs";
|
|
13
13
|
import * as React$1 from "react";
|
|
14
14
|
import React, { useEffect, useState } from "react";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-
|
|
2
|
+
import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-CBPGXEYX.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
|
|
5
5
|
const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as BlockApiProvider } from "./context-
|
|
5
|
-
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-
|
|
6
|
-
import { t as FeedbackMessage } from "./FeedbackMessage-
|
|
2
|
+
import { E as ok, T as err } from "./colorStyles-CrxJrPjJ.mjs";
|
|
3
|
+
import { vt as assertNever } from "./propsDecoder-CBPGXEYX.mjs";
|
|
4
|
+
import { t as BlockApiProvider } from "./context-B83PiNzm.mjs";
|
|
5
|
+
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-BPZ-yfGI.mjs";
|
|
6
|
+
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
7
7
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
8
8
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
9
9
|
import * as React$1 from "react";
|
|
@@ -197,6 +197,12 @@ function PassCardView(props) {
|
|
|
197
197
|
]
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
+
function PassPurchaseUnavailable(props) {
|
|
201
|
+
return /* @__PURE__ */ jsx("p", {
|
|
202
|
+
className: "shop__purchase-unavailable",
|
|
203
|
+
children: props.label
|
|
204
|
+
});
|
|
205
|
+
}
|
|
200
206
|
function MembershipCardView(props) {
|
|
201
207
|
return /* @__PURE__ */ jsxs("article", {
|
|
202
208
|
className: "shop__card shop__card--membership",
|
|
@@ -648,4 +654,4 @@ function mountShopBlockIsland(root, props, Component, label) {
|
|
|
648
654
|
});
|
|
649
655
|
}
|
|
650
656
|
//#endregion
|
|
651
|
-
export {
|
|
657
|
+
export { ProductGalleryFrameView as C, ProductDetailView as S, VariantSelectView as T, MembershipCardView as _, getDiscountApplyFeedback as a, PassesMembershipsSectionView as b, aggregateCartDiscountUiState as c, planDirectShopCheckoutRequest as d, planUnifiedCheckoutRequest as f, CheckoutShellView as g, CartShellView as h, getAppliedDiscountCode as i, checkoutFormForDiscountUiState as l, useTransientShopAddFeedback as m, useDiscountApply as n, initialDiscountApplyState as o, ShopAddFeedback as p, discountApplyReducer as r, isDiscountApplyInFlight as s, mountShopBlockIsland as t, planCartDiscountAvailabilityRequests as u, PassCardView as v, ProductListSectionView as w, ProductCardView as x, PassPurchaseUnavailable as y };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
5
|
-
import {
|
|
2
|
+
import { d as hexToRgb, u as relativeLuminance } from "./colorStyles-CrxJrPjJ.mjs";
|
|
3
|
+
import { $ as resolveOnColorForThemeToken, A as normalizeOptionalId, D as getEventRuntimeFiltersKey, I as formatEventTeacherLine, L as formatTime, M as formatEventCompactDateRail, O as normalizeCsvIds, P as formatEventPrice, Q as isCssColorLiteral, V as resolveEventCta, W as getEventAvailability, Z as themeButtonClassName, et as resolveTokenOrCssColorValue, j as formatDate, k as normalizeCsvString, tt as normalizeCardVariantRole, vt as assertNever } from "./propsDecoder-CBPGXEYX.mjs";
|
|
4
|
+
import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-BOHuueS5.mjs";
|
|
5
|
+
import { n as useBlockApi } from "./context-B83PiNzm.mjs";
|
|
6
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap--2c61XYn.mjs";
|
|
6
7
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
7
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
//#region ../theme-core/src/palette/utils/textColor.ts
|
|
@@ -258,9 +259,8 @@ const EventCard = ({ event, cardVariant = "default", buttonVariant = "primary",
|
|
|
258
259
|
const formattedDate = formatDate(event.startsAt, { timeZone });
|
|
259
260
|
const formattedTime = `${formatTime(event.startsAt, { timeZone })} - ${formatTime(event.endsAt, { timeZone })}`;
|
|
260
261
|
const cta = resolveEventCta(event, buttonText);
|
|
261
|
-
const isSoldOut =
|
|
262
|
-
const
|
|
263
|
-
const cardClass = `card-${normalizeCardVariantRole(cardVariant) ?? "default"}`;
|
|
262
|
+
const { available: spotsLeft, isFull: isSoldOut } = getEventAvailability(event);
|
|
263
|
+
const cardClass = `card-role-${normalizeCardVariantRole(cardVariant) ?? "default"}`;
|
|
264
264
|
const buttonClass = themeButtonClassName({
|
|
265
265
|
variant: buttonVariant,
|
|
266
266
|
size: "md"
|
|
@@ -282,83 +282,139 @@ const EventCard = ({ event, cardVariant = "default", buttonVariant = "primary",
|
|
|
282
282
|
return /* @__PURE__ */ jsxs("article", {
|
|
283
283
|
className: `${cardClass} group rb-flex rb-flex-col rb-h-full event-card ${eventCardOrientationClass(orientation)}`,
|
|
284
284
|
"data-orientation": orientation,
|
|
285
|
-
children: [
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
className: "event-category-badge",
|
|
309
|
-
"data-category-id": category?.id,
|
|
310
|
-
style: categoryBadge.style,
|
|
311
|
-
children: categoryBadge.label
|
|
312
|
-
}),
|
|
313
|
-
/* @__PURE__ */ jsx("h3", {
|
|
314
|
-
className: "card-title rb-mb-3",
|
|
315
|
-
children: title
|
|
316
|
-
}),
|
|
317
|
-
/* @__PURE__ */ jsx("div", {
|
|
318
|
-
className: "rb-mb-2 rb-caption",
|
|
319
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
320
|
-
className: "rb-flex rb-items-center rb-gap-2",
|
|
321
|
-
children: [/* @__PURE__ */ jsx(CalendarIcon$1, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("time", { children: formattedDate }), /* @__PURE__ */ jsx("p", {
|
|
322
|
-
className: "rb-pl-6",
|
|
323
|
-
children: formattedTime
|
|
324
|
-
})] })]
|
|
325
|
-
})
|
|
326
|
-
}),
|
|
327
|
-
showVenue && event.venue && /* @__PURE__ */ jsxs("div", {
|
|
328
|
-
className: "rb-mb-3",
|
|
329
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
330
|
-
className: "rb-flex rb-items-center rb-gap-2 rb-caption",
|
|
331
|
-
children: [/* @__PURE__ */ jsx(MapPinIcon$1, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("strong", { children: event.venue.name }), event.venue.address ? ` · ${event.venue.address}` : null] })]
|
|
332
|
-
}), showMap && allowMap && event.venue.location && mapSlot && /* @__PURE__ */ jsx("div", {
|
|
333
|
-
className: "rb-mt-2",
|
|
334
|
-
children: mapSlot
|
|
335
|
-
})]
|
|
336
|
-
}),
|
|
337
|
-
teacherLine && /* @__PURE__ */ jsx("p", {
|
|
338
|
-
className: "rb-mb-3 rb-caption status-muted",
|
|
339
|
-
children: teacherLine
|
|
340
|
-
}),
|
|
341
|
-
showSummary && summary && /* @__PURE__ */ jsx("p", {
|
|
342
|
-
className: "card-body rb-mb-3 rb-line-clamp-2 rb-caption",
|
|
343
|
-
children: summary
|
|
344
|
-
}),
|
|
345
|
-
/* @__PURE__ */ jsxs("div", {
|
|
346
|
-
className: "event-card-footer rb-mt-auto rb-pt-4 rb-flex rb-flex-col rb-gap-3",
|
|
347
|
-
children: [capacityText && /* @__PURE__ */ jsx("p", {
|
|
348
|
-
className: "event-card-capacity rb-caption status-muted rb-text-center",
|
|
349
|
-
children: capacityText
|
|
350
|
-
}), !isSoldOut && /* @__PURE__ */ jsx("a", {
|
|
351
|
-
href: cta.href,
|
|
352
|
-
target: cta.external ? "_blank" : void 0,
|
|
353
|
-
rel: cta.external ? "noopener noreferrer" : void 0,
|
|
354
|
-
className: `${buttonClass} event-card-cta`,
|
|
355
|
-
children: cta.label
|
|
356
|
-
})]
|
|
357
|
-
})
|
|
358
|
-
]
|
|
285
|
+
children: [/* @__PURE__ */ jsx(EventCardMedia, {
|
|
286
|
+
categoryBadge,
|
|
287
|
+
categoryId: category?.id,
|
|
288
|
+
hasImage,
|
|
289
|
+
image
|
|
290
|
+
}), /* @__PURE__ */ jsx(EventCardContent, {
|
|
291
|
+
allowMap,
|
|
292
|
+
buttonClass,
|
|
293
|
+
capacityText,
|
|
294
|
+
categoryBadge,
|
|
295
|
+
categoryId: category?.id,
|
|
296
|
+
cta,
|
|
297
|
+
event,
|
|
298
|
+
formattedDate,
|
|
299
|
+
formattedTime,
|
|
300
|
+
hasImage,
|
|
301
|
+
mapSlot,
|
|
302
|
+
showMap,
|
|
303
|
+
showSummary,
|
|
304
|
+
showVenue,
|
|
305
|
+
summary,
|
|
306
|
+
teacherLine,
|
|
307
|
+
title
|
|
359
308
|
})]
|
|
360
309
|
});
|
|
361
310
|
};
|
|
311
|
+
function EventCardMedia(props) {
|
|
312
|
+
if (!props.hasImage || !props.image) return null;
|
|
313
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
314
|
+
className: "card-media event-card-media",
|
|
315
|
+
children: [
|
|
316
|
+
/* @__PURE__ */ jsx("div", {
|
|
317
|
+
className: "event-card-overlay",
|
|
318
|
+
"aria-hidden": "true"
|
|
319
|
+
}),
|
|
320
|
+
/* @__PURE__ */ jsx(MediaNodeServer, {
|
|
321
|
+
value: props.image,
|
|
322
|
+
className: "event-card-image",
|
|
323
|
+
size: ImagePresets.card
|
|
324
|
+
}),
|
|
325
|
+
props.categoryBadge && /* @__PURE__ */ jsx("span", {
|
|
326
|
+
className: "event-category-badge event-category-badge--overlay",
|
|
327
|
+
"data-category-id": props.categoryId,
|
|
328
|
+
style: props.categoryBadge.style,
|
|
329
|
+
children: props.categoryBadge.label
|
|
330
|
+
})
|
|
331
|
+
]
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
function EventCardContent(props) {
|
|
335
|
+
const { event } = props;
|
|
336
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
337
|
+
className: "card-content rb-flex rb-flex-1 rb-flex-col",
|
|
338
|
+
children: [
|
|
339
|
+
!props.hasImage && props.categoryBadge && /* @__PURE__ */ jsx("span", {
|
|
340
|
+
className: "event-category-badge",
|
|
341
|
+
"data-category-id": props.categoryId,
|
|
342
|
+
style: props.categoryBadge.style,
|
|
343
|
+
children: props.categoryBadge.label
|
|
344
|
+
}),
|
|
345
|
+
/* @__PURE__ */ jsx("h3", {
|
|
346
|
+
className: "card-title rb-mb-3",
|
|
347
|
+
children: props.title
|
|
348
|
+
}),
|
|
349
|
+
/* @__PURE__ */ jsx("div", {
|
|
350
|
+
className: "rb-mb-2 rb-caption",
|
|
351
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
352
|
+
className: "rb-flex rb-items-center rb-gap-2",
|
|
353
|
+
children: [/* @__PURE__ */ jsx(CalendarIcon$1, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("time", { children: props.formattedDate }), /* @__PURE__ */ jsx("p", {
|
|
354
|
+
className: "rb-pl-6",
|
|
355
|
+
children: props.formattedTime
|
|
356
|
+
})] })]
|
|
357
|
+
})
|
|
358
|
+
}),
|
|
359
|
+
/* @__PURE__ */ jsx(EventCardVenue, {
|
|
360
|
+
event,
|
|
361
|
+
showVenue: props.showVenue,
|
|
362
|
+
showMap: props.showMap,
|
|
363
|
+
allowMap: props.allowMap,
|
|
364
|
+
mapSlot: props.mapSlot
|
|
365
|
+
}),
|
|
366
|
+
props.teacherLine && /* @__PURE__ */ jsx("p", {
|
|
367
|
+
className: "rb-mb-3 rb-caption status-muted",
|
|
368
|
+
children: props.teacherLine
|
|
369
|
+
}),
|
|
370
|
+
props.showSummary && props.summary && /* @__PURE__ */ jsx("p", {
|
|
371
|
+
className: "card-body rb-mb-3 rb-line-clamp-2 rb-caption",
|
|
372
|
+
children: props.summary
|
|
373
|
+
}),
|
|
374
|
+
/* @__PURE__ */ jsx(EventCardFooter, {
|
|
375
|
+
buttonClass: props.buttonClass,
|
|
376
|
+
capacityText: props.capacityText,
|
|
377
|
+
cta: props.cta
|
|
378
|
+
})
|
|
379
|
+
]
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
function EventCardVenue(props) {
|
|
383
|
+
const venue = props.showVenue ? props.event.venue : null;
|
|
384
|
+
if (!venue) return null;
|
|
385
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
386
|
+
className: "rb-mb-3",
|
|
387
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
388
|
+
className: "rb-flex rb-items-center rb-gap-2 rb-caption",
|
|
389
|
+
children: [/* @__PURE__ */ jsx(MapPinIcon$1, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), venue.address ? ` · ${venue.address}` : null] })]
|
|
390
|
+
}), props.showMap && props.allowMap && venue.location && props.mapSlot && /* @__PURE__ */ jsx("div", {
|
|
391
|
+
className: "rb-mt-2",
|
|
392
|
+
children: props.mapSlot
|
|
393
|
+
})]
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
function EventCardFooter(props) {
|
|
397
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
398
|
+
className: "event-card-footer rb-mt-auto rb-pt-4 rb-flex rb-flex-col rb-gap-3",
|
|
399
|
+
children: [
|
|
400
|
+
props.capacityText && /* @__PURE__ */ jsx("p", {
|
|
401
|
+
className: "event-card-capacity rb-caption status-muted rb-text-center",
|
|
402
|
+
children: props.capacityText
|
|
403
|
+
}),
|
|
404
|
+
props.cta.hidden && props.capacityText !== props.cta.label && /* @__PURE__ */ jsx("p", {
|
|
405
|
+
className: "event-card-status rb-caption status-muted rb-text-center",
|
|
406
|
+
children: props.cta.label
|
|
407
|
+
}),
|
|
408
|
+
!props.cta.hidden && /* @__PURE__ */ jsx("a", {
|
|
409
|
+
href: props.cta.href,
|
|
410
|
+
target: props.cta.external ? "_blank" : void 0,
|
|
411
|
+
rel: props.cta.external ? "noopener noreferrer" : void 0,
|
|
412
|
+
className: `${props.buttonClass} event-card-cta`,
|
|
413
|
+
children: props.cta.label
|
|
414
|
+
})
|
|
415
|
+
]
|
|
416
|
+
});
|
|
417
|
+
}
|
|
362
418
|
function eventCardOrientationClass(orientation) {
|
|
363
419
|
switch (orientation) {
|
|
364
420
|
case "horizontal": return "event-card--horizontal";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { r as formatPrice } from "./StepIndicator-
|
|
2
|
+
import { vt as assertNever$2 } from "./propsDecoder-CBPGXEYX.mjs";
|
|
3
|
+
import { r as formatPrice } from "./StepIndicator-CLjQhkDb.mjs";
|
|
4
4
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
5
5
|
//#region ../core/src/date-math.ts
|
|
6
6
|
function addDaysToDate(date, dayCount) {
|