@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
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type CuratedSiteStyle } from '../../../../theme-core/src/site-styles/previewCompiler';
|
|
2
|
+
import { type FooterLookId, type HeaderLayoutId, type HeaderLogoContext, type HeaderStyleId, type FooterLookCustomizationWritePlan } from '../../../../theme-core/src/site-styles/index';
|
|
3
|
+
import type { SelectionSnapshot, StyleConfiguratorState } from './StyleConfigurator.state';
|
|
4
|
+
export type SiteChromeSelectionOption<TId extends string | null> = Readonly<{
|
|
5
|
+
id: TId;
|
|
6
|
+
label: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type SiteChromeSelectionCatalogOption<TId extends string> = Readonly<{
|
|
10
|
+
id: TId;
|
|
11
|
+
label: string;
|
|
12
|
+
}>;
|
|
13
|
+
export type SiteChromeFooterSelectionRowModel<TId extends string> = Readonly<{
|
|
14
|
+
options: readonly SiteChromeSelectionOption<TId | null>[];
|
|
15
|
+
diagnostics: readonly string[];
|
|
16
|
+
renderedLookId: TId;
|
|
17
|
+
}>;
|
|
18
|
+
export type SiteChromeSelectionModels = Readonly<{
|
|
19
|
+
headerLayout: Readonly<{
|
|
20
|
+
options: readonly SiteChromeSelectionOption<HeaderLayoutId>[];
|
|
21
|
+
renderedLayoutId: HeaderLayoutId;
|
|
22
|
+
}>;
|
|
23
|
+
headerStyle: Readonly<{
|
|
24
|
+
options: readonly SiteChromeSelectionOption<HeaderStyleId>[];
|
|
25
|
+
renderedStyleId: HeaderStyleId;
|
|
26
|
+
}>;
|
|
27
|
+
footer: SiteChromeFooterSelectionRowModel<FooterLookId>;
|
|
28
|
+
}>;
|
|
29
|
+
type SiteChromeSelectionModelInput = Readonly<{
|
|
30
|
+
state: StyleConfiguratorState;
|
|
31
|
+
siteStyle: CuratedSiteStyle;
|
|
32
|
+
headerLogoContext?: HeaderLogoContext;
|
|
33
|
+
}>;
|
|
34
|
+
export declare function buildSiteChromeSelectionModels(input: SiteChromeSelectionModelInput): SiteChromeSelectionModels;
|
|
35
|
+
export declare function cycleSiteChromeSelectionId<TId extends string>(options: readonly SiteChromeSelectionOption<TId | null>[], currentId: TId | null, direction: 'prev' | 'next'): TId | null | undefined;
|
|
36
|
+
export type SiteChromeSelectionCommand = Readonly<{
|
|
37
|
+
surface: 'header';
|
|
38
|
+
layoutId: HeaderLayoutId;
|
|
39
|
+
styleId: HeaderStyleId;
|
|
40
|
+
}> | Readonly<{
|
|
41
|
+
surface: 'footer';
|
|
42
|
+
lookId: FooterLookId | null;
|
|
43
|
+
}>;
|
|
44
|
+
export type SiteChromeSelectionPlan = Readonly<{
|
|
45
|
+
kind: 'header';
|
|
46
|
+
next: Pick<SelectionSnapshot, 'headerLayoutId' | 'headerStyleId'>;
|
|
47
|
+
}> | Readonly<{
|
|
48
|
+
kind: 'footer';
|
|
49
|
+
writePlan: FooterLookCustomizationWritePlan<FooterLookId>;
|
|
50
|
+
next: Pick<SelectionSnapshot, 'footerLookId'>;
|
|
51
|
+
}>;
|
|
52
|
+
export declare function planSiteChromeSelection(command: SiteChromeSelectionCommand): SiteChromeSelectionPlan;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SiteFontRecord } from './typographyFontCatalog';
|
|
2
|
+
export declare function buildSiteFontFaceCss(siteFonts: readonly SiteFontRecord[], siteFontStorageUrl?: string): string;
|
|
3
|
+
export declare function SiteFontFaceStyles({ siteFonts, }: Readonly<{
|
|
4
|
+
siteFonts: readonly SiteFontRecord[];
|
|
5
|
+
}>): import("react").JSX.Element | null;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import type { PreviewRuntimeSession } from "../../auth-contract";
|
|
2
2
|
export type SiteStyleAccess = Readonly<{
|
|
3
3
|
kind: "hidden";
|
|
4
|
-
}> | Readonly<{
|
|
5
|
-
kind: "preview-only";
|
|
6
4
|
}> | Readonly<{
|
|
7
5
|
kind: "apply-allowed";
|
|
8
6
|
}>;
|
|
9
7
|
export type VisibleSiteStyleAccess = Extract<SiteStyleAccess, Readonly<{
|
|
10
|
-
kind: "
|
|
8
|
+
kind: "apply-allowed";
|
|
11
9
|
}>>;
|
|
12
10
|
export declare function resolveSiteStyleAccess(session: PreviewRuntimeSession | null): SiteStyleAccess;
|
|
13
11
|
export declare function canInspectSiteStyle(access: SiteStyleAccess): access is VisibleSiteStyleAccess;
|
|
14
|
-
export declare function canApplySiteStyle(access: VisibleSiteStyleAccess): access is Extract<VisibleSiteStyleAccess, Readonly<{
|
|
15
|
-
kind: "apply-allowed";
|
|
16
|
-
}>>;
|
|
@@ -1,34 +1,25 @@
|
|
|
1
1
|
import type { Theme } from '../../../../blocks/src/index';
|
|
2
2
|
import type { ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
|
|
3
|
-
import type { FooterLookId, HeaderLayoutId,
|
|
4
|
-
import {
|
|
3
|
+
import type { FooterLookId, HeaderLayoutId, HeaderLogoContext, HeaderStyleId, SiteChromeSurface } from '../../../../theme-core/src/site-styles/index';
|
|
4
|
+
import { type CuratedSiteStyle, type SelectionFallbackWarning, type SiteThemeSelectionsResult, type SiteStyleId } from '../../../../theme-core/src/site-styles/previewCompiler';
|
|
5
5
|
export type SiteStylePreviewSelection = Readonly<{
|
|
6
6
|
siteStyleId: SiteStyleId;
|
|
7
7
|
buttonStyleSelection: ButtonStyleSelection;
|
|
8
8
|
palette: Theme['palette'];
|
|
9
9
|
typography: Theme['typography'];
|
|
10
|
-
headerLayoutId
|
|
11
|
-
headerStyleId
|
|
12
|
-
headerLookId: HeaderLookId | null;
|
|
13
|
-
footerLookId: FooterLookId | null;
|
|
14
|
-
}>;
|
|
15
|
-
export type SiteStyleChromePreviewSelection = Readonly<{
|
|
16
|
-
headerLookId: HeaderLookId | null;
|
|
10
|
+
headerLayoutId: HeaderLayoutId;
|
|
11
|
+
headerStyleId: HeaderStyleId;
|
|
17
12
|
footerLookId: FooterLookId | null;
|
|
18
13
|
}>;
|
|
19
14
|
export type SiteStylePreviewPlan = Readonly<{
|
|
20
15
|
themeOverlay: Theme;
|
|
21
|
-
resolvedSelections:
|
|
22
|
-
headerLayoutId: HeaderLayoutId;
|
|
23
|
-
headerStyleId: HeaderStyleId;
|
|
24
|
-
}>;
|
|
25
|
-
chromeSelection: SiteStyleChromePreviewSelection;
|
|
16
|
+
resolvedSelections: SiteThemeSelectionsResult['resolvedSelections'];
|
|
26
17
|
warnings: ReadonlyArray<SelectionFallbackWarning>;
|
|
27
18
|
}>;
|
|
28
19
|
type SiteStylePreviewPlanCommonInput = Readonly<{
|
|
29
20
|
siteStyle: CuratedSiteStyle;
|
|
30
21
|
selection: SiteStylePreviewSelection;
|
|
31
|
-
|
|
22
|
+
headerLogoContext?: HeaderLogoContext;
|
|
32
23
|
}>;
|
|
33
24
|
export type SiteStylePreviewPlanInput = SiteStylePreviewPlanCommonInput & (Readonly<{
|
|
34
25
|
compilation: Readonly<{
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import type { Theme } from '../../../../blocks/src/index';
|
|
2
2
|
import type { ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
|
|
3
|
-
import type { FooterLookId,
|
|
3
|
+
import type { FooterLookId, HeaderLayoutStyleSelection, HeaderLogoContext } from '../../../../theme-core/src/site-styles/index';
|
|
4
4
|
import type { SelectionSnapshot } from './StyleConfigurator.state';
|
|
5
5
|
export type StyleConfiguratorInitialSelections = Readonly<{
|
|
6
6
|
selectionVersion?: number | null;
|
|
7
7
|
selectionUpdatedAt?: string | null;
|
|
8
8
|
buttonStyleSelection: ButtonStyleSelection | null;
|
|
9
|
-
|
|
10
|
-
headerStyleId?: HeaderStyleId | null;
|
|
11
|
-
headerLookId?: HeaderLookId | null;
|
|
9
|
+
headerSelection?: HeaderLayoutStyleSelection | null;
|
|
12
10
|
footerLookId?: FooterLookId | null;
|
|
13
11
|
}>;
|
|
14
12
|
type StyleConfiguratorSnapshotInput = Readonly<{
|
|
15
13
|
theme?: Theme | null;
|
|
16
14
|
initialSelections: StyleConfiguratorInitialSelections;
|
|
17
|
-
|
|
15
|
+
headerLogoContext?: HeaderLogoContext;
|
|
18
16
|
}>;
|
|
19
17
|
/**
|
|
20
18
|
* The parsed theme is the complete palette authority for preview.
|
|
@@ -22,6 +20,6 @@ type StyleConfiguratorSnapshotInput = Readonly<{
|
|
|
22
20
|
export declare function resolveStyleConfiguratorInitialSnapshot(input: Readonly<{
|
|
23
21
|
theme?: Theme | null;
|
|
24
22
|
initialSelections: StyleConfiguratorSnapshotInput['initialSelections'];
|
|
25
|
-
|
|
23
|
+
headerLogoContext?: HeaderLogoContext;
|
|
26
24
|
}>): SelectionSnapshot | null;
|
|
27
25
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type PreviewContentStorageSource = Readonly<{
|
|
2
|
+
supabaseUrl?: unknown;
|
|
3
|
+
}>;
|
|
4
|
+
/**
|
|
5
|
+
* Reads the current content storage endpoint from the legacy content wire
|
|
6
|
+
* shape. Keep the provider-specific field in this adapter so preview
|
|
7
|
+
* rendering only depends on the neutral storage URL it receives.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveContentStorageUrl(content: PreviewContentStorageSource): string | undefined;
|
|
10
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { ApiClient } from '../../../../api/src/request';
|
|
3
3
|
import { type BookingOfferingPresetSummary, type Theme } from '../../../../blocks/src/index';
|
|
4
|
-
import type { FieldWidgetComponent } from '../../../../block-form/src/
|
|
4
|
+
import type { FieldWidgetComponent } from '../../../../block-form/src/index';
|
|
5
5
|
import type { SdkConfigForBlockPicker } from '../../../../editor-blocks/src/index';
|
|
6
6
|
import { __testUtils, createPreviewEntryPickerAdapter, createPreviewLinkAdapters, createPreviewReferenceAdapters, createPreviewSiteOptionAdapters } from './widgetAdapters';
|
|
7
7
|
/**
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import type { CookieStoreLike } from './session';
|
|
2
|
-
type PreviewKeepAliveLogger = {
|
|
2
|
+
export type PreviewKeepAliveLogger = {
|
|
3
3
|
debug?: (message: string, meta?: Record<string, unknown>) => void;
|
|
4
4
|
warn?: (message: string, meta?: Record<string, unknown>) => void;
|
|
5
5
|
error?: (message: string, meta?: Record<string, unknown>) => void;
|
|
6
6
|
};
|
|
7
|
-
type CreatePreviewKeepAliveRouteHandlerOptions = {
|
|
7
|
+
export type CreatePreviewKeepAliveRouteHandlerOptions = {
|
|
8
8
|
maxAge?: number;
|
|
9
9
|
refreshThresholdSeconds?: number;
|
|
10
10
|
logger?: PreviewKeepAliveLogger;
|
|
11
|
-
|
|
12
|
-
supabaseAnonKey?: string;
|
|
11
|
+
dashboardUrl?: string | null;
|
|
13
12
|
getCookies?: () => Promise<CookieStoreLike>;
|
|
14
13
|
fetcher?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
15
14
|
};
|
|
16
15
|
export declare function createPreviewKeepAliveRouteHandler(options?: CreatePreviewKeepAliveRouteHandlerOptions): (request: Request) => Promise<Response>;
|
|
17
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { parsePreviewRefreshResponse, previewRefreshRequestSchema, previewRefreshResponseSchema, type PreviewRefreshParseError, type PreviewRefreshRequest, type PreviewRefreshResponse, } from '../../api/src/preview-auth';
|
|
@@ -7,6 +7,9 @@ export declare const previewDashboardApiEndpoints: {
|
|
|
7
7
|
readonly previewAuthExchange: {
|
|
8
8
|
readonly path: "/api/preview/auth/exchange";
|
|
9
9
|
};
|
|
10
|
+
readonly previewAuthRefresh: {
|
|
11
|
+
readonly path: "/api/preview/auth/refresh";
|
|
12
|
+
};
|
|
10
13
|
readonly onboardingPreviewStatus: {
|
|
11
14
|
readonly path: "/api/public/sites/{siteId}/onboarding/preview-status";
|
|
12
15
|
};
|
|
@@ -26,6 +29,9 @@ export type PreviewAuthEntryUrlInput = Readonly<{
|
|
|
26
29
|
export type PreviewAuthExchangeUrlInput = Readonly<{
|
|
27
30
|
dashboardBaseUrl: string;
|
|
28
31
|
}>;
|
|
32
|
+
export type PreviewAuthRefreshUrlInput = Readonly<{
|
|
33
|
+
dashboardBaseUrl: string;
|
|
34
|
+
}>;
|
|
29
35
|
export type OnboardingPreviewEndpointUrlInput = Readonly<{
|
|
30
36
|
dashboardBaseUrl: string;
|
|
31
37
|
siteId: string;
|
|
@@ -33,5 +39,6 @@ export type OnboardingPreviewEndpointUrlInput = Readonly<{
|
|
|
33
39
|
export declare const previewAuthEntryPathname: "/preview/auth";
|
|
34
40
|
export declare function buildPreviewAuthEntryUrl(input: PreviewAuthEntryUrlInput): string;
|
|
35
41
|
export declare function buildPreviewAuthExchangeUrl(input: PreviewAuthExchangeUrlInput): string;
|
|
42
|
+
export declare function buildPreviewAuthRefreshUrl(input: PreviewAuthRefreshUrlInput): string;
|
|
36
43
|
export declare function buildOnboardingPreviewStatusUrl(input: OnboardingPreviewEndpointUrlInput): string;
|
|
37
44
|
export declare function buildOnboardingResendConfirmationUrl(input: OnboardingPreviewEndpointUrlInput): string;
|
|
@@ -62,6 +62,7 @@ export type LoaderWhenValue = boolean | LoaderParamBinding;
|
|
|
62
62
|
export interface SdkConfigLoader {
|
|
63
63
|
endpoint: SdkLoaderEndpoint;
|
|
64
64
|
params: Record<string, LoaderParamValue>;
|
|
65
|
+
requiredParams?: readonly string[];
|
|
65
66
|
mode?: 'server' | 'client';
|
|
66
67
|
when?: LoaderWhenValue;
|
|
67
68
|
}
|
|
@@ -258,6 +258,7 @@ export declare const sdkConfigLoaderSchema: z.ZodObject<{
|
|
|
258
258
|
}>>;
|
|
259
259
|
}, z.core.$strip>;
|
|
260
260
|
}, z.core.$strip>]>>;
|
|
261
|
+
requiredParams: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
261
262
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
262
263
|
server: "server";
|
|
263
264
|
client: "client";
|
|
@@ -324,6 +325,7 @@ export declare const sdkDataLoadersSchema: z.ZodOptional<z.ZodRecord<z.ZodString
|
|
|
324
325
|
}>>;
|
|
325
326
|
}, z.core.$strip>;
|
|
326
327
|
}, z.core.$strip>]>>;
|
|
328
|
+
requiredParams: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
327
329
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
328
330
|
server: "server";
|
|
329
331
|
client: "client";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { TipTapNode, TipTapMark, RichTextDoc, InlineText, InlineTextAccentTone, InlineTextHighlightTone, InlineTextMark, InlineTextRun, Media, LinkValue, InternalRouteOnlyLinkValue, InternalResolvedLinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, RichTextPrimitiveProps, RichTextVariant, } from './content';
|
|
2
|
-
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CartContent, CardStylesContent, CheckoutContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent, CtaFullContent, DisplayMode, EmbedContent, EventCalendarContent, EventDetailsContent, EventLayout, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FaqItem, FilterAutoShow, FormBlockContent, GiftingContent, HeroContent, HeroCta, HeroCtaInput, HeroMedia, ImageColSize, ImageGalleryContent, LocationMapContent, LayoutAlign, LayoutWidth, MediaTextAlignment, MediaTextAspectRatio, MediaTextContent, MediaTextImagePosition, NewsletterSignupContent, NewsletterSignupPreset, ProductDetailContent, ProductListContent, RecurringScheduleContent, SectionStylesContent, SemanticIconId, SemanticSpacing, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, StackContentAlignment, StackImagePosition, SystemBlockContentByFullKind, SystemBlockContentByKind, SystemBlockContentFor, SystemBlockShortKind, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, ThumbnailPadding, ThumbnailShape, VideoGridContent, WeekStart, BlockIconValue, FeatureCardIconTreatment, } from './system-block-content';
|
|
2
|
+
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CartContent, CardRole, CardStylesContent, CheckoutContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent, ContentFrameIntent, CtaFullContent, DisplayMode, EmbedContent, EventCalendarContent, EventDetailsContent, EventLayout, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FaqItem, FeatureCardLegacySurfaceRole, FeatureCardSurfaceRole, FilterAutoShow, FormBlockContent, GiftingContent, HeroContent, HeroCta, HeroCtaInput, HeroMedia, ImageColSize, ImageGalleryContent, LocationMapContent, LayoutAlign, LayoutWidth, MediaTextAlignment, MediaTextAspectRatio, MediaTextContent, MediaTextImagePosition, NewsletterSignupContent, NewsletterSignupPreset, ProductDetailContent, ProductListContent, RecurringScheduleContent, SectionStylesContent, SemanticIconId, SemanticSpacing, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, StackContentAlignment, StackImagePosition, SystemBlockContentByFullKind, SystemBlockContentByKind, SystemBlockContentFor, SystemBlockShortKind, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, ThumbnailPadding, ThumbnailShape, VideoGridContent, WeekStart, BlockIconValue, FeatureCardIconTreatment, } from './system-block-content';
|
|
3
3
|
export type { PageOutline, PageRuntimeBoundary, BlockOutline, RouteMap, RouteMapEntry, OccurrenceContextData, EntrySubrouteContextData, } from './page';
|
|
4
4
|
export type { Theme, ThemeTokens } from './theme';
|
|
5
5
|
export type { CustomCssDeclarationsInput, CustomCssRuleInput, CustomCssNestedRuleInput, CustomCssAtRuleInput, KeyframesAtRuleInput, FontFaceAtRuleInput, MediaAtRuleInput, SupportsAtRuleInput, RawAtRuleInput, } from './custom-css';
|
|
@@ -9,6 +9,9 @@ import type { EventRegistrationContent } from './event-registration-content';
|
|
|
9
9
|
export type { EventRegistrationContent } from './event-registration-content';
|
|
10
10
|
import type { Brand, EventCategoryId, RichTextDoc, VenueId } from '../../../core/src/index';
|
|
11
11
|
import type { SiteFooterContent as BlocksSiteFooterContent } from '../../../blocks/src/system/blocks/site-footer';
|
|
12
|
+
import type { EventCalendarContent as BlocksEventCalendarContent } from '../../../blocks/src/system/blocks/events/event-calendar';
|
|
13
|
+
import type { CalendarTabViews as BlocksCalendarTabViews, CalendarView as BlocksCalendarView, ColumnOption as BlocksColumnOption, DisplayMode as BlocksDisplayMode, EventLayout as BlocksEventLayout, FilterAutoShow as BlocksFilterAutoShow, WeekStart as BlocksWeekStart } from '../../../blocks/src/system/blocks/events/shared/types';
|
|
14
|
+
import type { CardStylesContent as BlocksCardStylesContent, ContainerStylesContent as BlocksContainerStylesContent, ContentFrameIntent as BlocksContentFrameIntent, SectionStylesContent as BlocksSectionStylesContent } from '../../../blocks/src/index';
|
|
12
15
|
type UnknownRecord = Record<string, unknown>;
|
|
13
16
|
type ImageMedia = Omit<Media, 'type'> & {
|
|
14
17
|
type: 'image';
|
|
@@ -16,47 +19,11 @@ type ImageMedia = Omit<Media, 'type'> & {
|
|
|
16
19
|
type StandardAspectRatio = 'auto' | '16/9' | '4/3' | '1/1' | '3/4' | '9/16';
|
|
17
20
|
export type SemanticSpacing = 'none' | 'compact' | 'cozy' | 'medium' | 'comfortable' | 'spacious';
|
|
18
21
|
export type ImageColSize = '1/4' | '1/3' | '2/5' | '1/2' | '2/3';
|
|
19
|
-
export type SectionStylesContent =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
image?: Media | null;
|
|
25
|
-
objectFit?: 'fill' | 'fit' | 'original' | 'custom' | null;
|
|
26
|
-
scale?: string | null;
|
|
27
|
-
position?: string | null;
|
|
28
|
-
opacity?: number | null;
|
|
29
|
-
overlay?: {
|
|
30
|
-
type?: 'none' | 'color' | 'gradient' | null;
|
|
31
|
-
color?: string | null;
|
|
32
|
-
gradient?: string | null;
|
|
33
|
-
opacity?: number | null;
|
|
34
|
-
} | null;
|
|
35
|
-
textColor?: string | null;
|
|
36
|
-
headingColor?: string | null;
|
|
37
|
-
} | null;
|
|
38
|
-
spacing?: string | null;
|
|
39
|
-
} | null;
|
|
40
|
-
export type CardStylesContent = {
|
|
41
|
-
background?: Record<string, unknown> | null;
|
|
42
|
-
border?: {
|
|
43
|
-
enabled?: boolean | null;
|
|
44
|
-
width?: 'none' | '1' | '2' | '3' | null;
|
|
45
|
-
colorToken?: string | null;
|
|
46
|
-
} | null;
|
|
47
|
-
spacing?: string | null;
|
|
48
|
-
raised?: boolean | null;
|
|
49
|
-
rounded?: string | null;
|
|
50
|
-
cardVariant?: string | null;
|
|
51
|
-
treatment?: 'accent-quote' | 'editorial-rule' | 'soft-panel' | 'editorial-serif-quote' | 'editorial-open' | null;
|
|
52
|
-
} | null;
|
|
53
|
-
export type ContainerStylesContent = {
|
|
54
|
-
background?: Record<string, unknown> | null;
|
|
55
|
-
spacing?: string | null;
|
|
56
|
-
raised?: boolean | null;
|
|
57
|
-
rounded?: string | null;
|
|
58
|
-
fullWidth?: boolean | null;
|
|
59
|
-
} | null;
|
|
22
|
+
export type SectionStylesContent = BlocksSectionStylesContent;
|
|
23
|
+
export type CardStylesContent = BlocksCardStylesContent;
|
|
24
|
+
export type ContainerStylesContent = BlocksContainerStylesContent;
|
|
25
|
+
/** The compiled frame a Look asks for around a block's content. */
|
|
26
|
+
export type ContentFrameIntent = BlocksContentFrameIntent;
|
|
60
27
|
export type CtaIconName = 'ArrowRight' | 'ArrowLeft' | 'ChevronRight' | 'ChevronLeft' | 'ChevronUp' | 'ChevronDown' | 'ExternalLink' | 'Download' | 'Upload' | 'Mail' | 'Phone' | 'Play' | 'ShoppingCart' | 'Calendar' | 'MapPin' | 'Info' | 'Plus' | 'Minus' | 'Check' | 'X';
|
|
61
28
|
export type SemanticIconId = 'protection-trust' | 'confidentiality' | 'care-support' | 'partnership' | 'warmth' | 'community' | 'personal-guidance' | 'conversation' | 'friendly-welcome' | 'insight-learning' | 'natural-wellbeing' | 'growth' | 'gentle-care' | 'special-touch' | 'ideas' | 'direction' | 'focus' | 'quality' | 'highlight' | 'verified-quality' | 'learning' | 'training' | 'programmes-dates' | 'place' | 'products' | 'packages' | 'time' | 'practical-service' | 'at-home' | 'worldwide' | 'professional-service';
|
|
62
29
|
export type BlockIconValue = {
|
|
@@ -128,6 +95,7 @@ export type CollectionContent = {
|
|
|
128
95
|
_type: string;
|
|
129
96
|
[key: string]: unknown;
|
|
130
97
|
}>;
|
|
98
|
+
_cardStyles?: CardStylesContent;
|
|
131
99
|
};
|
|
132
100
|
export type ColumnsContent = {
|
|
133
101
|
equalHeight?: boolean;
|
|
@@ -172,48 +140,36 @@ export type EmbedContent = {
|
|
|
172
140
|
layout?: string | null;
|
|
173
141
|
emptyMessage?: string | null;
|
|
174
142
|
};
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
export type
|
|
181
|
-
export type
|
|
143
|
+
/**
|
|
144
|
+
* The calendar's own vocabularies, aliased rather than restated. They are the
|
|
145
|
+
* event blocks' types; a hand-kept copy of a closed union is exactly what let
|
|
146
|
+
* the calendar contract drift in the first place.
|
|
147
|
+
*/
|
|
148
|
+
export type EventLayout = BlocksEventLayout;
|
|
149
|
+
export type ColumnOption = BlocksColumnOption;
|
|
150
|
+
export type WeekStart = BlocksWeekStart;
|
|
151
|
+
export type DisplayMode = BlocksDisplayMode;
|
|
152
|
+
export type FilterAutoShow = BlocksFilterAutoShow;
|
|
153
|
+
export type CalendarTabViews = BlocksCalendarTabViews;
|
|
154
|
+
export type CalendarView = BlocksCalendarView;
|
|
182
155
|
export type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'accent';
|
|
156
|
+
/**
|
|
157
|
+
* The canonical card-role vocabulary. A site style owns the implementation of
|
|
158
|
+
* each role; content names the role.
|
|
159
|
+
*/
|
|
160
|
+
export type CardRole = 'none' | 'open' | 'default' | 'alternative';
|
|
183
161
|
export type CardVariantRole = 'default' | 'alternative';
|
|
184
|
-
export type LegacyCardVariantRoleAlias = 'variant1' | 'variant2';
|
|
162
|
+
export type LegacyCardVariantRoleAlias = 'variant1' | 'variant2' | 'statement';
|
|
185
163
|
export type EventCardVariantInput = CardVariantRole | LegacyCardVariantRoleAlias;
|
|
186
|
-
export type EventSurfacePreset = 'course' | 'class' | 'workshop' | 'retreat' | 'performance';
|
|
164
|
+
export type EventSurfacePreset = 'course' | 'term' | 'class' | 'workshop' | 'retreat' | 'performance';
|
|
187
165
|
export type EventSurfaceScope = 'all' | 'regularClassSchedule' | 'specialDatedEvents' | 'custom';
|
|
188
166
|
export type EventScheduleScope = 'any' | 'recurring' | 'oneOff';
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
layout?: EventLayout | null;
|
|
196
|
-
columns?: ColumnOption | null;
|
|
197
|
-
eventsPerPage?: '6' | '10' | '12' | '20' | '24' | '30' | null;
|
|
198
|
-
loadMoreText?: string | null;
|
|
199
|
-
startOfWeek?: WeekStart | null;
|
|
200
|
-
calendarTabViews?: CalendarTabViews | null;
|
|
201
|
-
defaultCalendarView?: CalendarView | null;
|
|
202
|
-
showFilters?: boolean | null;
|
|
203
|
-
showCategoryFilter?: FilterAutoShow | null;
|
|
204
|
-
showVenueFilter?: boolean | null;
|
|
205
|
-
showStaffFilter?: boolean | null;
|
|
206
|
-
eventSurface?: EventSurfaceScope | null;
|
|
207
|
-
filterEventPresets?: readonly EventSurfacePreset[] | null;
|
|
208
|
-
scheduleScope?: EventScheduleScope | null;
|
|
209
|
-
filterCategoryIds?: readonly EventCategoryId[] | null;
|
|
210
|
-
filterStaffMemberId?: string | null;
|
|
211
|
-
filterVenueId?: VenueId | null;
|
|
212
|
-
buttonVariant?: ButtonVariant | null;
|
|
213
|
-
buttonText?: string | null;
|
|
214
|
-
emptyMessage?: string | null;
|
|
215
|
-
_sectionStyles?: SectionStylesContent;
|
|
216
|
-
};
|
|
167
|
+
/**
|
|
168
|
+
* Aliased from the blocks package rather than restated. The calendar's content
|
|
169
|
+
* is large, and a hand-kept copy drifts silently — the SDK copy was missing
|
|
170
|
+
* eight fields before this. `SiteFooterContent` is aliased for the same reason.
|
|
171
|
+
*/
|
|
172
|
+
export type EventCalendarContent = BlocksEventCalendarContent;
|
|
217
173
|
export type EventDetailsContent = {
|
|
218
174
|
heading?: string | null;
|
|
219
175
|
showVenue?: boolean | null;
|
|
@@ -304,8 +260,28 @@ export type FaqContent = {
|
|
|
304
260
|
items?: FaqItem[] | null;
|
|
305
261
|
_containerStyles?: ContainerStylesContent;
|
|
306
262
|
};
|
|
263
|
+
/**
|
|
264
|
+
* This block's historical per-item surface values. They are aliases of card
|
|
265
|
+
* roles now, and stay parseable forever — persisted content carries them.
|
|
266
|
+
*/
|
|
267
|
+
export type FeatureCardLegacySurfaceRole = 'open' | 'panel';
|
|
268
|
+
/**
|
|
269
|
+
* A feature card's own surface choice: the canonical card-role vocabulary
|
|
270
|
+
* *minus* `open`, plus this block's two historical values.
|
|
271
|
+
*
|
|
272
|
+
* `panel` is a legacy alias of the `alternative` role. `open` is the one worth
|
|
273
|
+
* knowing about: on this block it predates the role vocabulary and keeps its
|
|
274
|
+
* old meaning — an unmarked boxless card, which is role `none` — so it is
|
|
275
|
+
* excluded from the canonical half and supplied only by the legacy half.
|
|
276
|
+
*
|
|
277
|
+
* The consequence is permanent and deliberate: **the canonical `open` role is
|
|
278
|
+
* not addressable per item on a feature card.** The alias always wins. A card
|
|
279
|
+
* that should render the marked, boxless `open` role gets it from the block's
|
|
280
|
+
* card role, not from `surfaceRole`.
|
|
281
|
+
*/
|
|
282
|
+
export type FeatureCardSurfaceRole = Exclude<CardRole, 'open'> | FeatureCardLegacySurfaceRole;
|
|
307
283
|
export type FeatureCard = {
|
|
308
|
-
surfaceRole?:
|
|
284
|
+
surfaceRole?: FeatureCardSurfaceRole | null;
|
|
309
285
|
media?: Media | null;
|
|
310
286
|
aspectRatio?: StandardAspectRatio | null;
|
|
311
287
|
icon?: BlockIconValue | SemanticIconId | null;
|
|
@@ -384,6 +360,7 @@ export type MediaTextImagePosition = 'left' | 'right';
|
|
|
384
360
|
export type MediaTextAspectRatio = 'auto' | '16/9' | '4/3' | '1/1' | '3/4' | '9/16';
|
|
385
361
|
export type MediaTextImageShape = 'default' | 'square' | 'rounded' | 'circle' | 'arch';
|
|
386
362
|
export type MediaTextContent = {
|
|
363
|
+
eyebrow?: string | null;
|
|
387
364
|
title?: string | null;
|
|
388
365
|
titleAlignment?: MediaTextAlignment | null;
|
|
389
366
|
imagePosition?: MediaTextImagePosition | null;
|
|
@@ -402,6 +379,13 @@ export type MediaTextContent = {
|
|
|
402
379
|
text: RichTextDoc;
|
|
403
380
|
wrapTextInCard?: boolean | null;
|
|
404
381
|
_textCardStyles?: unknown;
|
|
382
|
+
/**
|
|
383
|
+
* Compiler-owned. Its card role rides into the author's text card, so this
|
|
384
|
+
* block has no card control of its own.
|
|
385
|
+
*/
|
|
386
|
+
_cardStyles?: CardStylesContent;
|
|
387
|
+
/** Compiler-owned: the frame a Look asks for around the block's content. */
|
|
388
|
+
_frameStyles?: ContentFrameIntent | null;
|
|
405
389
|
};
|
|
406
390
|
export type NewsletterSignupPreset = 'emailOnly' | 'emailName' | 'emailFirstLast' | 'emailNameCompany';
|
|
407
391
|
export type NewsletterSignupContent = {
|
|
@@ -527,6 +511,7 @@ type TeamMembersCommonContent = {
|
|
|
527
511
|
stackContentAlignment?: StackContentAlignment | null;
|
|
528
512
|
columns?: string | number | null;
|
|
529
513
|
gap?: SemanticSpacing;
|
|
514
|
+
_cardStyles?: CardStylesContent;
|
|
530
515
|
};
|
|
531
516
|
export type TeamMembersContent = (TeamMembersCommonContent & {
|
|
532
517
|
source?: 'manual' | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Theme } from '../contracts';
|
|
2
|
+
import type { LoadContentResult } from '../rendering/helpers/loadContent';
|
|
3
|
+
import type { SdkRenderingMode } from '../rendering/renderingMode';
|
|
4
|
+
import type { ResolveThemeResult } from './resolveTheme';
|
|
5
|
+
export type CatchAllRenderingAdmission = Readonly<{
|
|
6
|
+
kind: 'overrides-only';
|
|
7
|
+
content: LoadContentResult;
|
|
8
|
+
rendering: Extract<SdkRenderingMode, {
|
|
9
|
+
kind: 'overrides-only';
|
|
10
|
+
}>;
|
|
11
|
+
}> | Readonly<{
|
|
12
|
+
kind: 'not-found';
|
|
13
|
+
}> | Readonly<{
|
|
14
|
+
kind: 'themed';
|
|
15
|
+
content: LoadContentResult;
|
|
16
|
+
theme: Theme;
|
|
17
|
+
warning?: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function admitCatchAllRendering(input: Readonly<{
|
|
20
|
+
content: LoadContentResult;
|
|
21
|
+
rendering: SdkRenderingMode;
|
|
22
|
+
resolveTheme: () => Promise<ResolveThemeResult>;
|
|
23
|
+
}>): Promise<CatchAllRenderingAdmission>;
|
|
@@ -38,6 +38,8 @@
|
|
|
38
38
|
* @packageDocumentation
|
|
39
39
|
*/
|
|
40
40
|
export { createCatchAllPage, InvalidCatchAllRenderingOptionsError, } from './catch-all';
|
|
41
|
+
export { MISSING_SDK_THEME_ERROR_CODE, MissingSdkThemeError, } from '../rendering/themeAdmission';
|
|
42
|
+
export type { MissingSdkThemeReason } from '../rendering/themeAdmission';
|
|
41
43
|
export { RiverbankContentLoadError, SdkContentLoadError, classifyContentLoadError, isSdkContentLoadError, toContentLoadFailureLogFields, type CatchAllContentLoadFailureContext, type CatchAllRequestContext, type ClassifiedContentLoadError, type SdkContentLoadFailure, type SdkContentLoadFailureKind, type SdkContentLoadNotFound, } from './content-load-failure';
|
|
42
44
|
export type { CreateCatchAllPageOptions, CreateCatchAllPageResult, CatchAllPageProps, CatchAllContext, ThemeSwitchConfigV1, ThemeResolverContext, } from './types';
|
|
43
45
|
export type { SdkOverrideOnlyRendering, SdkOverrideOnlyRuntime, SdkRenderingMode, } from '../rendering/renderingMode';
|
|
@@ -66,13 +68,13 @@ export interface ISRConfig {
|
|
|
66
68
|
/**
|
|
67
69
|
* Get ISR configuration based on the current environment.
|
|
68
70
|
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* import { getISRConfig } from '@riverbankcms/sdk/next';
|
|
71
|
+
* Do not use the returned value directly in a Next.js route-segment config
|
|
72
|
+
* export. Next statically analyzes those exports and requires a literal such as
|
|
73
|
+
* `export const revalidate = 300`.
|
|
73
74
|
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
75
|
+
* @deprecated Next.js route-segment config must be statically analyzable, which
|
|
76
|
+
* was this helper's intended use. Export a literal `revalidate` value and use
|
|
77
|
+
* the SDK preview integration for request-bound preview rendering instead.
|
|
76
78
|
*
|
|
77
79
|
* @returns ISR configuration with revalidate interval and preview flag
|
|
78
80
|
*/
|
|
@@ -24,11 +24,10 @@ export type ThemeOptionsForResolver = {
|
|
|
24
24
|
} | {};
|
|
25
25
|
export interface ResolveThemeInput {
|
|
26
26
|
config: Pick<RiverbankSiteConfig, 'themeSource' | 'activeTheme'>;
|
|
27
|
-
contentTheme: Theme;
|
|
27
|
+
contentTheme: Theme | null;
|
|
28
28
|
searchParams: DataLoaderSearchParams;
|
|
29
29
|
isDevelopment: boolean;
|
|
30
30
|
themeOptions: ThemeOptionsForResolver;
|
|
31
31
|
context: ThemeResolverContext;
|
|
32
32
|
}
|
|
33
|
-
export declare const MISSING_LOCAL_THEME_ERROR_MESSAGE = "[createCatchAllPage] config.themeSource is 'local' but no local theme was provided. Provide { theme }, { themes }, or { getTheme }, or set config.themeSource to 'cms'.";
|
|
34
33
|
export declare function resolveTheme(input: ResolveThemeInput): Promise<ResolveThemeResult>;
|
|
@@ -202,6 +202,16 @@ type CreateCatchAllPageBaseOptions = {
|
|
|
202
202
|
* Defaults to `config.liveUrl` or `config.previewUrl` based on preview mode.
|
|
203
203
|
*/
|
|
204
204
|
siteUrl?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Controls whether the server page reads Next.js `searchParams`.
|
|
207
|
+
*
|
|
208
|
+
* Reading that prop opts the entire route into dynamic rendering in Next.js.
|
|
209
|
+
* Set this to `ignore` for ISR routes that do not use query parameters for
|
|
210
|
+
* server-rendered themes, data loaders, redirects, or metadata.
|
|
211
|
+
*
|
|
212
|
+
* @default 'dynamic'
|
|
213
|
+
*/
|
|
214
|
+
searchParamsMode?: 'dynamic' | 'ignore';
|
|
205
215
|
/**
|
|
206
216
|
* Intercept before rendering to implement maintenance mode, access control, etc.
|
|
207
217
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createPreviewKeepAliveRouteHandler } from '@riverbankcms/preview-next/keep-alive';
|
|
1
|
+
export { createPreviewKeepAliveRouteHandler, type CreatePreviewKeepAliveRouteHandlerOptions, type PreviewKeepAliveLogger, } from '@riverbankcms/preview-next/keep-alive';
|
|
@@ -268,7 +268,7 @@ export type SiteRouteRecord = {
|
|
|
268
268
|
publishedAt?: string | null;
|
|
269
269
|
};
|
|
270
270
|
export type SiteBookingOfferingPresetSummary = ApiSiteBookingOfferingPresetSummary;
|
|
271
|
-
type SiteSelectionResponse = Pick<ApiSiteBySlugResponse, 'theme' | 'themeId' | 'selectionId' | 'selectionVersion' | 'selectionUpdatedAt' | 'selectionButtonStyleSelection' | '
|
|
271
|
+
type SiteSelectionResponse = Pick<ApiSiteBySlugResponse, 'theme' | 'themeId' | 'selectionId' | 'selectionVersion' | 'selectionUpdatedAt' | 'selectionButtonStyleSelection' | 'selectionHeaderSelection' | 'selectionFooterLookId'>;
|
|
272
272
|
export type SiteResponse = SiteSelectionResponse & {
|
|
273
273
|
site: {
|
|
274
274
|
id: string;
|
|
@@ -625,21 +625,7 @@ export type PublicProductsResponse = {
|
|
|
625
625
|
}>;
|
|
626
626
|
}>;
|
|
627
627
|
};
|
|
628
|
-
export type PublicPassesResponse =
|
|
629
|
-
passes: Array<{
|
|
630
|
-
id: string;
|
|
631
|
-
productUseCase: 'event_pass' | 'appointment_package';
|
|
632
|
-
name: string;
|
|
633
|
-
description: string | null;
|
|
634
|
-
price: number;
|
|
635
|
-
currency: string;
|
|
636
|
-
creditsTotal: number;
|
|
637
|
-
pricePerCredit: number;
|
|
638
|
-
validDays: number | null;
|
|
639
|
-
eligibleCategoryIds: string[];
|
|
640
|
-
eligibleCategoryNames: string[];
|
|
641
|
-
}>;
|
|
642
|
-
};
|
|
628
|
+
export type PublicPassesResponse = APIEndpoints['listPublicPasses']['response'];
|
|
643
629
|
export type PublicMembershipsResponse = {
|
|
644
630
|
memberships: Array<{
|
|
645
631
|
id: string;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { buildMenu, buildFooterMenu, buildFooterMenuForRole, buildLogo } from '../../navigation';
|
|
7
7
|
import type { RiverbankClient, SiteResponse } from '../../client/types';
|
|
8
|
+
import type { Theme } from '../../contracts';
|
|
8
9
|
import { type SdkThemeRuntime } from '../themeRuntime';
|
|
9
10
|
import { type SdkOverrideOnlyRendering } from '../renderingMode';
|
|
10
11
|
export type CustomHeaderData = {
|
|
@@ -22,10 +23,10 @@ export type CustomFooterData = {
|
|
|
22
23
|
routes: SiteResponse['routes'];
|
|
23
24
|
};
|
|
24
25
|
export type HeaderData = CustomHeaderData & {
|
|
25
|
-
theme:
|
|
26
|
+
theme: Theme;
|
|
26
27
|
};
|
|
27
28
|
export type FooterData = CustomFooterData & {
|
|
28
|
-
theme:
|
|
29
|
+
theme: Theme;
|
|
29
30
|
};
|
|
30
31
|
type LayoutCommonProps = {
|
|
31
32
|
siteData?: SiteResponse;
|
|
@@ -48,7 +49,7 @@ type ThemedLayoutProps = LayoutCommonProps & {
|
|
|
48
49
|
rendering?: never;
|
|
49
50
|
header?: boolean | ((data: HeaderData) => React.ReactNode);
|
|
50
51
|
footer?: boolean | ((data: FooterData) => React.ReactNode);
|
|
51
|
-
headerVariant?: 'classic' | 'centered' | '
|
|
52
|
+
headerVariant?: 'classic' | 'centered' | 'floating';
|
|
52
53
|
themeRuntime?: SdkThemeRuntime;
|
|
53
54
|
};
|
|
54
55
|
type OverrideOnlyLayoutProps = LayoutCommonProps & {
|