@riverbankcms/sdk 0.80.0 → 0.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -3
- package/dist/{PreviewEditorSidebar-O4NDX5TP.css → PreviewEditorSidebar-JA4VIPSZ.css} +1 -1
- package/dist/{PreviewEditorSidebar-QZG37QIF.mjs → PreviewEditorSidebar-LHGK6RIO.mjs} +760 -711
- package/dist/{SdkPreviewModeRuntime-PBGALTMK.css → PreviewEditorUI-36T7QYV4.css} +1 -1
- package/dist/{PreviewEditorUI-AXIKSMZA.mjs → PreviewEditorUI-AXZG2SDC.mjs} +167 -28
- package/dist/{PreviewEditorUI-4JVDBZBS.css → SdkPreviewModeRuntime-FXKI6XNL.css} +1 -1
- package/dist/SdkPreviewModeRuntime-RNVRHFFR.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +838 -262
- package/dist/_dts/altcha/src/AltchaWidget.d.ts +1 -1
- package/dist/_dts/api/src/analytics.d.ts +1 -1
- package/dist/_dts/api/src/bookingConfig.d.ts +4 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +15 -3
- package/dist/_dts/api/src/contentTypes.d.ts +6 -0
- package/dist/_dts/api/src/courses.d.ts +1 -1
- package/dist/_dts/api/src/event-destination-policy.d.ts +17 -0
- package/dist/_dts/api/src/index.d.ts +6 -2
- package/dist/_dts/api/src/navigation/boundaries.d.ts +64 -0
- package/dist/_dts/api/src/navigation.d.ts +2 -0
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +17 -12
- package/dist/_dts/api/src/siteGeneration.d.ts +1 -1
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +7 -6
- package/dist/_dts/api/src/types.d.ts +1 -1
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +3 -1
- package/dist/_dts/block-form/src/backend/types.d.ts +3 -3
- package/dist/_dts/block-form/src/context/BlockContext.d.ts +1 -1
- package/dist/_dts/block-form/src/context/DisplayLabelResolverContext.d.ts +1 -1
- package/dist/_dts/block-form/src/context/FieldPreviewResolverContext.d.ts +2 -2
- package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +1 -1
- package/dist/_dts/block-form/src/palette/PaletteContext.d.ts +1 -1
- package/dist/_dts/block-form/src/sdk-config/SdkConfigContext.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/BackgroundColorWidget/BackgroundColorWidget.d.ts +2 -1
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/BooleanField/BooleanField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/Field.d.ts +2 -2
- package/dist/_dts/block-form/src/widgets/FieldFrame.d.ts +3 -3
- package/dist/_dts/block-form/src/widgets/NumberField/NumberField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/PresetOrCustomField/PresetOrCustomField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/SdkSelectField/SdkSelectField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/SelectField/SelectField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/SelectWidget.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/SliderField/SliderField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/TextField/TextField.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/TextInputWidget.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/ToggleWidget.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/stringDefaultValue.d.ts +1 -0
- package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +28 -44
- package/dist/_dts/blocks/src/index.d.ts +6 -4
- package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/content/components/Button.d.ts +7 -7
- package/dist/_dts/blocks/src/primitives/content/components/RichText.d.ts +2 -1
- package/dist/_dts/blocks/src/primitives/content/components/Text.d.ts +2 -1
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +4 -0
- package/dist/_dts/blocks/src/primitives/layout/Grid.d.ts +2 -1
- package/dist/_dts/blocks/src/primitives/layout/Inline.d.ts +2 -1
- package/dist/_dts/blocks/src/primitives/layout/Stack.d.ts +2 -1
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +397 -111
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +6 -15
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +20 -1
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/hero.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +54 -54
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +21 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +162 -0
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +592 -602
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +592 -604
- package/dist/_dts/blocks/src/system/blocks/products/shared.d.ts +0 -4
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +592 -592
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +3 -0
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +1 -0
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +19 -5
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/data/linkedContentEntries.d.ts +102 -0
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/defineBlock.d.ts +3 -1
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +2 -2
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +6 -1
- package/dist/_dts/blocks/src/system/fragments/library/faqHeading.d.ts +0 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +71 -56
- package/dist/_dts/blocks/src/system/media/slotContracts.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/types.d.ts +8 -1
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +56 -74
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +27 -36
- package/dist/_dts/blocks/src/system/runtime/headingDecoration.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +45 -14
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +2 -9
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/ImageResolveContext.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.shared.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/cart.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +1 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/view.d.ts +10 -13
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/view.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/BookingModeStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/CourseRegistrationWizard.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/ErrorStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/MembershipHero.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/PaymentFailedStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/PortalAuthSidebar.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/StepIndicator.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/SuccessStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/VerifyingTimeoutStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/WaitlistStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/components.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.client.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/CoursePricingDisplay.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/view.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSummaryBar.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardContent.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventSelectionStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/OrderSummary.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PastOccurrenceNotice.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SelectableOptionCard.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/StepIndicator.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +1 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +12 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +21 -16
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +21 -16
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +17 -28
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.view.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DateTimeTile.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DayEventsModal.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventDetailModal.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventPaginatedListView.client.d.ts +2 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +50 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/gifting.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/gifting.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/location-map.client.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/location-map.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/location-map.shared.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/location-map.view.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +29 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +23 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/product-list.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-add-feedback.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-commerce.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-commerce.server.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.types.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/spinner.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/ActionRow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/CheckIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/ClockIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/CrossIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/FeedbackMessage.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/FieldValidationMessage.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/MembershipHero.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/StateIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/StepIndicator.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/TerminalPanel.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/sectionForegroundStyles.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +4 -2
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
- package/dist/_dts/calendar/src/grid.d.ts +27 -0
- package/dist/_dts/calendar/src/index.d.ts +2 -2
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +1 -1
- package/dist/_dts/content-editor/src/components/EditableBlockProvider.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/useAutosaveTriggers.d.ts +3 -1
- package/dist/_dts/content-editor/src/editorTransactionState.d.ts +1 -0
- package/dist/_dts/content-editor/src/hooks/autosaveScopePlanning.d.ts +26 -0
- package/dist/_dts/content-editor/src/hooks/publishability.d.ts +1 -0
- package/dist/_dts/content-editor/src/hooks/useLinkedEntryAutosave.d.ts +23 -0
- package/dist/_dts/content-editor/src/hooks/useReactiveToolbar.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +2 -2
- package/dist/_dts/content-editor/src/index.d.ts +3 -1
- package/dist/_dts/content-editor/src/lib/json.d.ts +2 -0
- package/dist/_dts/content-editor/src/linkedEntries/domain.d.ts +8 -0
- package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +6 -1
- package/dist/_dts/content-editor/src/primitives/PreviewTextEditor.d.ts +6 -1
- package/dist/_dts/content-editor/src/primitives/shared/activePreviewField.d.ts +2 -0
- package/dist/_dts/content-editor/src/primitives/shared/index.d.ts +1 -1
- package/dist/_dts/content-editor/src/primitives/shared/storeBinding.d.ts +3 -1
- package/dist/_dts/content-editor/src/primitives/shared/types.d.ts +5 -0
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +58 -0
- package/dist/_dts/content-editor/src/ui/editorTransactionState.d.ts +93 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +67 -5
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +2 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -40
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +43 -40
- package/dist/_dts/content-model/src/metadataConfig.d.ts +87 -47
- package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -1
- package/dist/_dts/core/src/branded.d.ts +5 -0
- package/dist/_dts/core/src/event-pricing.d.ts +72 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/stable-json.d.ts +1 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +27 -2
- package/dist/_dts/db/src/schemas/forms.d.ts +4 -4
- package/dist/_dts/editor/src/EditorProvider.d.ts +26 -0
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +26 -0
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +45 -0
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +25 -0
- package/dist/_dts/editor/src/components/EditingToggle.d.ts +9 -0
- package/dist/_dts/editor/src/hooks/useEditableElement.d.ts +18 -0
- package/dist/_dts/editor/src/index.d.ts +29 -0
- package/dist/_dts/editor/src/inline/InlineTextEditor.d.ts +1 -0
- package/dist/_dts/editor/src/lib/utils.d.ts +1 -0
- package/dist/_dts/editor/src/primitives/EditorPrimitivesProvider.d.ts +20 -0
- package/dist/_dts/editor/src/primitives/InlineFieldContext.d.ts +11 -0
- package/dist/_dts/editor/src/primitives/SaveContext.d.ts +12 -0
- package/dist/_dts/editor/src/primitives/helpers.d.ts +1 -0
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +26 -0
- package/dist/_dts/editor/src/primitives/rich-text/RichTextToolbar.d.ts +16 -0
- package/dist/_dts/editor/src/primitives/rich-text/config.d.ts +23 -0
- package/dist/_dts/editor/src/primitives/rich-text/extensions/RichTextImage.d.ts +2 -0
- package/dist/_dts/editor/src/primitives/rich-text/extensions/RichTextLink.d.ts +1 -0
- package/dist/_dts/editor/src/primitives/rich-text/imageActions.d.ts +22 -0
- package/dist/_dts/editor/src/primitives/rich-text/sanitize.d.ts +23 -0
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/BlockTypeDropdown.d.ts +6 -0
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/LinkPopover.d.ts +10 -0
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/ToolbarIconButton.d.ts +11 -0
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/linkPopoverUtils.d.ts +58 -0
- package/dist/_dts/editor/src/primitives/rich-text/useRichTextEditor.d.ts +19 -0
- package/dist/_dts/editor/src/primitives/rich-text/utils.d.ts +20 -0
- package/dist/_dts/editor/src/utils/optimisticTokens.d.ts +27 -0
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/FormProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/AddBlockDivider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +5 -5
- package/dist/_dts/editor-blocks/src/block-editor/BlockListContext.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockThumbnail.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockTile.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/EmptyState.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/EnhancedBlockPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/HeaderActions.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/actionPresentation.d.ts +15 -0
- package/dist/_dts/editor-blocks/src/block-editor/blockHeaderActionPlan.d.ts +49 -0
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonVariantField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/context.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeSelectField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/index.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/OfferingsPreviewGroupOrderField.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/OfferingsPreviewWidgetProvider.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/index.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/orderDomain.d.ts +29 -0
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextWidgetProvider.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/rich-text/useImagePicker.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionPickerField.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionWidgetProvider.d.ts +14 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/index.d.ts +6 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +51 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +20 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +5 -0
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/media-core/src/renderableMediaAsset.d.ts +18 -0
- package/dist/_dts/media-editor/src/CropDialog.d.ts +1 -1
- package/dist/_dts/media-editor/src/CropDialogShell.d.ts +1 -1
- package/dist/_dts/media-editor/src/FileAssetPreview.d.ts +1 -1
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +4 -1
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +2 -1
- package/dist/_dts/media-editor/src/MediaPreview.d.ts +1 -1
- package/dist/_dts/media-editor/src/context.d.ts +1 -1
- package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -1
- package/dist/_dts/media-editor/src/index.d.ts +1 -1
- package/dist/_dts/media-editor/src/provider.d.ts +1 -1
- package/dist/_dts/media-react/src/components/AuthenticatedImage.d.ts +1 -1
- package/dist/_dts/media-react/src/components/MediaLibrary.d.ts +1 -1
- package/dist/_dts/media-react/src/components/MediaPickerMini.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/PreviewShellSmoke.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +7 -4
- package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +7 -3
- package/dist/_dts/preview-next/src/client/blocks/blockCustomizePopoverRows.d.ts +25 -0
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +4 -30
- package/dist/_dts/preview-next/src/client/blocks/linkedEntryRenderOverlay.d.ts +11 -0
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +3 -9
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/index.d.ts +0 -1
- package/dist/_dts/preview-next/src/client/layout/PreviewLayoutContext.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +4 -2
- package/dist/_dts/preview-next/src/client/preview/LinkedEntryEditEventBridge.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/MaintenanceModeBadge.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/OnboardingThemeSwitcher.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +6 -3
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewAuthBanner.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewAuthInit.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewBlockCustomizeSelectionContext.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewConfirmationDialog.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewDesignCoordinatorContext.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewDesignHistoryOrderContext.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorGuidanceCard.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewOpenEditorButton.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewQueryProvider.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +21 -20
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewSidebarSection.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewViewportControls.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewZoomControls.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/SelectedBlockCustomizePanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeButton.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +60 -6
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +14 -1
- package/dist/_dts/preview-next/src/client/preview/SubrouteNoticePanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/linkedEntryEditEvents.d.ts +9 -0
- package/dist/_dts/preview-next/src/client/preview/previewChromePlacement.d.ts +51 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeControls.d.ts +68 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +8 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +11 -9
- package/dist/_dts/preview-next/src/client/preview/previewDesignHistoryOrder.d.ts +18 -0
- package/dist/_dts/preview-next/src/client/preview/previewUndoDomains.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +41 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +120 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +30 -0
- package/dist/_dts/preview-next/src/client/preview/siteStyleHistoryState.d.ts +55 -0
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/themeOverlay.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewModeRuntime.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/widgets/widgetAdapters.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +8 -5
- package/dist/_dts/preview-next/src/constants.d.ts +0 -1
- package/dist/_dts/sdk/src/__mocks__/next-cache.d.ts +4 -3
- package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +3 -1
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +6 -12
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +31 -0
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +3 -1
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/sync/validation.d.ts +7 -7
- package/dist/_dts/sdk/src/client/types.d.ts +36 -4
- package/dist/_dts/sdk/src/client.d.ts +1 -1
- package/dist/_dts/sdk/src/config/content-types.d.ts +3 -14
- package/dist/_dts/sdk/src/config/content-validation.d.ts +9 -214
- package/dist/_dts/sdk/src/config/types.d.ts +10 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +24 -24
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +30 -4
- package/dist/_dts/sdk/src/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +6 -6
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +4 -3
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +39 -37
- package/dist/_dts/sdk/src/rendering/components/Block.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/components/Block.server.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/components/Page.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/components/Page.server.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/components/PageHydrationBootstrap.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +10 -9
- package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +9 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -15
- package/dist/_dts/sdk/src/rendering/mediaAssets.d.ts +4 -0
- package/dist/_dts/sdk/src/rendering/primitives/RichText.d.ts +2 -1
- package/dist/_dts/sdk/src/server.d.ts +1 -1
- package/dist/_dts/sdk/src/theme-bridge/ThemeBridgeProvider.d.ts +1 -1
- package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +69 -21
- package/dist/_dts/theme-core/src/ClientThemeScope.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +3 -2
- package/dist/_dts/theme-core/src/ThemeScope.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeScopeCore.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/constants.d.ts +26 -1
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +11 -0
- package/dist/_dts/theme-core/src/buttons/personalities/joy-stamp.d.ts +22 -0
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +8 -7
- package/dist/_dts/theme-core/src/buttons/types.d.ts +26 -17
- package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +44 -0
- package/dist/_dts/theme-core/src/cards/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/interactive/types.d.ts +10 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +228 -198
- package/dist/_dts/theme-core/src/mock-themes/components/PaletteCard.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/components/swatch.d.ts +1 -1
- package/dist/_dts/theme-core/src/navigation/presets.d.ts +1 -1
- package/dist/_dts/theme-core/src/navigation/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/variants/index.d.ts +15 -0
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +6 -6
- package/dist/_dts/theme-core/src/palette/variants/warm-dark.d.ts +27 -0
- package/dist/_dts/theme-core/src/schema.d.ts +273 -226
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +4 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +87 -31
- package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +6 -2
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +27 -0
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +87 -31
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +30 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +32 -16
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +13 -9
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +3 -23
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +276 -4
- package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +33 -3
- package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +508 -0
- package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +30 -0
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +10 -10
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +26 -6
- package/dist/_dts/theme-core/src/site-styles/typographyPresets.d.ts +16 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
- package/dist/_dts/ui/src/async-boundary.d.ts +1 -1
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button-group.d.ts +3 -3
- package/dist/_dts/ui/src/calendar.d.ts +2 -2
- package/dist/_dts/ui/src/card.d.ts +6 -6
- package/dist/_dts/ui/src/combobox.d.ts +1 -1
- package/dist/_dts/ui/src/command-multi-select.d.ts +1 -1
- package/dist/_dts/ui/src/content-spinner.d.ts +1 -1
- package/dist/_dts/ui/src/delayed-spinner.d.ts +1 -1
- package/dist/_dts/ui/src/dev-toolbar.d.ts +1 -1
- package/dist/_dts/ui/src/dialog.d.ts +10 -10
- package/dist/_dts/ui/src/dropdown-menu.d.ts +1 -1
- package/dist/_dts/ui/src/editor-drawer.d.ts +1 -1
- package/dist/_dts/ui/src/empty-state.d.ts +1 -1
- package/dist/_dts/ui/src/filter-button-group.d.ts +1 -1
- package/dist/_dts/ui/src/fixed-bottom-surface.d.ts +1 -1
- package/dist/_dts/ui/src/form.d.ts +7 -7
- package/dist/_dts/ui/src/label.d.ts +1 -1
- package/dist/_dts/ui/src/menubar.d.ts +16 -16
- package/dist/_dts/ui/src/navigation-tabs.d.ts +2 -2
- package/dist/_dts/ui/src/number-input.d.ts +1 -1
- package/dist/_dts/ui/src/palette/ColorChooserDialog.d.ts +1 -1
- package/dist/_dts/ui/src/palette/ColorSlotButton.d.ts +1 -1
- package/dist/_dts/ui/src/palette/ColorSwatchButton.d.ts +1 -1
- package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +1 -1
- package/dist/_dts/ui/src/resizable-split-pane.d.ts +1 -1
- package/dist/_dts/ui/src/select.d.ts +10 -10
- package/dist/_dts/ui/src/separator.d.ts +1 -1
- package/dist/_dts/ui/src/sheet.d.ts +9 -9
- package/dist/_dts/ui/src/spinner.d.ts +1 -1
- package/dist/_dts/ui/src/tooltip.d.ts +4 -4
- package/dist/{chunk-MPBNEVPB.mjs → chunk-2BUMISSH.mjs} +1 -1
- package/dist/{chunk-7PCYG6YV.mjs → chunk-6FWNF3DJ.mjs} +2086 -1128
- package/dist/{chunk-BBLZSQEY.mjs → chunk-FIREV57T.mjs} +14 -9
- package/dist/{chunk-5NZGBSJF.mjs → chunk-G35HOQEN.mjs} +2608 -2397
- package/dist/{chunk-HTB4BMKD.mjs → chunk-HKB6XVIP.mjs} +321 -113
- package/dist/{chunk-GYXKAUFV.mjs → chunk-XQR6THQJ.mjs} +27831 -17740
- package/dist/cli/index.mjs +4581 -2802
- package/dist/cli/init-docs/content/workflow-custom-block.md +5 -0
- package/dist/client/{accordion-QFZMNB7O.mjs → accordion-G34C45TW.mjs} +2 -2
- package/dist/client/{bookingForm-NCIXFWIG.mjs → bookingForm-BLBVKSAQ.mjs} +12 -12
- package/dist/client/bookings.mjs +321 -60
- package/dist/client/{carousel-EO4BJMWD.mjs → carousel-7ZVTBRMD.mjs} +3 -3
- package/dist/client/{cart-FTYCLYUW.mjs → cart-Q6S6LZUO.mjs} +8 -7
- package/dist/client/{checkout-NFGLVCOX.mjs → checkout-5QJLDE4I.mjs} +8 -7
- package/dist/client/{chunk-IWFZSQNZ.mjs → chunk-5PQH4Y75.mjs} +3 -3
- package/dist/client/{chunk-Y37KDO7P.mjs → chunk-CHAB5ACD.mjs} +5 -4
- package/dist/client/{chunk-VDS5YFLX.mjs → chunk-CSZGLBYR.mjs} +1 -1
- package/dist/client/{chunk-3PEDD5KJ.mjs → chunk-DVNUDUVT.mjs} +1 -1
- package/dist/client/{chunk-6GVVWSPU.mjs → chunk-EQKYMX4N.mjs} +348 -301
- package/dist/client/{chunk-YLMKMCSJ.mjs → chunk-GFSQNTRW.mjs} +1 -3
- package/dist/client/chunk-L4J5Y62O.mjs +18 -0
- package/dist/client/{chunk-PUOELU4O.mjs → chunk-RJHTCTCZ.mjs} +550 -262
- package/dist/client/{chunk-AUJ5DBZJ.mjs → chunk-S3MKFGOG.mjs} +170 -28
- package/dist/client/{chunk-CE7IBGVW.mjs → chunk-SBBSMFFG.mjs} +1 -1
- package/dist/client/{chunk-4W66ALYT.mjs → chunk-U2EW7RSR.mjs} +1 -1
- package/dist/client/{chunk-PYRBIURC.mjs → chunk-WJFHDTYF.mjs} +17 -34
- package/dist/client/{chunk-T6UIP6UZ.mjs → chunk-ZF4XEWDM.mjs} +1 -1
- package/dist/client/client.mjs +13449 -9393
- package/dist/client/{courseRegistration-2EORROPS.mjs → courseRegistration-VUG2JJDB.mjs} +13 -12
- package/dist/client/{eventCalendar-WZI4VL6N.mjs → eventCalendar-E7D2LD4N.mjs} +14 -14
- package/dist/client/{eventCombined-QCB2TCNL.mjs → eventCombined-FUZ2Z3CS.mjs} +14 -14
- package/dist/client/{eventDetails-TFTATAPH.mjs → eventDetails-QRITJAOW.mjs} +9 -9
- package/dist/client/{eventListing-A2CQEHEQ.mjs → eventListing-INMQMJZ5.mjs} +14 -14
- package/dist/client/{eventRegistration-OELPVLUY.mjs → eventRegistration-TOOJD4WU.mjs} +17 -15
- package/dist/client/{form-NTIFD6WQ.mjs → form-BOWN7ZNQ.mjs} +3 -3
- package/dist/client/{headerSection-7TBNKCLA.mjs → headerSection-HFQNZOUU.mjs} +55 -14
- package/dist/client/hooks.mjs +26989 -25527
- package/dist/client/{locationMap-LRLB5A3H.mjs → locationMap-VUZGC7Y5.mjs} +2 -2
- package/dist/client/{newsletterForm-XI52RZSN.mjs → newsletterForm-X2XQTPCB.mjs} +3 -3
- package/dist/client/{productDetail-GSNKBFLY.mjs → productDetail-TA7D2G2B.mjs} +8 -7
- package/dist/client/{productList-BGCGT4KZ.mjs → productList-AZOLOZKM.mjs} +8 -7
- package/dist/client/rendering/client.mjs +5518 -3869
- package/dist/client/rendering/islands.mjs +32 -20
- package/dist/client/rendering.mjs +14494 -10485
- package/dist/client/{shop-RQHUCLNY.mjs → shop-ZDLO7IIG.mjs} +8 -7
- package/dist/client/spam-protection.mjs +3 -5
- package/dist/preview-next/client/runtime.css +1 -1
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/constants.mjs +0 -2
- package/dist/preview-next/index.mjs +0 -2
- package/dist/{sdk-runtime-A4LHT2RS.mjs → sdk-runtime-CTWKNBDQ.mjs} +6 -6
- package/dist/{sdk-runtime-EEMNSB7J.css → sdk-runtime-JD4A6SU6.css} +1 -1
- package/dist/server/components.mjs +10475 -7369
- package/dist/server/config-validation.mjs +26616 -25360
- package/dist/server/config.mjs +26616 -25360
- package/dist/server/data.mjs +27048 -25586
- package/dist/server/index.mjs +109 -56
- package/dist/server/next.mjs +15424 -12076
- package/dist/server/page-converter.mjs +5570 -3107
- package/dist/server/prebuild.mjs +2 -1
- package/dist/server/rendering/server.mjs +10850 -7549
- package/dist/server/rendering.mjs +10855 -7554
- package/dist/server/routing.mjs +30134 -28531
- package/dist/server/server.mjs +27369 -25856
- package/dist/server/theme-bridge.mjs +902 -167
- package/dist/server/theme.mjs +197 -133
- package/dist/styles/index.css +606 -133
- package/package.json +16 -16
- package/dist/SdkPreviewModeRuntime-XE5M4UKM.mjs +0 -8
- package/dist/_dts/editor-blocks/src/block-editor/actionControlMode.d.ts +0 -2
- package/dist/_dts/preview-next/src/client/preview/previewSurface.d.ts +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { assertNever2, useOptionalEditorUiStoreInstance, getPageDesignEditorState, PAGE_DESIGN_EDITOR_STATE_FETCH_ERROR_MESSAGE, unwrapResponse, useDebouncedLatestSave,
|
|
3
|
-
import { ApiRequestError, resolveSurfaceDocumentAttributes, SURFACE_DOCUMENT_DATA_ATTRIBUTE, SURFACE_IDS } from './chunk-
|
|
4
|
-
import { createContext, useState, useRef, useEffect, useMemo, useContext } from 'react';
|
|
2
|
+
import { assertNever2, usePreviewDesignHistoryOrder, useOptionalEditorUiStoreInstance, getPageDesignEditorState, PAGE_DESIGN_EDITOR_STATE_FETCH_ERROR_MESSAGE, unwrapResponse, useDebouncedLatestSave, AMBIENT_BACKGROUND_ROLES, applyPageDesignEditorAction, resolvePreviewSidebarTab, confirmAutosaveBatch, beginAutosaveBatch, enqueueTransaction, applyBackgroundOverrideContentPatch, systemCustomizeFacetDefinitionForBlock, systemCustomizeFacetRollbackContentPatch, systemCustomizeFacetApplyContentPatch, unsafeAsEditorBlockId, createHistoryState, rejectAutosaveBatch, redoHistory, undoHistory, pushHistoryEntry, idleEditorTransactionQueueState, canRedoHistory, deriveTransactionCapabilities, canUndoHistory, backgroundOverrideEquals, attachRenderableMediaAssetFields, planPageDesignLayoutLookCompatibility, unsafeAsEditorBlockValues } from './chunk-XQR6THQJ.mjs';
|
|
3
|
+
import { ApiRequestError, resolveSurfaceDocumentAttributes, SURFACE_DOCUMENT_DATA_ATTRIBUTE, SURFACE_IDS } from './chunk-FIREV57T.mjs';
|
|
4
|
+
import { createContext, useState, useRef, useEffect, useMemo, useLayoutEffect, useContext } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
// ../preview-next/src/client/preview/previewCustomizeHistory.ts
|
|
@@ -23,6 +23,16 @@ function pushPreviewCustomizeHistoryEntry(state, entry, editorModel) {
|
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
}
|
|
26
|
+
function previewCustomizeBatchHistoryEntry(entries) {
|
|
27
|
+
const atomicEntries = entries.flatMap((entry) => {
|
|
28
|
+
if (!entry) return [];
|
|
29
|
+
return entry.kind === "batch" ? entry.entries : [entry];
|
|
30
|
+
});
|
|
31
|
+
if (atomicEntries.length === 0) return null;
|
|
32
|
+
const firstEntry = atomicEntries[0];
|
|
33
|
+
if (atomicEntries.length === 1 && firstEntry) return firstEntry;
|
|
34
|
+
return { kind: "batch", entries: atomicEntries };
|
|
35
|
+
}
|
|
26
36
|
function replacePreviewCustomizeHistoryModel(state, editorModel) {
|
|
27
37
|
return {
|
|
28
38
|
past: pruneHistoryPresents(state.past, editorModel),
|
|
@@ -125,11 +135,11 @@ function previewCustomizeHistoryEntryFromAction(editorModel, action) {
|
|
|
125
135
|
return assertNever2(action, "Unhandled preview customize action");
|
|
126
136
|
}
|
|
127
137
|
}
|
|
128
|
-
function
|
|
129
|
-
return
|
|
138
|
+
function previewCustomizeUndoActionsForEntry(entry, editorModel) {
|
|
139
|
+
return previewCustomizeActionsForEntryValue(entry, "from", editorModel);
|
|
130
140
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
141
|
+
function previewCustomizeRedoActionsForEntry(entry, editorModel) {
|
|
142
|
+
return previewCustomizeActionsForEntryValue(entry, "to", editorModel);
|
|
133
143
|
}
|
|
134
144
|
function previewCustomizeHistoryPresentEquals(left, right) {
|
|
135
145
|
return left.editorModel === right.editorModel && previewCustomizeHistoryEntryEquals(left.entry, right.entry);
|
|
@@ -189,6 +199,15 @@ function previewCustomizeActionForEntryValue(entry, valueKey, editorModel) {
|
|
|
189
199
|
return assertNever2(entry, "Unhandled preview customize history entry");
|
|
190
200
|
}
|
|
191
201
|
}
|
|
202
|
+
function previewCustomizeActionsForEntryValue(entry, valueKey, editorModel) {
|
|
203
|
+
if (entry.kind === "batch") {
|
|
204
|
+
const entries = valueKey === "from" ? [...entry.entries].reverse() : entry.entries;
|
|
205
|
+
return entries.map(
|
|
206
|
+
(batchEntry) => previewCustomizeActionForEntryValue(batchEntry, valueKey, editorModel)
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
return [previewCustomizeActionForEntryValue(entry, valueKey, editorModel)];
|
|
210
|
+
}
|
|
192
211
|
function contentRevisionIdForBlock(editorModel, blockId) {
|
|
193
212
|
return editorModel.blocks.find((block) => block.blockId === blockId)?.contentRevision?.contentId ?? null;
|
|
194
213
|
}
|
|
@@ -214,6 +233,10 @@ function previewCustomizeHistoryEntryStillApplies(entry, editorModel) {
|
|
|
214
233
|
return editorModel.boundaries.some(
|
|
215
234
|
(boundary) => boundary.boundaryId === entry.boundaryId && boundary.previousBlockId === entry.previousBlockId && boundary.nextBlockId === entry.nextBlockId
|
|
216
235
|
);
|
|
236
|
+
case "batch":
|
|
237
|
+
return entry.entries.every(
|
|
238
|
+
(batchEntry) => previewCustomizeHistoryEntryStillApplies(batchEntry, editorModel)
|
|
239
|
+
);
|
|
217
240
|
default:
|
|
218
241
|
return assertNever2(entry, "Unhandled preview customize history entry");
|
|
219
242
|
}
|
|
@@ -232,6 +255,13 @@ function previewCustomizeHistoryEntryEquals(left, right) {
|
|
|
232
255
|
return right.kind === "background" && left.blockId === right.blockId && backgroundOverrideEquals(left.fromOverride, right.fromOverride) && backgroundOverrideEquals(left.toOverride, right.toOverride);
|
|
233
256
|
case "boundary":
|
|
234
257
|
return right.kind === "boundary" && left.boundaryId === right.boundaryId && left.previousBlockId === right.previousBlockId && left.nextBlockId === right.nextBlockId && left.fromBoundaryOptionId === right.fromBoundaryOptionId && left.toBoundaryOptionId === right.toBoundaryOptionId;
|
|
258
|
+
case "batch":
|
|
259
|
+
return right.kind === "batch" && left.entries.length === right.entries.length && left.entries.every(
|
|
260
|
+
(entry, index) => previewCustomizeHistoryEntryEquals(
|
|
261
|
+
entry,
|
|
262
|
+
right.entries[index] ?? null
|
|
263
|
+
)
|
|
264
|
+
);
|
|
235
265
|
default:
|
|
236
266
|
return assertNever2(left, "Unhandled preview customize history entry");
|
|
237
267
|
}
|
|
@@ -286,23 +316,21 @@ function beginPreviewCustomizeApply(workflow, action) {
|
|
|
286
316
|
workflow.pageState.editorModel,
|
|
287
317
|
action
|
|
288
318
|
);
|
|
289
|
-
const nextIntent = {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
kind: "dirty",
|
|
298
|
-
actions: coalescePreviewCustomizeActions(
|
|
299
|
-
pendingCustomizeIntents(workflow.mutation),
|
|
319
|
+
const nextIntent = {
|
|
320
|
+
targetKey: previewCustomizeTargetKey(action),
|
|
321
|
+
action,
|
|
322
|
+
historyEntry
|
|
323
|
+
};
|
|
324
|
+
const nextMutation = previewCustomizeMutationFromQueueState(
|
|
325
|
+
enqueueTransaction(
|
|
326
|
+
previewCustomizeQueueStateFromMutation(workflow.mutation),
|
|
300
327
|
nextIntent
|
|
301
328
|
)
|
|
302
|
-
|
|
329
|
+
);
|
|
303
330
|
return {
|
|
304
331
|
kind: "started",
|
|
305
|
-
action,
|
|
332
|
+
actions: [action],
|
|
333
|
+
recordsHistoryEntry: Boolean(historyEntry),
|
|
306
334
|
state: {
|
|
307
335
|
...workflow,
|
|
308
336
|
pageState: applyPreviewCustomizeActionToLoadedState(
|
|
@@ -316,21 +344,27 @@ function beginPreviewCustomizeApply(workflow, action) {
|
|
|
316
344
|
function beginPreviewCustomizeAutosave(workflow) {
|
|
317
345
|
if (workflow.kind !== "loaded")
|
|
318
346
|
return skippedPreviewCustomizeBeginResult("not-loaded");
|
|
319
|
-
if (workflow.mutation.kind !== "dirty")
|
|
347
|
+
if (workflow.mutation.kind !== "dirty" && workflow.mutation.kind !== "failed")
|
|
348
|
+
return skippedPreviewCustomizeBeginResult("no-history-entry");
|
|
349
|
+
const nextMutation = previewCustomizeMutationFromQueueState(
|
|
350
|
+
beginAutosaveBatch(
|
|
351
|
+
previewCustomizeQueueStateFromMutation(workflow.mutation)
|
|
352
|
+
)
|
|
353
|
+
);
|
|
354
|
+
if (nextMutation.kind !== "applying")
|
|
355
|
+
return skippedPreviewCustomizeBeginResult("no-history-entry");
|
|
356
|
+
const actions = nextMutation.batch.transactions.map((intent) => intent.action);
|
|
357
|
+
if (actions.length === 0)
|
|
320
358
|
return skippedPreviewCustomizeBeginResult("no-history-entry");
|
|
321
|
-
const intent = workflow.mutation.actions[0] ?? null;
|
|
322
|
-
if (!intent) return skippedPreviewCustomizeBeginResult("no-history-entry");
|
|
323
359
|
return {
|
|
324
360
|
kind: "started",
|
|
325
|
-
|
|
361
|
+
actions,
|
|
362
|
+
recordsHistoryEntry: nextMutation.batch.transactions.some(
|
|
363
|
+
(intent) => Boolean(intent.historyEntry)
|
|
364
|
+
),
|
|
326
365
|
state: {
|
|
327
366
|
...workflow,
|
|
328
|
-
mutation:
|
|
329
|
-
kind: "applying",
|
|
330
|
-
action: intent.action,
|
|
331
|
-
historyEntry: intent.historyEntry,
|
|
332
|
-
queuedActions: []
|
|
333
|
-
}
|
|
367
|
+
mutation: nextMutation
|
|
334
368
|
}
|
|
335
369
|
};
|
|
336
370
|
}
|
|
@@ -343,22 +377,24 @@ function beginPreviewCustomizeUndo(workflow) {
|
|
|
343
377
|
return skippedPreviewCustomizeBeginResult("cannot-undo");
|
|
344
378
|
const entry = workflow.history.present.entry;
|
|
345
379
|
if (!entry) return skippedPreviewCustomizeBeginResult("no-history-entry");
|
|
346
|
-
const
|
|
380
|
+
const actions = previewCustomizeUndoActionsForEntry(
|
|
347
381
|
entry,
|
|
348
382
|
workflow.pageState.editorModel
|
|
349
383
|
);
|
|
384
|
+
assertPreviewCustomizeActions(actions);
|
|
350
385
|
return {
|
|
351
386
|
kind: "started",
|
|
352
|
-
|
|
387
|
+
actions,
|
|
388
|
+
recordsHistoryEntry: true,
|
|
353
389
|
state: {
|
|
354
390
|
...workflow,
|
|
355
|
-
pageState:
|
|
391
|
+
pageState: applyPreviewCustomizeActionsToLoadedState(
|
|
356
392
|
workflow.pageState,
|
|
357
|
-
|
|
393
|
+
actions
|
|
358
394
|
),
|
|
359
395
|
mutation: {
|
|
360
396
|
kind: "undoing",
|
|
361
|
-
|
|
397
|
+
actions,
|
|
362
398
|
entry
|
|
363
399
|
}
|
|
364
400
|
}
|
|
@@ -373,22 +409,24 @@ function beginPreviewCustomizeRedo(workflow) {
|
|
|
373
409
|
return skippedPreviewCustomizeBeginResult("cannot-redo");
|
|
374
410
|
const entry = workflow.history.future[0]?.entry ?? null;
|
|
375
411
|
if (!entry) return skippedPreviewCustomizeBeginResult("no-history-entry");
|
|
376
|
-
const
|
|
412
|
+
const actions = previewCustomizeRedoActionsForEntry(
|
|
377
413
|
entry,
|
|
378
414
|
workflow.pageState.editorModel
|
|
379
415
|
);
|
|
416
|
+
assertPreviewCustomizeActions(actions);
|
|
380
417
|
return {
|
|
381
418
|
kind: "started",
|
|
382
|
-
|
|
419
|
+
actions,
|
|
420
|
+
recordsHistoryEntry: true,
|
|
383
421
|
state: {
|
|
384
422
|
...workflow,
|
|
385
|
-
pageState:
|
|
423
|
+
pageState: applyPreviewCustomizeActionsToLoadedState(
|
|
386
424
|
workflow.pageState,
|
|
387
|
-
|
|
425
|
+
actions
|
|
388
426
|
),
|
|
389
427
|
mutation: {
|
|
390
428
|
kind: "redoing",
|
|
391
|
-
|
|
429
|
+
actions,
|
|
392
430
|
entry
|
|
393
431
|
}
|
|
394
432
|
}
|
|
@@ -402,6 +440,11 @@ function confirmPreviewCustomizeMutation(workflow, response) {
|
|
|
402
440
|
workflow.pageState,
|
|
403
441
|
response
|
|
404
442
|
);
|
|
443
|
+
const historyEntry = previewCustomizeBatchHistoryEntry(
|
|
444
|
+
workflow.mutation.batch.transactions.map(
|
|
445
|
+
(intent) => intent.historyEntry
|
|
446
|
+
)
|
|
447
|
+
);
|
|
405
448
|
const pageStateWithQueuedActions = workflow.mutation.queuedActions.reduce(
|
|
406
449
|
(pageState, intent) => applyPreviewCustomizeActionToLoadedState(pageState, intent.action),
|
|
407
450
|
confirmedPageState
|
|
@@ -409,15 +452,19 @@ function confirmPreviewCustomizeMutation(workflow, response) {
|
|
|
409
452
|
return {
|
|
410
453
|
...workflow,
|
|
411
454
|
pageState: pageStateWithQueuedActions,
|
|
412
|
-
history:
|
|
455
|
+
history: historyEntry ? pushPreviewCustomizeHistoryEntry(
|
|
413
456
|
workflow.history,
|
|
414
|
-
|
|
457
|
+
historyEntry,
|
|
415
458
|
response.editorModel
|
|
416
459
|
) : replacePreviewCustomizeHistoryModel(
|
|
417
460
|
workflow.history,
|
|
418
461
|
response.editorModel
|
|
419
462
|
),
|
|
420
|
-
mutation:
|
|
463
|
+
mutation: previewCustomizeMutationFromQueueState(
|
|
464
|
+
confirmAutosaveBatch(
|
|
465
|
+
previewCustomizeQueueStateFromMutation(workflow.mutation)
|
|
466
|
+
)
|
|
467
|
+
)
|
|
421
468
|
};
|
|
422
469
|
}
|
|
423
470
|
case "undoing":
|
|
@@ -456,7 +503,10 @@ function rejectPreviewCustomizeMutation(previousWorkflow, outcome) {
|
|
|
456
503
|
if (previousWorkflow.kind !== "loaded") return previousWorkflow;
|
|
457
504
|
return {
|
|
458
505
|
...previousWorkflow,
|
|
459
|
-
mutation:
|
|
506
|
+
mutation: rejectedPreviewCustomizeMutation(
|
|
507
|
+
previousWorkflow.mutation,
|
|
508
|
+
outcome
|
|
509
|
+
)
|
|
460
510
|
};
|
|
461
511
|
}
|
|
462
512
|
function previewCustomizeCanUndo(workflow) {
|
|
@@ -525,6 +575,8 @@ function skippedPreviewCustomizeMessage(reason) {
|
|
|
525
575
|
function skipReasonForCustomizeApply(workflow) {
|
|
526
576
|
if (workflow.kind !== "loaded") return "not-loaded";
|
|
527
577
|
if (workflow.mutation.kind === "stale") return "stale";
|
|
578
|
+
if (workflow.mutation.kind === "undoing" || workflow.mutation.kind === "redoing")
|
|
579
|
+
return "mutation-pending";
|
|
528
580
|
return null;
|
|
529
581
|
}
|
|
530
582
|
function skipReasonForHistoryMutation(workflow) {
|
|
@@ -535,7 +587,11 @@ function skipReasonForHistoryMutation(workflow) {
|
|
|
535
587
|
return null;
|
|
536
588
|
}
|
|
537
589
|
function previewCustomizeCanStartHistoryMutation(workflow) {
|
|
538
|
-
|
|
590
|
+
if (workflow.mutation.kind === "undoing" || workflow.mutation.kind === "redoing")
|
|
591
|
+
return false;
|
|
592
|
+
return deriveTransactionCapabilities(
|
|
593
|
+
previewCustomizeQueueStateFromMutation(workflow.mutation)
|
|
594
|
+
).canUseHistory;
|
|
539
595
|
}
|
|
540
596
|
function isPendingMutation(mutation) {
|
|
541
597
|
switch (mutation.kind) {
|
|
@@ -558,10 +614,11 @@ function pendingCustomizeIntents(mutation) {
|
|
|
558
614
|
return mutation.actions;
|
|
559
615
|
case "applying":
|
|
560
616
|
return mutation.queuedActions;
|
|
617
|
+
case "failed":
|
|
618
|
+
return mutation.actions;
|
|
561
619
|
case "idle":
|
|
562
620
|
case "undoing":
|
|
563
621
|
case "redoing":
|
|
564
|
-
case "failed":
|
|
565
622
|
case "stale":
|
|
566
623
|
return [];
|
|
567
624
|
default:
|
|
@@ -571,31 +628,93 @@ function pendingCustomizeIntents(mutation) {
|
|
|
571
628
|
function previewCustomizePendingActions(workflow) {
|
|
572
629
|
return workflow.kind === "loaded" ? pendingCustomizeIntents(workflow.mutation).map((intent) => intent.action) : [];
|
|
573
630
|
}
|
|
574
|
-
function
|
|
575
|
-
|
|
576
|
-
...actions.filter(
|
|
577
|
-
(action) => !sameCustomizeTarget(action.action, nextAction.action)
|
|
578
|
-
),
|
|
579
|
-
nextAction
|
|
580
|
-
];
|
|
581
|
-
}
|
|
582
|
-
function sameCustomizeTarget(left, right) {
|
|
583
|
-
switch (left.kind) {
|
|
631
|
+
function previewCustomizeTargetKey(action) {
|
|
632
|
+
switch (action.kind) {
|
|
584
633
|
case "set-layout":
|
|
585
|
-
return
|
|
634
|
+
return `block:${action.blockId}:layout`;
|
|
586
635
|
case "set-look":
|
|
587
|
-
return
|
|
636
|
+
return `block:${action.blockId}:look`;
|
|
588
637
|
case "set-block-facet":
|
|
589
|
-
return
|
|
638
|
+
return `block:${action.blockId}:facet:${action.facetId}`;
|
|
590
639
|
case "set-background":
|
|
591
|
-
return
|
|
640
|
+
return `block:${action.blockId}:background`;
|
|
592
641
|
case "set-boundary":
|
|
593
642
|
case "reset-boundary":
|
|
594
|
-
return
|
|
643
|
+
return `boundary:${action.previousBlockId}:${action.nextBlockId}`;
|
|
595
644
|
default:
|
|
596
|
-
return assertNever2(
|
|
645
|
+
return assertNever2(action, "Unhandled preview customize action");
|
|
597
646
|
}
|
|
598
647
|
}
|
|
648
|
+
function previewCustomizeQueueStateFromMutation(mutation) {
|
|
649
|
+
switch (mutation.kind) {
|
|
650
|
+
case "idle":
|
|
651
|
+
return idleEditorTransactionQueueState();
|
|
652
|
+
case "dirty":
|
|
653
|
+
return { kind: "dirty", transactions: mutation.actions };
|
|
654
|
+
case "applying":
|
|
655
|
+
return {
|
|
656
|
+
kind: "saving",
|
|
657
|
+
batch: mutation.batch,
|
|
658
|
+
followUpTransactions: mutation.queuedActions
|
|
659
|
+
};
|
|
660
|
+
case "failed":
|
|
661
|
+
return {
|
|
662
|
+
kind: "failed",
|
|
663
|
+
message: mutation.message,
|
|
664
|
+
transactions: mutation.actions
|
|
665
|
+
};
|
|
666
|
+
case "stale":
|
|
667
|
+
return {
|
|
668
|
+
kind: "stale",
|
|
669
|
+
message: mutation.message,
|
|
670
|
+
transactions: mutation.actions
|
|
671
|
+
};
|
|
672
|
+
case "undoing":
|
|
673
|
+
case "redoing":
|
|
674
|
+
return idleEditorTransactionQueueState();
|
|
675
|
+
default:
|
|
676
|
+
return assertNever2(mutation, "Unhandled preview customize mutation");
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
function previewCustomizeMutationFromQueueState(state) {
|
|
680
|
+
switch (state.kind) {
|
|
681
|
+
case "idle":
|
|
682
|
+
return { kind: "idle" };
|
|
683
|
+
case "dirty":
|
|
684
|
+
return { kind: "dirty", actions: state.transactions };
|
|
685
|
+
case "saving":
|
|
686
|
+
return {
|
|
687
|
+
kind: "applying",
|
|
688
|
+
batch: state.batch,
|
|
689
|
+
queuedActions: state.followUpTransactions
|
|
690
|
+
};
|
|
691
|
+
case "failed":
|
|
692
|
+
return {
|
|
693
|
+
kind: "failed",
|
|
694
|
+
message: state.message,
|
|
695
|
+
actions: state.transactions
|
|
696
|
+
};
|
|
697
|
+
case "stale":
|
|
698
|
+
return {
|
|
699
|
+
kind: "stale",
|
|
700
|
+
message: state.message,
|
|
701
|
+
actions: state.transactions
|
|
702
|
+
};
|
|
703
|
+
default:
|
|
704
|
+
return assertNever2(state, "Unhandled editor transaction queue state");
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
function rejectedPreviewCustomizeMutation(mutation, outcome) {
|
|
708
|
+
if (mutation.kind === "applying") {
|
|
709
|
+
return previewCustomizeMutationFromQueueState(
|
|
710
|
+
rejectAutosaveBatch(previewCustomizeQueueStateFromMutation(mutation), {
|
|
711
|
+
kind: outcome.kind === "stale" ? "stale" : "retryable",
|
|
712
|
+
message: outcome.message
|
|
713
|
+
})
|
|
714
|
+
);
|
|
715
|
+
}
|
|
716
|
+
return outcome.kind === "stale" ? { kind: "stale", message: outcome.message, actions: [] } : { kind: "failed", message: outcome.message, actions: [] };
|
|
717
|
+
}
|
|
599
718
|
function confirmedLoadedState(current, response) {
|
|
600
719
|
return {
|
|
601
720
|
...current,
|
|
@@ -673,6 +792,15 @@ function applyPreviewCustomizeActionToLoadedState(state, action) {
|
|
|
673
792
|
return assertNever2(action, "Unhandled preview customize action");
|
|
674
793
|
}
|
|
675
794
|
}
|
|
795
|
+
function applyPreviewCustomizeActionsToLoadedState(state, actions) {
|
|
796
|
+
return actions.reduce(applyPreviewCustomizeActionToLoadedState, state);
|
|
797
|
+
}
|
|
798
|
+
function assertPreviewCustomizeActions(actions) {
|
|
799
|
+
const action = actions[0] ?? null;
|
|
800
|
+
if (!action) {
|
|
801
|
+
throw new Error("Expected preview customize history to produce an action");
|
|
802
|
+
}
|
|
803
|
+
}
|
|
676
804
|
function optimisticLayoutLookState(block, layoutVariantKey) {
|
|
677
805
|
const plan = planPageDesignLayoutLookCompatibility(block, layoutVariantKey);
|
|
678
806
|
switch (plan.kind) {
|
|
@@ -785,9 +913,12 @@ function derivePreviewCustomizeRuntimePatch(input) {
|
|
|
785
913
|
blockId: action.blockId,
|
|
786
914
|
ownedRuntimeFieldPaths: ["_sectionStyles.background"],
|
|
787
915
|
previousContent,
|
|
788
|
-
nextContent:
|
|
789
|
-
|
|
790
|
-
|
|
916
|
+
nextContent: withRuntimeBackgroundImageAsset(
|
|
917
|
+
applyBackgroundOverrideContentPatch(
|
|
918
|
+
previousContent,
|
|
919
|
+
action.override
|
|
920
|
+
),
|
|
921
|
+
action.imageAsset
|
|
791
922
|
),
|
|
792
923
|
rollback: (currentContent) => contentWithPreviousBackground(currentContent, previousContent)
|
|
793
924
|
};
|
|
@@ -832,6 +963,27 @@ function contentWithPreviousBackground(currentContent, previousContent) {
|
|
|
832
963
|
delete nextContent._sectionStyles;
|
|
833
964
|
return nextContent;
|
|
834
965
|
}
|
|
966
|
+
function withRuntimeBackgroundImageAsset(content, imageAsset) {
|
|
967
|
+
if (!imageAsset) return content;
|
|
968
|
+
const sectionStyles = isRecord(content._sectionStyles) ? content._sectionStyles : null;
|
|
969
|
+
const background = isRecord(sectionStyles?.background) ? sectionStyles.background : null;
|
|
970
|
+
const image = isRecord(background?.image) ? background.image : null;
|
|
971
|
+
if (!sectionStyles || !background || !image || background.type !== "image") {
|
|
972
|
+
return content;
|
|
973
|
+
}
|
|
974
|
+
return {
|
|
975
|
+
...content,
|
|
976
|
+
_sectionStyles: {
|
|
977
|
+
...sectionStyles,
|
|
978
|
+
background: {
|
|
979
|
+
...background,
|
|
980
|
+
image: {
|
|
981
|
+
...attachRenderableMediaAssetFields(image, imageAsset)
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
};
|
|
986
|
+
}
|
|
835
987
|
function isRecord(value) {
|
|
836
988
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
837
989
|
}
|
|
@@ -943,8 +1095,12 @@ function PreviewPageDesignEditorStateProvider({
|
|
|
943
1095
|
unsupportedPreviewCustomizeWorkflowState
|
|
944
1096
|
);
|
|
945
1097
|
const [backgroundImagePool, setBackgroundImagePool] = useState([]);
|
|
946
|
-
const [backgroundImagePoolStatus, setBackgroundImagePoolStatus] = useState(
|
|
1098
|
+
const [backgroundImagePoolStatus, setBackgroundImagePoolStatus] = useState(
|
|
1099
|
+
"idle"
|
|
1100
|
+
);
|
|
947
1101
|
const workflowStateRef = useRef(workflowState);
|
|
1102
|
+
const pendingDesignHistoryOrderRecordRef = useRef(false);
|
|
1103
|
+
const previewDesignHistoryOrder = usePreviewDesignHistoryOrder();
|
|
948
1104
|
const backgroundImagePoolRequestRef = useRef(null);
|
|
949
1105
|
const uiStore = useOptionalEditorUiStoreInstance();
|
|
950
1106
|
useEffect(() => {
|
|
@@ -1000,7 +1156,10 @@ function PreviewPageDesignEditorStateProvider({
|
|
|
1000
1156
|
options: { cache: "no-store" }
|
|
1001
1157
|
}).then((response) => {
|
|
1002
1158
|
const result = unwrapResponse(response);
|
|
1003
|
-
const nextPool = result.items.
|
|
1159
|
+
const nextPool = result.items.flatMap((asset) => {
|
|
1160
|
+
const item = backgroundImagePoolItemForAsset(asset);
|
|
1161
|
+
return item ? [item] : [];
|
|
1162
|
+
});
|
|
1004
1163
|
setBackgroundImagePool(nextPool);
|
|
1005
1164
|
setBackgroundImagePoolStatus("loaded");
|
|
1006
1165
|
return nextPool;
|
|
@@ -1035,31 +1194,23 @@ function PreviewPageDesignEditorStateProvider({
|
|
|
1035
1194
|
delay: autosaveDelayMs,
|
|
1036
1195
|
save: async (actions) => {
|
|
1037
1196
|
if (!pageId) return null;
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
action: pageDesignEditorActionForPersistence(
|
|
1049
|
-
actionWithCurrentBaseContentId(
|
|
1050
|
-
action,
|
|
1051
|
-
lastResponse?.editorModel ?? currentEditorModel
|
|
1052
|
-
)
|
|
1053
|
-
)
|
|
1054
|
-
}
|
|
1055
|
-
});
|
|
1056
|
-
}
|
|
1057
|
-
return lastResponse;
|
|
1197
|
+
const currentPageState = previewCustomizeWorkflowPageState(
|
|
1198
|
+
workflowStateRef.current
|
|
1199
|
+
);
|
|
1200
|
+
return persistPageDesignEditorActions({
|
|
1201
|
+
apiClient,
|
|
1202
|
+
siteId,
|
|
1203
|
+
pageId,
|
|
1204
|
+
actions,
|
|
1205
|
+
editorModel: currentPageState.kind === "loaded" ? currentPageState.editorModel : null
|
|
1206
|
+
});
|
|
1058
1207
|
},
|
|
1059
1208
|
onSaving: () => {
|
|
1060
1209
|
setWorkflowState((current) => {
|
|
1061
1210
|
const begin = beginPreviewCustomizeAutosave(current);
|
|
1062
|
-
|
|
1211
|
+
if (begin.kind !== "started") return current;
|
|
1212
|
+
pendingDesignHistoryOrderRecordRef.current = begin.recordsHistoryEntry;
|
|
1213
|
+
return begin.state;
|
|
1063
1214
|
});
|
|
1064
1215
|
},
|
|
1065
1216
|
onSaved: (response) => {
|
|
@@ -1067,15 +1218,27 @@ function PreviewPageDesignEditorStateProvider({
|
|
|
1067
1218
|
setWorkflowState(
|
|
1068
1219
|
(current) => confirmPreviewCustomizeMutation(current, response)
|
|
1069
1220
|
);
|
|
1221
|
+
if (pendingDesignHistoryOrderRecordRef.current) {
|
|
1222
|
+
pendingDesignHistoryOrderRecordRef.current = false;
|
|
1223
|
+
previewDesignHistoryOrder.record("theme-customize");
|
|
1224
|
+
}
|
|
1070
1225
|
},
|
|
1071
1226
|
onFailed: (error) => {
|
|
1227
|
+
pendingDesignHistoryOrderRecordRef.current = false;
|
|
1072
1228
|
const outcome = classifyApplyActionError(error);
|
|
1073
1229
|
setWorkflowState(
|
|
1074
1230
|
(current) => rejectPreviewCustomizeMutation(current, outcome)
|
|
1075
1231
|
);
|
|
1076
|
-
|
|
1232
|
+
if (outcome.kind === "stale") {
|
|
1233
|
+
setReloadKey((current) => current + 1);
|
|
1234
|
+
}
|
|
1077
1235
|
}
|
|
1078
1236
|
});
|
|
1237
|
+
useLayoutEffect(() => {
|
|
1238
|
+
return () => {
|
|
1239
|
+
autosave.flush();
|
|
1240
|
+
};
|
|
1241
|
+
}, [autosave]);
|
|
1079
1242
|
const value = useMemo(
|
|
1080
1243
|
() => ({
|
|
1081
1244
|
state: previewCustomizeWorkflowPageState(workflowState),
|
|
@@ -1109,20 +1272,24 @@ function PreviewPageDesignEditorStateProvider({
|
|
|
1109
1272
|
const begin = beginPreviewCustomizeUndo(previousWorkflow);
|
|
1110
1273
|
if (begin.kind === "skipped") return begin;
|
|
1111
1274
|
const previousPageState = previewCustomizeWorkflowPageState(previousWorkflow);
|
|
1112
|
-
const
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1275
|
+
const runtimePatches = previousPageState.kind === "loaded" && uiStore ? begin.actions.map(
|
|
1276
|
+
(action) => applyLocalRuntimePatch(
|
|
1277
|
+
uiStore,
|
|
1278
|
+
action,
|
|
1279
|
+
previousPageState.editorModel
|
|
1280
|
+
)
|
|
1281
|
+
) : [];
|
|
1117
1282
|
setWorkflowState(begin.state);
|
|
1118
1283
|
try {
|
|
1119
|
-
const response = await
|
|
1284
|
+
const response = await persistPageDesignEditorActions({
|
|
1285
|
+
apiClient,
|
|
1120
1286
|
siteId,
|
|
1121
1287
|
pageId,
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
}
|
|
1288
|
+
actions: begin.actions,
|
|
1289
|
+
editorModel: previousPageState.kind === "loaded" ? previousPageState.editorModel : null
|
|
1125
1290
|
});
|
|
1291
|
+
if (!response)
|
|
1292
|
+
return skippedPreviewCustomizeOutcome("no-history-entry");
|
|
1126
1293
|
setWorkflowState(
|
|
1127
1294
|
(current) => confirmPreviewCustomizeMutation(current, response)
|
|
1128
1295
|
);
|
|
@@ -1133,7 +1300,7 @@ function PreviewPageDesignEditorStateProvider({
|
|
|
1133
1300
|
rejectPreviewCustomizeMutation(previousWorkflow, outcome)
|
|
1134
1301
|
);
|
|
1135
1302
|
if (uiStore) {
|
|
1136
|
-
|
|
1303
|
+
rollbackLocalRuntimePatches(uiStore, runtimePatches);
|
|
1137
1304
|
}
|
|
1138
1305
|
return outcome;
|
|
1139
1306
|
}
|
|
@@ -1145,20 +1312,24 @@ function PreviewPageDesignEditorStateProvider({
|
|
|
1145
1312
|
const begin = beginPreviewCustomizeRedo(previousWorkflow);
|
|
1146
1313
|
if (begin.kind === "skipped") return begin;
|
|
1147
1314
|
const previousPageState = previewCustomizeWorkflowPageState(previousWorkflow);
|
|
1148
|
-
const
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1315
|
+
const runtimePatches = previousPageState.kind === "loaded" && uiStore ? begin.actions.map(
|
|
1316
|
+
(action) => applyLocalRuntimePatch(
|
|
1317
|
+
uiStore,
|
|
1318
|
+
action,
|
|
1319
|
+
previousPageState.editorModel
|
|
1320
|
+
)
|
|
1321
|
+
) : [];
|
|
1153
1322
|
setWorkflowState(begin.state);
|
|
1154
1323
|
try {
|
|
1155
|
-
const response = await
|
|
1324
|
+
const response = await persistPageDesignEditorActions({
|
|
1325
|
+
apiClient,
|
|
1156
1326
|
siteId,
|
|
1157
1327
|
pageId,
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
}
|
|
1328
|
+
actions: begin.actions,
|
|
1329
|
+
editorModel: previousPageState.kind === "loaded" ? previousPageState.editorModel : null
|
|
1161
1330
|
});
|
|
1331
|
+
if (!response)
|
|
1332
|
+
return skippedPreviewCustomizeOutcome("no-history-entry");
|
|
1162
1333
|
setWorkflowState(
|
|
1163
1334
|
(current) => confirmPreviewCustomizeMutation(current, response)
|
|
1164
1335
|
);
|
|
@@ -1169,7 +1340,7 @@ function PreviewPageDesignEditorStateProvider({
|
|
|
1169
1340
|
rejectPreviewCustomizeMutation(previousWorkflow, outcome)
|
|
1170
1341
|
);
|
|
1171
1342
|
if (uiStore) {
|
|
1172
|
-
|
|
1343
|
+
rollbackLocalRuntimePatches(uiStore, runtimePatches);
|
|
1173
1344
|
}
|
|
1174
1345
|
return outcome;
|
|
1175
1346
|
}
|
|
@@ -1197,10 +1368,20 @@ function PreviewPageDesignEditorStateProvider({
|
|
|
1197
1368
|
}
|
|
1198
1369
|
function backgroundImagePoolItemForAsset(asset) {
|
|
1199
1370
|
const backgroundUse = backgroundUseForAsset(asset.fileUses ?? []);
|
|
1371
|
+
if (backgroundUse === null) return null;
|
|
1200
1372
|
return {
|
|
1201
1373
|
mediaId: asset.id,
|
|
1202
|
-
source: backgroundUse ===
|
|
1374
|
+
source: backgroundUse === "selected-background" ? "previous-background" : "generated-ambient",
|
|
1203
1375
|
label: asset.title || asset.filename,
|
|
1376
|
+
mediaAsset: {
|
|
1377
|
+
id: asset.id,
|
|
1378
|
+
identifier: asset.identifier ?? null,
|
|
1379
|
+
storageBucket: asset.storageBucket,
|
|
1380
|
+
storagePath: asset.storagePath,
|
|
1381
|
+
width: asset.width ?? null,
|
|
1382
|
+
height: asset.height ?? null,
|
|
1383
|
+
mimeType: asset.mimeType
|
|
1384
|
+
},
|
|
1204
1385
|
...isAmbientBackgroundRole(backgroundUse) ? { rank: AMBIENT_BACKGROUND_ROLES.indexOf(backgroundUse) } : {}
|
|
1205
1386
|
};
|
|
1206
1387
|
}
|
|
@@ -1255,6 +1436,30 @@ function pageDesignEditorActionForPersistence(action) {
|
|
|
1255
1436
|
return assertNever2(action, "Unhandled page design editor action");
|
|
1256
1437
|
}
|
|
1257
1438
|
}
|
|
1439
|
+
async function persistPageDesignEditorActions({
|
|
1440
|
+
apiClient,
|
|
1441
|
+
siteId,
|
|
1442
|
+
pageId,
|
|
1443
|
+
actions,
|
|
1444
|
+
editorModel
|
|
1445
|
+
}) {
|
|
1446
|
+
let lastResponse = null;
|
|
1447
|
+
for (const action of actions) {
|
|
1448
|
+
lastResponse = await applyPageDesignEditorAction(apiClient, {
|
|
1449
|
+
siteId,
|
|
1450
|
+
pageId,
|
|
1451
|
+
body: {
|
|
1452
|
+
action: pageDesignEditorActionForPersistence(
|
|
1453
|
+
actionWithCurrentBaseContentId(
|
|
1454
|
+
action,
|
|
1455
|
+
lastResponse?.editorModel ?? editorModel
|
|
1456
|
+
)
|
|
1457
|
+
)
|
|
1458
|
+
}
|
|
1459
|
+
});
|
|
1460
|
+
}
|
|
1461
|
+
return lastResponse;
|
|
1462
|
+
}
|
|
1258
1463
|
function actionWithCurrentBaseContentId(action, editorModel) {
|
|
1259
1464
|
switch (action.kind) {
|
|
1260
1465
|
case "set-layout":
|
|
@@ -1307,6 +1512,11 @@ function applyLocalRuntimePatch(uiStore, action, editorModel, fallbackContent =
|
|
|
1307
1512
|
function rollbackLocalRuntimePatch(uiStore, patch) {
|
|
1308
1513
|
rollbackPreviewCustomizeDraftPatch(uiStore, patch);
|
|
1309
1514
|
}
|
|
1515
|
+
function rollbackLocalRuntimePatches(uiStore, patches) {
|
|
1516
|
+
for (const patch of [...patches].reverse()) {
|
|
1517
|
+
rollbackLocalRuntimePatch(uiStore, patch);
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1310
1520
|
function blockIdForRuntimePatch(action) {
|
|
1311
1521
|
switch (action.kind) {
|
|
1312
1522
|
case "set-layout":
|
|
@@ -1398,7 +1608,5 @@ function onPreviewSidebarOpenRequest(handler) {
|
|
|
1398
1608
|
function isRecord3(value) {
|
|
1399
1609
|
return typeof value === "object" && value !== null;
|
|
1400
1610
|
}
|
|
1401
|
-
var PREVIEW_SURFACE_PARAM = "preview_surface";
|
|
1402
|
-
var PREVIEW_THEME_COOKIE_NAME = "preview_theme_id";
|
|
1403
1611
|
|
|
1404
|
-
export { PREVIEW_CHROME_PORTAL_CLASS_NAME, PREVIEW_CHROME_THEME_CLASS_NAME,
|
|
1612
|
+
export { PREVIEW_CHROME_PORTAL_CLASS_NAME, PREVIEW_CHROME_THEME_CLASS_NAME, PreviewPageDesignEditorStateProvider, applyPreviewChromeSurfaceToElement, getPreviewChromeSurfaceDataProps, getPreviewSidebarTab, onPreviewSidebarOpenRequest, resolvePreviewChromeSurface, setPreviewSidebarTab, usePreviewPageDesignEditorState };
|