@riverbankcms/sdk 0.68.0 → 0.70.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/dist/_dts/ai/src/contracts/commandExposure.d.ts +8 -0
- package/dist/_dts/ai/src/contracts/feedback.d.ts +55 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +34764 -0
- package/dist/_dts/ai/src/contracts.d.ts +5 -0
- package/dist/_dts/ai/src/designer/rfc6902.d.ts +16 -0
- package/dist/_dts/ai/src/designer/themePatch.d.ts +50 -0
- package/dist/_dts/api/src/accessAdmin.d.ts +3 -3
- package/dist/_dts/api/src/admin/types.d.ts +1 -1
- package/dist/_dts/api/src/aiPlayground.d.ts +13 -87
- package/dist/_dts/api/src/appointmentSetup.d.ts +23 -0
- package/dist/_dts/api/src/availability.d.ts +84 -2
- package/dist/_dts/api/src/billing.d.ts +1 -1
- package/dist/_dts/api/src/bookingConfig.d.ts +2 -2
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +10 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -1
- package/dist/_dts/api/src/bookings.d.ts +1 -1
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/communications.d.ts +1 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -2
- package/dist/_dts/api/src/contentTypes.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +29 -0
- package/dist/_dts/api/src/navigation/contracts.d.ts +9 -9
- package/dist/_dts/api/src/navigation/linkValue.d.ts +1 -1
- package/dist/_dts/api/src/navigation/types.d.ts +1 -1
- package/dist/_dts/api/src/public/index.d.ts +2 -2
- package/dist/_dts/api/src/public/types.d.ts +2 -2
- package/dist/_dts/api/src/sdkConfig/contracts.d.ts +1 -2
- package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
- package/dist/_dts/api/src/siteBanner.d.ts +9 -9
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/siteOnboarding.d.ts +1 -1
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +33 -5
- package/dist/_dts/api/src/siteSettings.d.ts +3 -3
- package/dist/_dts/api/src/teamMembers.d.ts +1 -1
- package/dist/_dts/api/src/types.d.ts +2 -2
- package/dist/_dts/api/src/url.d.ts +1 -1
- package/dist/_dts/billing/src/components/index.d.ts +102 -3
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +1 -1
- package/dist/_dts/block-form/src/backend/types.d.ts +2 -2
- package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +2 -2
- package/dist/_dts/block-form/src/context/ImageResolveContext.d.ts +1 -1
- package/dist/_dts/block-form/src/fields/types.d.ts +1 -1
- package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +1 -1
- package/dist/_dts/block-form/src/manifest/canonicalValidation.d.ts +1 -1
- package/dist/_dts/block-form/src/manifest/manifestFormAdapter.d.ts +1 -1
- package/dist/_dts/block-form/src/manifest/mergeManifestWithSdkOptions.d.ts +1 -1
- package/dist/_dts/block-form/src/sdk-config/SdkConfigContext.d.ts +1 -1
- package/dist/_dts/block-form/src/shared/disclosure.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterLayoutGrid.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/layoutGridDomain.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterPointerDragCapability.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterDndDomain.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterPresentation.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/resolveThumbnail.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldSchema.d.ts +4 -4
- package/dist/_dts/block-form/src/widgets/constants.d.ts +1 -1
- package/dist/_dts/blocks/src/PageRenderer.d.ts +1 -1
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/client.d.ts +6 -4
- package/dist/_dts/blocks/src/index.d.ts +28 -27
- package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/content/components/Button.d.ts +1 -1
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -1
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/structure/schema.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +1666 -1666
- package/dist/_dts/blocks/src/system/blocks/blog-post.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +1666 -1666
- package/dist/_dts/blocks/src/system/blocks/columns.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +42 -42
- package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +1764 -1764
- 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 +44 -44
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +9 -9
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +139 -139
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +19 -19
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +1 -1
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +5 -5
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/card.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/fragments/library/ctaRow.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/fragments/library/feedbackCallout.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/fragments/library/sectionState.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/frame/frameStyles.d.ts +3 -3
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +2 -2
- package/dist/_dts/blocks/src/system/manifest/augmentManifest.d.ts +1 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +201 -201
- package/dist/_dts/blocks/src/system/media/constrainedVideoMedia.d.ts +1 -1
- package/dist/_dts/blocks/src/system/media/slotContracts.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/fragments/ctaButton.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/fragments/typography.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/schema.d.ts +5 -5
- package/dist/_dts/blocks/src/system/registry.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/header/shared.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/accordion.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/accordion.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +45 -29
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.reserved-fields.d.ts +27 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +11 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/timetableModel.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/location-map.shared.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/LeafletStaticMap.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptionCopy.d.ts +1 -1
- package/dist/_dts/blocks/src/system/theme/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/ui.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +3 -3
- package/dist/_dts/blocks/src/system/types/link.d.ts +3 -3
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/buildBlockPublishedBaselines.d.ts +2 -2
- package/dist/_dts/content-editor/src/controller/buildPublishSuccessTransition.d.ts +2 -2
- package/dist/_dts/content-editor/src/controller/deriveRecoveryConflict.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/invalidBlockRecovery.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/useBlocksList.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/useInvalidBlockRecovery.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/blockedPublishPlan.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +2 -2
- package/dist/_dts/content-editor/src/hooks/useStoreAutosave.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +1 -1
- package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +1 -1
- package/dist/_dts/content-editor/src/primitives/PreviewTextEditor.d.ts +1 -1
- package/dist/_dts/content-editor/src/registry.d.ts +1 -1
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +2 -2
- package/dist/_dts/content-editor/src/types.d.ts +2 -2
- package/dist/_dts/content-editor/src/ui/blockValidationView.d.ts +3 -3
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/stores/utils.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
- package/dist/_dts/core/src/branded.d.ts +2 -0
- package/dist/_dts/core/src/index.d.ts +2 -0
- package/dist/_dts/core/src/planner.d.ts +64 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +236 -18
- package/dist/_dts/db/src/schemas/forms.d.ts +62 -62
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +5 -5
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +5 -5
- package/dist/_dts/editor-blocks/src/FormProvider.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +6 -6
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockListContext.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockThumbnail.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockTile.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/SortableBlockItem.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/blockDiscovery.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/buildInsertBlockHistoryCommand.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockReorder.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useDraftContent.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/preparedManifest.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/sdkBlockMerger.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/settingsIntent.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-form/debug.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/blockPayload.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +6 -6
- 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/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/EntryPickerWidgetProvider.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/entry-picker/loaders.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/types.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +3 -3
- 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 +3 -3
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/link/types.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/utils.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/dynamicAdapters.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/reference/types.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/ensureRichTextImageAssetIdentifier.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/richTextImageHydration.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/shared/Combobox.d.ts +1 -1
- package/dist/_dts/media-core/src/fileAssetCompatibility.d.ts +1 -1
- package/dist/_dts/media-core/src/fileAssetDeletion.d.ts +1 -1
- package/dist/_dts/media-core/src/fileDomain.d.ts +1 -1
- package/dist/_dts/media-core/src/fileDownloadResolution.d.ts +1 -1
- package/dist/_dts/media-core/src/filePersistence.d.ts +1 -1
- package/dist/_dts/media-core/src/fileStorage.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadAssetBuilder.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadCleanup.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadCompletion.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadDurableFinalization.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadFinalization.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadSessionCreation.d.ts +1 -1
- package/dist/_dts/media-core/src/types.d.ts +2 -2
- package/dist/_dts/media-core/src/url.d.ts +1 -1
- package/dist/_dts/media-core/src/videoPrep.d.ts +1 -1
- package/dist/_dts/media-editor/src/CropDialog.d.ts +1 -1
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -2
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +1 -1
- package/dist/_dts/media-editor/src/context.d.ts +3 -3
- package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -1
- package/dist/_dts/media-editor/src/cropEditorSource.d.ts +1 -1
- package/dist/_dts/media-editor/src/debug.d.ts +1 -1
- package/dist/_dts/media-editor/src/provider.d.ts +3 -3
- package/dist/_dts/media-editor/src/runtimeMediaAssetState.d.ts +1 -1
- package/dist/_dts/media-editor/src/transformModel.d.ts +1 -1
- package/dist/_dts/media-editor/src/types.d.ts +2 -2
- package/dist/_dts/media-editor/src/utils.d.ts +1 -1
- package/dist/_dts/media-react/src/components/ImageCropper.d.ts +1 -1
- package/dist/_dts/media-react/src/components/cropDraftModel.d.ts +1 -1
- package/dist/_dts/media-react/src/components/cropGeometry.d.ts +1 -1
- package/dist/_dts/media-react/src/components/cropSessionState.d.ts +1 -1
- package/dist/_dts/media-react/src/components/useImageCropperController.d.ts +1 -1
- package/dist/_dts/media-react/src/ffmpegLoader.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/internal/classification.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/mediaAssetResponseMapper.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +4 -4
- package/dist/_dts/media-react/src/utils/rotation.d.ts +1 -1
- package/dist/_dts/media-react/src/videoFrameExtraction.d.ts +1 -1
- package/dist/_dts/media-react/src/videoPrepBrowser.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/composePageFromBlocks.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/blocks/customizeFacetControls.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/editorRegistry.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/aiProposalProjection.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/OnboardingThemeSwitcher.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewAuthBanner.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +11 -10
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorUI.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +10 -9
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +10 -9
- 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/SiteChromeCustomizeContext.d.ts +8 -6
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +8 -6
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +5 -4
- package/dist/_dts/preview-next/src/client/preview/pageSchema.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewChromeSurface.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewChromeSurfacePolicy.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewSurface.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +8 -0
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +5 -4
- package/dist/_dts/preview-next/src/client/preview/subrouteNotice.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/themeOverlay.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/widgets/PreviewMediaField.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/widgets/widgetAdapters.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +3 -3
- package/dist/_dts/sdk/src/bookings/index.d.ts +3 -2
- package/dist/_dts/sdk/src/bookings/types.d.ts +16 -10
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +19 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/env.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/push-config.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +2 -2
- 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/site-commands/pushExecutionTypes.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/index.d.ts +2 -1
- package/dist/_dts/sdk/src/client/management/theme.d.ts +3 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +23 -0
- package/dist/_dts/sdk/src/config/validation.d.ts +37 -43
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +19 -19
- package/dist/_dts/sdk/src/portal/config.d.ts +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/constants.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/cookies.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/middleware.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/session.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +19 -4
- package/dist/_dts/sdk/src/rendering/islands/blocksContracts.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +3 -3
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +3 -3
- package/dist/_dts/sdk/src/theme-bridge/ThemeBridgeProvider.d.ts +2 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/adapter.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +95 -46
- package/dist/_dts/site-commands/src/domain.d.ts +2 -2
- package/dist/_dts/site-commands/src/exposure.d.ts +3 -3
- package/dist/_dts/site-commands/src/metadata.d.ts +15 -2
- package/dist/_dts/site-commands/src/planner.d.ts +1 -1
- package/dist/_dts/site-commands/src/refs.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +9 -9
- package/dist/_dts/theme-core/src/blocks/index.d.ts +2 -2
- package/dist/_dts/theme-core/src/blocks/types.d.ts +3 -2
- package/dist/_dts/theme-core/src/buttons/personalities/brushed-wash.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +35 -35
- package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/showtime-pill.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.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 +18 -18
- package/dist/_dts/theme-core/src/cards/types.d.ts +17 -17
- package/dist/_dts/theme-core/src/inputs/types.d.ts +13 -13
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +351 -351
- package/dist/_dts/theme-core/src/navigation/types.d.ts +15 -15
- package/dist/_dts/theme-core/src/palette/recipes/allRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/variants/brand-led.d.ts +24 -24
- package/dist/_dts/theme-core/src/palette/variants/high-contrast.d.ts +18 -18
- package/dist/_dts/theme-core/src/palette/variants/index.d.ts +65 -65
- package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +18 -18
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +7 -7
- package/dist/_dts/theme-core/src/palette/variants/warm-neutral.d.ts +18 -18
- package/dist/_dts/theme-core/src/progress/generateProgressCss.d.ts +2 -1
- package/dist/_dts/theme-core/src/recommend/generateThemes.d.ts +1 -1
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +4 -0
- package/dist/_dts/theme-core/src/schema.d.ts +568 -568
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +34 -34
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/pageDesignAuthority.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +14 -14
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +4 -4
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +2 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +5 -5
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +2 -2
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/surface.d.ts +2 -2
- package/dist/_dts/ui/src/toggle.d.ts +4 -4
- package/dist/cli/index.mjs +5989 -5678
- package/dist/client/bookings.mjs +104 -34
- package/dist/client/client.mjs +4482 -4298
- package/dist/client/hooks.mjs +5783 -3847
- package/dist/client/rendering/client.mjs +164 -35
- package/dist/client/rendering/islands.mjs +164 -35
- package/dist/client/rendering.mjs +530 -346
- package/dist/preview-next/before-render.mjs +39 -0
- package/dist/preview-next/client/runtime.mjs +339 -92
- package/dist/preview-next/middleware.mjs +39 -0
- package/dist/server/components.mjs +418 -310
- package/dist/server/config-validation.mjs +6899 -4883
- package/dist/server/config.mjs +6890 -4883
- package/dist/server/data.mjs +5783 -3847
- package/dist/server/index.mjs +199 -1762
- package/dist/server/next.mjs +6577 -5268
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +420 -312
- package/dist/server/rendering.mjs +420 -312
- package/dist/server/routing.mjs +11475 -7881
- package/dist/server/server.mjs +5770 -3834
- package/dist/server/theme-bridge.mjs +249 -15
- package/package.json +1 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VideoSlotPolicy } from '
|
|
1
|
+
import { type VideoSlotPolicy } from '../../../../media-core/src/index';
|
|
2
2
|
import type { FieldDefinition } from '../manifest/schema';
|
|
3
3
|
export type ConstrainedVideoMediaValue = Readonly<{
|
|
4
4
|
fieldPath: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NodeDefinition } from "../schema";
|
|
2
|
-
import type { ButtonSizeName } from "
|
|
2
|
+
import type { ButtonSizeName } from "../../../../../theme-core/src/buttons/index";
|
|
3
3
|
export declare function ctaButton(opts?: {
|
|
4
4
|
basePath?: string;
|
|
5
5
|
linkPath?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type NodeModifier } from "../builder";
|
|
2
2
|
import type { NodeProps } from "../types";
|
|
3
3
|
import type { NodeDefinition } from "../schema";
|
|
4
|
-
import type { BlockColorToken } from "
|
|
4
|
+
import type { BlockColorToken } from "../../../../../theme-core/src/tokens/blockColorTokens";
|
|
5
5
|
type BaseTextOpts = NodeProps & {
|
|
6
6
|
as?: string;
|
|
7
7
|
className?: string;
|
|
@@ -9,8 +9,8 @@ export declare const bindingSchema: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>>>;
|
|
10
10
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
11
11
|
value: "value";
|
|
12
|
-
context: "context";
|
|
13
12
|
collection: "collection";
|
|
13
|
+
context: "context";
|
|
14
14
|
}>>;
|
|
15
15
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
16
16
|
string: "string";
|
|
@@ -29,8 +29,8 @@ export declare const repeatSchema: z.ZodObject<{
|
|
|
29
29
|
}, z.core.$strip>>>;
|
|
30
30
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
31
31
|
value: "value";
|
|
32
|
-
context: "context";
|
|
33
32
|
collection: "collection";
|
|
33
|
+
context: "context";
|
|
34
34
|
}>>;
|
|
35
35
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
36
36
|
string: "string";
|
|
@@ -44,8 +44,8 @@ export declare const repeatSchema: z.ZodObject<{
|
|
|
44
44
|
sortBy: z.ZodOptional<z.ZodObject<{
|
|
45
45
|
path: z.ZodString;
|
|
46
46
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
47
|
-
asc: "asc";
|
|
48
47
|
desc: "desc";
|
|
48
|
+
asc: "asc";
|
|
49
49
|
}>>;
|
|
50
50
|
}, z.core.$strip>>;
|
|
51
51
|
}, z.core.$strip>;
|
|
@@ -60,8 +60,8 @@ export declare const conditionSchema: z.ZodObject<{
|
|
|
60
60
|
}, z.core.$strip>>>;
|
|
61
61
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
62
62
|
value: "value";
|
|
63
|
-
context: "context";
|
|
64
63
|
collection: "collection";
|
|
64
|
+
context: "context";
|
|
65
65
|
}>>;
|
|
66
66
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
67
67
|
string: "string";
|
|
@@ -84,8 +84,8 @@ export declare const dataScopeSchema: z.ZodObject<{
|
|
|
84
84
|
}, z.core.$strip>>>;
|
|
85
85
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
86
86
|
value: "value";
|
|
87
|
-
context: "context";
|
|
88
87
|
collection: "collection";
|
|
88
|
+
context: "context";
|
|
89
89
|
}>>;
|
|
90
90
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
91
91
|
string: "string";
|
|
@@ -3,11 +3,11 @@ import type { z } from 'zod';
|
|
|
3
3
|
import type { AnyBlockRuntimeDefinition, BlockRenderKind } from '../contracts';
|
|
4
4
|
import type { BlockManifest } from './manifest';
|
|
5
5
|
import type { BlockDesignCapabilityDeclaration } from './designCapabilities';
|
|
6
|
-
import type { BlockDesignMetadata } from '
|
|
6
|
+
import type { BlockDesignMetadata } from '../../../theme-core/src/site-styles/index';
|
|
7
7
|
import type { ResolverContext } from './runtime';
|
|
8
8
|
import type { ThemeTokens } from './theme';
|
|
9
9
|
import type { TransformRegistry } from './transforms';
|
|
10
|
-
import type { Theme } from '
|
|
10
|
+
import type { Theme } from '../../../theme-core/src/schema';
|
|
11
11
|
export type BlockRenderOptions = Omit<ResolverContext, 'viewModel'>;
|
|
12
12
|
export type RenderOptions = Partial<BlockRenderOptions> & {
|
|
13
13
|
viewModelOverrides?: Record<string, unknown>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Request/response types for all client-side API calls from blocks.
|
|
5
5
|
*/
|
|
6
|
-
import type { AppointmentResourceId } from "
|
|
6
|
+
import type { AppointmentResourceId } from "../../../../../core/src/index";
|
|
7
7
|
/** API key auth for SDK sites (bld_live_sk_*) */
|
|
8
8
|
export type ApiKeyAuth = {
|
|
9
9
|
type: "api-key";
|
|
@@ -1412,7 +1412,7 @@ export declare const runtimeBackedBlockModes: {
|
|
|
1412
1412
|
readonly shop: "passes-memberships";
|
|
1413
1413
|
};
|
|
1414
1414
|
export type RuntimeBackedBlockMode<TKind extends RuntimeBackedBlockKind> = typeof runtimeBackedBlockModes[TKind];
|
|
1415
|
-
export declare const runtimeBackedBlockKinds: readonly ("
|
|
1415
|
+
export declare const runtimeBackedBlockKinds: readonly ("form" | "event-registration" | "course-registration" | "event-listing" | "event-calendar" | "shop" | "product-list" | "product-detail" | "cart" | "checkout" | "gifting" | "newsletter-form")[];
|
|
1416
1416
|
export declare const runtimeBackedBlockServerRegistry: Readonly<{
|
|
1417
1417
|
readonly form: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
|
|
1418
1418
|
readonly 'event-listing': React.ElementType<any, keyof React.JSX.IntrinsicElements>;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* correctly relative to the page scroll container.
|
|
13
13
|
*/
|
|
14
14
|
export declare const POSITIONING_CLASSES: readonly ["rb-sticky", "rb-fixed", "rb-absolute", "rb-relative", "rb-top-0", "rb-left-0", "rb-right-0", "rb-bottom-0", "rb-z-40", "rb-z-50"];
|
|
15
|
-
export { desktopOnlyDisplay, mobileOnlyDisplay, type ResponsiveDisplay, } from '
|
|
15
|
+
export { desktopOnlyDisplay, mobileOnlyDisplay, type ResponsiveDisplay, } from '../../../../../theme-core/src/responsiveDisplay';
|
|
16
16
|
/**
|
|
17
17
|
* Split className into positioning classes (for wrapper) and content classes (for section).
|
|
18
18
|
*
|
|
@@ -3,7 +3,7 @@ import { type BlockApiConfig } from "../api";
|
|
|
3
3
|
import type { AutoAppliedDiscountPreview } from "../api/types";
|
|
4
4
|
import type { BookingFormConfig, BookingFormData, BookingFormService, BookingSelectedCollectionOptionKind } from "../nodes/booking-form.state";
|
|
5
5
|
import { type BookingPaymentSelectionViewModel } from "../shared/bookingPaymentOptions";
|
|
6
|
-
import { createBookingBlockApiConfig, type BookingAppointmentPackagesModel, type BookingFieldValue, type BookingFieldView, type BookingFlowActionResult, type BookingFlowFeedback, type BookingFlowStatus, type BookingFlowView, type BookingResourceView, type BookingFlowStep, type BookingFlowStepId, type BookingSlotView, type BookingSubmitActionResult, type BookingSubmitOptions, type LoadState } from "./useHeadlessBookingFlow.state";
|
|
6
|
+
import { createBookingBlockApiConfig, type BookingAppointmentPackagesModel, type BookingFieldValue, type BookingFieldView, type BookingFlowActionResult, type BookingFlowFeedback, type BookingFlowStatus, type BookingFlowView, type BookingResourceView, type BookingFlowStep, type BookingFlowStepId, type BookingSlotSelection, type BookingSlotView, type BookingSubmitActionResult, type BookingSubmitOptions, type LoadState } from "./useHeadlessBookingFlow.state";
|
|
7
7
|
export type { BlockApiConfig };
|
|
8
8
|
export type { BookingAppointmentPackagesModel };
|
|
9
9
|
export { createBookingBlockApiConfig };
|
|
@@ -96,7 +96,7 @@ export type BookingFlowActions = Readonly<{
|
|
|
96
96
|
selectService: (serviceId: string) => void;
|
|
97
97
|
selectResource: (resourceId: string | null) => void;
|
|
98
98
|
selectDate: (date: string | null) => void;
|
|
99
|
-
selectSlot: (slot:
|
|
99
|
+
selectSlot: (slot: BookingSlotSelection | null) => void;
|
|
100
100
|
updateField: (fieldId: string, value: BookingFieldValue) => void;
|
|
101
101
|
markFieldTouched: (fieldId: string) => void;
|
|
102
102
|
selectPaymentOption: (kind: BookingSelectedCollectionOptionKind | null) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { bookingFlowReducer, buildBookingAvailabilityQuery, buildBookingStepPlan, buildBookingSubmitPlan, createBookingBlockApiConfig, createEmptyBookingValidationErrors, createFieldBookingValidationErrors, createFormBookingValidationError, createInitialBookingFlowReducerState, describeUnknownError, deriveBookingFieldViews, deriveBookingFlowSteps, getAppointmentBookingOverrideInput, hasBookingValidationErrors, resolveAppointmentPackagesModel, resolveAvailabilitySelectionInvalidation, resolveHeadlessBookingStatus, resolveHeadlessBookingView, toBookingFormData, toBookingSlotView, toBookingSlotViews, validateBookingField, validateBookingFields, validateBookingStep, } from "../nodes/booking-form.headless.state";
|
|
2
|
-
export type { AppointmentBookingOverrideData, AppointmentBookingOverrideInput, AppointmentBookingOverrideInputResult, AppointmentBookingOverridePropsLike, BookingAvailabilityQuery, BookingAppointmentPackagesModel, BookingAppointmentPackagesUnavailableReason, BookingFieldValue, BookingFieldView, BookingFlowActionResult, BookingFlowFeedback, BookingFlowStatus, BookingFlowStep, BookingFlowStepId, BookingFlowView, BookingResourceView, BookingSlotView, BookingSubmitActionResult, BookingSubmitOptions, BookingValidationErrors, DerivedBookingFlowSteps, DeriveBookingFlowStepsInput, LoadState, } from "../nodes/booking-form.headless.state";
|
|
1
|
+
export { asBookingFieldId, bookingFlowReducer, buildBookingAvailabilityQuery, buildBookingStepPlan, buildBookingSubmitPlan, createBookingBlockApiConfig, createEmptyBookingValidationErrors, createFieldBookingValidationErrors, createFormBookingValidationError, createInitialBookingFlowReducerState, describeUnknownError, deriveBookingFieldViews, deriveBookingFlowSteps, getAppointmentBookingOverrideInput, hasBookingValidationErrors, resolveAppointmentPackagesModel, resolveAvailabilitySelectionInvalidation, resolveHeadlessBookingStatus, resolveHeadlessBookingView, toBookingFormData, toBookingSlotView, toBookingSlotViews, toOptionalAppointmentResourceId, toOptionalAppointmentServiceId, validateBookingField, validateBookingFields, validateBookingStep, } from "../nodes/booking-form.headless.state";
|
|
2
|
+
export type { AppointmentBookingOverrideData, AppointmentBookingOverrideInput, AppointmentBookingOverrideInputResult, AppointmentBookingOverridePropsLike, BookingAvailabilityQuery, BookingAppointmentPackagesModel, BookingAppointmentPackagesUnavailableReason, BookingFieldId, BookingFieldValue, BookingFieldView, BookingFlowActionResult, BookingFlowFeedback, BookingFlowStatus, BookingFlowStep, BookingFlowStepId, BookingFlowView, BookingResourceView, BookingSlotSelection, BookingSlotView, BookingSubmitActionResult, BookingSubmitOptions, BookingValidationErrors, DerivedBookingFlowSteps, DeriveBookingFlowStepsInput, LoadState, } from "../nodes/booking-form.headless.state";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type AccordionIcon } from '
|
|
2
|
+
import { type AccordionIcon } from '../../../../../theme-core/src/accordions/types';
|
|
3
3
|
type AccordionNodeBaseProps = {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type AccordionIcon } from '
|
|
2
|
+
import { type AccordionIcon } from '../../../../../theme-core/src/accordions/types';
|
|
3
3
|
type AccordionNodeProps = {
|
|
4
4
|
blockId?: string | null;
|
|
5
5
|
children?: React.ReactNode;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AppointmentResourceId, AppointmentServiceId, Brand, CustomerPassId, FormId, PassId, SiteId } from "../../../../../core/src/index";
|
|
1
2
|
import type { BlockApiConfig, EligibleAppointmentPackage } from "../api/types";
|
|
2
3
|
import type { TimeSlot } from "../api/types";
|
|
3
4
|
import type { BookingFormConfig, BookingFormData, BookingFormField, BookingPaymentStepResolution, BookingFormServicesSource, BookingFormService, BookingSelectedCollectionOptionKind, BookingSubmissionData } from "./booking-form.state";
|
|
@@ -28,9 +29,18 @@ export type BookingValidationErrors = Readonly<{
|
|
|
28
29
|
formError: string | null;
|
|
29
30
|
fieldErrors: Readonly<Record<string, string>>;
|
|
30
31
|
}>;
|
|
32
|
+
export type BookingFieldId = Brand<string, "BookingFieldId">;
|
|
33
|
+
export declare const asBookingFieldId: (id: string) => BookingFieldId;
|
|
31
34
|
export type BookingFieldValue = string | number | boolean | readonly string[] | null;
|
|
32
35
|
export type BookingSlotView = Readonly<{
|
|
33
36
|
key: string;
|
|
37
|
+
startAt: string;
|
|
38
|
+
endAt: string;
|
|
39
|
+
resourceId: AppointmentResourceId;
|
|
40
|
+
resourceName?: string;
|
|
41
|
+
label?: string;
|
|
42
|
+
}>;
|
|
43
|
+
export type BookingSlotSelection = Readonly<{
|
|
34
44
|
startAt: string;
|
|
35
45
|
endAt: string;
|
|
36
46
|
resourceId: string;
|
|
@@ -38,7 +48,7 @@ export type BookingSlotView = Readonly<{
|
|
|
38
48
|
label?: string;
|
|
39
49
|
}>;
|
|
40
50
|
export type BookingResourceView = Readonly<{
|
|
41
|
-
id:
|
|
51
|
+
id: AppointmentResourceId;
|
|
42
52
|
label: string;
|
|
43
53
|
}>;
|
|
44
54
|
export type BookingFlowFeedback = Readonly<{
|
|
@@ -132,7 +142,7 @@ export type BookingSubmitActionResult = Readonly<{
|
|
|
132
142
|
}>>;
|
|
133
143
|
export type BookingFieldView = Readonly<{
|
|
134
144
|
field: BookingFormField;
|
|
135
|
-
id:
|
|
145
|
+
id: BookingFieldId;
|
|
136
146
|
label: string;
|
|
137
147
|
type: BookingFormField["type"];
|
|
138
148
|
value: BookingFieldValue;
|
|
@@ -148,15 +158,15 @@ export type BookingFieldView = Readonly<{
|
|
|
148
158
|
}>;
|
|
149
159
|
export type BookingFlowReducerState = Readonly<{
|
|
150
160
|
currentStepId: BookingFlowStepId;
|
|
151
|
-
selectedServiceId?:
|
|
152
|
-
selectedResourceId?:
|
|
161
|
+
selectedServiceId?: AppointmentServiceId;
|
|
162
|
+
selectedResourceId?: AppointmentResourceId;
|
|
153
163
|
selectedDate?: string;
|
|
154
164
|
selectedSlot: BookingSlotView | null;
|
|
155
165
|
fieldValues: Readonly<Record<string, BookingFieldValue>>;
|
|
156
166
|
touchedFields: Readonly<Record<string, boolean>>;
|
|
157
167
|
discountCode: string;
|
|
158
168
|
selectedCollectionOptionKind?: BookingSelectedCollectionOptionKind;
|
|
159
|
-
selectedAppointmentPackageId?:
|
|
169
|
+
selectedAppointmentPackageId?: CustomerPassId;
|
|
160
170
|
altchaSolution: string | null;
|
|
161
171
|
validationErrors: BookingValidationErrors;
|
|
162
172
|
feedback: BookingFlowFeedback;
|
|
@@ -164,10 +174,10 @@ export type BookingFlowReducerState = Readonly<{
|
|
|
164
174
|
}>;
|
|
165
175
|
export type BookingFlowEvent = Readonly<{
|
|
166
176
|
type: "service-selected";
|
|
167
|
-
serviceId:
|
|
177
|
+
serviceId: AppointmentServiceId;
|
|
168
178
|
}> | Readonly<{
|
|
169
179
|
type: "resource-selected";
|
|
170
|
-
resourceId:
|
|
180
|
+
resourceId: AppointmentResourceId | null;
|
|
171
181
|
}> | Readonly<{
|
|
172
182
|
type: "date-selected";
|
|
173
183
|
date: string | null;
|
|
@@ -176,17 +186,17 @@ export type BookingFlowEvent = Readonly<{
|
|
|
176
186
|
slot: BookingSlotView | null;
|
|
177
187
|
}> | Readonly<{
|
|
178
188
|
type: "field-updated";
|
|
179
|
-
fieldId:
|
|
189
|
+
fieldId: BookingFieldId;
|
|
180
190
|
value: BookingFieldValue;
|
|
181
191
|
}> | Readonly<{
|
|
182
192
|
type: "field-touched";
|
|
183
|
-
fieldId:
|
|
193
|
+
fieldId: BookingFieldId;
|
|
184
194
|
}> | Readonly<{
|
|
185
195
|
type: "payment-option-selected";
|
|
186
196
|
kind: BookingSelectedCollectionOptionKind | null;
|
|
187
197
|
}> | Readonly<{
|
|
188
198
|
type: "appointment-package-selected";
|
|
189
|
-
packageId:
|
|
199
|
+
packageId: CustomerPassId | null;
|
|
190
200
|
}> | Readonly<{
|
|
191
201
|
type: "discount-code-changed";
|
|
192
202
|
code: string;
|
|
@@ -223,8 +233,8 @@ export type BuildBookingStepPlanInput = Readonly<{
|
|
|
223
233
|
form: BookingFormConfig | null;
|
|
224
234
|
services: readonly BookingFormService[];
|
|
225
235
|
data: Partial<BookingFormData>;
|
|
226
|
-
defaultServiceId?:
|
|
227
|
-
defaultResourceId?:
|
|
236
|
+
defaultServiceId?: AppointmentServiceId;
|
|
237
|
+
defaultResourceId?: AppointmentResourceId;
|
|
228
238
|
requiresServiceSelection?: boolean;
|
|
229
239
|
requiresResourceSelection?: boolean;
|
|
230
240
|
enableAppointmentPackages?: boolean;
|
|
@@ -244,8 +254,8 @@ export type DeriveBookingFlowStepsInput = Readonly<{
|
|
|
244
254
|
form: BookingFormConfig | null;
|
|
245
255
|
services: readonly BookingFormService[];
|
|
246
256
|
data: Partial<BookingFormData>;
|
|
247
|
-
defaultServiceId?:
|
|
248
|
-
defaultResourceId?:
|
|
257
|
+
defaultServiceId?: AppointmentServiceId;
|
|
258
|
+
defaultResourceId?: AppointmentResourceId;
|
|
249
259
|
currentStepId: BookingFlowStepId;
|
|
250
260
|
requiresServiceSelection?: boolean;
|
|
251
261
|
requiresResourceSelection?: boolean;
|
|
@@ -261,8 +271,8 @@ export type DerivedBookingFlowSteps = Readonly<{
|
|
|
261
271
|
export type BookingAvailabilityQuery = Readonly<{
|
|
262
272
|
ok: true;
|
|
263
273
|
key: string;
|
|
264
|
-
serviceId:
|
|
265
|
-
resourceId?:
|
|
274
|
+
serviceId: AppointmentServiceId;
|
|
275
|
+
resourceId?: AppointmentResourceId;
|
|
266
276
|
selectedDate?: string;
|
|
267
277
|
timezone: string;
|
|
268
278
|
}> | Readonly<{
|
|
@@ -338,10 +348,10 @@ export type BookingAppointmentPackagesModel = Readonly<{
|
|
|
338
348
|
unavailableReason: null;
|
|
339
349
|
state: Readonly<{
|
|
340
350
|
tag: "loaded";
|
|
341
|
-
value: readonly
|
|
351
|
+
value: readonly HeadlessEligibleAppointmentPackage[];
|
|
342
352
|
}>;
|
|
343
|
-
items: readonly
|
|
344
|
-
selected:
|
|
353
|
+
items: readonly HeadlessEligibleAppointmentPackage[];
|
|
354
|
+
selected: HeadlessEligibleAppointmentPackage | null;
|
|
345
355
|
}>;
|
|
346
356
|
export type BookingAppointmentPackagesUnavailableReason = "disabled" | "missing-portal-auth" | "missing-priced-service";
|
|
347
357
|
export type AppointmentBookingOverrideData = Readonly<{
|
|
@@ -367,14 +377,14 @@ export type AppointmentBookingOverridePropsLike = Readonly<{
|
|
|
367
377
|
blockId?: string | null;
|
|
368
378
|
}>;
|
|
369
379
|
export type AppointmentBookingOverrideInput = Readonly<{
|
|
370
|
-
siteId:
|
|
380
|
+
siteId: SiteId;
|
|
371
381
|
apiBaseUrl: string;
|
|
372
382
|
portalToken: string | null;
|
|
373
|
-
formId:
|
|
383
|
+
formId: FormId;
|
|
374
384
|
form: BookingFormConfig;
|
|
375
385
|
services: readonly BookingFormService[];
|
|
376
|
-
initialServiceId?:
|
|
377
|
-
initialResourceId?:
|
|
386
|
+
initialServiceId?: AppointmentServiceId;
|
|
387
|
+
initialResourceId?: AppointmentResourceId;
|
|
378
388
|
requiresServiceSelection: boolean;
|
|
379
389
|
requiresResourceSelection: boolean;
|
|
380
390
|
shouldAutoSelectSingleResource: boolean;
|
|
@@ -382,6 +392,10 @@ export type AppointmentBookingOverrideInput = Readonly<{
|
|
|
382
392
|
successMessage?: string;
|
|
383
393
|
blockId?: string | null;
|
|
384
394
|
}>;
|
|
395
|
+
export type HeadlessEligibleAppointmentPackage = Omit<EligibleAppointmentPackage, "customerPassId" | "passId"> & Readonly<{
|
|
396
|
+
customerPassId: CustomerPassId;
|
|
397
|
+
passId: PassId;
|
|
398
|
+
}>;
|
|
385
399
|
export type AppointmentBookingOverrideInputResult = Readonly<{
|
|
386
400
|
ok: true;
|
|
387
401
|
value: AppointmentBookingOverrideInput;
|
|
@@ -399,6 +413,8 @@ export declare function createInitialBookingFlowReducerState(input: Readonly<{
|
|
|
399
413
|
defaultResourceId?: string;
|
|
400
414
|
initialData?: Partial<BookingFormData>;
|
|
401
415
|
}>): BookingFlowReducerState;
|
|
416
|
+
export declare function toOptionalAppointmentServiceId(value: string | undefined): AppointmentServiceId | undefined;
|
|
417
|
+
export declare function toOptionalAppointmentResourceId(value: string | undefined): AppointmentResourceId | undefined;
|
|
402
418
|
export declare function bookingFlowReducer(state: BookingFlowReducerState, event: BookingFlowEvent): BookingFlowReducerState;
|
|
403
419
|
export declare function resolveAvailabilitySelectionInvalidation(input: Readonly<{
|
|
404
420
|
selectedDate?: string;
|
|
@@ -406,7 +422,7 @@ export declare function resolveAvailabilitySelectionInvalidation(input: Readonly
|
|
|
406
422
|
availableDates: readonly string[];
|
|
407
423
|
slots: readonly BookingSlotView[];
|
|
408
424
|
}>): AvailabilitySelectionInvalidation;
|
|
409
|
-
export declare function toBookingSlotView(slot:
|
|
425
|
+
export declare function toBookingSlotView(slot: BookingSlotSelection): BookingSlotView;
|
|
410
426
|
export declare function toBookingSlotViews(slots: readonly TimeSlot[]): BookingSlotView[];
|
|
411
427
|
export declare function toBookingFormData(state: BookingFlowReducerState): BookingFormData;
|
|
412
428
|
export declare function buildBookingStepPlan(input: BuildBookingStepPlanInput): readonly BookingStepPlanItem[];
|
|
@@ -427,8 +443,8 @@ export declare function validateBookingFields(input: Readonly<{
|
|
|
427
443
|
export declare function validateBookingField(field: BookingFormField, value: unknown): string | null;
|
|
428
444
|
export declare function deriveBookingFlowSteps(input: DeriveBookingFlowStepsInput): DerivedBookingFlowSteps;
|
|
429
445
|
export declare function buildBookingAvailabilityQuery(input: Readonly<{
|
|
430
|
-
serviceId?:
|
|
431
|
-
resourceId?:
|
|
446
|
+
serviceId?: AppointmentServiceId;
|
|
447
|
+
resourceId?: AppointmentResourceId;
|
|
432
448
|
selectedDate?: string;
|
|
433
449
|
timezone: string;
|
|
434
450
|
requireDate?: boolean;
|
|
@@ -441,12 +457,12 @@ export declare function deriveBookingFieldViews(input: Readonly<{
|
|
|
441
457
|
idPrefix: string;
|
|
442
458
|
}>): readonly BookingFieldView[];
|
|
443
459
|
export declare function buildBookingSubmitPlan(input: Readonly<{
|
|
444
|
-
formId:
|
|
460
|
+
formId: FormId;
|
|
445
461
|
form: BookingFormConfig | null;
|
|
446
462
|
state: BookingFlowReducerState;
|
|
447
463
|
services: readonly BookingFormService[];
|
|
448
|
-
defaultServiceId?:
|
|
449
|
-
defaultResourceId?:
|
|
464
|
+
defaultServiceId?: AppointmentServiceId;
|
|
465
|
+
defaultResourceId?: AppointmentResourceId;
|
|
450
466
|
requiresResourceSelection?: boolean;
|
|
451
467
|
altchaSolution?: string | null;
|
|
452
468
|
viewerTimeZone: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const APPOINTMENT_BOOKING_BLOCK_ID: "block.appointment-booking";
|
|
2
|
+
export declare const BOOKING_FORM_DATA_RESERVED_KEY_VALUES: readonly ["serviceId", "resourceId", "selectedDate", "selectedSlot", "discountCode", "selectedCollectionOptionKind", "selectedAppointmentPackageId"];
|
|
3
|
+
export type BookingFormDataReservedKey = (typeof BOOKING_FORM_DATA_RESERVED_KEY_VALUES)[number];
|
|
4
|
+
export type BookingReservedFieldCollision = Readonly<{
|
|
5
|
+
fieldId: BookingFormDataReservedKey;
|
|
6
|
+
message: string;
|
|
7
|
+
}>;
|
|
8
|
+
type FieldWithId = Readonly<{
|
|
9
|
+
id: string;
|
|
10
|
+
}>;
|
|
11
|
+
type BookingSchemaWithFields = Readonly<{
|
|
12
|
+
fields?: readonly FieldWithId[];
|
|
13
|
+
}>;
|
|
14
|
+
export declare const BOOKING_FORM_DATA_RESERVED_KEYS: ReadonlySet<string>;
|
|
15
|
+
export declare function isBookingFormDataReservedKey(value: string): value is BookingFormDataReservedKey;
|
|
16
|
+
export declare function formatBookingFormDataReservedFieldMessage(fieldId: BookingFormDataReservedKey): string;
|
|
17
|
+
export declare function formatBookingReservedFieldCollisionMessages(collisions: readonly BookingReservedFieldCollision[]): string;
|
|
18
|
+
/**
|
|
19
|
+
* Finds custom booking form fields that collide with runtime-owned data keys.
|
|
20
|
+
*
|
|
21
|
+
* Results preserve first-seen field order, are deduplicated by field ID, and
|
|
22
|
+
* use exact case-sensitive matching because the runtime stores JavaScript
|
|
23
|
+
* object keys without case normalization.
|
|
24
|
+
*/
|
|
25
|
+
export declare function findBookingFormDataReservedFieldCollisions(fields: readonly FieldWithId[]): BookingReservedFieldCollision[];
|
|
26
|
+
export declare function collectBookingReservedFieldCollisions(schema: BookingSchemaWithFields, settings: unknown): BookingReservedFieldCollision[];
|
|
27
|
+
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { BlockBookingPaymentTerms } from "../../blocks/shared/bookingPaymentTerms";
|
|
2
2
|
import type { AppointmentBookingStatusResponse } from "../api/types";
|
|
3
|
+
import type { BookingFormDataReservedKey } from "./booking-form.reserved-fields";
|
|
4
|
+
export { APPOINTMENT_BOOKING_BLOCK_ID, BOOKING_FORM_DATA_RESERVED_KEYS, BOOKING_FORM_DATA_RESERVED_KEY_VALUES, collectBookingReservedFieldCollisions, findBookingFormDataReservedFieldCollisions, formatBookingReservedFieldCollisionMessages, formatBookingFormDataReservedFieldMessage, isBookingFormDataReservedKey, type BookingFormDataReservedKey, type BookingReservedFieldCollision, } from "./booking-form.reserved-fields";
|
|
3
5
|
export type BookingFormFieldOption = Readonly<{
|
|
4
6
|
value: string;
|
|
5
7
|
label: string;
|
|
@@ -74,7 +76,10 @@ export type BookingFormServicesSource = readonly BookingFormService[] | Readonly
|
|
|
74
76
|
services?: readonly BookingFormService[];
|
|
75
77
|
}> | Readonly<Record<string, BookingFormService>>;
|
|
76
78
|
export type BookingSelectedCollectionOptionKind = "upfront" | "deferred_manual" | "instalment_plan" | "flexible_balance";
|
|
77
|
-
|
|
79
|
+
type BookingCustomFieldData<TCustomFieldId extends string> = Readonly<{
|
|
80
|
+
[K in TCustomFieldId as K extends BookingFormDataReservedKey ? never : K]?: unknown;
|
|
81
|
+
}>;
|
|
82
|
+
export type BookingFormData<TCustomFieldId extends string = never> = Readonly<{
|
|
78
83
|
serviceId?: string;
|
|
79
84
|
resourceId?: string;
|
|
80
85
|
selectedDate?: string;
|
|
@@ -82,7 +87,8 @@ export type BookingFormData = Readonly<{
|
|
|
82
87
|
discountCode?: string;
|
|
83
88
|
selectedCollectionOptionKind?: BookingSelectedCollectionOptionKind;
|
|
84
89
|
selectedAppointmentPackageId?: string;
|
|
85
|
-
}> &
|
|
90
|
+
}> & BookingCustomFieldData<TCustomFieldId>;
|
|
91
|
+
type RuntimeBookingFormData = BookingFormData<string>;
|
|
86
92
|
type BookingSubmissionCommon = Readonly<{
|
|
87
93
|
formId: string;
|
|
88
94
|
serviceId: string;
|
|
@@ -199,23 +205,22 @@ export declare function deriveBookingFormViewState(input: Readonly<{
|
|
|
199
205
|
export declare function resolveBookingSiteId(siteId: string | undefined, form: BookingFormSourceRecord | null | undefined): string;
|
|
200
206
|
export declare function normalizeBookingFormConfig(form: unknown): BookingFormConfig | null;
|
|
201
207
|
export declare function normalizeBookingServices(services: unknown): readonly BookingFormService[];
|
|
202
|
-
export declare const BOOKING_FORM_DATA_RESERVED_KEYS: Set<string>;
|
|
203
208
|
export declare function toSelectedCollectionOptionKind(value: unknown): BookingSelectedCollectionOptionKind | undefined;
|
|
204
209
|
export declare function getBookingServicePaymentSelectionMode(service: BookingFormService | undefined): BookingPaymentSelectionMode;
|
|
205
210
|
export declare function resolveDefaultBookingServiceId(formConfig: BookingFormConfig | null | undefined, services: readonly BookingFormService[]): string | null;
|
|
206
211
|
export declare function resolveBookingSelectedService(input: Readonly<{
|
|
207
|
-
data: Partial<
|
|
212
|
+
data: Partial<RuntimeBookingFormData>;
|
|
208
213
|
services: readonly BookingFormService[];
|
|
209
214
|
defaultServiceId?: string | null;
|
|
210
215
|
}>): BookingFormService | null;
|
|
211
216
|
export declare function resolveBookingPaymentStep(input: Readonly<{
|
|
212
|
-
data: Partial<
|
|
217
|
+
data: Partial<RuntimeBookingFormData>;
|
|
213
218
|
services: readonly BookingFormService[];
|
|
214
219
|
defaultServiceId?: string | null;
|
|
215
220
|
}>): BookingPaymentStepResolution;
|
|
216
221
|
export declare function prepareBookingSubmission(input: Readonly<{
|
|
217
222
|
formId: string;
|
|
218
|
-
data:
|
|
223
|
+
data: RuntimeBookingFormData;
|
|
219
224
|
services: readonly BookingFormService[];
|
|
220
225
|
defaultServiceId?: string | null;
|
|
221
226
|
defaultResourceId?: string | null;
|
|
@@ -224,4 +229,3 @@ export declare function prepareBookingSubmission(input: Readonly<{
|
|
|
224
229
|
}>): BookingSubmissionPreparationResult;
|
|
225
230
|
export declare function formatBookingSubmissionPreparationError(error: BookingSubmissionPreparationError): string;
|
|
226
231
|
export declare function getBookingSuccessMessage(successMessage: string | null | undefined): string;
|
|
227
|
-
export {};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* categoryColor with theme fallback). Renderers (WeekTimetableView,
|
|
7
7
|
* EventCalendar.server) consume this shape.
|
|
8
8
|
*/
|
|
9
|
-
import { type WeekStart } from '
|
|
9
|
+
import { type WeekStart } from '../../../../../../../calendar/src/index';
|
|
10
10
|
import type { PublicEvent } from '../../../../blocks/events/shared/types';
|
|
11
11
|
export type TimetableEventCell = {
|
|
12
12
|
event: PublicEvent;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { CardOrientation, EventLayout, PublicEvent } from '../../../../blocks/events/shared/types';
|
|
5
5
|
/** Day names starting from Sunday — kept for back-compat re-export. */
|
|
6
|
-
export { DAY_NAMES, MONTH_NAMES } from '
|
|
7
|
-
export type { WeekStart } from '
|
|
6
|
+
export { DAY_NAMES, MONTH_NAMES } from '../../../../../../../calendar/src/index';
|
|
7
|
+
export type { WeekStart } from '../../../../../../../calendar/src/index';
|
|
8
8
|
/** Column class mappings for grid layouts */
|
|
9
9
|
export declare const COLUMN_CLASSES: Record<string, string>;
|
|
10
10
|
/**
|
|
@@ -46,7 +46,7 @@ export declare function formatEventDateParts(args: {
|
|
|
46
46
|
};
|
|
47
47
|
export declare function formatTeamMemberNames(names: readonly string[]): string | null;
|
|
48
48
|
export declare function formatEventTeacherLine(event: PublicEvent): string | null;
|
|
49
|
-
export { addMonths, formatCalendarTitle, formatDateKey, getEndOfMonth, getMonthCalendarDays, getOrderedDayNames, getStartOfMonth, getThreeMonthRange, getWeekCalendarDays, isToday, MAX_EVENTS_PER_DAY, } from '
|
|
49
|
+
export { addMonths, formatCalendarTitle, formatDateKey, getEndOfMonth, getMonthCalendarDays, getOrderedDayNames, getStartOfMonth, getThreeMonthRange, getWeekCalendarDays, isToday, MAX_EVENTS_PER_DAY, } from '../../../../../../../calendar/src/index';
|
|
50
50
|
/**
|
|
51
51
|
* Group events by their local date (YYYY-MM-DD key in each event's own
|
|
52
52
|
* timezone). Thin domain wrapper over `groupItemsByDate` from the calendar
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AddressedLocationValue, type LocationCoordinates } from '
|
|
1
|
+
import { type AddressedLocationValue, type LocationCoordinates } from '../../../../../core/src/index';
|
|
2
2
|
export declare const LOCATION_MAP_DEFAULTS: {
|
|
3
3
|
readonly zoom: 15;
|
|
4
4
|
readonly heightPx: 320;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ResolvedMediaTransform, type DirectImageUrlOptions } from '
|
|
2
|
+
import { type ResolvedMediaTransform, type DirectImageUrlOptions } from '../../../../../media-core/src/index';
|
|
3
3
|
import type { Media } from '../../../lib/media';
|
|
4
4
|
/**
|
|
5
5
|
* Options for image URL resolution.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Loads Leaflet CSS/JS from CDN to avoid bundling in the blocks package.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import type { LocationCoordinates } from '
|
|
8
|
+
import type { LocationCoordinates } from '../../../../../../core/src/index';
|
|
9
9
|
type LeafletStaticMapProps = {
|
|
10
10
|
location: LocationCoordinates;
|
|
11
11
|
label?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const previewStageSchema: z.ZodEnum<{
|
|
3
|
-
preview: "preview";
|
|
4
3
|
published: "published";
|
|
4
|
+
preview: "preview";
|
|
5
5
|
}>;
|
|
6
6
|
export declare const registrationButtonVariantSchema: z.ZodEnum<{
|
|
7
7
|
primary: "primary";
|
|
@@ -16,14 +16,14 @@ export declare const eventButtonVariantSchema: z.ZodEnum<{
|
|
|
16
16
|
}>;
|
|
17
17
|
export declare const eventLayoutSchema: z.ZodEnum<{
|
|
18
18
|
compact: "compact";
|
|
19
|
-
stack: "stack";
|
|
20
19
|
grid: "grid";
|
|
20
|
+
stack: "stack";
|
|
21
21
|
}>;
|
|
22
22
|
export declare const eventCalendarDisplayModeSchema: z.ZodEnum<{
|
|
23
|
+
week: "week";
|
|
23
24
|
month: "month";
|
|
24
|
-
list: "list";
|
|
25
25
|
combined: "combined";
|
|
26
|
-
|
|
26
|
+
list: "list";
|
|
27
27
|
timetable: "timetable";
|
|
28
28
|
}>;
|
|
29
29
|
export declare const columnOptionSchema: z.ZodEnum<{
|
|
@@ -36,12 +36,12 @@ export declare const weekStartSchema: z.ZodEnum<{
|
|
|
36
36
|
monday: "monday";
|
|
37
37
|
}>;
|
|
38
38
|
export declare const filterAutoShowSchema: z.ZodEnum<{
|
|
39
|
-
never: "never";
|
|
40
39
|
auto: "auto";
|
|
41
40
|
always: "always";
|
|
41
|
+
never: "never";
|
|
42
42
|
}>;
|
|
43
43
|
export declare const calendarTabViewsSchema: z.ZodEnum<{
|
|
44
|
+
week: "week";
|
|
44
45
|
month: "month";
|
|
45
46
|
both: "both";
|
|
46
|
-
week: "week";
|
|
47
47
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "../../../../theme-core/src/tokens/index";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { ThemeHeader } from "
|
|
2
|
+
import type { ThemeHeader } from "../../../../../theme-core/src/schema";
|
|
3
3
|
import type { ThemeTokens } from "../../theme";
|
|
4
4
|
import { type TransformDefinition } from "./core";
|
|
5
5
|
declare const maxWidthClassSchema: z.ZodObject<{
|
|
@@ -45,8 +45,8 @@ declare const twoColumnContainerClassOptionsSchema: z.ZodObject<{
|
|
|
45
45
|
export declare const twoColumnContainerClassTransform: TransformDefinition<z.infer<typeof twoColumnContainerClassOptionsSchema>>;
|
|
46
46
|
declare const twoColumnFlexBasisOptionsSchema: z.ZodObject<{
|
|
47
47
|
side: z.ZodEnum<{
|
|
48
|
-
text: "text";
|
|
49
48
|
image: "image";
|
|
49
|
+
text: "text";
|
|
50
50
|
}>;
|
|
51
51
|
}, z.core.$strip>;
|
|
52
52
|
export declare const twoColumnFlexBasisTransform: TransformDefinition<z.infer<typeof twoColumnFlexBasisOptionsSchema>>;
|