@riverbankcms/sdk 0.81.0 → 0.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -3
- package/dist/{PreviewEditorSidebar-O4NDX5TP.css → PreviewEditorSidebar-JA4VIPSZ.css} +1 -1
- package/dist/{PreviewEditorSidebar-RDCMEXIJ.mjs → PreviewEditorSidebar-LHGK6RIO.mjs} +40 -499
- package/dist/{SdkPreviewModeRuntime-PBGALTMK.css → PreviewEditorUI-36T7QYV4.css} +1 -1
- package/dist/{PreviewEditorUI-NYGQ6K7B.mjs → PreviewEditorUI-AXZG2SDC.mjs} +4 -6
- package/dist/{PreviewEditorUI-4JVDBZBS.css → SdkPreviewModeRuntime-FXKI6XNL.css} +1 -1
- package/dist/SdkPreviewModeRuntime-RNVRHFFR.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +838 -262
- package/dist/_dts/altcha/src/AltchaWidget.d.ts +1 -1
- package/dist/_dts/api/src/analytics.d.ts +1 -1
- package/dist/_dts/api/src/bookingConfig.d.ts +4 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -3
- package/dist/_dts/api/src/courses.d.ts +1 -1
- package/dist/_dts/api/src/event-destination-policy.d.ts +17 -0
- package/dist/_dts/api/src/index.d.ts +4 -0
- package/dist/_dts/api/src/navigation/boundaries.d.ts +64 -0
- package/dist/_dts/api/src/navigation.d.ts +2 -0
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +6 -54
- package/dist/_dts/api/src/siteGeneration.d.ts +1 -1
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +7 -6
- package/dist/_dts/api/src/types.d.ts +1 -1
- package/dist/_dts/block-form/src/context/BlockContext.d.ts +1 -1
- package/dist/_dts/block-form/src/context/DisplayLabelResolverContext.d.ts +1 -1
- package/dist/_dts/block-form/src/context/FieldPreviewResolverContext.d.ts +2 -2
- package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +1 -1
- package/dist/_dts/block-form/src/palette/PaletteContext.d.ts +1 -1
- package/dist/_dts/block-form/src/sdk-config/SdkConfigContext.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/BackgroundColorWidget/BackgroundColorWidget.d.ts +2 -1
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/BooleanField/BooleanField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/Field.d.ts +2 -2
- package/dist/_dts/block-form/src/widgets/FieldFrame.d.ts +3 -3
- package/dist/_dts/block-form/src/widgets/NumberField/NumberField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/PresetOrCustomField/PresetOrCustomField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/SdkSelectField/SdkSelectField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/SelectField/SelectField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/SelectWidget.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/SliderField/SliderField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/TextField/TextField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/TextInputWidget.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/ToggleWidget.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/stringDefaultValue.d.ts +1 -0
- package/dist/_dts/blocks/src/PageRenderer.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +8 -16
- package/dist/_dts/blocks/src/index.d.ts +2 -2
- package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/content/components/Button.d.ts +7 -7
- package/dist/_dts/blocks/src/primitives/content/components/RichText.d.ts +2 -1
- package/dist/_dts/blocks/src/primitives/content/components/Text.d.ts +2 -1
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +3 -0
- package/dist/_dts/blocks/src/primitives/layout/Grid.d.ts +2 -1
- package/dist/_dts/blocks/src/primitives/layout/Inline.d.ts +2 -1
- package/dist/_dts/blocks/src/primitives/layout/Stack.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +302 -151
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +6 -20
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +54 -54
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +4 -2
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +28 -0
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +592 -602
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +592 -604
- package/dist/_dts/blocks/src/system/blocks/products/shared.d.ts +0 -4
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +3 -0
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +6 -2
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/linkedContentEntries.d.ts +38 -0
- package/dist/_dts/blocks/src/system/defineBlock.d.ts +3 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +71 -56
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +12 -24
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +6 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/ImageResolveContext.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.shared.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/cart.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +1 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/view.d.ts +10 -13
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/view.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/BookingModeStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/CourseRegistrationWizard.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/ErrorStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/MembershipHero.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/PaymentFailedStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/PortalAuthSidebar.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/StepIndicator.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/SuccessStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/VerifyingTimeoutStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/WaitlistStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/components.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.client.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/CoursePricingDisplay.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/view.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSummaryBar.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardContent.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventSelectionStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/OrderSummary.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PastOccurrenceNotice.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SelectableOptionCard.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/StepIndicator.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +1 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +12 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.view.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DateTimeTile.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DayEventsModal.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventDetailModal.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/gifting.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/gifting.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/location-map.client.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/location-map.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/location-map.shared.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/location-map.view.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/product-list.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-add-feedback.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-commerce.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-commerce.server.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.types.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/spinner.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/ActionRow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/CheckIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/ClockIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/CrossIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/FeedbackMessage.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/FieldValidationMessage.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/MembershipHero.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/StateIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/StepIndicator.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/TerminalPanel.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +1 -1
- package/dist/_dts/content-editor/src/components/EditableBlockProvider.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +1 -1
- package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +6 -1
- package/dist/_dts/content-editor/src/primitives/PreviewTextEditor.d.ts +6 -1
- package/dist/_dts/content-editor/src/primitives/shared/activePreviewField.d.ts +2 -0
- package/dist/_dts/content-editor/src/primitives/shared/index.d.ts +1 -1
- package/dist/_dts/content-editor/src/primitives/shared/storeBinding.d.ts +3 -1
- package/dist/_dts/content-editor/src/primitives/shared/types.d.ts +5 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +7 -2
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -40
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +0 -40
- package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -1
- package/dist/_dts/core/src/event-pricing.d.ts +72 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +27 -2
- package/dist/_dts/db/src/schemas/forms.d.ts +4 -4
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +1 -1
- package/dist/_dts/editor/src/inline/InlineTextEditor.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/EditorPrimitivesProvider.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/InlineFieldContext.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/SaveContext.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/rich-text/RichTextToolbar.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/BlockTypeDropdown.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/LinkPopover.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/ToolbarIconButton.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/FormProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/AddBlockDivider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +1 -1
- 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/BlockListContext.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockThumbnail.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockTile.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/EmptyState.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/EnhancedBlockPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/HeaderActions.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
- 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/context.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/content-type-select/ContentTypeWidgetProvider.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/EntryPickerWidgetProvider.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/index.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/OfferingsPreviewGroupOrderField.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/OfferingsPreviewWidgetProvider.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/index.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/orderDomain.d.ts +29 -0
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/useImagePicker.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionWidgetProvider.d.ts +1 -1
- package/dist/_dts/media-editor/src/CropDialog.d.ts +1 -1
- package/dist/_dts/media-editor/src/CropDialogShell.d.ts +1 -1
- package/dist/_dts/media-editor/src/FileAssetPreview.d.ts +1 -1
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +1 -1
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +1 -1
- package/dist/_dts/media-editor/src/MediaPreview.d.ts +1 -1
- package/dist/_dts/media-editor/src/context.d.ts +1 -1
- package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -1
- package/dist/_dts/media-editor/src/provider.d.ts +1 -1
- package/dist/_dts/media-react/src/components/AuthenticatedImage.d.ts +1 -1
- package/dist/_dts/media-react/src/components/MediaLibrary.d.ts +1 -1
- package/dist/_dts/media-react/src/components/MediaPickerMini.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/PreviewShellSmoke.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +5 -3
- package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/layout/PreviewLayoutContext.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/MaintenanceModeBadge.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/OnboardingThemeSwitcher.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewAuthBanner.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewAuthInit.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewBlockCustomizeSelectionContext.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewConfirmationDialog.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewDesignCoordinatorContext.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewDesignHistoryOrderContext.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorGuidanceCard.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewOpenEditorButton.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewQueryProvider.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewSidebarSection.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewViewportControls.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewZoomControls.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/SelectedBlockCustomizePanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeButton.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +14 -3
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/SubrouteNoticePanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/linkedEntryEditEvents.d.ts +5 -1
- package/dist/_dts/preview-next/src/client/preview/previewChromePlacement.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeControls.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +24 -5
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/themeOverlay.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewModeRuntime.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +5 -3
- package/dist/_dts/sdk/src/__mocks__/next-cache.d.ts +4 -3
- package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +6 -14
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +31 -0
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/sync/validation.d.ts +7 -7
- package/dist/_dts/sdk/src/client/types.d.ts +36 -4
- package/dist/_dts/sdk/src/client.d.ts +1 -1
- package/dist/_dts/sdk/src/config/content-types.d.ts +3 -14
- package/dist/_dts/sdk/src/config/content-validation.d.ts +9 -214
- package/dist/_dts/sdk/src/config/types.d.ts +9 -0
- package/dist/_dts/sdk/src/config/validation.d.ts +21 -21
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +6 -6
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +4 -3
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +29 -37
- package/dist/_dts/sdk/src/rendering/components/Block.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/components/Block.server.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/components/Page.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/components/Page.server.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/components/PageHydrationBootstrap.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +10 -9
- package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +9 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -57
- package/dist/_dts/sdk/src/rendering/primitives/RichText.d.ts +2 -1
- package/dist/_dts/sdk/src/server.d.ts +1 -1
- package/dist/_dts/sdk/src/theme-bridge/ThemeBridgeProvider.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +69 -21
- package/dist/_dts/theme-core/src/ClientThemeScope.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +3 -2
- package/dist/_dts/theme-core/src/ThemeScope.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeScopeCore.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +7 -7
- package/dist/_dts/theme-core/src/buttons/types.d.ts +17 -17
- package/dist/_dts/theme-core/src/cards/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +201 -192
- package/dist/_dts/theme-core/src/mock-themes/components/PaletteCard.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/components/swatch.d.ts +1 -1
- package/dist/_dts/theme-core/src/navigation/presets.d.ts +1 -1
- package/dist/_dts/theme-core/src/navigation/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +6 -6
- package/dist/_dts/theme-core/src/schema.d.ts +233 -223
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +27 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +14 -14
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +7 -7
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +30 -0
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +2 -0
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
- package/dist/_dts/ui/src/async-boundary.d.ts +1 -1
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button-group.d.ts +3 -3
- package/dist/_dts/ui/src/calendar.d.ts +2 -2
- package/dist/_dts/ui/src/card.d.ts +6 -6
- package/dist/_dts/ui/src/combobox.d.ts +1 -1
- package/dist/_dts/ui/src/command-multi-select.d.ts +1 -1
- package/dist/_dts/ui/src/content-spinner.d.ts +1 -1
- package/dist/_dts/ui/src/delayed-spinner.d.ts +1 -1
- package/dist/_dts/ui/src/dev-toolbar.d.ts +1 -1
- package/dist/_dts/ui/src/dialog.d.ts +10 -10
- package/dist/_dts/ui/src/dropdown-menu.d.ts +1 -1
- package/dist/_dts/ui/src/editor-drawer.d.ts +1 -1
- package/dist/_dts/ui/src/empty-state.d.ts +1 -1
- package/dist/_dts/ui/src/filter-button-group.d.ts +1 -1
- package/dist/_dts/ui/src/fixed-bottom-surface.d.ts +1 -1
- package/dist/_dts/ui/src/form.d.ts +7 -7
- package/dist/_dts/ui/src/label.d.ts +1 -1
- package/dist/_dts/ui/src/menubar.d.ts +16 -16
- package/dist/_dts/ui/src/navigation-tabs.d.ts +2 -2
- package/dist/_dts/ui/src/number-input.d.ts +1 -1
- package/dist/_dts/ui/src/palette/ColorChooserDialog.d.ts +1 -1
- package/dist/_dts/ui/src/palette/ColorSlotButton.d.ts +1 -1
- package/dist/_dts/ui/src/palette/ColorSwatchButton.d.ts +1 -1
- package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +1 -1
- package/dist/_dts/ui/src/resizable-split-pane.d.ts +1 -1
- package/dist/_dts/ui/src/select.d.ts +10 -10
- package/dist/_dts/ui/src/separator.d.ts +1 -1
- package/dist/_dts/ui/src/sheet.d.ts +9 -9
- package/dist/_dts/ui/src/spinner.d.ts +1 -1
- package/dist/_dts/ui/src/tooltip.d.ts +4 -4
- package/dist/{chunk-4T5JIPWY.mjs → chunk-2BUMISSH.mjs} +1 -1
- package/dist/{chunk-3PTVPAT4.mjs → chunk-6FWNF3DJ.mjs} +237 -43
- package/dist/{chunk-E3NZYEKF.mjs → chunk-FIREV57T.mjs} +13 -2
- package/dist/{chunk-3QWQ2MUQ.mjs → chunk-G35HOQEN.mjs} +2997 -2255
- package/dist/{chunk-3VT7LZY2.mjs → chunk-HKB6XVIP.mjs} +2 -2
- package/dist/{chunk-WUHKQBB6.mjs → chunk-XQR6THQJ.mjs} +20801 -17561
- package/dist/cli/index.mjs +3274 -2518
- package/dist/cli/init-docs/content/workflow-custom-block.md +5 -0
- package/dist/client/{accordion-SFIIZWNH.mjs → accordion-G34C45TW.mjs} +2 -2
- package/dist/client/{bookingForm-CFKZVWGA.mjs → bookingForm-BLBVKSAQ.mjs} +12 -12
- package/dist/client/bookings.mjs +40 -41
- package/dist/client/{carousel-ELXWSBLA.mjs → carousel-7ZVTBRMD.mjs} +3 -3
- package/dist/client/{cart-6SSCPYY5.mjs → cart-Q6S6LZUO.mjs} +8 -7
- package/dist/client/{checkout-UFQ34HPV.mjs → checkout-5QJLDE4I.mjs} +8 -7
- package/dist/client/{chunk-G56BSZAM.mjs → chunk-5PQH4Y75.mjs} +3 -3
- package/dist/client/{chunk-PA2LJH2M.mjs → chunk-CHAB5ACD.mjs} +5 -4
- package/dist/client/{chunk-IUEDYLFJ.mjs → chunk-CSZGLBYR.mjs} +1 -1
- package/dist/client/{chunk-3PEDD5KJ.mjs → chunk-DVNUDUVT.mjs} +1 -1
- package/dist/client/{chunk-76JUETXQ.mjs → chunk-EQKYMX4N.mjs} +215 -121
- package/dist/client/{chunk-YLMKMCSJ.mjs → chunk-GFSQNTRW.mjs} +1 -3
- package/dist/client/chunk-L4J5Y62O.mjs +18 -0
- package/dist/client/{chunk-NX6X3GRF.mjs → chunk-RJHTCTCZ.mjs} +226 -188
- package/dist/client/{chunk-7BXX7WXH.mjs → chunk-S3MKFGOG.mjs} +59 -1
- package/dist/client/{chunk-RMWMT3ZD.mjs → chunk-SBBSMFFG.mjs} +1 -1
- package/dist/client/{chunk-TCJS3NY5.mjs → chunk-U2EW7RSR.mjs} +1 -1
- package/dist/client/{chunk-NP47RHIX.mjs → chunk-WJFHDTYF.mjs} +17 -34
- package/dist/client/{chunk-V6XI4M2Q.mjs → chunk-ZF4XEWDM.mjs} +1 -1
- package/dist/client/client.mjs +61332 -60062
- package/dist/client/{courseRegistration-HJIISAAG.mjs → courseRegistration-VUG2JJDB.mjs} +13 -12
- package/dist/client/{eventCalendar-F6YVUCZR.mjs → eventCalendar-E7D2LD4N.mjs} +14 -14
- package/dist/client/{eventCombined-B5DSTIOK.mjs → eventCombined-FUZ2Z3CS.mjs} +14 -14
- package/dist/client/{eventDetails-SEJDDHQC.mjs → eventDetails-QRITJAOW.mjs} +9 -9
- package/dist/client/{eventListing-TPMWIIBO.mjs → eventListing-INMQMJZ5.mjs} +14 -14
- package/dist/client/{eventRegistration-QU6W2PV6.mjs → eventRegistration-TOOJD4WU.mjs} +17 -15
- package/dist/client/{form-LVTYNTDE.mjs → form-BOWN7ZNQ.mjs} +3 -3
- package/dist/client/{headerSection-SO3MFC4U.mjs → headerSection-HFQNZOUU.mjs} +4 -4
- package/dist/client/hooks.mjs +26534 -26159
- package/dist/client/{locationMap-5E5FLAKO.mjs → locationMap-VUZGC7Y5.mjs} +2 -2
- package/dist/client/{newsletterForm-GN32JEBQ.mjs → newsletterForm-X2XQTPCB.mjs} +3 -3
- package/dist/client/{productDetail-Q346KSVR.mjs → productDetail-TA7D2G2B.mjs} +8 -7
- package/dist/client/{productList-DTDMQYGZ.mjs → productList-AZOLOZKM.mjs} +8 -7
- package/dist/client/rendering/client.mjs +1534 -1185
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +10674 -9455
- package/dist/client/{shop-OFUW7KPN.mjs → shop-ZDLO7IIG.mjs} +8 -7
- package/dist/client/spam-protection.mjs +3 -5
- package/dist/preview-next/client/runtime.css +1 -1
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/{sdk-runtime-2GIX6I7X.mjs → sdk-runtime-CTWKNBDQ.mjs} +6 -6
- package/dist/{sdk-runtime-EEMNSB7J.css → sdk-runtime-JD4A6SU6.css} +1 -1
- package/dist/server/components.mjs +7129 -6548
- package/dist/server/config-validation.mjs +26217 -25941
- package/dist/server/config.mjs +26217 -25941
- package/dist/server/data.mjs +26514 -26139
- package/dist/server/index.mjs +108 -56
- package/dist/server/next.mjs +30233 -29506
- package/dist/server/page-converter.mjs +2325 -846
- package/dist/server/prebuild.mjs +2 -1
- package/dist/server/rendering/server.mjs +8133 -7457
- package/dist/server/rendering.mjs +12160 -11484
- package/dist/server/routing.mjs +29684 -29263
- package/dist/server/server.mjs +26525 -26099
- package/dist/server/theme-bridge.mjs +142 -79
- package/dist/server/theme.mjs +129 -130
- package/dist/styles/index.css +132 -68
- package/package.json +16 -16
- package/dist/SdkPreviewModeRuntime-AKCSCZEC.mjs +0 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type ApiClient } from '../../../../api/src/request';
|
|
3
3
|
import type { Theme } from '../../../../blocks/src/index';
|
|
4
4
|
import type { ButtonPersonalityId } from '../../../../theme-core/src/buttons/index';
|
|
5
5
|
import type { PaletteOverrides, PaletteVariantId } from '../../../../theme-core/src/palette/index';
|
|
6
|
-
import type { BrandDisplayMode, FooterLookId, FooterSelectionContext, HeaderLayoutId, HeaderLookId, HeaderSelectionContext, HeaderStyleId, LogoSizePolicy, TypographyPresetId } from '../../../../theme-core/src/site-styles/index';
|
|
6
|
+
import type { BrandDisplayMode, FooterLookId, FooterSelectionContext, HeaderLayoutId, HeaderLookId, HeaderSelectionContext, HeaderStyleId, LogoSizePolicy, SiteChromeBackgroundColorToken, SiteChromeBackgroundOverride, TypographyPresetId } from '../../../../theme-core/src/site-styles/index';
|
|
7
7
|
import { type StyleConfiguratorHistoryEntry } from './StyleConfigurator.state';
|
|
8
8
|
import type { SiteStyleAccess } from './siteStyleAccess';
|
|
9
9
|
import { type SiteChromeLookOption } from './siteChromeLookRows';
|
|
@@ -44,6 +44,13 @@ type SiteChromeQuickControlApplyOutcome = Readonly<{
|
|
|
44
44
|
kind: 'skipped';
|
|
45
45
|
reason: SiteChromeQuickControlHistorySkipReason | 'superseded';
|
|
46
46
|
}> | SiteChromeQuickControlHistoryFailure;
|
|
47
|
+
export type SiteChromeBackgroundControlState = Readonly<{
|
|
48
|
+
available: boolean;
|
|
49
|
+
current: SiteChromeBackgroundOverride;
|
|
50
|
+
currentLabel: string;
|
|
51
|
+
quickTokens: readonly SiteChromeBackgroundColorToken[];
|
|
52
|
+
advancedTokens: readonly SiteChromeBackgroundColorToken[];
|
|
53
|
+
}>;
|
|
47
54
|
type SiteChromeCustomizeSurfaceState = Readonly<{
|
|
48
55
|
kind: 'unavailable';
|
|
49
56
|
}> | Readonly<{
|
|
@@ -61,6 +68,7 @@ type SiteChromeCustomizeSurfaceState = Readonly<{
|
|
|
61
68
|
logoSize: LogoSizePolicy;
|
|
62
69
|
logoSizeOptions: readonly HeaderLogoSizeOption[];
|
|
63
70
|
diagnostics: readonly string[];
|
|
71
|
+
background: SiteChromeBackgroundControlState;
|
|
64
72
|
failure: string | null;
|
|
65
73
|
applyAllowed: boolean;
|
|
66
74
|
}> | Readonly<{
|
|
@@ -71,6 +79,7 @@ type SiteChromeCustomizeSurfaceState = Readonly<{
|
|
|
71
79
|
currentLabel: string;
|
|
72
80
|
options: readonly SiteChromeLookOption<FooterLookId | null>[];
|
|
73
81
|
diagnostics: readonly string[];
|
|
82
|
+
background: SiteChromeBackgroundControlState;
|
|
74
83
|
failure: string | null;
|
|
75
84
|
applyAllowed: boolean;
|
|
76
85
|
}>;
|
|
@@ -80,6 +89,8 @@ type SiteChromeCustomizeContextValue = Readonly<{
|
|
|
80
89
|
cycleSurfaceLayout: (surface: SiteChromeEditableSurfaceKind, direction: 'prev' | 'next') => void;
|
|
81
90
|
setHeaderBrandDisplay: (value: BrandDisplayMode) => void;
|
|
82
91
|
setHeaderLogoSize: (value: LogoSizePolicy) => void;
|
|
92
|
+
cycleSurfaceBackground: (surface: SiteChromeEditableSurfaceKind, direction: 'prev' | 'next') => void;
|
|
93
|
+
chooseSurfaceBackground: (surface: SiteChromeEditableSurfaceKind, override: SiteChromeBackgroundOverride) => void;
|
|
83
94
|
siteStyleHistory: SiteStyleHistoryController;
|
|
84
95
|
quickControlHistory: SiteChromeQuickControlHistoryController;
|
|
85
96
|
}>;
|
|
@@ -110,6 +121,6 @@ export type SiteChromeCustomizeProviderProps = Readonly<{
|
|
|
110
121
|
footerSelectionContext?: Partial<FooterSelectionContext>;
|
|
111
122
|
siteStyleAccess?: SiteStyleAccess;
|
|
112
123
|
}>;
|
|
113
|
-
export declare function SiteChromeCustomizeProvider({ children, siteId, apiClient, theme, themeId, selectionId, selectionVersion, selectionUpdatedAt, initialSelections, headerSelectionContext, footerSelectionContext, siteStyleAccess, }: SiteChromeCustomizeProviderProps):
|
|
124
|
+
export declare function SiteChromeCustomizeProvider({ children, siteId, apiClient, theme, themeId, selectionId, selectionVersion, selectionUpdatedAt, initialSelections, headerSelectionContext, footerSelectionContext, siteStyleAccess, }: SiteChromeCustomizeProviderProps): React.JSX.Element;
|
|
114
125
|
export declare function useSiteChromeCustomizeOptional(): SiteChromeCustomizeContextValue | null;
|
|
115
126
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ApiClient } from '../../../../api/src/request';
|
|
2
3
|
import type { Theme } from '../../../../blocks/src/index';
|
|
3
4
|
import { type ButtonPersonalityId } from '../../../../theme-core/src/buttons/index';
|
|
@@ -37,4 +38,4 @@ export type StyleConfiguratorProps = Readonly<{
|
|
|
37
38
|
}> | null;
|
|
38
39
|
siteStyleAccess: VisibleSiteStyleAccess;
|
|
39
40
|
}>;
|
|
40
|
-
export declare function StyleConfigurator({ siteId, apiClient, theme, selectionId, selectionVersion, selectionUpdatedAt, initialSelections, headerSelectionContext, footerSelectionContext, expandedRowRequest, siteStyleAccess, }: StyleConfiguratorProps):
|
|
41
|
+
export declare function StyleConfigurator({ siteId, apiClient, theme, selectionId, selectionVersion, selectionUpdatedAt, initialSelections, headerSelectionContext, footerSelectionContext, expandedRowRequest, siteStyleAccess, }: StyleConfiguratorProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SubrouteNoticeModel } from './subrouteNotice';
|
|
2
3
|
type SubrouteNoticeProps = {
|
|
3
4
|
model: SubrouteNoticeModel;
|
|
@@ -9,5 +10,5 @@ type SubrouteNoticeProps = {
|
|
|
9
10
|
* Render-only — all wording and the CTA target are produced by
|
|
10
11
|
* {@link resolveSubrouteNotice}.
|
|
11
12
|
*/
|
|
12
|
-
export declare function SubrouteNotice({ model }: SubrouteNoticeProps):
|
|
13
|
+
export declare function SubrouteNotice({ model }: SubrouteNoticeProps): React.JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import type { LinkedContentEditTarget } from '../../../../blocks/src/system/data/index';
|
|
1
|
+
import type { LinkedContentEditTarget, PreviewLinkedEntryFieldBinding } from '../../../../blocks/src/system/data/index';
|
|
2
2
|
export declare const LINKED_ENTRY_EDIT_EVENT: "riverbank:preview:linked-entry-edit";
|
|
3
|
+
export declare const LINKED_ENTRY_FIELD_FOCUS_EVENT: "riverbank:preview:linked-entry-field-focus";
|
|
3
4
|
export type LinkedEntryEditEvent = CustomEvent<LinkedContentEditTarget>;
|
|
5
|
+
export type LinkedEntryFieldFocusEvent = CustomEvent<PreviewLinkedEntryFieldBinding>;
|
|
4
6
|
export declare function dispatchLinkedEntryEditEvent(target: LinkedContentEditTarget): void;
|
|
7
|
+
export declare function dispatchLinkedEntryFieldFocusEvent(binding: PreviewLinkedEntryFieldBinding): void;
|
|
5
8
|
export declare function isLinkedEntryEditEvent(event: Event): event is LinkedEntryEditEvent;
|
|
9
|
+
export declare function isLinkedEntryFieldFocusEvent(event: Event): event is LinkedEntryFieldFocusEvent;
|
|
@@ -17,6 +17,11 @@ export type PreviewChromeFloatingPlacement = Readonly<{
|
|
|
17
17
|
kind: 'anchor-top-right';
|
|
18
18
|
topPx: number;
|
|
19
19
|
rightPx: number;
|
|
20
|
+
}> | Readonly<{
|
|
21
|
+
kind: 'anchor-top-right-clamped';
|
|
22
|
+
topPx: number;
|
|
23
|
+
rightPx: number;
|
|
24
|
+
minTopPx: number;
|
|
20
25
|
}> | Readonly<{
|
|
21
26
|
kind: 'viewport-top-right';
|
|
22
27
|
topPx: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type KeyboardEvent, type MouseEvent, type ReactNode, type Ref } from 'react';
|
|
1
|
+
import React, { type KeyboardEvent, type MouseEvent, type ReactNode, type Ref } from 'react';
|
|
2
2
|
export type CustomizeControlUnavailableReason = 'single-option' | 'preview-only';
|
|
3
3
|
export type CustomizeControlAvailability = Readonly<{
|
|
4
4
|
kind: 'available';
|
|
@@ -31,7 +31,7 @@ export type CustomizePillButtonProps = Readonly<{
|
|
|
31
31
|
onClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
32
32
|
disabled?: boolean;
|
|
33
33
|
}>;
|
|
34
|
-
export declare function CustomizePillButton({ buttonRef, ariaLabel, open, controlsId, onClick, disabled, }: CustomizePillButtonProps):
|
|
34
|
+
export declare function CustomizePillButton({ buttonRef, ariaLabel, open, controlsId, onClick, disabled, }: CustomizePillButtonProps): React.JSX.Element;
|
|
35
35
|
export type CustomizePopoverShellProps = Readonly<{
|
|
36
36
|
panelId: string;
|
|
37
37
|
descriptionId: string;
|
|
@@ -45,7 +45,7 @@ export type CustomizePopoverShellProps = Readonly<{
|
|
|
45
45
|
spacing?: 'normal' | 'compact';
|
|
46
46
|
children: ReactNode;
|
|
47
47
|
}>;
|
|
48
|
-
export declare function CustomizePopoverShell({ panelId, descriptionId, dialogLabel, eyebrow, title, dialogRef, closeButtonRef, onClose, onKeyDown, spacing, children, }: CustomizePopoverShellProps):
|
|
48
|
+
export declare function CustomizePopoverShell({ panelId, descriptionId, dialogLabel, eyebrow, title, dialogRef, closeButtonRef, onClose, onKeyDown, spacing, children, }: CustomizePopoverShellProps): React.JSX.Element;
|
|
49
49
|
export type CustomizeCycleRowProps = Readonly<{
|
|
50
50
|
label: string;
|
|
51
51
|
valueLabel: string;
|
|
@@ -59,7 +59,7 @@ export type CustomizeCycleControlPlan = CustomizeCycleRowProps;
|
|
|
59
59
|
export type CustomizePopoverControlPlan = Readonly<{
|
|
60
60
|
cycleRows: readonly CustomizeCycleControlPlan[];
|
|
61
61
|
}>;
|
|
62
|
-
export declare function CustomizeCycleRow({ label, valueLabel, previousLabel, nextLabel, availability, onPrevious, onNext, }: CustomizeCycleRowProps):
|
|
62
|
+
export declare function CustomizeCycleRow({ label, valueLabel, previousLabel, nextLabel, availability, onPrevious, onNext, }: CustomizeCycleRowProps): React.JSX.Element;
|
|
63
63
|
export declare function cycleAvailability(input: CustomizeCycleAvailabilityInput): CustomizeControlAvailability;
|
|
64
64
|
export declare function cycleUnavailableReasonLabel(reason: CustomizeControlUnavailableReason): string;
|
|
65
65
|
export declare function cycleAvailabilityFromFlags(input: Readonly<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HistoryState } from '../../../../content-editor/src/index';
|
|
2
|
-
import { type BrandDisplayMode, type FooterLookId, type LogoSizePolicy } from '../../../../theme-core/src/site-styles/index';
|
|
2
|
+
import { type BrandDisplayMode, type FooterLookId, type LogoSizePolicy, type SiteChromeBackgroundOverride, type SiteChromeBackgroundPreferences } from '../../../../theme-core/src/site-styles/index';
|
|
3
3
|
import type { SelectionSnapshot } from './StyleConfigurator.state';
|
|
4
4
|
import type { HeaderBrandPreferences } from './siteChromeBrandPreferences';
|
|
5
5
|
type HeaderLayoutSelection = Pick<SelectionSnapshot, 'headerLayoutId' | 'headerStyleId' | 'headerLookId'>;
|
|
@@ -16,6 +16,14 @@ export type SiteChromeQuickControlHistoryEntry = Readonly<{
|
|
|
16
16
|
kind: 'footer-look';
|
|
17
17
|
previous: FooterLookId | null;
|
|
18
18
|
next: FooterLookId | null;
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
kind: 'header-background';
|
|
21
|
+
previous: SiteChromeBackgroundOverride;
|
|
22
|
+
next: SiteChromeBackgroundOverride;
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
kind: 'footer-background';
|
|
25
|
+
previous: SiteChromeBackgroundOverride;
|
|
26
|
+
next: SiteChromeBackgroundOverride;
|
|
19
27
|
}> | Readonly<{
|
|
20
28
|
kind: 'header-brand-display';
|
|
21
29
|
previous: BrandDisplayMode;
|
|
@@ -28,8 +36,14 @@ export type SiteChromeQuickControlHistoryEntry = Readonly<{
|
|
|
28
36
|
export type SiteChromeQuickControlHistoryPresent = Readonly<{
|
|
29
37
|
selection: SelectionSnapshot;
|
|
30
38
|
headerBrandPreferences: HeaderBrandPreferences;
|
|
39
|
+
backgroundPreferences: SiteChromeBackgroundPreferences;
|
|
31
40
|
entry: SiteChromeQuickControlHistoryEntry | null;
|
|
32
41
|
}>;
|
|
42
|
+
type SiteChromeQuickControlHistoryPresentInput = Readonly<{
|
|
43
|
+
selection: SelectionSnapshot;
|
|
44
|
+
headerBrandPreferences: HeaderBrandPreferences;
|
|
45
|
+
backgroundPreferences?: SiteChromeBackgroundPreferences;
|
|
46
|
+
}>;
|
|
33
47
|
export type SiteChromeQuickControlReplayPlan = Readonly<{
|
|
34
48
|
kind: 'selection';
|
|
35
49
|
surface: 'header' | 'footer';
|
|
@@ -37,6 +51,9 @@ export type SiteChromeQuickControlReplayPlan = Readonly<{
|
|
|
37
51
|
}> | Readonly<{
|
|
38
52
|
kind: 'brand-preferences';
|
|
39
53
|
preferences: HeaderBrandPreferences;
|
|
54
|
+
}> | Readonly<{
|
|
55
|
+
kind: 'background-preferences';
|
|
56
|
+
preferences: SiteChromeBackgroundPreferences;
|
|
40
57
|
}>;
|
|
41
58
|
export type SiteChromeQuickControlHistoryMutation = Readonly<{
|
|
42
59
|
kind: 'idle';
|
|
@@ -78,17 +95,19 @@ export type SiteChromeQuickControlHistoryFailure = Readonly<{
|
|
|
78
95
|
}>;
|
|
79
96
|
export type SiteChromeQuickControlSelectionTarget = 'header-layout' | 'header-style' | 'footer-look';
|
|
80
97
|
export type SiteChromeQuickControlBrandTarget = 'header-brand-display' | 'header-logo-size';
|
|
81
|
-
export
|
|
98
|
+
export type SiteChromeQuickControlBackgroundTarget = 'header-background' | 'footer-background';
|
|
99
|
+
export declare function createSiteChromeQuickControlHistoryState(present: SiteChromeQuickControlHistoryPresentInput): SiteChromeQuickControlHistoryState;
|
|
82
100
|
export declare function recordSiteChromeQuickControlHistoryEntry(state: SiteChromeQuickControlHistoryState, input: Readonly<{
|
|
83
101
|
entry: SiteChromeQuickControlHistoryEntry;
|
|
84
|
-
previous?:
|
|
85
|
-
persisted:
|
|
102
|
+
previous?: SiteChromeQuickControlHistoryPresentInput;
|
|
103
|
+
persisted: SiteChromeQuickControlHistoryPresentInput;
|
|
86
104
|
}>): SiteChromeQuickControlHistoryState;
|
|
87
105
|
export declare function quickControlHistoryEntryFromSelectionChange(previous: SelectionSnapshot, next: SelectionSnapshot, target: SiteChromeQuickControlSelectionTarget): SiteChromeQuickControlHistoryEntry | null;
|
|
88
106
|
export declare function quickControlHistoryEntryFromBrandPreferenceChange(previous: HeaderBrandPreferences, next: HeaderBrandPreferences, target: SiteChromeQuickControlBrandTarget): SiteChromeQuickControlHistoryEntry | null;
|
|
107
|
+
export declare function quickControlHistoryEntryFromBackgroundPreferenceChange(previous: SiteChromeBackgroundPreferences, next: SiteChromeBackgroundPreferences, target: SiteChromeQuickControlBackgroundTarget): SiteChromeQuickControlHistoryEntry | null;
|
|
89
108
|
export declare function beginSiteChromeQuickControlHistoryUndo(state: SiteChromeQuickControlHistoryState): SiteChromeQuickControlHistoryBeginResult;
|
|
90
109
|
export declare function beginSiteChromeQuickControlHistoryRedo(state: SiteChromeQuickControlHistoryState): SiteChromeQuickControlHistoryBeginResult;
|
|
91
|
-
export declare function confirmSiteChromeQuickControlHistoryMutation(state: SiteChromeQuickControlHistoryState, persisted:
|
|
110
|
+
export declare function confirmSiteChromeQuickControlHistoryMutation(state: SiteChromeQuickControlHistoryState, persisted: SiteChromeQuickControlHistoryPresentInput): SiteChromeQuickControlHistoryState;
|
|
92
111
|
export declare function rejectSiteChromeQuickControlHistoryMutation(state: SiteChromeQuickControlHistoryState, failure: SiteChromeQuickControlHistoryFailure): SiteChromeQuickControlHistoryState;
|
|
93
112
|
export declare function cancelSiteChromeQuickControlHistoryMutation(state: SiteChromeQuickControlHistoryState, mutation: Extract<SiteChromeQuickControlHistoryMutation, {
|
|
94
113
|
kind: 'undoing' | 'redoing';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { APIEndpoints } from '../../../../api/src/index';
|
|
2
2
|
import type { Theme } from '../../../../blocks/src/index';
|
|
3
|
-
import type { FooterSelectionContext, HeaderSelectionContext } from '../../../../theme-core/src/site-styles/index';
|
|
3
|
+
import type { FooterSelectionContext, HeaderSelectionContext, SiteChromeBackgroundPreferences } from '../../../../theme-core/src/site-styles/index';
|
|
4
4
|
import type { CuratedSiteStyle } from '../../../../theme-core/src/site-styles/previewCompiler';
|
|
5
5
|
import type { SelectionSnapshot } from './StyleConfigurator.state';
|
|
6
6
|
import { type SiteStylePreviewPlan } from './siteStylePreviewPlanner';
|
|
@@ -20,10 +20,11 @@ export type BuildSiteChromeSavePlanInput = Readonly<{
|
|
|
20
20
|
headerSelectionContext: Partial<HeaderSelectionContext> | undefined;
|
|
21
21
|
footerSelectionContext: Partial<FooterSelectionContext> | undefined;
|
|
22
22
|
headerBrandPreferences: HeaderBrandPreferences;
|
|
23
|
+
backgroundPreferences: SiteChromeBackgroundPreferences;
|
|
23
24
|
themeId: string | null;
|
|
24
25
|
selectionId: string | null;
|
|
25
26
|
baseSelectionUpdatedAt: string | null;
|
|
26
27
|
}>;
|
|
27
|
-
export declare function buildSiteChromeSavePlan({ surface, siteStyle, selection, baseTheme, headerSelectionContext, footerSelectionContext, headerBrandPreferences, themeId, selectionId, baseSelectionUpdatedAt, }: BuildSiteChromeSavePlanInput): SiteChromeSavePlan;
|
|
28
|
+
export declare function buildSiteChromeSavePlan({ surface, siteStyle, selection, baseTheme, headerSelectionContext, footerSelectionContext, headerBrandPreferences, backgroundPreferences, themeId, selectionId, baseSelectionUpdatedAt, }: BuildSiteChromeSavePlanInput): SiteChromeSavePlan;
|
|
28
29
|
export declare function siteChromeSavePlanBodyForBaseRevision(plan: SiteChromeSavePlan, baseSelectionUpdatedAt: string | null): SaveSiteChromeLookSelectionBody;
|
|
29
30
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import type { Theme } from '../../../../blocks/src/index';
|
|
3
3
|
import { type Rfc6902Op } from '../utils/rfc6902';
|
|
4
4
|
type ThemePatchOp = Rfc6902Op;
|
|
@@ -32,6 +32,6 @@ type PreviewThemeOverlayContextValue = {
|
|
|
32
32
|
export declare function PreviewThemeOverlayProvider({ baseTheme, children }: {
|
|
33
33
|
baseTheme: Theme;
|
|
34
34
|
children: ReactNode;
|
|
35
|
-
}):
|
|
35
|
+
}): React.JSX.Element;
|
|
36
36
|
export declare function usePreviewThemeOverlay(): PreviewThemeOverlayContextValue;
|
|
37
37
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SdkPreviewModeProps } from './SdkPreviewMode';
|
|
2
|
-
export declare function SdkPreviewModeRuntime(props: SdkPreviewModeProps):
|
|
3
|
+
export declare function SdkPreviewModeRuntime(props: SdkPreviewModeProps): React.JSX.Element;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { ApiClient } from '../../../../api/src/request';
|
|
3
|
-
import { type MediaAssetIndexItem, type Theme } from '../../../../blocks/src/index';
|
|
3
|
+
import { type BookingOfferingPresetSummary, type MediaAssetIndexItem, type Theme } from '../../../../blocks/src/index';
|
|
4
4
|
import type { FieldWidgetComponent } from '../../../../block-form/src/client/index';
|
|
5
5
|
import type { SdkConfigForBlockPicker } from '../../../../editor-blocks/src/index';
|
|
6
6
|
import { __testUtils, createPreviewEntryPickerAdapter, createPreviewLinkAdapters, createPreviewReferenceAdapters, createPreviewSiteOptionAdapters } from './widgetAdapters';
|
|
7
|
-
export declare function PreviewFormProvider({ siteId: rawSiteId, theme, previewClient, bearerToken, supabaseUrl, mediaAssets, sdkConfig, children, }: {
|
|
7
|
+
export declare function PreviewFormProvider({ siteId: rawSiteId, theme, previewClient, bearerToken, supabaseUrl, mediaAssets, bookingOfferingPresets, sdkConfig, children, }: {
|
|
8
8
|
siteId: string;
|
|
9
9
|
theme?: Theme | null;
|
|
10
10
|
previewClient: ApiClient;
|
|
11
11
|
bearerToken?: string | null;
|
|
12
12
|
supabaseUrl?: string;
|
|
13
13
|
mediaAssets?: MediaAssetIndexItem[];
|
|
14
|
+
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[] | null;
|
|
14
15
|
sdkConfig?: SdkConfigForBlockPicker | null;
|
|
15
16
|
children: ReactNode;
|
|
16
|
-
}): import("react
|
|
17
|
+
}): import("react").JSX.Element;
|
|
17
18
|
export declare const previewWidgetOverrides: {
|
|
18
19
|
readonly link: FieldWidgetComponent;
|
|
19
20
|
readonly file: FieldWidgetComponent;
|
|
@@ -25,6 +26,7 @@ export declare const previewWidgetOverrides: {
|
|
|
25
26
|
readonly entryPicker: FieldWidgetComponent;
|
|
26
27
|
readonly iconPicker: FieldWidgetComponent;
|
|
27
28
|
readonly buttonVariant: FieldWidgetComponent;
|
|
29
|
+
readonly offeringGroupOrder: FieldWidgetComponent;
|
|
28
30
|
readonly siteOptionPicker: FieldWidgetComponent;
|
|
29
31
|
};
|
|
30
32
|
export type { FieldWidgetComponent };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mock implementation of next/cache for testing
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
4
|
+
import { vi } from 'vitest';
|
|
5
|
+
export declare const revalidateTag: ReturnType<typeof vi.fn<(tag: string, profile?: string) => void>>;
|
|
6
|
+
export declare const revalidatePath: ReturnType<typeof vi.fn<(path: string) => void>>;
|
|
7
|
+
export declare const unstable_cache: <T extends (...args: never[]) => unknown>(fn: T) => T;
|
|
@@ -49,7 +49,7 @@ export declare function formatHumanArrayDiff<TRemote, TLocal>(args: {
|
|
|
49
49
|
detailText: string;
|
|
50
50
|
};
|
|
51
51
|
export declare function calculateThemePullDiff(args: {
|
|
52
|
-
remoteTheme: unknown
|
|
52
|
+
remoteTheme: unknown;
|
|
53
53
|
localTheme: LocalTheme | null;
|
|
54
54
|
}): {
|
|
55
55
|
type: DryRunDiffType;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reads content from the file system for push operations.
|
|
5
5
|
* Mirrors the structure created by writer.ts.
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { NavigationAuthoringLinkInput, NavigationLocalItemInput } from '../../../../api/src/navigation';
|
|
8
8
|
import type { Theme } from '../../contracts';
|
|
9
9
|
export interface LocalEntry {
|
|
10
10
|
identifier: string;
|
|
@@ -42,20 +42,12 @@ export interface LocalPage {
|
|
|
42
42
|
/**
|
|
43
43
|
* Navigation link types for local navigation files.
|
|
44
44
|
*
|
|
45
|
-
* These types
|
|
46
|
-
*
|
|
45
|
+
* These types are aligned with the shared navigation authoring boundary.
|
|
46
|
+
* SDK files may use an explicit dropdown sentinel, which is normalized
|
|
47
|
+
* before command/API management validation.
|
|
47
48
|
*/
|
|
48
|
-
export type LocalNavigationLinkType =
|
|
49
|
-
|
|
50
|
-
};
|
|
51
|
-
export interface LocalNavigationItem {
|
|
52
|
-
label: string;
|
|
53
|
-
/** Link configuration. Required for non-dropdown items. */
|
|
54
|
-
link?: LocalNavigationLinkType;
|
|
55
|
-
/** Whether this item should render as a CTA-style navigation action. */
|
|
56
|
-
isCta?: boolean;
|
|
57
|
-
children?: LocalNavigationItem[];
|
|
58
|
-
}
|
|
49
|
+
export type LocalNavigationLinkType = NavigationAuthoringLinkInput;
|
|
50
|
+
export type LocalNavigationItem = NavigationLocalItemInput;
|
|
59
51
|
export interface LocalNavigationMenu {
|
|
60
52
|
identifier?: string | null;
|
|
61
53
|
name: string;
|
|
@@ -11,8 +11,8 @@ export type CommandSurfaceDispatchInput = Readonly<{
|
|
|
11
11
|
diff: ContentDiff;
|
|
12
12
|
local: LocalContent;
|
|
13
13
|
client: ManagementClient;
|
|
14
|
-
blockFieldExtensions: Parameters<typeof compilePagePushCommands>[0]['blockFieldExtensions'];
|
|
15
14
|
customBlocks?: Parameters<typeof compilePagePushCommands>[0]['customBlocks'];
|
|
15
|
+
blockFieldExtensions: Parameters<typeof compilePagePushCommands>[0]['blockFieldExtensions'];
|
|
16
16
|
onEntryCommandCount?: (commandCount: number) => void;
|
|
17
17
|
onFormCommandCount?: (commandCount: number) => void;
|
|
18
18
|
onNavigationCommandCount?: (commandCount: number) => void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { BlockFieldExtensionsMap, FieldDefinition, SdkCustomBlock } from '../../config/types';
|
|
2
|
+
export type LocalBlockManifest = Readonly<{
|
|
3
|
+
name: string;
|
|
4
|
+
fields: readonly FieldDefinition[];
|
|
5
|
+
}> & Record<string, unknown>;
|
|
6
|
+
export type LocalBlockManifestResolution = Readonly<{
|
|
7
|
+
kind: 'builtin_found';
|
|
8
|
+
manifest: LocalBlockManifest;
|
|
9
|
+
extensionFields: readonly FieldDefinition[];
|
|
10
|
+
}> | Readonly<{
|
|
11
|
+
kind: 'custom_found';
|
|
12
|
+
manifest: LocalBlockManifest;
|
|
13
|
+
extensionFields: readonly FieldDefinition[];
|
|
14
|
+
}> | Readonly<{
|
|
15
|
+
kind: 'extension_only_custom_found';
|
|
16
|
+
manifest: LocalBlockManifest;
|
|
17
|
+
}> | Readonly<{
|
|
18
|
+
kind: 'unknown_builtin';
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
kind: 'unknown_custom';
|
|
21
|
+
}>;
|
|
22
|
+
export type ResolveLocalBlockManifestInput = Readonly<{
|
|
23
|
+
kind: string;
|
|
24
|
+
customBlocks?: readonly SdkCustomBlock[];
|
|
25
|
+
blockFieldExtensions?: BlockFieldExtensionsMap;
|
|
26
|
+
}>;
|
|
27
|
+
export type ResolveLocalBlockManifestFromSourcesInput = ResolveLocalBlockManifestInput & Readonly<{
|
|
28
|
+
builtInManifest?: LocalBlockManifest;
|
|
29
|
+
}>;
|
|
30
|
+
export declare function resolveLocalBlockManifest(input: ResolveLocalBlockManifestInput): LocalBlockManifestResolution;
|
|
31
|
+
export declare function resolveLocalBlockManifestFromSources(input: ResolveLocalBlockManifestFromSourcesInput): LocalBlockManifestResolution;
|
|
@@ -29,8 +29,8 @@ export type CliPageCommandCompileInput = Readonly<{
|
|
|
29
29
|
targetEnv: EnvTarget;
|
|
30
30
|
diff: Pick<ContentDiff, 'pages'>;
|
|
31
31
|
local: Pick<LocalContent, 'pages'>;
|
|
32
|
-
blockFieldExtensions?: BlockFieldExtensionsMap;
|
|
33
32
|
customBlocks?: readonly SdkCustomBlock[];
|
|
33
|
+
blockFieldExtensions?: BlockFieldExtensionsMap;
|
|
34
34
|
}>;
|
|
35
35
|
export type CliPageCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<PageSiteCommandType, PageCommandReportSubject> & Readonly<{
|
|
36
36
|
warnings: readonly string[];
|
|
@@ -78,7 +78,7 @@ export declare function pageCommandExecutionToReport(input: Readonly<{
|
|
|
78
78
|
}>): PageCommandExecutionReport;
|
|
79
79
|
export declare function preflightPageCommandPlanAsReport(input: Readonly<{
|
|
80
80
|
compiledPlan: PageCommandCompiledPlan;
|
|
81
|
-
blockFieldExtensions?: BlockFieldExtensionsMap;
|
|
82
81
|
customBlocks?: readonly SdkCustomBlock[];
|
|
82
|
+
blockFieldExtensions?: BlockFieldExtensionsMap;
|
|
83
83
|
}>): PageCommandExecutionReport;
|
|
84
84
|
export declare function pageCommandReportToSyncResult(report: PageCommandExecutionReport): SyncResult;
|
|
@@ -17,8 +17,8 @@ export type ContentPushExecutionInput = Readonly<{
|
|
|
17
17
|
diff: ContentDiff;
|
|
18
18
|
local: LocalContent;
|
|
19
19
|
client: ManagementClient;
|
|
20
|
-
blockFieldExtensions: Parameters<typeof compilePagePushCommands>[0]['blockFieldExtensions'];
|
|
21
20
|
customBlocks?: Parameters<typeof compilePagePushCommands>[0]['customBlocks'];
|
|
21
|
+
blockFieldExtensions: Parameters<typeof compilePagePushCommands>[0]['blockFieldExtensions'];
|
|
22
22
|
output: OutputContext;
|
|
23
23
|
onEntryCommandCount?: (commandCount: number) => void;
|
|
24
24
|
onFormCommandCount?: (commandCount: number) => void;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* - Invalid field values (wrong types, malformed structures)
|
|
8
8
|
*/
|
|
9
9
|
import type { FieldDefinition } from '../../config/types';
|
|
10
|
-
type BlockManifest = {
|
|
11
|
-
fields: FieldDefinition[];
|
|
12
|
-
} & Record<string, unknown>;
|
|
10
|
+
type BlockManifest = Readonly<{
|
|
11
|
+
fields: readonly FieldDefinition[];
|
|
12
|
+
}> & Record<string, unknown>;
|
|
13
13
|
export interface ValidationWarning {
|
|
14
14
|
type: 'unknown_field' | 'missing_required' | 'invalid_content';
|
|
15
15
|
field: string;
|
|
@@ -29,7 +29,7 @@ export interface BlockValidationResult {
|
|
|
29
29
|
* - repeater: has schema.fields (monomorphic) or itemTypes (polymorphic)
|
|
30
30
|
* - tabGroup: has tabs[].fields
|
|
31
31
|
*/
|
|
32
|
-
export declare function extractFieldIds(fields: FieldDefinition[]): Set<string>;
|
|
32
|
+
export declare function extractFieldIds(fields: readonly FieldDefinition[]): Set<string>;
|
|
33
33
|
/**
|
|
34
34
|
* Extract required field IDs from a block manifest.
|
|
35
35
|
*
|
|
@@ -37,7 +37,7 @@ export declare function extractFieldIds(fields: FieldDefinition[]): Set<string>;
|
|
|
37
37
|
* within groups/repeaters are not validated at this level since their
|
|
38
38
|
* presence depends on parent field structure.
|
|
39
39
|
*/
|
|
40
|
-
export declare function extractRequiredFieldIds(fields: FieldDefinition[]): Set<string>;
|
|
40
|
+
export declare function extractRequiredFieldIds(fields: readonly FieldDefinition[]): Set<string>;
|
|
41
41
|
/**
|
|
42
42
|
* Validate block content values against the manifest schema using Zod.
|
|
43
43
|
*
|
|
@@ -49,7 +49,7 @@ export declare function extractRequiredFieldIds(fields: FieldDefinition[]): Set<
|
|
|
49
49
|
* @param customFields - Optional custom fields from config (blockFieldExtensions)
|
|
50
50
|
* @returns Array of validation warnings for invalid content
|
|
51
51
|
*/
|
|
52
|
-
export declare function validateBlockContent(data: Record<string, unknown>, manifest: BlockManifest, customFields?: FieldDefinition[]): ValidationWarning[];
|
|
52
|
+
export declare function validateBlockContent(data: Record<string, unknown>, manifest: BlockManifest, customFields?: readonly FieldDefinition[]): ValidationWarning[];
|
|
53
53
|
/**
|
|
54
54
|
* Validate block data against its manifest schema.
|
|
55
55
|
*
|
|
@@ -60,7 +60,7 @@ export declare function validateBlockContent(data: Record<string, unknown>, mani
|
|
|
60
60
|
* @param manifest - The block manifest with field definitions
|
|
61
61
|
* @param customFields - Optional custom fields from config (blockFieldExtensions)
|
|
62
62
|
*/
|
|
63
|
-
export declare function validateBlockData(data: Record<string, unknown>, manifest: BlockManifest, customFields?: FieldDefinition[]): BlockValidationResult;
|
|
63
|
+
export declare function validateBlockData(data: Record<string, unknown>, manifest: BlockManifest, customFields?: readonly FieldDefinition[]): BlockValidationResult;
|
|
64
64
|
/**
|
|
65
65
|
* Format validation result for display.
|
|
66
66
|
*/
|
|
@@ -64,11 +64,26 @@ export interface GetEntriesBaseParams extends SdkMethodOptions {
|
|
|
64
64
|
order?: 'newest' | 'oldest' | 'title' | 'manual';
|
|
65
65
|
/** If true, includes draft entries (requires API key with site access) */
|
|
66
66
|
preview?: boolean;
|
|
67
|
-
/** Selection mode: 'query' for automatic, 'manual' for specific entry
|
|
67
|
+
/** Selection mode: 'query' for automatic, 'manual' for specific entry refs */
|
|
68
68
|
mode?: 'query' | 'manual';
|
|
69
|
-
/** Entry
|
|
69
|
+
/** Entry UUIDs, stable identifiers, or slugs to fetch when mode is 'manual' */
|
|
70
70
|
entryIds?: string[];
|
|
71
71
|
}
|
|
72
|
+
export type GetEntriesByIdentifiersParams = {
|
|
73
|
+
/** The site ID */
|
|
74
|
+
siteId: string;
|
|
75
|
+
/** The content type key (e.g., 'blog-post', 'meditation') */
|
|
76
|
+
contentType: string;
|
|
77
|
+
/**
|
|
78
|
+
* Stable entry references to resolve in order.
|
|
79
|
+
*
|
|
80
|
+
* Each value may be an entry UUID, `content_entries.identifier`, or route slug.
|
|
81
|
+
* Empty values are ignored and duplicate refs collapse to their first occurrence.
|
|
82
|
+
*/
|
|
83
|
+
identifiers: readonly string[];
|
|
84
|
+
/** If true, includes draft entries (requires API key with site access) */
|
|
85
|
+
preview?: boolean;
|
|
86
|
+
} & SdkMethodOptions;
|
|
72
87
|
/**
|
|
73
88
|
* Source of the data returned by a resilient fetch
|
|
74
89
|
*/
|
|
@@ -327,7 +342,7 @@ export interface RiverbankClient {
|
|
|
327
342
|
* @param params.order - Sort order: 'newest' (published_at desc) or 'oldest' (published_at asc)
|
|
328
343
|
* @param params.preview - If true, includes draft entries (requires API key with site access)
|
|
329
344
|
* @param params.mode - 'query' for automatic fetching, 'manual' for specific entry IDs
|
|
330
|
-
* @param params.entryIds - Array of entry
|
|
345
|
+
* @param params.entryIds - Array of entry refs to fetch (only used when mode is 'manual')
|
|
331
346
|
* @param params.includeMeta - If true, returns pagination metadata with the response
|
|
332
347
|
*
|
|
333
348
|
* @example
|
|
@@ -350,7 +365,7 @@ export interface RiverbankClient {
|
|
|
350
365
|
* });
|
|
351
366
|
* // page3.entries, page3.total, page3.hasMore, page3.currentPage
|
|
352
367
|
*
|
|
353
|
-
* // Fetch specific entries by
|
|
368
|
+
* // Fetch specific entries by stable refs (manual mode)
|
|
354
369
|
* const specific = await client.getEntries({
|
|
355
370
|
* siteId: 'site-id',
|
|
356
371
|
* contentType: 'blog-post',
|
|
@@ -370,6 +385,23 @@ export interface RiverbankClient {
|
|
|
370
385
|
getEntries(params: GetEntriesBaseParams & {
|
|
371
386
|
includeMeta?: boolean;
|
|
372
387
|
}): Promise<EntriesResponse | EntriesResponseWithMeta>;
|
|
388
|
+
/**
|
|
389
|
+
* Fetch a manually ordered set of content entries by stable refs.
|
|
390
|
+
*
|
|
391
|
+
* Refs resolve as entry UUIDs, stable entry identifiers, then route slugs. Missing
|
|
392
|
+
* refs are omitted. Returned entries preserve the order of the requested refs
|
|
393
|
+
* after empty values and duplicates are removed.
|
|
394
|
+
*
|
|
395
|
+
* @example
|
|
396
|
+
* ```ts
|
|
397
|
+
* const { entries } = await client.getEntriesByIdentifiers({
|
|
398
|
+
* siteId: 'site-id',
|
|
399
|
+
* contentType: 'meditation',
|
|
400
|
+
* identifiers: ['metta-meditation', 'resting-in-compassion'],
|
|
401
|
+
* });
|
|
402
|
+
* ```
|
|
403
|
+
*/
|
|
404
|
+
getEntriesByIdentifiers(params: GetEntriesByIdentifiersParams): Promise<EntriesResponse>;
|
|
373
405
|
/**
|
|
374
406
|
* Fetch a specific content entry by slug
|
|
375
407
|
*/
|
|
@@ -30,4 +30,4 @@ export { Page } from './rendering/components/Page';
|
|
|
30
30
|
export type { PageProps } from './rendering/components/Page';
|
|
31
31
|
export type { ContentEntryData } from './rendering/helpers/loadContent';
|
|
32
32
|
export { createRiverbankClient } from './client/index';
|
|
33
|
-
export type { RiverbankClient, RiverbankClientConfig, SdkCorrelationHeaderName, SdkCorrelationHeaders, } from './client/types';
|
|
33
|
+
export type { RiverbankClient, RiverbankClientConfig, GetEntriesByIdentifiersParams, SdkCorrelationHeaderName, SdkCorrelationHeaders, } from './client/types';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import type { FieldDefinition } from './field-definitions';
|
|
11
11
|
import type { BlockKind } from '../types';
|
|
12
|
-
import type {
|
|
12
|
+
import type { NavigationAuthoringLinkInput, NavigationConfigItemInput } from '../../../api/src/navigation';
|
|
13
13
|
import type { BindingTransformName } from '../contracts/bindings';
|
|
14
14
|
export type { FieldDefinition } from './field-definitions';
|
|
15
15
|
export declare const TEMPLATE_BINDING_META_PATHS: readonly ["title", "slug", "publishedAt", "createdAt", "updatedAt"];
|
|
@@ -259,9 +259,7 @@ export interface EntryConfig {
|
|
|
259
259
|
/**
|
|
260
260
|
* Navigation link types for menu items.
|
|
261
261
|
*/
|
|
262
|
-
export type NavigationLinkType =
|
|
263
|
-
kind: 'dropdown';
|
|
264
|
-
};
|
|
262
|
+
export type NavigationLinkType = NavigationAuthoringLinkInput;
|
|
265
263
|
/**
|
|
266
264
|
* Navigation item definition.
|
|
267
265
|
*
|
|
@@ -276,16 +274,7 @@ export type NavigationLinkType = NavigationLinkInput | {
|
|
|
276
274
|
* }
|
|
277
275
|
* ```
|
|
278
276
|
*/
|
|
279
|
-
export
|
|
280
|
-
/** Display label */
|
|
281
|
-
label: string;
|
|
282
|
-
/** Link configuration */
|
|
283
|
-
link: NavigationLinkType;
|
|
284
|
-
/** Is this a CTA button? */
|
|
285
|
-
isCta?: boolean;
|
|
286
|
-
/** Child items (for dropdown menus, max 1 level) */
|
|
287
|
-
children?: NavigationItemConfig[];
|
|
288
|
-
}
|
|
277
|
+
export type NavigationItemConfig = NavigationConfigItemInput;
|
|
289
278
|
/**
|
|
290
279
|
* Navigation menu definition.
|
|
291
280
|
*
|