@riverbankcms/sdk 0.136.0 → 0.138.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 +109 -0
- package/README.md +7 -4
- package/dist/{PreviewEditorSidebar-BU5ZlhQR.mjs → PreviewEditorSidebar-BVPur_CU.mjs} +12 -18
- package/dist/{PreviewEditorUI-9XkHL-bC.mjs → PreviewEditorUI-DLhWX8oh.mjs} +3 -3
- package/dist/{PreviewQueryProvider-wbEpXryy.mjs → PreviewQueryProvider-BguJY1SW.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CnWmj-2B.mjs → SdkPreviewModeRuntime-Tda6qw4z.mjs} +1375 -495
- package/dist/{SiteChromeCustomizeContext-B6d5zkog.mjs → SiteChromeCustomizeContext-BHFgMjde.mjs} +35665 -33602
- package/dist/_dts/ai/src/contracts/proposals.d.ts +7226 -3057
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +1223 -811
- package/dist/_dts/ai/src/designer/themePatch.d.ts +5 -10
- package/dist/_dts/api/src/accessAdmin.d.ts +16 -18
- package/dist/_dts/api/src/accountApi.d.ts +49 -2
- package/dist/_dts/api/src/appointmentServiceContracts.d.ts +83 -0
- package/dist/_dts/api/src/appointmentServiceLocation.d.ts +12 -0
- package/dist/_dts/api/src/appointmentServiceVisibility.d.ts +14 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +8 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +35 -87
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/bookingOperations.d.ts +2 -69
- package/dist/_dts/api/src/bookingRecords.d.ts +2 -2
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +2 -2
- package/dist/_dts/api/src/bookingServicePricing.d.ts +47 -0
- package/dist/_dts/api/src/bookings.d.ts +2 -2
- package/dist/_dts/api/src/cache-tags.d.ts +7 -2
- package/dist/_dts/api/src/common/index.d.ts +1 -0
- package/dist/_dts/api/src/common/zodFieldErrors.d.ts +34 -0
- package/dist/_dts/api/src/communications.d.ts +14 -8
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -6
- package/dist/_dts/api/src/domainConnection.d.ts +41 -0
- package/dist/_dts/api/src/endpoints.d.ts +1636 -1637
- package/dist/_dts/api/src/eventAttendanceLabels.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +10 -14
- package/dist/_dts/api/src/index.d.ts +11 -9
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/media.d.ts +19 -2
- package/dist/_dts/api/src/occurrenceScheduling.d.ts +1 -1
- package/dist/_dts/api/src/participantMessaging.d.ts +3 -3
- package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +62 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +109 -2
- package/dist/_dts/api/src/publicEventCheckoutEndpointDefinitions.d.ts +27 -0
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +2 -1
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +30 -148
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +8 -26
- package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +5 -13
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +2 -3
- package/dist/_dts/api/src/schemas/admin-allowed-domains.d.ts +76 -0
- package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +61 -0
- package/dist/_dts/api/src/schemas/admin-users.d.ts +80 -0
- package/dist/_dts/api/src/schemas/newsletter-memberships.d.ts +98 -0
- package/dist/_dts/api/src/schemas/sdk-entries.d.ts +128 -0
- package/dist/_dts/api/src/schemas/site-api-keys.d.ts +112 -0
- package/dist/_dts/api/src/schemas/support.d.ts +35 -0
- package/dist/_dts/api/src/sdk-event-booking-offer.d.ts +14 -0
- package/dist/_dts/api/src/sdk-event-payment-terms.d.ts +4 -16
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +11 -21
- package/dist/_dts/api/src/sdkContracts.d.ts +8 -23
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +37 -0
- package/dist/_dts/api/src/sdkMediaContracts.d.ts +40 -0
- package/dist/_dts/api/src/sdkMediaEndpointDefinitions.d.ts +66 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +157 -146
- package/dist/_dts/api/src/siteInfrastructure.d.ts +37 -37
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +35 -54
- package/dist/_dts/api/src/siteOnboarding.d.ts +3 -3
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +38 -16
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +37 -17
- package/dist/_dts/api/src/types.d.ts +2 -2
- package/dist/_dts/api/src/{wholeSeriesOfferings.d.ts → wholeSeriesRuns.d.ts} +11 -67
- package/dist/_dts/block-form/src/FormRenderer.d.ts +3 -1
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +2 -1
- package/dist/_dts/block-form/src/backend/types.d.ts +2 -0
- package/dist/_dts/block-form/src/context/FormFocusContext.d.ts +7 -0
- package/dist/_dts/block-form/src/index.d.ts +2 -0
- package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +2 -1
- package/dist/_dts/block-form/src/utils/promotedFieldBackend.d.ts +8 -0
- package/dist/_dts/block-form/src/utils/promotedFieldPlan.d.ts +18 -0
- package/dist/_dts/block-form/src/utils/resolvePromotedFields.d.ts +8 -1
- package/dist/_dts/blocks/src/BlockErrorBoundary.d.ts +46 -0
- package/dist/_dts/blocks/src/PageRenderer.d.ts +2 -141
- package/dist/_dts/blocks/src/contracts/index.d.ts +2 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +12 -6
- package/dist/_dts/blocks/src/index.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRenderAudience.d.ts +54 -0
- package/dist/_dts/blocks/src/pageRenderDiagnostics.d.ts +26 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +116 -0
- package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +109 -0
- package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +154 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
- package/dist/_dts/blocks/src/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +12 -20
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/eventCalendarDataLoaders.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +95 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/runGrouping.d.ts +37 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +1046 -773
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +59 -46
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +161 -161
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +13 -6
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +10 -4
- package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +2 -2
- package/dist/_dts/blocks/src/system/constants/events.d.ts +4 -0
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +4 -4
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/publicLoaderCachePolicy.d.ts +5 -9
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +83 -83
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +12 -3
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -8
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +12 -20
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +32 -37
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +15 -18
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +11 -8
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +38 -22
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +16 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ErrorStep.d.ts +3 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +5 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorPresentation.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +25 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +14 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +3 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/siteCreditPreview.d.ts +0 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.d.ts +14 -16
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +13 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +9 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +25 -23
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +11 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -13
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +11 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/capacity.d.ts +164 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/cta.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +47 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/index.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/people.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/pricing.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/OfferingTitle.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +1080 -560
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/index.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listingLayout.d.ts +23 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -7
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +11 -0
- package/dist/_dts/commerce/src/moneyReport.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +57 -0
- package/dist/_dts/commerce/src/purchase/eventOrderOptionSnapshot.d.ts +3 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +6 -3
- package/dist/_dts/commerce/src/purchase/types.d.ts +3 -2
- package/dist/_dts/commerce/src/waitlists.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +4 -0
- package/dist/_dts/content-editor/src/controller/useBlockedPublishPlan.d.ts +11 -0
- package/dist/_dts/content-editor/src/hooks/applyBlockedPublishPlan.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/blockedPublishPlan.d.ts +13 -5
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +5 -1
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +34 -2
- package/dist/_dts/content-editor/src/index.d.ts +2 -1
- package/dist/_dts/content-editor/src/ui/blockValidationManifestRegistry.d.ts +2 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +4 -2
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +27 -5
- package/dist/_dts/content-model/src/content-types/schema.d.ts +3 -3
- package/dist/_dts/content-model/src/templates/defaults.d.ts +11 -0
- package/dist/_dts/core/src/branded.d.ts +28 -9
- package/dist/_dts/core/src/event-booking-offer-parser.d.ts +82 -0
- package/dist/_dts/core/src/event-booking-offer.d.ts +89 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +81 -4
- package/dist/_dts/core/src/event-pricing.d.ts +81 -89
- package/dist/_dts/core/src/index.d.ts +3 -0
- package/dist/_dts/core/src/non-empty-array.d.ts +3 -0
- package/dist/_dts/core/src/whole-series-run-schedule.d.ts +92 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +495 -279
- package/dist/_dts/db/src/index.d.ts +1 -0
- package/dist/_dts/db/src/utils/postgrestFilter.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -6
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +4 -2
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +22 -7
- package/dist/_dts/editor-blocks/src/block-editor/useSettingsFieldFocus.d.ts +18 -0
- package/dist/_dts/media-core/src/bulkDeletePlanning.d.ts +4 -0
- package/dist/_dts/media-core/src/fileDomain.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/blocks/previewBatchLoaderParams.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlSaveRequest.d.ts +51 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +24 -2
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +23 -1
- package/dist/_dts/preview-next/src/client/preview/usePersistedHeaderPreferences.d.ts +8 -0
- package/dist/_dts/sdk/src/client/{eventSubrouteReadOperations.d.ts → publicEventReadOperations.d.ts} +4 -3
- package/dist/_dts/sdk/src/client/types.d.ts +6 -10
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
- package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +2 -3
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +8 -8
- package/dist/_dts/sdk/src/next/tags.d.ts +5 -8
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -26
- package/dist/_dts/sdk/src/rendering/helpers/footerPageOutline.d.ts +9 -1
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -53
- package/dist/_dts/sdk/src/rendering/server.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/styles/recipes/flatInk.d.ts +25 -25
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +25 -25
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +7 -7
- package/dist/_dts/theme-core/src/buttons/types.d.ts +22 -22
- package/dist/_dts/theme-core/src/cards/types.d.ts +49 -49
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/gradients/types.d.ts +5 -0
- package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +26 -3
- package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +195 -195
- package/dist/_dts/theme-core/src/navigation/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/schema.d.ts +258 -257
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +43 -3
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +10 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerBrandPresentation.d.ts +63 -0
- package/dist/_dts/theme-core/src/site-styles/headerBytesComparison.d.ts +30 -0
- package/dist/_dts/theme-core/src/site-styles/headerInteractionPalette.d.ts +50 -1
- package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +48 -9
- package/dist/_dts/theme-core/src/site-styles/headerPreferences.d.ts +162 -0
- package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +73 -0
- package/dist/_dts/theme-core/src/site-styles/headerRecompile.d.ts +118 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +10 -1
- package/dist/_dts/theme-core/src/site-styles/headerStyleDefaults.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +7 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +20 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +43 -2
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +2 -2
- package/dist/client/{BookingConsentAgreement-DCch21a6.mjs → BookingConsentAgreement-DQUik1Mx.mjs} +2 -2
- package/dist/client/{DiscountCodeDisclosure-DIj1T59K.mjs → DiscountCodeDisclosure-CU67Q4vH.mjs} +1 -1
- package/dist/client/{EventCombined.client-BWVNlXTx.mjs → EventCombined.client-a02TXUgg.mjs} +233 -348
- package/dist/client/{EventListing.client-DVFCDe3i.mjs → EventListing.client-99qx7jFl.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BY5mIHw9.mjs → LeafletStaticMap-CWzcq73L.mjs} +1 -1
- package/dist/client/{accordion-CK29E8rG.mjs → accordion-D1nb3-Oj.mjs} +1 -1
- package/dist/client/{bookingForm-DFvnet-N.mjs → bookingForm-BGrmLhaO.mjs} +5 -5
- package/dist/client/bookings.mjs +10555 -10475
- package/dist/client/{carousel-BVU5NQlb.mjs → carousel-DSmOx3ad.mjs} +1 -1
- package/dist/client/{cart-BNItcZVa.mjs → cart-COWeOIUk.mjs} +3 -3
- package/dist/client/{checkout-Bu6iCdkP.mjs → checkout-CeysaIJK.mjs} +3 -3
- package/dist/client/client.mjs +58968 -57441
- package/dist/client/{context-BImarOAq.mjs → context-DBzX85Xc.mjs} +46 -18
- package/dist/client/dates-DCYhZBlW.mjs +264 -0
- package/dist/client/{eventCalendar-DS2h-UXD.mjs → eventCalendar-BgsN73Ul.mjs} +21 -44
- package/dist/client/{eventCombined-Drt4Oq9p.mjs → eventCombined-DcZQAMQP.mjs} +3 -3
- package/dist/client/{eventDetails-Bl2vWgTX.mjs → eventDetails-BWwGJ54l.mjs} +131 -51
- package/dist/client/{eventListing-CS7PHY7v.mjs → eventListing-DqYqV8vp.mjs} +3 -3
- package/dist/client/{eventRegistration-D-j8eNy2.mjs → eventRegistration-DQGDgu_e.mjs} +1122 -803
- package/dist/client/{form-RMpoLTyr.mjs → form-ClfpasVT.mjs} +2 -2
- package/dist/client/{headerSection-BYE3Lb3k.mjs → headerSection-BuOMe98N.mjs} +2 -2
- package/dist/client/hooks.mjs +9630 -9526
- package/dist/client/{locationMap-BxSr7Kkh.mjs → locationMap-CEqu_sfa.mjs} +2 -2
- package/dist/client/{newsletterForm-DerbXwFC.mjs → newsletterForm-IbrHjMxy.mjs} +2 -2
- package/dist/client/pricing-xj7MPZlK.mjs +314 -0
- package/dist/client/{productDetail-4SZCLhAf.mjs → productDetail-vxqTt5Xj.mjs} +3 -3
- package/dist/client/{productList-D7AP4GNq.mjs → productList-OTdZu8sb.mjs} +3 -3
- package/dist/client/{propsDecoder-pzBeCh14.mjs → propsDecoder-CY9gGEF7.mjs} +786 -1194
- package/dist/client/rendering/client.mjs +11481 -10469
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +26871 -25232
- package/dist/client/{scrollToBlock-CduAKf8T.mjs → scrollToBlock--BFV6kl-.mjs} +1 -1
- package/dist/client/{shop-Cp5p_kGe.mjs → shop-CP4YbDL9.mjs} +6 -6
- package/dist/client/{shop-commerce-DicXYaYX.mjs → shop-commerce-APs4XBXE.mjs} +5 -5
- package/dist/client/{shop-commerce-store-CGWnpY4K.mjs → shop-commerce-store-CAVLxLFr.mjs} +1 -1
- package/dist/client/{shopShared-BDf9ljkm.mjs → shopShared-BnSRrwXI.mjs} +3 -3
- package/dist/client/{useEventFilters-DeeyGYuk.mjs → useEventFilters-1a1by4c8.mjs} +33 -18
- package/dist/preview-next/before-render.mjs +186 -148
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +186 -148
- package/dist/preview-next/middleware.mjs +186 -148
- package/dist/{previewAuthStore-DbqBol0V.mjs → previewAuthStore-BkEgnYPP.mjs} +186 -148
- package/dist/{sdk-runtime-19MO27F0.mjs → sdk-runtime-DwGfsT0S.mjs} +2 -2
- package/dist/{separator-DaPLtJ1f.mjs → separator-BeqDLneQ.mjs} +1 -1
- package/dist/server/components.mjs +53243 -51879
- package/dist/server/config-validation.mjs +1015 -906
- package/dist/server/config.mjs +1019 -910
- package/dist/server/data.mjs +10304 -10200
- package/dist/server/index.mjs +217 -198
- package/dist/server/next/tags.mjs +18 -4
- package/dist/server/next.mjs +62787 -61617
- package/dist/server/page-converter.mjs +797 -917
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +52557 -51365
- package/dist/server/rendering.mjs +54373 -53054
- package/dist/server/routing.mjs +13274 -13142
- package/dist/server/server.mjs +1076 -1154
- package/dist/server/theme-bridge.mjs +69 -9
- package/dist/server/theme.mjs +27 -8
- package/dist/styles/index.css +32 -1
- package/package.json +1 -1
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +0 -65
- package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +0 -20
- package/dist/_dts/api/src/sdk-event-pricing.d.ts +0 -61
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/index.d.ts +0 -3
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/pricing.d.ts +0 -50
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/schemas.d.ts +0 -135
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +0 -87
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCapacity.d.ts +0 -48
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/pricing.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +0 -100
- package/dist/_dts/sdk/src/client/wholeSeriesReadOperations.d.ts +0 -11
- package/dist/_dts/sdk/src/public-api/wholeSeriesContracts.d.ts +0 -2
- /package/dist/_dts/blocks/src/system/runtime/nodes/events/{shared → domain}/destination.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,115 @@ and then gets the version it went out in.
|
|
|
7
7
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
|
+
### Breaking: canonical Event booking offers (#1326)
|
|
11
|
+
|
|
12
|
+
Event pricing now uses the canonical `free | single | tiered | sliding_scale`
|
|
13
|
+
contract. `PublicEventTicketTypeRecord` has been removed; consumers must use
|
|
14
|
+
canonical pricing options and handle explicit unavailable pricing. Management
|
|
15
|
+
writers must send canonical booking offers. Coordinate SDK consumers with the
|
|
16
|
+
Event pricing database cutover; the release workflow assigns the package version.
|
|
17
|
+
|
|
18
|
+
### Theme contract changes (#1318)
|
|
19
|
+
|
|
20
|
+
- **`saveSiteChromeSelection`'s header body no longer carries a `theme`.** The
|
|
21
|
+
surface used to send the whole compiled theme alongside `layoutId`, `styleId`
|
|
22
|
+
and `preferences` — the Phase 4b dual write — and the server compared the two
|
|
23
|
+
headers and logged a mismatch. The server has been the author of those bytes
|
|
24
|
+
since 4b, so the second copy was only ever a measurement: it is gone, and with
|
|
25
|
+
it the `theme:site_chrome_selection:header_compilation_mismatch` log. The
|
|
26
|
+
footer surface still sends a theme, because a footer save's change *is* a
|
|
27
|
+
theme. The save response is unchanged and still returns the persisted theme,
|
|
28
|
+
which is what a client reconciles to.
|
|
29
|
+
|
|
30
|
+
- **`sdkUpsertTheme`'s update body takes a theme with no `header`.** `POST
|
|
31
|
+
/sdk/{siteId}/theme` used to accept and persist whatever `theme.header` an SDK
|
|
32
|
+
consumer sent, which was the last route through which raw header bytes reached
|
|
33
|
+
persistence. `theme` is now `SdkThemeWireWithoutHeader` (exported from
|
|
34
|
+
`@riverbankcms/api`), and the header is compiled server-side from the site's
|
|
35
|
+
stored selection and `header_preferences` against the site style the body
|
|
36
|
+
authors. A body carrying a `header` is rejected rather than silently stripped.
|
|
37
|
+
A site whose current theme row cannot be read is refused rather than
|
|
38
|
+
re-provisioned.
|
|
39
|
+
|
|
40
|
+
- **`saveSiteTheme`'s body takes a theme with no `header`.** `theme` is now
|
|
41
|
+
`Omit<Theme, 'header'>` (`ThemeWithoutHeader`, exported from
|
|
42
|
+
`@riverbankcms/api`), derived at the route from `themeSchema.omit({ header:
|
|
43
|
+
true })`. The header is compiled server-side from the row's stored selection
|
|
44
|
+
and `header_preferences`; `headerSelection` still names the selection to
|
|
45
|
+
compile for. This was the last path by which hand-written header bytes could
|
|
46
|
+
reach persistence. A save against a site with no current theme selection is
|
|
47
|
+
now refused with `THEME_SELECTION_NOT_FOUND` rather than falling back to a
|
|
48
|
+
site-style default, and the header selection it stores is the one the shared
|
|
49
|
+
pipeline resolves — which applies the site style's **curated** repair, not
|
|
50
|
+
only the catalogue's. A body naming a (layout, style) pair the site style does
|
|
51
|
+
not offer now stores the repaired pair, so the persisted ids and the persisted
|
|
52
|
+
bytes always name the same selection.
|
|
53
|
+
|
|
54
|
+
- **`HeaderPreferences` gains a required `brandPresentation` field**
|
|
55
|
+
(`'recommended' | 'plain'`), and `headerPreferencesSchema` requires it. It
|
|
56
|
+
says whether the header wears a brand presentation block at all. `'plain'` is
|
|
57
|
+
the state several live rows persist — no `logo` object — which the record
|
|
58
|
+
could not express before, so a recompile would have given those sites a logo
|
|
59
|
+
treatment they have never rendered. This is a **widening**: `'recommended'` is
|
|
60
|
+
the default and reproduces the previous behaviour exactly, and the header
|
|
61
|
+
parity lockfile is unchanged. Consumers that construct a `HeaderPreferences`
|
|
62
|
+
literal must add the field; consumers that only read one are unaffected.
|
|
63
|
+
|
|
64
|
+
- **`readHeaderPreferences` is no longer exported.** It gained a fourth
|
|
65
|
+
argument — the two headers the brand-presentation modes compile to, because
|
|
66
|
+
the mode is derived by comparing the persisted `logo` against both — and the
|
|
67
|
+
type of that argument was never on the package surface, so the export was a
|
|
68
|
+
function no consumer could call. Deriving a record from persisted bytes goes
|
|
69
|
+
through `recompileSiteChromeHeaderFromPersistedIntent`, which builds the
|
|
70
|
+
candidates itself and has always been the supported way to do it.
|
|
71
|
+
|
|
72
|
+
- **`headerPreferencesWireSchema` is exported alongside `headerPreferencesSchema`.** It is the
|
|
73
|
+
same record with `brandPresentation` defaulting to `'recommended'`, for bodies arriving from a
|
|
74
|
+
client build that predates the field. The field is not client-authored — the server reads the
|
|
75
|
+
mode off the row — so defaulting it on the wire loses nothing, and the persisted schema keeps
|
|
76
|
+
requiring it so a stored record can never be incomplete.
|
|
77
|
+
|
|
78
|
+
- **`headerLogoShapeContext` is exported from
|
|
79
|
+
`@riverbankcms/theme-core/site-styles`.** It is the one definition of "the
|
|
80
|
+
site's logo as the header pipeline sees it", from an asset (or its absence)
|
|
81
|
+
and the accommodation the row persists. The dashboard's server lookup and the
|
|
82
|
+
#1318 Phase 4c migration generator both go through it.
|
|
83
|
+
|
|
84
|
+
- **`APIEndpoints` no longer carries `createTheme`, and `POST /ai/chat/create-theme`
|
|
85
|
+
no longer exists.** The endpoint generated theme proposals from a site id and
|
|
86
|
+
had no caller anywhere — not in the dashboard, not in the SDK's own
|
|
87
|
+
`PublicAPIEndpoints`, not in the e2e or integration suites. Site creation goes
|
|
88
|
+
through `generateThemes` (`POST /theme/generate`), which is what the wizard has
|
|
89
|
+
always called. The `ThemeGenerationTurn` type it was the sole user of is
|
|
90
|
+
removed with it.
|
|
91
|
+
|
|
92
|
+
- **`APIEndpoints` no longer carries `generateThemes`, and `POST /theme/generate`
|
|
93
|
+
no longer exists.** It generated three AI theme proposals for a site, and its
|
|
94
|
+
only caller was the site-creation wizard's theme step, which no navigation
|
|
95
|
+
ever reached — the page was reachable only by typing its URL. The step and the
|
|
96
|
+
whole generator chain behind it are gone. Like `createTheme`, this endpoint is
|
|
97
|
+
not in `PublicAPIEndpoints`, so the SDK's hand-written public surface is
|
|
98
|
+
unchanged; what narrows is the bundled `@riverbankcms/api` declarations.
|
|
99
|
+
`ThemeRow` stays exported from the package — it was only ever this endpoint's
|
|
100
|
+
response element there, but it is a general row type.
|
|
101
|
+
|
|
102
|
+
- **`header.maxWidth` is now optional on the way in.** It gained a schema
|
|
103
|
+
default of `'container'`, so `SdkThemeWire` (`z.input<typeof themeSchema>`)
|
|
104
|
+
accepts a theme body that omits it, where before the field was required and a
|
|
105
|
+
body without it failed to parse. This is a widening — every theme that parsed
|
|
106
|
+
before still parses, and the parsed value is unchanged, since the field only
|
|
107
|
+
ever holds `'container'` in practice. Nothing authors it any more: the field
|
|
108
|
+
is layout-owned, and full-bleed headers will come back as a layout facet
|
|
109
|
+
rather than a free-form value if they are ever wanted.
|
|
110
|
+
|
|
111
|
+
- **`header.interactionPalette` accepts a fourth value, `'quiet'`.** The header
|
|
112
|
+
hover-colour vocabulary was `primary | secondary | accent`, all of which fill
|
|
113
|
+
the nav link with a colour on hover and focus. `'quiet'` means "no fill" — the
|
|
114
|
+
header style's own hover treatment stands and the palette step writes nothing.
|
|
115
|
+
This is a widening of the persisted theme enum, so every theme that parsed
|
|
116
|
+
before still parses and no existing value changes meaning; a consumer that
|
|
117
|
+
exhaustively switches on the palette needs a branch for it.
|
|
118
|
+
|
|
10
119
|
### Breaking: manifest content uses explicit trust stages (#1245)
|
|
11
120
|
|
|
12
121
|
- SDK rendering now exposes `RenderablePageOutline` values whose blocks carry a
|
package/README.md
CHANGED
|
@@ -2384,6 +2384,7 @@ Define loaders declaratively in your block definition. These are restricted to w
|
|
|
2384
2384
|
| `listPublishedEntries` | Fetch published content entries |
|
|
2385
2385
|
| `getPublishedEntryPreview` | Fetch a single entry by slug |
|
|
2386
2386
|
| `listPublicEvents` | Fetch events |
|
|
2387
|
+
| `listPublicEventCalendarWindow` | Fetch a bounded calendar month window with explicit completeness and continuation metadata |
|
|
2387
2388
|
| `getPublicFormById` | Fetch form configuration |
|
|
2388
2389
|
| `getPublicBookingServices` | Fetch booking services |
|
|
2389
2390
|
|
|
@@ -3446,10 +3447,12 @@ fetch the occurrence payload. The result is passed to event blocks via
|
|
|
3446
3447
|
`dataContext.entrySubrouteContext` as
|
|
3447
3448
|
`{ kind: 'event-occurrence'; occurrence }`.
|
|
3448
3449
|
|
|
3449
|
-
Whole-series
|
|
3450
|
-
|
|
3451
|
-
page's `eventOffering` or `eventSeries` subject; nested
|
|
3452
|
-
|
|
3450
|
+
Whole-series Events use canonical Event paths such as `/events/beginners`.
|
|
3451
|
+
Event details and registration blocks select the canonical series from the
|
|
3452
|
+
page's `eventOffering` or `eventSeries` subject; nested run routes are not part
|
|
3453
|
+
of the SDK contract. There is no separate whole-series read operation — a
|
|
3454
|
+
whole-series Event arrives as a `PublicEvent` with
|
|
3455
|
+
`bookingScope: 'whole_series'` and a `run` member.
|
|
3453
3456
|
|
|
3454
3457
|
Invalid subroute segments (e.g., `/events/yoga-class/invalid-date`) return a 404.
|
|
3455
3458
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as FooterComposerPanel,
|
|
3
|
-
import { d as unwrapResponse, f as getDashboardUrl, r as usePreviewAuth } from "./previewAuthStore-
|
|
4
|
-
import { t as Separator } from "./separator-
|
|
5
|
-
import { S as getSiteFontsStorageUrl, _ as usePreviewBlockCustomizeSelectionOptional, b as buildFontPreviewUrl, d as buildPreviewDashboardSetupUrl, f as resolvePreviewDashboardSetupHandoff, g as useBlockCustomizeControls, h as usePreviewSiteFontStorageUrl, m as resolvePreviewSidebarChromeModel, p as resolvePreviewEditorGuidanceModel, u as canInspectSiteStyle, v as PreviewFormProvider, x as generateFontFaceCss, y as previewWidgetOverrides } from "./SdkPreviewModeRuntime-
|
|
2
|
+
import { $ as FooterComposerPanel, A as markApplySaving, Aa as DropdownMenuLabel, Ai as resolveButtonStyleSelection, Ar as getHeaderLayout, B as setPaletteColors, Ba as assertNever$1, Bi as paletteColorsSchema, Bt as useEditorUiStoreInstance, C as cancelPreview, Ca as Collapsible, D as isPreviewingChange, Da as DropdownMenu, Di as buttonStyleHoverPreferenceValue, E as dismissWarnings, Ea as Surface, En as ThemeScope, Er as getCuratedSiteStyle, F as previewFooterLook, Fi as themeButtonClassName, H as syncStyleConfiguratorState, I as previewHeaderLayout, Ia as cn, Ja as Tablet, L as previewHeaderStyle, Lr as curatedPalettes, M as palettePreviewProjection, Ma as DropdownMenuTrigger, Mi as updateButtonStyleSelectionChoice, N as previewButtonStyle, Ni as buttonStyleSelectionKey, Nt as BlockEditor, O as markApplyFailed, Oa as DropdownMenuContent, Oi as buttonStyleSelectionParameterValue, P as previewCuratedPalette, Pa as Button, Q as resolvePreviewSidebarTab, R as previewSiteStyle, Ra as unsafeAsEditorBlockId, Ri as VARIANT_ROLES, S as applyTypographyDraftPatch, T as deriveStyleConfiguratorCapabilities, Ta as CollapsibleTrigger, U as toggleRow, V as styleConfiguratorHistoryEntryForPersistedSelection, Wa as X$1, X as resolveStyleConfiguratorInitialSnapshot, Xa as Smartphone, Z as createOptimisticActionRunner, Za as SlidersHorizontal, _ as reportPreviewDesignError, _n as listEntryPageContentSlots, aa as SelectValue, an as resolveContentTitle, ao as LoaderCircle, at as useUISelector, b as planSiteChromeSelection, c as selectionSnapshotFromApplySiteStyleSelectionResponse, ca as SearchInput, cn as ManifestForm, ct as useEntryController, da as PopoverTrigger, dn as FormRenderer, do as ChevronLeft, f as usePreviewDesignCoordinator, fa as Input, fo as ChevronDown, g as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, ga as TabsTrigger, ha as TabsList, ia as SelectTrigger, in as resolvePageRouteSlug, io as Maximize2, it as ContentFieldsForm, j as openRow, ja as DropdownMenuSeparator, ji as updateButtonStyleHoverPreference, jr as getHeaderStyle, k as markApplySaved, ka as DropdownMenuItem, ki as findButtonStyleRecipe, kr as findFooterLook, l as deriveSiteStylePreviewUpdate, la as Popover, ma as TabsContent, n as useSiteChromeCustomizeOptional, na as SelectContent, oa as Callout, pa as Tabs, pn as createStoreBackend, po as Check, ra as SelectItem, rn as deriveRouteMetadataPresentation, ro as Monitor, s as buildApplySiteStyleSelectionBody, sa as CalloutDescription, ta as Select, tn as isAdapterReferenceKind, u as planConfiguratorPreview, ua as PopoverContent, un as createManifestValidation, uo as ChevronRight, v as buildSiteChromeSelectionModels, w as createStyleConfiguratorState, wa as CollapsibleContent, wr as curatedSiteStyles, x as applyResolvedSelections, y as cycleSiteChromeSelectionId, z as resetTypographyToSaved, zi as paletteColorEntries, zt as useEditorUiStore } from "./SiteChromeCustomizeContext-BHFgMjde.mjs";
|
|
3
|
+
import { d as unwrapResponse, f as getDashboardUrl, r as usePreviewAuth } from "./previewAuthStore-BkEgnYPP.mjs";
|
|
4
|
+
import { t as Separator } from "./separator-BeqDLneQ.mjs";
|
|
5
|
+
import { S as getSiteFontsStorageUrl, _ as usePreviewBlockCustomizeSelectionOptional, b as buildFontPreviewUrl, d as buildPreviewDashboardSetupUrl, f as resolvePreviewDashboardSetupHandoff, g as useBlockCustomizeControls, h as usePreviewSiteFontStorageUrl, m as resolvePreviewSidebarChromeModel, p as resolvePreviewEditorGuidanceModel, u as canInspectSiteStyle, v as PreviewFormProvider, x as generateFontFaceCss, y as previewWidgetOverrides } from "./SdkPreviewModeRuntime-Tda6qw4z.mjs";
|
|
6
6
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
@@ -1165,11 +1165,8 @@ function EntrySlotBlockEditorPanel({ siteId, dashboardBaseUrl, typeKey, entryId,
|
|
|
1165
1165
|
if (!editor) return false;
|
|
1166
1166
|
if (!focusRequest?.blockId) return false;
|
|
1167
1167
|
if (!selectedBlocks.some((block) => block.id === focusRequest.blockId)) return false;
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
fieldPath: focusRequest.fieldPath ?? void 0,
|
|
1171
|
-
itemIndex: focusRequest.itemIndex ?? void 0
|
|
1172
|
-
});
|
|
1168
|
+
const { requestId: _requestId, ...target } = focusRequest;
|
|
1169
|
+
editor.focusField(target);
|
|
1173
1170
|
uiStore.getState().clearFocus();
|
|
1174
1171
|
return true;
|
|
1175
1172
|
}, [
|
|
@@ -3670,7 +3667,7 @@ function StyleConfigurator({ siteId, apiClient, theme, selectionId, selectionVer
|
|
|
3670
3667
|
clearPreview("style-configurator");
|
|
3671
3668
|
return;
|
|
3672
3669
|
}
|
|
3673
|
-
previewTheme("style-configurator",
|
|
3670
|
+
previewTheme("style-configurator", planConfiguratorPreview({
|
|
3674
3671
|
siteStyle,
|
|
3675
3672
|
selection: state.previewed,
|
|
3676
3673
|
headerLogoContext,
|
|
@@ -3706,7 +3703,7 @@ function StyleConfigurator({ siteId, apiClient, theme, selectionId, selectionVer
|
|
|
3706
3703
|
const next = previewSiteStyle(current, siteStyleId);
|
|
3707
3704
|
const siteStyle = getCuratedSiteStyle(siteStyleId);
|
|
3708
3705
|
if (!siteStyle) return next;
|
|
3709
|
-
const result =
|
|
3706
|
+
const result = planConfiguratorPreview({
|
|
3710
3707
|
siteStyle,
|
|
3711
3708
|
selection: next.previewed,
|
|
3712
3709
|
headerLogoContext,
|
|
@@ -3754,7 +3751,7 @@ function StyleConfigurator({ siteId, apiClient, theme, selectionId, selectionVer
|
|
|
3754
3751
|
if (!current) return current;
|
|
3755
3752
|
const siteStyle = getCuratedSiteStyle(current.previewed.siteStyleId);
|
|
3756
3753
|
if (!siteStyle) return current;
|
|
3757
|
-
return applyTypographyDraftPatch(current,
|
|
3754
|
+
return applyTypographyDraftPatch(current, planConfiguratorPreview({
|
|
3758
3755
|
siteStyle,
|
|
3759
3756
|
selection: current.previewed,
|
|
3760
3757
|
headerLogoContext,
|
|
@@ -3876,7 +3873,7 @@ function StyleConfigurator({ siteId, apiClient, theme, selectionId, selectionVer
|
|
|
3876
3873
|
});
|
|
3877
3874
|
const currentPalette = palettePreviewProjection(state.previewed.palette);
|
|
3878
3875
|
const paletteControlsDisabled = saving || !stagedCapabilities.canPreviewStaged;
|
|
3879
|
-
const currentPreviewPlan =
|
|
3876
|
+
const currentPreviewPlan = planConfiguratorPreview({
|
|
3880
3877
|
siteStyle: currentSiteStyle,
|
|
3881
3878
|
selection: state.previewed,
|
|
3882
3879
|
headerLogoContext,
|
|
@@ -4476,11 +4473,8 @@ function PreviewEditorSidebar({ surfaceId, siteId, dashboardBaseUrl = null, page
|
|
|
4476
4473
|
if (entryData) return;
|
|
4477
4474
|
const req = focusRequest;
|
|
4478
4475
|
if (!req?.blockId) return;
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
fieldPath: req.fieldPath ?? void 0,
|
|
4482
|
-
itemIndex: req.itemIndex ?? void 0
|
|
4483
|
-
});
|
|
4476
|
+
const { requestId: _requestId, ...target } = req;
|
|
4477
|
+
blockEditorRef.current?.focusField(target);
|
|
4484
4478
|
uiStore.getState().clearFocus();
|
|
4485
4479
|
}, [
|
|
4486
4480
|
entryData,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { d as unwrapResponse, r as usePreviewAuth } from "./previewAuthStore-
|
|
4
|
-
import { C as FixedBottomSurface, a as usePreviewPageDesignEditorState, c as applyPreviewChromeSurfaceToElement, l as resolvePreviewChromeSurface, o as PREVIEW_CHROME_PORTAL_CLASS_NAME, s as PREVIEW_CHROME_THEME_CLASS_NAME } from "./SdkPreviewModeRuntime-
|
|
2
|
+
import { $a as Redo2, $i as TooltipContent, At as useEditor, Bt as useEditorUiStoreInstance, Da as DropdownMenu, Fa as cva, Ia as cn, Ka as Undo2, Ma as DropdownMenuTrigger, Oa as DropdownMenuContent, Pa as Button, Qi as Tooltip, Rt as classifyHistoryShortcut, Sa as DialogTitle, Xt as useMultiAutosave, Ya as Sparkles, _a as Dialog, a as previewDesignHistoryDomainForCommand, ao as LoaderCircle, co as Eye, ea as TooltipTrigger, eo as Pencil, fo as ChevronDown, i as usePreviewDesignHistoryOrder, ka as DropdownMenuItem, lo as EllipsisVertical, lt as useEntryEditorController, n as useSiteChromeCustomizeOptional, no as Palette, o as selectPreviewDesignHistoryDomain, qa as TriangleAlert, to as PenLine, va as DialogContent, xa as DialogHeader, ya as DialogDescription, zt as useEditorUiStore } from "./SiteChromeCustomizeContext-BHFgMjde.mjs";
|
|
3
|
+
import { d as unwrapResponse, r as usePreviewAuth } from "./previewAuthStore-BkEgnYPP.mjs";
|
|
4
|
+
import { C as FixedBottomSurface, a as usePreviewPageDesignEditorState, c as applyPreviewChromeSurfaceToElement, l as resolvePreviewChromeSurface, o as PREVIEW_CHROME_PORTAL_CLASS_NAME, s as PREVIEW_CHROME_THEME_CLASS_NAME } from "./SdkPreviewModeRuntime-Tda6qw4z.mjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { useCallback, useEffect, useMemo, useState, useTransition } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as markPreviewAuthExpired, s as ApiRequestError } from "./previewAuthStore-
|
|
2
|
+
import { n as markPreviewAuthExpired, s as ApiRequestError } from "./previewAuthStore-BkEgnYPP.mjs";
|
|
3
3
|
import { createContext, useContext, useRef } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { MutationCache, QueryCache, QueryClient, QueryClientProvider } from "@tanstack/react-query";
|