@riverbankcms/sdk 0.147.0 → 0.148.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/CHANGELOG.md +16 -0
- package/dist/{PreviewEditorSidebar-DtpB3_sS.mjs → PreviewEditorSidebar-DvEPG3Z2.mjs} +202 -143
- package/dist/{PreviewEditorUI-DxTLgaHo.mjs → PreviewEditorUI-D6eb6fkx.mjs} +68 -60
- package/dist/{PreviewQueryProvider-Dd4dxOiU.mjs → PreviewQueryProvider-5znTyJuz.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DMMNCngt.mjs → SdkPreviewModeRuntime-DJ6utQ_R.mjs} +1191 -513
- package/dist/{SiteChromeCustomizeContext-DQXZXiqS.mjs → SiteChromeCustomizeContext-CFJYh6vo.mjs} +201798 -197304
- package/dist/_dts/ai/src/contracts/proposals.d.ts +0 -33
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +0 -3
- package/dist/_dts/api/src/accessAdmin.d.ts +0 -4
- package/dist/_dts/api/src/accountApi.d.ts +1 -1
- package/dist/_dts/api/src/admin.d.ts +22 -22
- package/dist/_dts/api/src/aiPatch.d.ts +2 -2
- package/dist/_dts/api/src/aiPlayground.d.ts +1 -0
- package/dist/_dts/api/src/analytics.d.ts +2 -2
- package/dist/_dts/api/src/apiEndpointTypes.d.ts +2 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +2 -2
- package/dist/_dts/api/src/auth.d.ts +10 -10
- package/dist/_dts/api/src/availability.d.ts +6 -6
- package/dist/_dts/api/src/billing.d.ts +42 -15
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +15 -6
- package/dist/_dts/api/src/blocks.d.ts +15 -14
- package/dist/_dts/api/src/blocksKeys.d.ts +2 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +0 -2
- package/dist/_dts/api/src/bookingOperations.d.ts +4 -4
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/bookings.d.ts +7 -7
- package/dist/_dts/api/src/calendar.d.ts +9 -9
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -6
- package/dist/_dts/api/src/common/envelope.d.ts +2 -2
- package/dist/_dts/api/src/content-editor.d.ts +2 -2
- package/dist/_dts/api/src/contentEntries.d.ts +17 -48
- package/dist/_dts/api/src/contentRuntime.d.ts +51 -37
- package/dist/_dts/api/src/contentTypes.d.ts +11 -11
- package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +6 -6
- package/dist/_dts/api/src/documentLifecycle.d.ts +67 -0
- package/dist/_dts/api/src/domains.d.ts +16 -16
- package/dist/_dts/api/src/editLeaseEndpoints.d.ts +72 -0
- package/dist/_dts/api/src/emailSettings.d.ts +4 -4
- package/dist/_dts/api/src/endpoints.d.ts +133 -41
- package/dist/_dts/api/src/eventEmailTemplates.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +25 -0
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +0 -8
- package/dist/_dts/api/src/eventPageWords.d.ts +7 -12
- package/dist/_dts/api/src/footerSettings.d.ts +6 -6
- package/dist/_dts/api/src/index.d.ts +6 -5
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/navigation.d.ts +5 -5
- package/dist/_dts/api/src/pageSurfaceEditorEndpoints.d.ts +55 -0
- package/dist/_dts/api/src/pageSurfaceEndpoints.d.ts +28 -7
- package/dist/_dts/api/src/pages.d.ts +7 -7
- package/dist/_dts/api/src/performance.d.ts +1 -1
- package/dist/_dts/api/src/public/index.d.ts +1 -1
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +2 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/redirects.d.ts +3 -3
- package/dist/_dts/api/src/request.d.ts +10 -1
- package/dist/_dts/api/src/resources.d.ts +4 -4
- package/dist/_dts/api/src/routes.d.ts +8 -3
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +0 -1
- package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +21 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +5 -28
- package/dist/_dts/api/src/sdkEventEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/sdkEventOccurrenceRequestContracts.d.ts +43 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +4 -2
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +8 -1
- package/dist/_dts/api/src/seo.d.ts +4 -4
- package/dist/_dts/api/src/services.d.ts +4 -4
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +15 -8
- package/dist/_dts/api/src/siteMembers.d.ts +10 -10
- package/dist/_dts/api/src/siteOnboarding.d.ts +14 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +7 -3
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +5 -12
- package/dist/_dts/api/src/siteRuntimeEntry.d.ts +31 -0
- package/dist/_dts/billing/src/checkout/platform.d.ts +77 -0
- package/dist/_dts/billing/src/components/index.d.ts +25 -40
- package/dist/_dts/billing/src/membership/index.d.ts +1 -3
- package/dist/_dts/billing/src/plans/entitlements.d.ts +80 -0
- package/dist/_dts/billing/src/plans/registry.d.ts +16 -16
- package/dist/_dts/billing/src/plans/standing.d.ts +9 -2
- package/dist/_dts/billing/src/plans/types.d.ts +5 -15
- package/dist/_dts/billing/src/site-arrangements.d.ts +2 -2
- package/dist/_dts/billing/src/subscriptions/standingEvidence.d.ts +2 -4
- package/dist/_dts/billing/src/subscriptions/store.d.ts +17 -11
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +6 -7
- package/dist/_dts/block-form/src/backend/types.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/FieldFrame.d.ts +3 -1
- package/dist/_dts/blocks/src/client/events.d.ts +3 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +16 -4
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +4 -13
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +2 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +3 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +6 -1
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/components/booking/SuccessMessage.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +24 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +12 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/usePolling.d.ts +7 -48
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.checkout-return-context.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.completion.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.payment-confirmation.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +15 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-actions.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-handler.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +2 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +9 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +37 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +16 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardPresentations.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +5 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +1 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.state.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/DemoBookingPortalAccess.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/DemoPortalSignInLink.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoBookingPassStorage.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoPortalMagicLink.d.ts +29 -0
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +2 -7
- package/dist/_dts/content-editor/src/controller/EditLeaseController.d.ts +39 -0
- package/dist/_dts/content-editor/src/controller/EditorWriteGate.d.ts +38 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +25 -61
- package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseBanner.d.ts +7 -0
- package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseControllers.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/deriveEditorUnpublishedState.d.ts +6 -0
- package/dist/_dts/content-editor/src/controller/documentValueBaseline.d.ts +25 -0
- package/dist/_dts/content-editor/src/controller/editLeaseLossSignal.d.ts +6 -0
- package/dist/_dts/content-editor/src/controller/editLeaseNotice.d.ts +28 -0
- package/dist/_dts/content-editor/src/controller/editorClientId.d.ts +2 -0
- package/dist/_dts/content-editor/src/controller/editorEditability.d.ts +38 -0
- package/dist/_dts/content-editor/src/controller/editorLeaseParticipation.d.ts +34 -0
- package/dist/_dts/content-editor/src/controller/normalizedMetadataBaseline.d.ts +29 -0
- package/dist/_dts/content-editor/src/controller/pageSurfaceDocumentBaselines.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/pageSurfaceLifecycle.d.ts +11 -0
- package/dist/_dts/content-editor/src/controller/planDocumentBaselineRefresh.d.ts +19 -0
- package/dist/_dts/content-editor/src/controller/readDocumentLeaseBaselines.d.ts +19 -0
- package/dist/_dts/content-editor/src/controller/refreshDocumentLeaseBaseline.d.ts +12 -0
- package/dist/_dts/content-editor/src/controller/refreshLinkedEntry.d.ts +17 -0
- package/dist/_dts/content-editor/src/controller/replayRestoredEditorEffects.d.ts +2 -3
- package/dist/_dts/content-editor/src/controller/routeWrites.d.ts +26 -0
- package/dist/_dts/content-editor/src/controller/useAutosaveTriggers.d.ts +16 -17
- package/dist/_dts/content-editor/src/controller/useBlockedPublishPlan.d.ts +6 -2
- package/dist/_dts/content-editor/src/controller/useBlocksList.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/useEntryValueAutosaves.d.ts +21 -0
- package/dist/_dts/content-editor/src/controller/useInitialEditorUiStore.d.ts +24 -0
- package/dist/_dts/content-editor/src/controller/useServerBaselineReconciliation.d.ts +17 -0
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/applyBlockedPublishPlan.d.ts +5 -1
- package/dist/_dts/content-editor/src/hooks/blockDraftLifecycle.d.ts +8 -47
- package/dist/_dts/content-editor/src/hooks/editLeaseMachine.d.ts +120 -0
- package/dist/_dts/content-editor/src/hooks/publishability.d.ts +6 -10
- package/dist/_dts/content-editor/src/hooks/useAutosaveStatus.d.ts +3 -0
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +5 -15
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +7 -5
- package/dist/_dts/content-editor/src/hooks/useEditLease.d.ts +28 -0
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +25 -39
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +17 -19
- package/dist/_dts/content-editor/src/hooks/useLinkedEntryAutosave.d.ts +5 -8
- package/dist/_dts/content-editor/src/hooks/useValueAutosave.d.ts +64 -0
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +0 -7
- package/dist/_dts/content-editor/src/index.d.ts +26 -7
- package/dist/_dts/content-editor/src/linkedEntries/domain.d.ts +12 -0
- package/dist/_dts/content-editor/src/linkedEntries/owner.d.ts +9 -0
- package/dist/_dts/content-editor/src/liveDrafts/draftProjection.d.ts +66 -0
- package/dist/_dts/content-editor/src/liveDrafts/linkedSaveHandovers.d.ts +37 -0
- package/dist/_dts/content-editor/src/liveDrafts/remoteDraftOverlay.d.ts +113 -0
- package/dist/_dts/content-editor/src/liveDrafts/useLiveDrafts.d.ts +32 -0
- package/dist/_dts/content-editor/src/liveDrafts/useRetentionTicks.d.ts +7 -0
- package/dist/_dts/content-editor/src/primitives/shared/activePreviewField.d.ts +6 -0
- package/dist/_dts/content-editor/src/primitives/shared/storeBinding.d.ts +1 -0
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +96 -19
- package/dist/_dts/content-editor/src/services/editorApiClient.d.ts +13 -0
- package/dist/_dts/content-editor/src/services/index.d.ts +2 -0
- package/dist/_dts/content-editor/src/services/pageSurfaceEditorServices.d.ts +23 -0
- package/dist/_dts/content-editor/src/sync/flushValues.d.ts +13 -0
- package/dist/_dts/content-editor/src/sync/lifecycleFailure.d.ts +51 -0
- package/dist/_dts/content-editor/src/sync/runLifecycle.d.ts +64 -0
- package/dist/_dts/content-editor/src/sync/schedulerValues.d.ts +27 -0
- package/dist/_dts/content-editor/src/sync/sendPlanning.d.ts +104 -0
- package/dist/_dts/content-editor/src/sync/valueSync.d.ts +114 -0
- package/dist/_dts/content-editor/src/ui/blockCollection.d.ts +8 -0
- package/dist/_dts/content-editor/src/ui/documentLifecycle.d.ts +18 -0
- package/dist/_dts/content-editor/src/ui/editorLeaseUiState.d.ts +7 -0
- package/dist/_dts/content-editor/src/ui/editorRefresh.d.ts +82 -0
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +102 -127
- package/dist/_dts/content-editor/src/ui/editorTransactionState.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +126 -72
- package/dist/_dts/content-editor/src/ui/editorValueSnapshot.d.ts +18 -0
- package/dist/_dts/content-editor/src/ui/serverBlockAdmission.d.ts +26 -0
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +16 -27
- package/dist/_dts/content-editor/src/ui/stores/blockVersionsStore.d.ts +24 -0
- package/dist/_dts/content-editor/src/ui/stores/linkedEntryLeaseStore.d.ts +54 -0
- package/dist/_dts/content-editor/src/ui/stores/linkedSaveHandoversStore.d.ts +11 -0
- package/dist/_dts/content-editor/src/ui/stores/remoteDraftsStore.d.ts +10 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +63 -3
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +2 -2
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +4 -4
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +4 -4
- package/dist/_dts/content-model/src/definitions/shared.d.ts +11 -2
- package/dist/_dts/content-model/src/entry-slots/index.d.ts +1 -0
- package/dist/_dts/content-model/src/entry-slots/serializeAllowedBlocks.d.ts +2 -0
- package/dist/_dts/content-model/src/metadataConfig.d.ts +10 -38
- package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -1
- package/dist/_dts/content-model/src/types.d.ts +0 -1
- package/dist/_dts/core/src/block-content-identity.d.ts +49 -1
- package/dist/_dts/core/src/branded.d.ts +12 -0
- package/dist/_dts/core/src/currency-format.d.ts +8 -2
- package/dist/_dts/core/src/demo-lifecycle-status.d.ts +2 -2
- package/dist/_dts/core/src/demo-warm-pool-target.d.ts +8 -0
- package/dist/_dts/core/src/edit-lease.d.ts +55 -0
- package/dist/_dts/core/src/editor-state.d.ts +38 -13
- package/dist/_dts/core/src/editor-value-sync.d.ts +79 -0
- package/dist/_dts/core/src/html-entities.d.ts +6 -0
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/uuid.d.ts +7 -5
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +159 -153
- package/dist/_dts/editor/src/EditorProvider.d.ts +5 -0
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +14 -0
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +1 -0
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +0 -1
- package/dist/_dts/editor/src/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +10 -9
- package/dist/_dts/editor-blocks/src/BlockForm.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/BlockCardFrame.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/applyExtendedFieldDefaults.d.ts +3 -4
- package/dist/_dts/editor-blocks/src/block-editor/blockDraftBaselineSeed.d.ts +4 -8
- package/dist/_dts/editor-blocks/src/block-editor/editorBlockItem.d.ts +23 -0
- package/dist/_dts/editor-blocks/src/block-editor/generatedIconApplyCoordination.d.ts +2 -7
- package/dist/_dts/editor-blocks/src/block-editor/hooks/applyBlockStructureChange.d.ts +4 -0
- package/dist/_dts/editor-blocks/src/block-editor/hooks/buildInsertBlockHistoryCommand.d.ts +14 -5
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +21 -19
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -10
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +8 -16
- package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +6 -16
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +37 -9
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +3 -2
- package/dist/_dts/media-core/src/fileStorage.d.ts +4 -0
- package/dist/_dts/media-editor/src/context.d.ts +1 -1
- package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -2
- package/dist/_dts/media-editor/src/provider.d.ts +3 -2
- package/dist/_dts/media-react/src/hooks/internal/classification.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +8 -3
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +6 -3
- package/dist/_dts/preview-next/src/client/blocks/linkedEntryRenderOverlay.d.ts +22 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/entryFieldRebinding.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/index.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +11 -1
- package/dist/_dts/preview-next/src/client/blocks/renderPrecedence.d.ts +17 -0
- package/dist/_dts/preview-next/src/client/blocks/useLinkedSaveHandoverRetention.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewAccessBanners.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +24 -14
- package/dist/_dts/preview-next/src/client/preview/PreviewLeaseEditingMode.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +9 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeAutosave.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +3 -4
- package/dist/_dts/preview-next/src/client/preview/sdkConfig.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/usePreviewCustomizeWorkflowState.d.ts +4 -0
- package/dist/_dts/realtime/src/client.d.ts +3 -0
- package/dist/_dts/realtime/src/draftChannel.d.ts +91 -0
- package/dist/_dts/realtime/src/drafts.d.ts +210 -0
- package/dist/_dts/realtime/src/index.d.ts +3 -0
- package/dist/_dts/realtime/src/leaseChangeSubscriptions.d.ts +8 -0
- package/dist/_dts/realtime/src/types.d.ts +113 -0
- package/dist/_dts/realtime/src/useDraftChannel.d.ts +34 -0
- package/dist/_dts/realtime/src/useSiteRealtimeReload.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -55
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +2 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/client/{BookingMailingListNote-1n4Ch_u_.mjs → BookingMailingListNote-CzRt2dF_.mjs} +98 -96
- package/dist/client/DemoBookingPortalAccess-mxqwap3f.mjs +344 -0
- package/dist/client/{EventCombined.client-C0pgma9y.mjs → EventCombined.client-CDb11igO.mjs} +6 -6
- package/dist/client/{EventListing.client-4fhLOvHP.mjs → EventListing.client-EgYhzKPa.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DScC4F3w.mjs → LeafletStaticMap-gtmtaA2b.mjs} +1 -1
- package/dist/client/{TerminalPanel-B5ZUsYhe.mjs → TerminalPanel-DvNUP5ot.mjs} +1 -1
- package/dist/client/{ThemedButton-DoVIV1Ao.mjs → ThemedButton-C7CeUJjW.mjs} +1 -1
- package/dist/client/{accordion-CoT5g7zo.mjs → accordion-kjvt49rA.mjs} +1 -1
- package/dist/client/{bookingForm-BWxB46xD.mjs → bookingForm-pbRZordh.mjs} +212 -62
- package/dist/client/bookings.mjs +616 -225
- package/dist/client/{carousel-DtNYWFd3.mjs → carousel-f4Zbmicv.mjs} +1 -1
- package/dist/client/{cart-z4qZih1Y.mjs → cart-DO20An50.mjs} +3 -3
- package/dist/client/{checkout-DpL7euFH.mjs → checkout-Du5amDR_.mjs} +3 -3
- package/dist/client/{checkoutUrls-BEfR7kVu.mjs → checkoutUrls-CXhko2Rv.mjs} +1 -1
- package/dist/client/client.mjs +1753 -823
- package/dist/client/{context-C8TinPJc.mjs → context-eW97E945.mjs} +4 -3
- package/dist/client/{dates-vwwxTeB0.mjs → dates-jPCirRea.mjs} +56 -11
- package/dist/client/{eventCalendar-DIbHfJXO.mjs → eventCalendar-C2M-iE4j.mjs} +9 -9
- package/dist/client/{eventCombined-DoGMJ6cg.mjs → eventCombined-W6ns3LHg.mjs} +4 -4
- package/dist/client/{eventDetails-BjN9v6a1.mjs → eventDetails-CR-GT0f0.mjs} +4 -4
- package/dist/client/{eventListing-DajjWgOv.mjs → eventListing-BK8AfYZz.mjs} +4 -4
- package/dist/client/{eventRegistration-DMq9gMA-.mjs → eventRegistration-BJSd4KUu.mjs} +369 -242
- package/dist/client/{form-Qf6qTbos.mjs → form-BvpfbQaT.mjs} +3 -3
- package/dist/client/{headerSection-D7qJrqFX.mjs → headerSection-I5sUQ8x-.mjs} +3 -3
- package/dist/client/hooks.mjs +254 -53
- package/dist/client/{locationMap-CCF9-t_0.mjs → locationMap-BLvwf9_f.mjs} +3 -3
- package/dist/client/{media-CwBGetqC.mjs → media-Cl38iOMI.mjs} +10 -3
- package/dist/client/{newsletterForm-DzCLSP4S.mjs → newsletterForm-DrQ2weE8.mjs} +3 -3
- package/dist/client/{pricing-Cgxv2KLC.mjs → pricing-BES87mrR.mjs} +1 -1
- package/dist/client/{productDetail-ru9w5GHx.mjs → productDetail-Url9jcc5.mjs} +3 -3
- package/dist/client/{productList-zaapKSl-.mjs → productList-DE7ngEZJ.mjs} +3 -3
- package/dist/client/{propsDecoder-CwvvNOHx.mjs → propsDecoder-D1OtGXDV.mjs} +89 -17
- package/dist/client/rendering/client.mjs +1445 -658
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +2478 -1515
- package/dist/client/{routeIslandApiConfig-BwVFo0Y4.mjs → routeIslandApiConfig-BG9Y-SHg.mjs} +1 -1
- package/dist/client/{shop-mktkXvbV.mjs → shop-CJkuySJ3.mjs} +126 -79
- package/dist/client/{shop-commerce-De7gEnkA.mjs → shop-commerce-4rKj5n9h.mjs} +25 -13
- package/dist/client/{shop-commerce-store-B3MCxIBW.mjs → shop-commerce-store-Bxm75Pg6.mjs} +1 -1
- package/dist/client/{shopShared-TqExh235.mjs → shopShared-DpoQDWfz.mjs} +4 -4
- package/dist/client/{useEventFilters-n_OjkIjX.mjs → useEventFilters-D8HliSqR.mjs} +32 -17
- package/dist/preview-next/before-render.mjs +192 -83
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +192 -83
- package/dist/preview-next/middleware.mjs +192 -83
- package/dist/{previewAuthStore-C_EHQ5XA.mjs → previewAuthStore-BXXF3hhW.mjs} +194 -83
- package/dist/{sdk-runtime-BIkJg5y1.mjs → sdk-runtime-C2a05WjL.mjs} +2 -2
- package/dist/{separator-C9qDP95Z.mjs → separator-CuNhBAhS.mjs} +1 -1
- package/dist/server/components.mjs +1720 -1392
- package/dist/server/config-validation.mjs +221 -37
- package/dist/server/config.mjs +221 -37
- package/dist/server/data.mjs +221 -37
- package/dist/server/index.mjs +195 -84
- package/dist/server/next.mjs +490 -196
- package/dist/server/page-converter.mjs +53 -14
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1427 -1098
- package/dist/server/rendering.mjs +2693 -2365
- package/dist/server/routing.mjs +291 -55
- package/dist/server/server.mjs +281 -114
- package/package.json +1 -1
- package/dist/_dts/billing/src/plans/display.d.ts +0 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-note.d.ts +0 -3
- package/dist/_dts/content-editor/src/controller/buildBlockPublishedBaselines.d.ts +0 -4
- package/dist/_dts/content-editor/src/controller/buildPublishSuccessTransition.d.ts +0 -16
- package/dist/_dts/content-editor/src/controller/driver.d.ts +0 -14
- package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +0 -7
- package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +0 -29
- package/dist/_dts/content-editor/src/hooks/autosaveScopePlanning.d.ts +0 -26
- package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +0 -64
- package/dist/_dts/content-editor/src/hooks/useStoreAutosave.d.ts +0 -48
- package/dist/_dts/content-editor/src/types.d.ts +0 -44
- package/dist/client/DiscountCodeDisclosure-CKJtz0mY.mjs +0 -137
package/dist/server/server.mjs
CHANGED
|
@@ -1625,6 +1625,7 @@ const SDK_EVENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1625
1625
|
responseKind: "json",
|
|
1626
1626
|
errors: [
|
|
1627
1627
|
"resource:not_found",
|
|
1628
|
+
"validation:invalid_input",
|
|
1628
1629
|
"resource:conflict",
|
|
1629
1630
|
"server:internal_error"
|
|
1630
1631
|
]
|
|
@@ -1731,6 +1732,19 @@ const CURRENCY_LOCALE_BY_CODE = {
|
|
|
1731
1732
|
function resolveCurrencyLocale(currencyCode, override) {
|
|
1732
1733
|
return override ?? CURRENCY_LOCALE_BY_CODE[currencyCode] ?? "en";
|
|
1733
1734
|
}
|
|
1735
|
+
function fractionDigitsFor(decimals, exactFormatter) {
|
|
1736
|
+
switch (decimals) {
|
|
1737
|
+
case "exact": return {};
|
|
1738
|
+
case "auto": return {
|
|
1739
|
+
minimumFractionDigits: 0,
|
|
1740
|
+
maximumFractionDigits: exactFormatter.resolvedOptions().maximumFractionDigits
|
|
1741
|
+
};
|
|
1742
|
+
case "whole": return {
|
|
1743
|
+
minimumFractionDigits: 0,
|
|
1744
|
+
maximumFractionDigits: 0
|
|
1745
|
+
};
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1734
1748
|
/**
|
|
1735
1749
|
* The single currency-amount formatter for the product: minor units in,
|
|
1736
1750
|
* localized string out.
|
|
@@ -1741,6 +1755,13 @@ function resolveCurrencyLocale(currencyCode, override) {
|
|
|
1741
1755
|
* own `Intl.NumberFormat`.
|
|
1742
1756
|
*/
|
|
1743
1757
|
function formatCurrencyAmount(amountCents, currency, options) {
|
|
1758
|
+
return formatCurrencyMajorUnits(amountCents / 100, currency, options);
|
|
1759
|
+
}
|
|
1760
|
+
/**
|
|
1761
|
+
* `formatCurrencyAmount` for an amount already in MAJOR units (29.99 = £29.99),
|
|
1762
|
+
* such as a registrar price. Prefer minor units everywhere else.
|
|
1763
|
+
*/
|
|
1764
|
+
function formatCurrencyMajorUnits(amount, currency, options) {
|
|
1744
1765
|
const currencyCode = currency.toUpperCase();
|
|
1745
1766
|
const locale = resolveCurrencyLocale(currencyCode, options?.locale);
|
|
1746
1767
|
try {
|
|
@@ -1748,17 +1769,13 @@ function formatCurrencyAmount(amountCents, currency, options) {
|
|
|
1748
1769
|
style: "currency",
|
|
1749
1770
|
currency: currencyCode
|
|
1750
1771
|
});
|
|
1751
|
-
const fractionDigits = options?.decimals === "auto" ? {
|
|
1752
|
-
minimumFractionDigits: 0,
|
|
1753
|
-
maximumFractionDigits: exactFormatter.resolvedOptions().maximumFractionDigits
|
|
1754
|
-
} : {};
|
|
1755
1772
|
return new Intl.NumberFormat(locale, {
|
|
1756
1773
|
style: "currency",
|
|
1757
1774
|
currency: currencyCode,
|
|
1758
|
-
...
|
|
1759
|
-
}).format(
|
|
1775
|
+
...fractionDigitsFor(options?.decimals ?? "exact", exactFormatter)
|
|
1776
|
+
}).format(amount);
|
|
1760
1777
|
} catch {
|
|
1761
|
-
return `${
|
|
1778
|
+
return `${amount.toFixed(2)} ${currencyCode}`;
|
|
1762
1779
|
}
|
|
1763
1780
|
}
|
|
1764
1781
|
//#endregion
|
|
@@ -2167,6 +2184,26 @@ function toLocationCoordinates(value) {
|
|
|
2167
2184
|
};
|
|
2168
2185
|
}
|
|
2169
2186
|
//#endregion
|
|
2187
|
+
//#region ../core/src/block-content-identity.ts
|
|
2188
|
+
function readContentVersionId(value) {
|
|
2189
|
+
const parsed = parseContentVersionId(value);
|
|
2190
|
+
return parsed.ok ? parsed.value : null;
|
|
2191
|
+
}
|
|
2192
|
+
/** The one pairing of a published id with its content. */
|
|
2193
|
+
function readPublishedBlockPlacement(id, content) {
|
|
2194
|
+
if (id == null && content == null) return null;
|
|
2195
|
+
const versionId = readContentVersionId(id);
|
|
2196
|
+
return versionId !== null && content != null ? {
|
|
2197
|
+
kind: "published",
|
|
2198
|
+
id: versionId,
|
|
2199
|
+
content
|
|
2200
|
+
} : {
|
|
2201
|
+
kind: "incomplete",
|
|
2202
|
+
id: id ?? null,
|
|
2203
|
+
content: content ?? null
|
|
2204
|
+
};
|
|
2205
|
+
}
|
|
2206
|
+
//#endregion
|
|
2170
2207
|
//#region ../core/src/mailing-list-identifiers.ts
|
|
2171
2208
|
const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu;
|
|
2172
2209
|
const OPAQUE_ID_PATTERN = /^[A-Za-z0-9_-]{1,100}$/u;
|
|
@@ -3401,28 +3438,6 @@ const EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3401
3438
|
"resource:conflict",
|
|
3402
3439
|
"server:internal_error"
|
|
3403
3440
|
]
|
|
3404
|
-
},
|
|
3405
|
-
/**
|
|
3406
|
-
* The Content tab's one write: the short introduction, image and
|
|
3407
|
-
* description of an event's page, published without its layout.
|
|
3408
|
-
*/
|
|
3409
|
-
saveEventPageWords: {
|
|
3410
|
-
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/words",
|
|
3411
|
-
method: "PUT",
|
|
3412
|
-
tags: [
|
|
3413
|
-
TAG_TEMPLATES.siteCollection,
|
|
3414
|
-
TAG_TEMPLATES.siteRoutableContent,
|
|
3415
|
-
TAG_TEMPLATES.pageSurfaceById
|
|
3416
|
-
],
|
|
3417
|
-
auth: "user",
|
|
3418
|
-
responseKind: "json",
|
|
3419
|
-
errors: [
|
|
3420
|
-
"auth:forbidden",
|
|
3421
|
-
"validation:invalid_input",
|
|
3422
|
-
"resource:not_found",
|
|
3423
|
-
"resource:conflict",
|
|
3424
|
-
"server:internal_error"
|
|
3425
|
-
]
|
|
3426
3441
|
}
|
|
3427
3442
|
});
|
|
3428
3443
|
//#endregion
|
|
@@ -3847,6 +3862,15 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3847
3862
|
auth: "user",
|
|
3848
3863
|
responseKind: "json"
|
|
3849
3864
|
},
|
|
3865
|
+
/** Continue on Free from the onboarding card page; only the attempt's owner. */
|
|
3866
|
+
continueOnboardingOnFree: {
|
|
3867
|
+
path: "/onboarding/attempts/{attemptToken}/plan/free",
|
|
3868
|
+
method: "POST",
|
|
3869
|
+
tags: ["billing"],
|
|
3870
|
+
auth: "user",
|
|
3871
|
+
errors: [],
|
|
3872
|
+
responseKind: "json"
|
|
3873
|
+
},
|
|
3850
3874
|
createBillingPortalSession: {
|
|
3851
3875
|
path: "/billing/portal/session",
|
|
3852
3876
|
method: "POST",
|
|
@@ -3856,6 +3880,161 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3856
3880
|
}
|
|
3857
3881
|
});
|
|
3858
3882
|
//#endregion
|
|
3883
|
+
//#region ../api/src/editLeaseEndpoints.ts
|
|
3884
|
+
const path = "/sites/{siteId}/edit-leases/{nodeType}/{nodeId}";
|
|
3885
|
+
const lifecycleErrors = [
|
|
3886
|
+
"auth:lease_required",
|
|
3887
|
+
"auth:forbidden",
|
|
3888
|
+
"resource:not_found",
|
|
3889
|
+
"validation:invalid_input",
|
|
3890
|
+
"server:internal_error"
|
|
3891
|
+
];
|
|
3892
|
+
const EDIT_LEASE_ENDPOINT_DEFINITIONS = {
|
|
3893
|
+
readEditLease: {
|
|
3894
|
+
path,
|
|
3895
|
+
method: "GET",
|
|
3896
|
+
editLease: "lifecycle",
|
|
3897
|
+
errors: lifecycleErrors,
|
|
3898
|
+
auth: "user",
|
|
3899
|
+
responseKind: "json"
|
|
3900
|
+
},
|
|
3901
|
+
acquireEditLease: {
|
|
3902
|
+
path,
|
|
3903
|
+
method: "POST",
|
|
3904
|
+
editLease: "lifecycle",
|
|
3905
|
+
errors: lifecycleErrors,
|
|
3906
|
+
auth: "user",
|
|
3907
|
+
responseKind: "json"
|
|
3908
|
+
},
|
|
3909
|
+
takeOverEditLease: {
|
|
3910
|
+
path,
|
|
3911
|
+
method: "PUT",
|
|
3912
|
+
editLease: "lifecycle",
|
|
3913
|
+
errors: lifecycleErrors,
|
|
3914
|
+
auth: "user",
|
|
3915
|
+
responseKind: "json"
|
|
3916
|
+
},
|
|
3917
|
+
heartbeatEditLease: {
|
|
3918
|
+
path,
|
|
3919
|
+
method: "PATCH",
|
|
3920
|
+
editLease: "lifecycle",
|
|
3921
|
+
errors: [...lifecycleErrors, "auth:lease_lost"],
|
|
3922
|
+
auth: "user",
|
|
3923
|
+
responseKind: "json"
|
|
3924
|
+
},
|
|
3925
|
+
releaseEditLease: {
|
|
3926
|
+
path,
|
|
3927
|
+
method: "DELETE",
|
|
3928
|
+
editLease: "lifecycle",
|
|
3929
|
+
errors: lifecycleErrors,
|
|
3930
|
+
auth: "user",
|
|
3931
|
+
responseKind: "json"
|
|
3932
|
+
}
|
|
3933
|
+
};
|
|
3934
|
+
//#endregion
|
|
3935
|
+
//#region ../api/src/pageSurfaceEditorEndpoints.ts
|
|
3936
|
+
const surfaceTags = [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById];
|
|
3937
|
+
const PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS = {
|
|
3938
|
+
getPageSurfaceEditorDocument: {
|
|
3939
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content",
|
|
3940
|
+
method: "GET",
|
|
3941
|
+
errors: [
|
|
3942
|
+
"auth:forbidden",
|
|
3943
|
+
"validation:invalid_input",
|
|
3944
|
+
"resource:not_found",
|
|
3945
|
+
"resource:conflict",
|
|
3946
|
+
"server:internal_error"
|
|
3947
|
+
],
|
|
3948
|
+
tags: surfaceTags,
|
|
3949
|
+
auth: "user",
|
|
3950
|
+
responseKind: "json"
|
|
3951
|
+
},
|
|
3952
|
+
updatePageSurfaceDraftContent: {
|
|
3953
|
+
editLease: "managed",
|
|
3954
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content",
|
|
3955
|
+
method: "PUT",
|
|
3956
|
+
errors: [
|
|
3957
|
+
"validation:invalid_input",
|
|
3958
|
+
"resource:not_found",
|
|
3959
|
+
"resource:conflict",
|
|
3960
|
+
"server:internal_error"
|
|
3961
|
+
],
|
|
3962
|
+
tags: surfaceTags,
|
|
3963
|
+
auth: "user",
|
|
3964
|
+
responseKind: "json"
|
|
3965
|
+
},
|
|
3966
|
+
discardPageSurfaceDraftContent: {
|
|
3967
|
+
editLease: "managed",
|
|
3968
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content/draft",
|
|
3969
|
+
method: "DELETE",
|
|
3970
|
+
errors: [
|
|
3971
|
+
"validation:invalid_input",
|
|
3972
|
+
"resource:not_found",
|
|
3973
|
+
"resource:conflict",
|
|
3974
|
+
"server:internal_error"
|
|
3975
|
+
],
|
|
3976
|
+
tags: surfaceTags,
|
|
3977
|
+
auth: "user",
|
|
3978
|
+
responseKind: "json"
|
|
3979
|
+
},
|
|
3980
|
+
updatePageSurfaceRouteMetadata: {
|
|
3981
|
+
editLease: "managed",
|
|
3982
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/metadata",
|
|
3983
|
+
method: "PATCH",
|
|
3984
|
+
errors: [
|
|
3985
|
+
"validation:invalid_input",
|
|
3986
|
+
"resource:not_found",
|
|
3987
|
+
"resource:conflict",
|
|
3988
|
+
"server:internal_error"
|
|
3989
|
+
],
|
|
3990
|
+
tags: [
|
|
3991
|
+
TAG_TEMPLATES.siteCollection,
|
|
3992
|
+
TAG_TEMPLATES.siteRoutableContent,
|
|
3993
|
+
TAG_TEMPLATES.pageSurfaceById
|
|
3994
|
+
],
|
|
3995
|
+
auth: "user",
|
|
3996
|
+
responseKind: "json"
|
|
3997
|
+
},
|
|
3998
|
+
publishPageSurface: {
|
|
3999
|
+
editLease: "managed",
|
|
4000
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/publication",
|
|
4001
|
+
method: "POST",
|
|
4002
|
+
errors: [
|
|
4003
|
+
"auth:forbidden",
|
|
4004
|
+
"validation:invalid_input",
|
|
4005
|
+
"resource:not_found",
|
|
4006
|
+
"resource:conflict",
|
|
4007
|
+
"server:internal_error"
|
|
4008
|
+
],
|
|
4009
|
+
tags: [
|
|
4010
|
+
TAG_TEMPLATES.siteCollection,
|
|
4011
|
+
TAG_TEMPLATES.siteRoutableContent,
|
|
4012
|
+
TAG_TEMPLATES.pageSurfaceById
|
|
4013
|
+
],
|
|
4014
|
+
auth: "user",
|
|
4015
|
+
responseKind: "json"
|
|
4016
|
+
},
|
|
4017
|
+
saveEventContentTab: {
|
|
4018
|
+
editLease: "managed",
|
|
4019
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/event-content",
|
|
4020
|
+
method: "PUT",
|
|
4021
|
+
errors: [
|
|
4022
|
+
"auth:forbidden",
|
|
4023
|
+
"validation:invalid_input",
|
|
4024
|
+
"resource:not_found",
|
|
4025
|
+
"resource:conflict",
|
|
4026
|
+
"server:internal_error"
|
|
4027
|
+
],
|
|
4028
|
+
tags: [
|
|
4029
|
+
TAG_TEMPLATES.siteCollection,
|
|
4030
|
+
TAG_TEMPLATES.siteRoutableContent,
|
|
4031
|
+
TAG_TEMPLATES.pageSurfaceById
|
|
4032
|
+
],
|
|
4033
|
+
auth: "user",
|
|
4034
|
+
responseKind: "json"
|
|
4035
|
+
}
|
|
4036
|
+
};
|
|
4037
|
+
//#endregion
|
|
3859
4038
|
//#region ../api/src/bookingPeopleEndpointDefinitions.ts
|
|
3860
4039
|
/**
|
|
3861
4040
|
* People endpoints (#1356): the People list, its CSV export, and deleting a
|
|
@@ -3948,6 +4127,8 @@ const API_ENDPOINTS$1 = {
|
|
|
3948
4127
|
...GIFTING_ENDPOINT_DEFINITIONS,
|
|
3949
4128
|
...PUBLIC_READ_ENDPOINT_DEFINITIONS,
|
|
3950
4129
|
...BILLING_ENDPOINT_DEFINITIONS,
|
|
4130
|
+
...EDIT_LEASE_ENDPOINT_DEFINITIONS,
|
|
4131
|
+
...PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS,
|
|
3951
4132
|
...SITE_MANAGEMENT_ENDPOINT_DEFINITIONS,
|
|
3952
4133
|
aiContentUpdateChat: {
|
|
3953
4134
|
path: "/ai/content-update-chat",
|
|
@@ -3969,6 +4150,7 @@ const API_ENDPOINTS$1 = {
|
|
|
3969
4150
|
responseKind: "json"
|
|
3970
4151
|
},
|
|
3971
4152
|
aiDesignerPageOpsApply: {
|
|
4153
|
+
editLease: "managed",
|
|
3972
4154
|
path: "/sites/{siteId}/ai/designer/page/apply",
|
|
3973
4155
|
method: "POST",
|
|
3974
4156
|
tags: [TAG_TEMPLATES.siteCollection],
|
|
@@ -4803,6 +4985,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4803
4985
|
responseKind: "json"
|
|
4804
4986
|
},
|
|
4805
4987
|
restoreContentEntryVersion: {
|
|
4988
|
+
editLease: "managed",
|
|
4806
4989
|
path: "/sites/{siteId}/content/{type}/{entryId}/versions/{versionId}/restore",
|
|
4807
4990
|
method: "POST",
|
|
4808
4991
|
errors: [
|
|
@@ -4820,6 +5003,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4820
5003
|
responseKind: "json"
|
|
4821
5004
|
},
|
|
4822
5005
|
updateContentEntryContent: {
|
|
5006
|
+
editLease: "managed",
|
|
4823
5007
|
path: "/sites/{siteId}/content/{type}/{entryId}/content",
|
|
4824
5008
|
method: "PUT",
|
|
4825
5009
|
tags: [
|
|
@@ -4836,67 +5020,6 @@ const API_ENDPOINTS$1 = {
|
|
|
4836
5020
|
],
|
|
4837
5021
|
responseKind: "json"
|
|
4838
5022
|
},
|
|
4839
|
-
updatePageSurfaceDraftContent: {
|
|
4840
|
-
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content",
|
|
4841
|
-
method: "PUT",
|
|
4842
|
-
errors: [
|
|
4843
|
-
"validation:invalid_input",
|
|
4844
|
-
"resource:not_found",
|
|
4845
|
-
"resource:conflict",
|
|
4846
|
-
"server:internal_error"
|
|
4847
|
-
],
|
|
4848
|
-
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById],
|
|
4849
|
-
auth: "user",
|
|
4850
|
-
responseKind: "json"
|
|
4851
|
-
},
|
|
4852
|
-
discardPageSurfaceDraftContent: {
|
|
4853
|
-
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content/draft",
|
|
4854
|
-
method: "DELETE",
|
|
4855
|
-
errors: [
|
|
4856
|
-
"validation:invalid_input",
|
|
4857
|
-
"resource:not_found",
|
|
4858
|
-
"resource:conflict",
|
|
4859
|
-
"server:internal_error"
|
|
4860
|
-
],
|
|
4861
|
-
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById],
|
|
4862
|
-
auth: "user",
|
|
4863
|
-
responseKind: "json"
|
|
4864
|
-
},
|
|
4865
|
-
updatePageSurfaceRouteMetadata: {
|
|
4866
|
-
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/metadata",
|
|
4867
|
-
method: "PATCH",
|
|
4868
|
-
errors: [
|
|
4869
|
-
"validation:invalid_input",
|
|
4870
|
-
"resource:not_found",
|
|
4871
|
-
"resource:conflict",
|
|
4872
|
-
"server:internal_error"
|
|
4873
|
-
],
|
|
4874
|
-
tags: [
|
|
4875
|
-
TAG_TEMPLATES.siteCollection,
|
|
4876
|
-
TAG_TEMPLATES.siteRoutableContent,
|
|
4877
|
-
TAG_TEMPLATES.pageSurfaceById
|
|
4878
|
-
],
|
|
4879
|
-
auth: "user",
|
|
4880
|
-
responseKind: "json"
|
|
4881
|
-
},
|
|
4882
|
-
publishPageSurface: {
|
|
4883
|
-
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/publication",
|
|
4884
|
-
method: "POST",
|
|
4885
|
-
errors: [
|
|
4886
|
-
"auth:forbidden",
|
|
4887
|
-
"validation:invalid_input",
|
|
4888
|
-
"resource:not_found",
|
|
4889
|
-
"resource:conflict",
|
|
4890
|
-
"server:internal_error"
|
|
4891
|
-
],
|
|
4892
|
-
tags: [
|
|
4893
|
-
TAG_TEMPLATES.siteCollection,
|
|
4894
|
-
TAG_TEMPLATES.siteRoutableContent,
|
|
4895
|
-
TAG_TEMPLATES.pageSurfaceById
|
|
4896
|
-
],
|
|
4897
|
-
auth: "user",
|
|
4898
|
-
responseKind: "json"
|
|
4899
|
-
},
|
|
4900
5023
|
runSdkWorkflow: {
|
|
4901
5024
|
path: "/sites/{siteId}/content/{type}/{entryId}/workflows/{workflowId}/run",
|
|
4902
5025
|
method: "POST",
|
|
@@ -4933,6 +5056,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4933
5056
|
responseKind: "json"
|
|
4934
5057
|
},
|
|
4935
5058
|
updateRouteMetadata: {
|
|
5059
|
+
editLease: "managed",
|
|
4936
5060
|
path: "/sites/{siteId}/routes/{routeId}/metadata",
|
|
4937
5061
|
method: "PATCH",
|
|
4938
5062
|
tags: [
|
|
@@ -4950,6 +5074,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4950
5074
|
responseKind: "json"
|
|
4951
5075
|
},
|
|
4952
5076
|
publishContentEntry: {
|
|
5077
|
+
editLease: "managed",
|
|
4953
5078
|
path: "/sites/{siteId}/content/{type}/{entryId}/publish",
|
|
4954
5079
|
method: "POST",
|
|
4955
5080
|
tags: [
|
|
@@ -4961,6 +5086,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4961
5086
|
responseKind: "json"
|
|
4962
5087
|
},
|
|
4963
5088
|
scheduleContentEntry: {
|
|
5089
|
+
editLease: "managed",
|
|
4964
5090
|
path: "/sites/{siteId}/content/{type}/{entryId}/schedule",
|
|
4965
5091
|
method: "POST",
|
|
4966
5092
|
tags: [
|
|
@@ -4978,6 +5104,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4978
5104
|
responseKind: "json"
|
|
4979
5105
|
},
|
|
4980
5106
|
cancelScheduledContentEntry: {
|
|
5107
|
+
editLease: "managed",
|
|
4981
5108
|
path: "/sites/{siteId}/content/{type}/{entryId}/schedule",
|
|
4982
5109
|
method: "DELETE",
|
|
4983
5110
|
tags: [
|
|
@@ -4995,6 +5122,7 @@ const API_ENDPOINTS$1 = {
|
|
|
4995
5122
|
responseKind: "json"
|
|
4996
5123
|
},
|
|
4997
5124
|
discardContentEntry: {
|
|
5125
|
+
editLease: "managed",
|
|
4998
5126
|
path: "/sites/{siteId}/content/{type}/{entryId}/discard",
|
|
4999
5127
|
method: "POST",
|
|
5000
5128
|
tags: [
|
|
@@ -5013,6 +5141,7 @@ const API_ENDPOINTS$1 = {
|
|
|
5013
5141
|
responseKind: "json"
|
|
5014
5142
|
},
|
|
5015
5143
|
unpublishContentEntry: {
|
|
5144
|
+
editLease: "managed",
|
|
5016
5145
|
path: "/sites/{siteId}/content/{type}/{entryId}/unpublish",
|
|
5017
5146
|
method: "POST",
|
|
5018
5147
|
tags: [
|
|
@@ -5054,6 +5183,7 @@ const API_ENDPOINTS$1 = {
|
|
|
5054
5183
|
responseKind: "json"
|
|
5055
5184
|
},
|
|
5056
5185
|
deleteContentEntry: {
|
|
5186
|
+
editLease: "managed",
|
|
5057
5187
|
path: "/sites/{siteId}/content/{type}/{entryId}",
|
|
5058
5188
|
method: "DELETE",
|
|
5059
5189
|
tags: [
|
|
@@ -6263,6 +6393,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6263
6393
|
responseKind: "json"
|
|
6264
6394
|
},
|
|
6265
6395
|
saveBlockContent: {
|
|
6396
|
+
editLease: "owner-derived",
|
|
6266
6397
|
path: "/blocks/{blockId}/content",
|
|
6267
6398
|
method: "POST",
|
|
6268
6399
|
tags: [
|
|
@@ -6300,6 +6431,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6300
6431
|
errors: ["resource:not_found", "resource:conflict"]
|
|
6301
6432
|
},
|
|
6302
6433
|
createEntrySlotBlock: {
|
|
6434
|
+
editLease: "managed",
|
|
6303
6435
|
path: "/sites/{siteId}/content/{type}/{entryId}/slots/{slotKey}/blocks",
|
|
6304
6436
|
method: "POST",
|
|
6305
6437
|
tags: [
|
|
@@ -6317,6 +6449,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6317
6449
|
]
|
|
6318
6450
|
},
|
|
6319
6451
|
reorderEntrySlotBlocks: {
|
|
6452
|
+
editLease: "managed",
|
|
6320
6453
|
path: "/sites/{siteId}/content/{type}/{entryId}/slots/{slotKey}/blocks/reorder",
|
|
6321
6454
|
method: "POST",
|
|
6322
6455
|
tags: [
|
|
@@ -6334,6 +6467,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6334
6467
|
]
|
|
6335
6468
|
},
|
|
6336
6469
|
deleteEntrySlotBlock: {
|
|
6470
|
+
editLease: "managed",
|
|
6337
6471
|
path: "/sites/{siteId}/content/{type}/{entryId}/slots/{slotKey}/blocks/{blockId}",
|
|
6338
6472
|
method: "DELETE",
|
|
6339
6473
|
tags: [
|
|
@@ -6364,6 +6498,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6364
6498
|
]
|
|
6365
6499
|
},
|
|
6366
6500
|
createPageSurfaceSlotBlock: {
|
|
6501
|
+
editLease: "managed",
|
|
6367
6502
|
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks",
|
|
6368
6503
|
method: "POST",
|
|
6369
6504
|
tags: [
|
|
@@ -6382,6 +6517,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6382
6517
|
]
|
|
6383
6518
|
},
|
|
6384
6519
|
reorderPageSurfaceSlotBlocks: {
|
|
6520
|
+
editLease: "managed",
|
|
6385
6521
|
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/reorder",
|
|
6386
6522
|
method: "POST",
|
|
6387
6523
|
tags: [
|
|
@@ -6400,6 +6536,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6400
6536
|
]
|
|
6401
6537
|
},
|
|
6402
6538
|
deletePageSurfaceSlotBlock: {
|
|
6539
|
+
editLease: "managed",
|
|
6403
6540
|
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/{blockId}",
|
|
6404
6541
|
method: "DELETE",
|
|
6405
6542
|
tags: [
|
|
@@ -6417,6 +6554,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6417
6554
|
]
|
|
6418
6555
|
},
|
|
6419
6556
|
createBlock: {
|
|
6557
|
+
editLease: "managed",
|
|
6420
6558
|
path: "/sites/{siteId}/pages/{pageId}/blocks",
|
|
6421
6559
|
method: "POST",
|
|
6422
6560
|
tags: [
|
|
@@ -6428,6 +6566,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6428
6566
|
responseKind: "json"
|
|
6429
6567
|
},
|
|
6430
6568
|
reorderBlocks: {
|
|
6569
|
+
editLease: "managed",
|
|
6431
6570
|
path: "/sites/{siteId}/pages/{pageId}/blocks/reorder",
|
|
6432
6571
|
method: "POST",
|
|
6433
6572
|
tags: [
|
|
@@ -6439,6 +6578,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6439
6578
|
responseKind: "json"
|
|
6440
6579
|
},
|
|
6441
6580
|
deleteBlock: {
|
|
6581
|
+
editLease: "managed",
|
|
6442
6582
|
path: "/sites/{siteId}/pages/{pageId}/blocks/{blockId}",
|
|
6443
6583
|
method: "DELETE",
|
|
6444
6584
|
tags: [
|
|
@@ -6484,6 +6624,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6484
6624
|
responseKind: "json"
|
|
6485
6625
|
},
|
|
6486
6626
|
publishPageDraft: {
|
|
6627
|
+
editLease: "managed",
|
|
6487
6628
|
path: "/sites/{siteId}/pages/{pageId}/publish",
|
|
6488
6629
|
method: "POST",
|
|
6489
6630
|
tags: [TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById],
|
|
@@ -6491,6 +6632,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6491
6632
|
responseKind: "json"
|
|
6492
6633
|
},
|
|
6493
6634
|
discardPageDraft: {
|
|
6635
|
+
editLease: "managed",
|
|
6494
6636
|
path: "/sites/{siteId}/pages/{pageId}/discard",
|
|
6495
6637
|
method: "POST",
|
|
6496
6638
|
tags: [TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById],
|
|
@@ -6506,6 +6648,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6506
6648
|
errors: ["resource:not_found", "server:internal_error"]
|
|
6507
6649
|
},
|
|
6508
6650
|
savePageDesignState: {
|
|
6651
|
+
editLease: "managed",
|
|
6509
6652
|
path: "/sites/{siteId}/pages/{pageId}/design-state",
|
|
6510
6653
|
method: "POST",
|
|
6511
6654
|
tags: [TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById],
|
|
@@ -6535,6 +6678,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6535
6678
|
responseKind: "json"
|
|
6536
6679
|
},
|
|
6537
6680
|
restorePageVersion: {
|
|
6681
|
+
editLease: "managed",
|
|
6538
6682
|
path: "/sites/{siteId}/pages/{pageId}/versions/{versionId}/restore",
|
|
6539
6683
|
method: "POST",
|
|
6540
6684
|
errors: [
|
|
@@ -6548,6 +6692,7 @@ const API_ENDPOINTS$1 = {
|
|
|
6548
6692
|
responseKind: "json"
|
|
6549
6693
|
},
|
|
6550
6694
|
applyPageDesignEditorAction: {
|
|
6695
|
+
editLease: "managed",
|
|
6551
6696
|
path: "/sites/{siteId}/pages/{pageId}/design/actions",
|
|
6552
6697
|
method: "POST",
|
|
6553
6698
|
tags: [TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById],
|
|
@@ -9404,6 +9549,8 @@ const API_ERROR_CODE_SET = /* @__PURE__ */ new Set([
|
|
|
9404
9549
|
"auth:sudo_required",
|
|
9405
9550
|
"auth:insufficient_permissions",
|
|
9406
9551
|
"auth:impersonation_restricted",
|
|
9552
|
+
"auth:lease_required",
|
|
9553
|
+
"auth:lease_lost",
|
|
9407
9554
|
"validation:invalid_input",
|
|
9408
9555
|
"validation:missing_field",
|
|
9409
9556
|
"validation:invalid_format",
|
|
@@ -9955,7 +10102,7 @@ var SimpleCache = class {
|
|
|
9955
10102
|
* 1. This constant
|
|
9956
10103
|
* 2. The "version" field in package.json
|
|
9957
10104
|
*/
|
|
9958
|
-
const SDK_VERSION = "0.
|
|
10105
|
+
const SDK_VERSION = "0.148.0";
|
|
9959
10106
|
//#endregion
|
|
9960
10107
|
//#region src/client/error.ts
|
|
9961
10108
|
let _Symbol$for;
|
|
@@ -36472,6 +36619,10 @@ const bookingDescription = richText({}, bind("content.description"), when("conte
|
|
|
36472
36619
|
* that hydration never rewrites.
|
|
36473
36620
|
*/
|
|
36474
36621
|
const bookingWizard = bookingForm(withApiBindings({
|
|
36622
|
+
demoEmailSuppressed: { $bind: {
|
|
36623
|
+
from: "$root.demoEmailSuppressed",
|
|
36624
|
+
fallback: false
|
|
36625
|
+
} },
|
|
36475
36626
|
portalToken: { $bind: {
|
|
36476
36627
|
from: "$root.portalToken",
|
|
36477
36628
|
fallback: null
|
|
@@ -37198,7 +37349,6 @@ const publicEventBaseSchema = z.object({
|
|
|
37198
37349
|
description: z.string().nullable(),
|
|
37199
37350
|
content: z.object({ body: RichTextDocSchema.nullable().optional() }).optional(),
|
|
37200
37351
|
presentation: z.object({
|
|
37201
|
-
cardTitleOverride: z.string().nullable().optional(),
|
|
37202
37352
|
summary: z.string().nullable().optional(),
|
|
37203
37353
|
image: mediaSchema.nullable().optional()
|
|
37204
37354
|
}).optional(),
|
|
@@ -37231,6 +37381,7 @@ const publicEventBaseSchema = z.object({
|
|
|
37231
37381
|
"archived"
|
|
37232
37382
|
]).optional(),
|
|
37233
37383
|
timeZone: z.string(),
|
|
37384
|
+
siteTimeZone: z.string().optional(),
|
|
37234
37385
|
pricing: publicEventPricingSchema,
|
|
37235
37386
|
paymentTerms: blockBookingPaymentTermsSchema,
|
|
37236
37387
|
cancellationPolicy: z.object({ refunds: z.object({
|
|
@@ -37894,6 +38045,7 @@ const EVENT_REGISTRATION_SHELL_STEP_LABELS = [
|
|
|
37894
38045
|
];
|
|
37895
38046
|
const eventRegistrationPublicEventSchema = z.preprocess(normalizeEventRegistrationEventInput, publicEventSchema);
|
|
37896
38047
|
const eventRegistrationHydrationSchemaShape = {
|
|
38048
|
+
demoEmailSuppressed: z.boolean().optional(),
|
|
37897
38049
|
occurrenceContext: occurrenceContextSchema.optional(),
|
|
37898
38050
|
subject: eventRegistrationPageSurfaceSubjectSchema.nullable().optional(),
|
|
37899
38051
|
maxTickets: z.string().optional(),
|
|
@@ -38074,6 +38226,7 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
38074
38226
|
...eventSource,
|
|
38075
38227
|
events: [...scopedSourceEvents]
|
|
38076
38228
|
} : eventSource,
|
|
38229
|
+
demoEmailSuppressed: source.demoEmailSuppressed,
|
|
38077
38230
|
maxTickets: source.maxTickets ?? void 0,
|
|
38078
38231
|
showVenue: source.showVenue,
|
|
38079
38232
|
showCapacity: source.showCapacity,
|
|
@@ -38202,8 +38355,8 @@ const eventRegistrationBlockDefinition = {
|
|
|
38202
38355
|
description: "Message shown after successful registration",
|
|
38203
38356
|
required: false,
|
|
38204
38357
|
multiline: true,
|
|
38205
|
-
|
|
38206
|
-
|
|
38358
|
+
maxLength: 500,
|
|
38359
|
+
ui: { placeholder: "Thank you for registering! Check your email for confirmation details." }
|
|
38207
38360
|
},
|
|
38208
38361
|
{
|
|
38209
38362
|
id: "buttonText",
|
|
@@ -38224,6 +38377,10 @@ const eventRegistrationBlockDefinition = {
|
|
|
38224
38377
|
text({ as: "h2" }, bind("content.heading"), when("content.heading")),
|
|
38225
38378
|
richText({ className: "rb-prose rb-max-w-none" }, bind("content.description"), when("content.description")),
|
|
38226
38379
|
eventRegistration(withApiBindings({
|
|
38380
|
+
demoEmailSuppressed: { $bind: {
|
|
38381
|
+
from: "$root.demoEmailSuppressed",
|
|
38382
|
+
fallback: false
|
|
38383
|
+
} },
|
|
38227
38384
|
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
38228
38385
|
occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
|
|
38229
38386
|
subject: { $bind: { from: "$root.subject" } },
|
|
@@ -43677,6 +43834,7 @@ const shopSourceSchema = z.object({
|
|
|
43677
43834
|
memberships: z.array(publicMembershipProductSchema).nullable().optional(),
|
|
43678
43835
|
products: z.array(publicProductSchema).nullable().optional(),
|
|
43679
43836
|
siteId: z.string().optional(),
|
|
43837
|
+
demoEmailSuppressed: z.boolean().optional(),
|
|
43680
43838
|
apiBaseUrl: z.string().optional(),
|
|
43681
43839
|
readAuthority: browserReadAuthoritySchema.optional(),
|
|
43682
43840
|
stage: previewStageSchema.optional()
|
|
@@ -43796,7 +43954,8 @@ const checkoutDisplaySchema = z.object({
|
|
|
43796
43954
|
const passesMembershipsHydrationSchema = z.object({
|
|
43797
43955
|
memberships: z.array(publicMembershipProductSchema),
|
|
43798
43956
|
passPurchaseMode: z.enum(["add_to_cart", "buy_now"]),
|
|
43799
|
-
buttonVariant: blockButtonRoleSchema
|
|
43957
|
+
buttonVariant: blockButtonRoleSchema,
|
|
43958
|
+
demoEmailSuppressed: z.boolean().optional()
|
|
43800
43959
|
});
|
|
43801
43960
|
const productListHydrationSchema = z.object({
|
|
43802
43961
|
products: z.array(publicProductSchema),
|
|
@@ -43818,7 +43977,8 @@ const cartHydrationSchema = z.object({
|
|
|
43818
43977
|
});
|
|
43819
43978
|
const checkoutHydrationSchema = z.object({
|
|
43820
43979
|
emptyStateText: z.string(),
|
|
43821
|
-
submitButtonText: z.string()
|
|
43980
|
+
submitButtonText: z.string(),
|
|
43981
|
+
demoEmailSuppressed: z.boolean().optional()
|
|
43822
43982
|
});
|
|
43823
43983
|
const passesMembershipsRenderSchema = z.object({
|
|
43824
43984
|
display: passesMembershipsDisplaySchema,
|
|
@@ -43877,7 +44037,8 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
43877
44037
|
hydration: {
|
|
43878
44038
|
memberships: source.showMemberships === false ? [] : source.memberships ?? [],
|
|
43879
44039
|
passPurchaseMode,
|
|
43880
|
-
buttonVariant: source.buttonVariant ?? "primary"
|
|
44040
|
+
buttonVariant: source.buttonVariant ?? "primary",
|
|
44041
|
+
demoEmailSuppressed: source.demoEmailSuppressed
|
|
43881
44042
|
}
|
|
43882
44043
|
};
|
|
43883
44044
|
}
|
|
@@ -43970,7 +44131,8 @@ const checkoutBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
43970
44131
|
}),
|
|
43971
44132
|
hydration: {
|
|
43972
44133
|
emptyStateText: source.emptyStateText ?? "Add something to your cart to continue.",
|
|
43973
|
-
submitButtonText: source.submitButtonText ?? "Checkout"
|
|
44134
|
+
submitButtonText: source.submitButtonText ?? "Checkout",
|
|
44135
|
+
demoEmailSuppressed: source.demoEmailSuppressed
|
|
43974
44136
|
}
|
|
43975
44137
|
})
|
|
43976
44138
|
});
|
|
@@ -44188,6 +44350,10 @@ const shopBlockDefinition = {
|
|
|
44188
44350
|
spacing: "spacious",
|
|
44189
44351
|
children: sectionContainer([shop(withApiBindings({
|
|
44190
44352
|
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
44353
|
+
demoEmailSuppressed: { $bind: {
|
|
44354
|
+
from: "$root.demoEmailSuppressed",
|
|
44355
|
+
fallback: false
|
|
44356
|
+
} },
|
|
44191
44357
|
mode: "passes-memberships",
|
|
44192
44358
|
showPasses: { $bind: {
|
|
44193
44359
|
from: "content.showPasses",
|
|
@@ -44730,6 +44896,10 @@ const checkoutBlockDefinition = {
|
|
|
44730
44896
|
baseClass: "",
|
|
44731
44897
|
spacing: "spacious",
|
|
44732
44898
|
children: sectionContainer([checkout(withApiBindings({
|
|
44899
|
+
demoEmailSuppressed: { $bind: {
|
|
44900
|
+
from: "$root.demoEmailSuppressed",
|
|
44901
|
+
fallback: false
|
|
44902
|
+
} },
|
|
44733
44903
|
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
44734
44904
|
mode: "checkout",
|
|
44735
44905
|
heading: { $bind: {
|
|
@@ -50435,21 +50605,6 @@ const navigationLinkInputSchemaOptions = [
|
|
|
50435
50605
|
];
|
|
50436
50606
|
z.discriminatedUnion("kind", navigationLinkInputSchemaOptions);
|
|
50437
50607
|
//#endregion
|
|
50438
|
-
//#region ../blocks/src/pageRenderAdmission.ts
|
|
50439
|
-
/** Pair a published version with the content it authorises at the render boundary. */
|
|
50440
|
-
function readPublishedBlockPlacement(id, content) {
|
|
50441
|
-
if (id == null && content == null) return null;
|
|
50442
|
-
if (id == null || content == null) return {
|
|
50443
|
-
kind: "incomplete",
|
|
50444
|
-
id: id ?? null,
|
|
50445
|
-
content: content ?? null
|
|
50446
|
-
};
|
|
50447
|
-
return {
|
|
50448
|
-
id,
|
|
50449
|
-
content
|
|
50450
|
-
};
|
|
50451
|
-
}
|
|
50452
|
-
//#endregion
|
|
50453
50608
|
//#region ../api/src/sdkConfig/contracts.ts
|
|
50454
50609
|
/**
|
|
50455
50610
|
* Canonical SDK config Zod contracts.
|
|
@@ -51915,9 +52070,17 @@ function readBlockContentId(value, name) {
|
|
|
51915
52070
|
function readTransportedBlockIdentity(block, kind, stage) {
|
|
51916
52071
|
return {
|
|
51917
52072
|
draftContentId: readBlockContentId(block.draftContentId, "draft content id"),
|
|
51918
|
-
publishedPlacement: stage === "preview" ?
|
|
52073
|
+
publishedPlacement: stage === "preview" ? readSdkPreviewPublishedPlacement(block, kind) : null
|
|
51919
52074
|
};
|
|
51920
52075
|
}
|
|
52076
|
+
/** Pair SDK preview publication data whether it is transported or already admitted. */
|
|
52077
|
+
function readSdkPreviewPublishedPlacement(block, kind) {
|
|
52078
|
+
if (block.publishedPlacement !== void 0 && block.publishedPlacement !== null) {
|
|
52079
|
+
if (!isRecord$1(block.publishedPlacement)) throw new Error("Invalid published placement in page");
|
|
52080
|
+
return readPublishedBlockPlacement(readBlockContentId(block.publishedPlacement.id, "published content id"), sanitizeNullableSdkRuntimeBlockContent(kind, readContentRecord(block.publishedPlacement.content) ?? null));
|
|
52081
|
+
}
|
|
52082
|
+
return readPublishedBlockPlacement(readBlockContentId(block.publishedContentId, "published content id"), sanitizeNullableSdkRuntimeBlockContent(kind, readSdkPublishedContentRecord(block.publishedContent)));
|
|
52083
|
+
}
|
|
51921
52084
|
function convertPageResponseBlock(block, stage) {
|
|
51922
52085
|
if (!isRecord$1(block)) throw new Error("Invalid block format in page API response");
|
|
51923
52086
|
const header = readTransportedBlockHeader(block);
|
|
@@ -52026,6 +52189,10 @@ function readNestedContentRecord(value) {
|
|
|
52026
52189
|
if (!isRecord$1(value)) return null;
|
|
52027
52190
|
return readContentRecord(value.data) ?? null;
|
|
52028
52191
|
}
|
|
52192
|
+
function readSdkPublishedContentRecord(value) {
|
|
52193
|
+
if (!isRecord$1(value)) return null;
|
|
52194
|
+
return "data" in value ? readContentRecord(value.data) ?? null : value;
|
|
52195
|
+
}
|
|
52029
52196
|
function sanitizeSdkRuntimeBlockContent(blockKind, content) {
|
|
52030
52197
|
if (blockKind !== "block.newsletter-signup") return content;
|
|
52031
52198
|
const sanitized = sanitizeNewsletterSignupPublicContent(content);
|