@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.
Files changed (574) hide show
  1. package/README.md +65 -3
  2. package/dist/{PreviewEditorSidebar-O4NDX5TP.css → PreviewEditorSidebar-JA4VIPSZ.css} +1 -1
  3. package/dist/{PreviewEditorSidebar-QZG37QIF.mjs → PreviewEditorSidebar-LHGK6RIO.mjs} +760 -711
  4. package/dist/{SdkPreviewModeRuntime-PBGALTMK.css → PreviewEditorUI-36T7QYV4.css} +1 -1
  5. package/dist/{PreviewEditorUI-AXIKSMZA.mjs → PreviewEditorUI-AXZG2SDC.mjs} +167 -28
  6. package/dist/{PreviewEditorUI-4JVDBZBS.css → SdkPreviewModeRuntime-FXKI6XNL.css} +1 -1
  7. package/dist/SdkPreviewModeRuntime-RNVRHFFR.mjs +8 -0
  8. package/dist/_dts/ai/src/contracts/proposals.d.ts +838 -262
  9. package/dist/_dts/altcha/src/AltchaWidget.d.ts +1 -1
  10. package/dist/_dts/api/src/analytics.d.ts +1 -1
  11. package/dist/_dts/api/src/bookingConfig.d.ts +4 -0
  12. package/dist/_dts/api/src/contentRuntime.d.ts +15 -3
  13. package/dist/_dts/api/src/contentTypes.d.ts +6 -0
  14. package/dist/_dts/api/src/courses.d.ts +1 -1
  15. package/dist/_dts/api/src/event-destination-policy.d.ts +17 -0
  16. package/dist/_dts/api/src/index.d.ts +6 -2
  17. package/dist/_dts/api/src/navigation/boundaries.d.ts +64 -0
  18. package/dist/_dts/api/src/navigation.d.ts +2 -0
  19. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +17 -12
  20. package/dist/_dts/api/src/siteGeneration.d.ts +1 -1
  21. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +7 -6
  22. package/dist/_dts/api/src/types.d.ts +1 -1
  23. package/dist/_dts/block-form/src/backend/store-backend.d.ts +3 -1
  24. package/dist/_dts/block-form/src/backend/types.d.ts +3 -3
  25. package/dist/_dts/block-form/src/context/BlockContext.d.ts +1 -1
  26. package/dist/_dts/block-form/src/context/DisplayLabelResolverContext.d.ts +1 -1
  27. package/dist/_dts/block-form/src/context/FieldPreviewResolverContext.d.ts +2 -2
  28. package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +1 -1
  29. package/dist/_dts/block-form/src/palette/PaletteContext.d.ts +1 -1
  30. package/dist/_dts/block-form/src/sdk-config/SdkConfigContext.d.ts +1 -1
  31. package/dist/_dts/block-form/src/widgets/BackgroundColorWidget/BackgroundColorWidget.d.ts +2 -1
  32. package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +1 -1
  33. package/dist/_dts/block-form/src/widgets/BooleanField/BooleanField.d.ts +1 -1
  34. package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +1 -1
  35. package/dist/_dts/block-form/src/widgets/Field.d.ts +2 -2
  36. package/dist/_dts/block-form/src/widgets/FieldFrame.d.ts +3 -3
  37. package/dist/_dts/block-form/src/widgets/NumberField/NumberField.d.ts +1 -1
  38. package/dist/_dts/block-form/src/widgets/PresetOrCustomField/PresetOrCustomField.d.ts +1 -1
  39. package/dist/_dts/block-form/src/widgets/SdkSelectField/SdkSelectField.d.ts +1 -1
  40. package/dist/_dts/block-form/src/widgets/SelectField/SelectField.d.ts +1 -1
  41. package/dist/_dts/block-form/src/widgets/SelectWidget.d.ts +1 -1
  42. package/dist/_dts/block-form/src/widgets/SliderField/SliderField.d.ts +1 -1
  43. package/dist/_dts/block-form/src/widgets/TextField/TextField.d.ts +1 -1
  44. package/dist/_dts/block-form/src/widgets/TextInputWidget.d.ts +1 -1
  45. package/dist/_dts/block-form/src/widgets/ToggleWidget.d.ts +1 -1
  46. package/dist/_dts/block-form/src/widgets/stringDefaultValue.d.ts +1 -0
  47. package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -1
  48. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +28 -44
  49. package/dist/_dts/blocks/src/index.d.ts +6 -4
  50. package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
  51. package/dist/_dts/blocks/src/primitives/content/components/Button.d.ts +7 -7
  52. package/dist/_dts/blocks/src/primitives/content/components/RichText.d.ts +2 -1
  53. package/dist/_dts/blocks/src/primitives/content/components/Text.d.ts +2 -1
  54. package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +4 -0
  55. package/dist/_dts/blocks/src/primitives/layout/Grid.d.ts +2 -1
  56. package/dist/_dts/blocks/src/primitives/layout/Inline.d.ts +2 -1
  57. package/dist/_dts/blocks/src/primitives/layout/Stack.d.ts +2 -1
  58. package/dist/_dts/blocks/src/server.d.ts +1 -1
  59. package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +592 -592
  60. package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +592 -592
  61. package/dist/_dts/blocks/src/system/blocks/cart.d.ts +592 -592
  62. package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +592 -592
  63. package/dist/_dts/blocks/src/system/blocks/collection.d.ts +592 -592
  64. package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +1 -1
  65. package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +3 -2
  66. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +397 -111
  67. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +6 -15
  68. package/dist/_dts/blocks/src/system/blocks/faq.d.ts +592 -592
  69. package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +1 -1
  70. package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +2 -0
  71. package/dist/_dts/blocks/src/system/blocks/form.d.ts +20 -1
  72. package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +592 -592
  73. package/dist/_dts/blocks/src/system/blocks/hero.d.ts +2 -0
  74. package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +3 -0
  75. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -3
  76. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +54 -54
  77. package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +21 -0
  78. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +162 -0
  79. package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +592 -602
  80. package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +592 -604
  81. package/dist/_dts/blocks/src/system/blocks/products/shared.d.ts +0 -4
  82. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +592 -592
  83. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +2 -2
  84. package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +3 -0
  85. package/dist/_dts/blocks/src/system/componentFactory.d.ts +1 -0
  86. package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
  87. package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
  88. package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +19 -5
  89. package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
  90. package/dist/_dts/blocks/src/system/data/index.d.ts +2 -0
  91. package/dist/_dts/blocks/src/system/data/linkedContentEntries.d.ts +102 -0
  92. package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
  93. package/dist/_dts/blocks/src/system/defineBlock.d.ts +3 -1
  94. package/dist/_dts/blocks/src/system/designCapabilities.d.ts +2 -2
  95. package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +6 -1
  96. package/dist/_dts/blocks/src/system/fragments/library/faqHeading.d.ts +0 -1
  97. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +71 -56
  98. package/dist/_dts/blocks/src/system/media/slotContracts.d.ts +2 -0
  99. package/dist/_dts/blocks/src/system/node/types.d.ts +8 -1
  100. package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
  101. package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
  102. package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
  103. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +56 -74
  104. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +27 -36
  105. package/dist/_dts/blocks/src/system/runtime/headingDecoration.d.ts +21 -0
  106. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +45 -14
  107. package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +2 -9
  108. package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -10
  109. package/dist/_dts/blocks/src/system/runtime/nodes/ImageResolveContext.d.ts +2 -2
  110. package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +4 -0
  111. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +1 -1
  112. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -1
  113. package/dist/_dts/blocks/src/system/runtime/nodes/carousel.shared.d.ts +2 -1
  114. package/dist/_dts/blocks/src/system/runtime/nodes/cart.client.d.ts +2 -1
  115. package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -1
  116. package/dist/_dts/blocks/src/system/runtime/nodes/checkout.client.d.ts +2 -1
  117. package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -1
  118. package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +1 -5
  119. package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/view.d.ts +10 -13
  120. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/view.d.ts +3 -2
  121. package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +2 -2
  122. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/BookingModeStep.d.ts +1 -1
  123. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/CourseRegistrationWizard.d.ts +2 -1
  124. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/ErrorStep.d.ts +1 -1
  125. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/MembershipHero.d.ts +1 -1
  126. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/PaymentFailedStep.d.ts +1 -1
  127. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/PortalAuthSidebar.d.ts +1 -1
  128. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/StepIndicator.d.ts +1 -1
  129. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/SuccessStep.d.ts +1 -1
  130. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/VerifyingTimeoutStep.d.ts +1 -1
  131. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/WaitlistStep.d.ts +1 -1
  132. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/components.d.ts +5 -4
  133. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.client.d.ts +3 -2
  134. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +1 -1
  135. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/CoursePricingDisplay.d.ts +2 -1
  136. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/view.d.ts +1 -1
  137. package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +2 -2
  138. package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +1 -1
  139. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSummaryBar.d.ts +2 -1
  140. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts +2 -1
  141. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
  142. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardContent.d.ts +2 -1
  143. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventSelectionStep.d.ts +2 -0
  144. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/OrderSummary.d.ts +1 -1
  145. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PastOccurrenceNotice.d.ts +2 -1
  146. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SelectableOptionCard.d.ts +1 -1
  147. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/StepIndicator.d.ts +1 -1
  148. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +1 -1
  149. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +1 -2
  150. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +2 -1
  151. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +12 -5
  152. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
  153. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +21 -16
  154. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +3 -2
  155. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +21 -16
  156. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +17 -28
  157. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.view.d.ts +1 -1
  158. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DateTimeTile.d.ts +2 -1
  159. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DayEventsModal.d.ts +2 -1
  160. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventDetailModal.d.ts +2 -1
  161. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventPaginatedListView.client.d.ts +2 -3
  162. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +3 -3
  163. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +50 -0
  164. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +2 -1
  165. package/dist/_dts/blocks/src/system/runtime/nodes/gifting.client.d.ts +2 -1
  166. package/dist/_dts/blocks/src/system/runtime/nodes/gifting.server.d.ts +2 -1
  167. package/dist/_dts/blocks/src/system/runtime/nodes/location-map.client.d.ts +2 -2
  168. package/dist/_dts/blocks/src/system/runtime/nodes/location-map.server.d.ts +1 -1
  169. package/dist/_dts/blocks/src/system/runtime/nodes/location-map.shared.d.ts +4 -4
  170. package/dist/_dts/blocks/src/system/runtime/nodes/location-map.view.d.ts +1 -1
  171. package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +29 -14
  172. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.server.d.ts +2 -1
  173. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +23 -0
  174. package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.client.d.ts +2 -1
  175. package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -1
  176. package/dist/_dts/blocks/src/system/runtime/nodes/product-list.client.d.ts +2 -1
  177. package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -1
  178. package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +2 -1
  179. package/dist/_dts/blocks/src/system/runtime/nodes/shop-add-feedback.d.ts +1 -1
  180. package/dist/_dts/blocks/src/system/runtime/nodes/shop-commerce.d.ts +5 -4
  181. package/dist/_dts/blocks/src/system/runtime/nodes/shop-commerce.server.d.ts +5 -4
  182. package/dist/_dts/blocks/src/system/runtime/nodes/shop.client.d.ts +2 -1
  183. package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +0 -17
  184. package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -1
  185. package/dist/_dts/blocks/src/system/runtime/nodes/shop.types.d.ts +0 -1
  186. package/dist/_dts/blocks/src/system/runtime/nodes/spinner.d.ts +1 -1
  187. package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +13 -0
  188. package/dist/_dts/blocks/src/system/runtime/shared/components/ActionRow.d.ts +1 -1
  189. package/dist/_dts/blocks/src/system/runtime/shared/components/CheckIcon.d.ts +1 -1
  190. package/dist/_dts/blocks/src/system/runtime/shared/components/ClockIcon.d.ts +1 -1
  191. package/dist/_dts/blocks/src/system/runtime/shared/components/CrossIcon.d.ts +1 -1
  192. package/dist/_dts/blocks/src/system/runtime/shared/components/FeedbackMessage.d.ts +1 -1
  193. package/dist/_dts/blocks/src/system/runtime/shared/components/FieldValidationMessage.d.ts +1 -1
  194. package/dist/_dts/blocks/src/system/runtime/shared/components/MembershipHero.d.ts +1 -1
  195. package/dist/_dts/blocks/src/system/runtime/shared/components/StateIcon.d.ts +1 -1
  196. package/dist/_dts/blocks/src/system/runtime/shared/components/StepIndicator.d.ts +1 -1
  197. package/dist/_dts/blocks/src/system/runtime/shared/components/TerminalPanel.d.ts +1 -1
  198. package/dist/_dts/blocks/src/system/transforms/registry/_utils/sectionForegroundStyles.d.ts +2 -0
  199. package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +4 -2
  200. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
  201. package/dist/_dts/calendar/src/grid.d.ts +27 -0
  202. package/dist/_dts/calendar/src/index.d.ts +2 -2
  203. package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +1 -1
  204. package/dist/_dts/content-editor/src/components/EditableBlockProvider.d.ts +1 -1
  205. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +1 -1
  206. package/dist/_dts/content-editor/src/controller/useAutosaveTriggers.d.ts +3 -1
  207. package/dist/_dts/content-editor/src/editorTransactionState.d.ts +1 -0
  208. package/dist/_dts/content-editor/src/hooks/autosaveScopePlanning.d.ts +26 -0
  209. package/dist/_dts/content-editor/src/hooks/publishability.d.ts +1 -0
  210. package/dist/_dts/content-editor/src/hooks/useLinkedEntryAutosave.d.ts +23 -0
  211. package/dist/_dts/content-editor/src/hooks/useReactiveToolbar.d.ts +1 -1
  212. package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +2 -2
  213. package/dist/_dts/content-editor/src/index.d.ts +3 -1
  214. package/dist/_dts/content-editor/src/lib/json.d.ts +2 -0
  215. package/dist/_dts/content-editor/src/linkedEntries/domain.d.ts +8 -0
  216. package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +6 -1
  217. package/dist/_dts/content-editor/src/primitives/PreviewTextEditor.d.ts +6 -1
  218. package/dist/_dts/content-editor/src/primitives/shared/activePreviewField.d.ts +2 -0
  219. package/dist/_dts/content-editor/src/primitives/shared/index.d.ts +1 -1
  220. package/dist/_dts/content-editor/src/primitives/shared/storeBinding.d.ts +3 -1
  221. package/dist/_dts/content-editor/src/primitives/shared/types.d.ts +5 -0
  222. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +58 -0
  223. package/dist/_dts/content-editor/src/ui/editorTransactionState.d.ts +93 -0
  224. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +67 -5
  225. package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +2 -0
  226. package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -1
  227. package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -40
  228. package/dist/_dts/content-model/src/content-types/builtins.d.ts +43 -40
  229. package/dist/_dts/content-model/src/metadataConfig.d.ts +87 -47
  230. package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -1
  231. package/dist/_dts/core/src/branded.d.ts +5 -0
  232. package/dist/_dts/core/src/event-pricing.d.ts +72 -0
  233. package/dist/_dts/core/src/index.d.ts +1 -0
  234. package/dist/_dts/core/src/stable-json.d.ts +1 -0
  235. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +27 -2
  236. package/dist/_dts/db/src/schemas/forms.d.ts +4 -4
  237. package/dist/_dts/editor/src/EditorProvider.d.ts +26 -0
  238. package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +26 -0
  239. package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +45 -0
  240. package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +25 -0
  241. package/dist/_dts/editor/src/components/EditingToggle.d.ts +9 -0
  242. package/dist/_dts/editor/src/hooks/useEditableElement.d.ts +18 -0
  243. package/dist/_dts/editor/src/index.d.ts +29 -0
  244. package/dist/_dts/editor/src/inline/InlineTextEditor.d.ts +1 -0
  245. package/dist/_dts/editor/src/lib/utils.d.ts +1 -0
  246. package/dist/_dts/editor/src/primitives/EditorPrimitivesProvider.d.ts +20 -0
  247. package/dist/_dts/editor/src/primitives/InlineFieldContext.d.ts +11 -0
  248. package/dist/_dts/editor/src/primitives/SaveContext.d.ts +12 -0
  249. package/dist/_dts/editor/src/primitives/helpers.d.ts +1 -0
  250. package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +26 -0
  251. package/dist/_dts/editor/src/primitives/rich-text/RichTextToolbar.d.ts +16 -0
  252. package/dist/_dts/editor/src/primitives/rich-text/config.d.ts +23 -0
  253. package/dist/_dts/editor/src/primitives/rich-text/extensions/RichTextImage.d.ts +2 -0
  254. package/dist/_dts/editor/src/primitives/rich-text/extensions/RichTextLink.d.ts +1 -0
  255. package/dist/_dts/editor/src/primitives/rich-text/imageActions.d.ts +22 -0
  256. package/dist/_dts/editor/src/primitives/rich-text/sanitize.d.ts +23 -0
  257. package/dist/_dts/editor/src/primitives/rich-text/toolbar/BlockTypeDropdown.d.ts +6 -0
  258. package/dist/_dts/editor/src/primitives/rich-text/toolbar/LinkPopover.d.ts +10 -0
  259. package/dist/_dts/editor/src/primitives/rich-text/toolbar/ToolbarIconButton.d.ts +11 -0
  260. package/dist/_dts/editor/src/primitives/rich-text/toolbar/linkPopoverUtils.d.ts +58 -0
  261. package/dist/_dts/editor/src/primitives/rich-text/useRichTextEditor.d.ts +19 -0
  262. package/dist/_dts/editor/src/primitives/rich-text/utils.d.ts +20 -0
  263. package/dist/_dts/editor/src/utils/optimisticTokens.d.ts +27 -0
  264. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +2 -2
  265. package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -1
  266. package/dist/_dts/editor-blocks/src/FormProvider.d.ts +1 -1
  267. package/dist/_dts/editor-blocks/src/block-editor/AddBlockDivider.d.ts +1 -1
  268. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +4 -4
  269. package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +1 -1
  270. package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +5 -5
  271. package/dist/_dts/editor-blocks/src/block-editor/BlockListContext.d.ts +1 -1
  272. package/dist/_dts/editor-blocks/src/block-editor/BlockPickerDialog.d.ts +1 -1
  273. package/dist/_dts/editor-blocks/src/block-editor/BlockThumbnail.d.ts +1 -1
  274. package/dist/_dts/editor-blocks/src/block-editor/BlockTile.d.ts +2 -2
  275. package/dist/_dts/editor-blocks/src/block-editor/EmptyState.d.ts +1 -1
  276. package/dist/_dts/editor-blocks/src/block-editor/EnhancedBlockPickerDialog.d.ts +1 -1
  277. package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +1 -1
  278. package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +1 -1
  279. package/dist/_dts/editor-blocks/src/block-editor/HeaderActions.d.ts +1 -1
  280. package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +4 -4
  281. package/dist/_dts/editor-blocks/src/block-editor/actionPresentation.d.ts +15 -0
  282. package/dist/_dts/editor-blocks/src/block-editor/blockHeaderActionPlan.d.ts +49 -0
  283. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
  284. package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -2
  285. package/dist/_dts/editor-blocks/src/widgets/button/ButtonField.d.ts +1 -1
  286. package/dist/_dts/editor-blocks/src/widgets/button/ButtonVariantField.d.ts +1 -1
  287. package/dist/_dts/editor-blocks/src/widgets/button/context.d.ts +1 -1
  288. package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeSelectField.d.ts +1 -1
  289. package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeWidgetProvider.d.ts +1 -1
  290. package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerField.d.ts +1 -1
  291. package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerWidgetProvider.d.ts +1 -1
  292. package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
  293. package/dist/_dts/editor-blocks/src/widgets/index.d.ts +2 -0
  294. package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +1 -1
  295. package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
  296. package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +1 -1
  297. package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +1 -1
  298. package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +1 -1
  299. package/dist/_dts/editor-blocks/src/widgets/offerings-preview/OfferingsPreviewGroupOrderField.d.ts +2 -0
  300. package/dist/_dts/editor-blocks/src/widgets/offerings-preview/OfferingsPreviewWidgetProvider.d.ts +10 -0
  301. package/dist/_dts/editor-blocks/src/widgets/offerings-preview/index.d.ts +3 -0
  302. package/dist/_dts/editor-blocks/src/widgets/offerings-preview/orderDomain.d.ts +29 -0
  303. package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +1 -1
  304. package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceWidgetProvider.d.ts +1 -1
  305. package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +1 -1
  306. package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextWidgetProvider.d.ts +2 -2
  307. package/dist/_dts/editor-blocks/src/widgets/rich-text/useImagePicker.d.ts +2 -2
  308. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionPickerField.d.ts +3 -0
  309. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionWidgetProvider.d.ts +14 -0
  310. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/index.d.ts +6 -0
  311. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +51 -0
  312. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +20 -0
  313. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +5 -0
  314. package/dist/_dts/media-core/src/index.d.ts +1 -0
  315. package/dist/_dts/media-core/src/renderableMediaAsset.d.ts +18 -0
  316. package/dist/_dts/media-editor/src/CropDialog.d.ts +1 -1
  317. package/dist/_dts/media-editor/src/CropDialogShell.d.ts +1 -1
  318. package/dist/_dts/media-editor/src/FileAssetPreview.d.ts +1 -1
  319. package/dist/_dts/media-editor/src/MediaEditor.d.ts +4 -1
  320. package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +2 -1
  321. package/dist/_dts/media-editor/src/MediaPreview.d.ts +1 -1
  322. package/dist/_dts/media-editor/src/context.d.ts +1 -1
  323. package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -1
  324. package/dist/_dts/media-editor/src/index.d.ts +1 -1
  325. package/dist/_dts/media-editor/src/provider.d.ts +1 -1
  326. package/dist/_dts/media-react/src/components/AuthenticatedImage.d.ts +1 -1
  327. package/dist/_dts/media-react/src/components/MediaLibrary.d.ts +1 -1
  328. package/dist/_dts/media-react/src/components/MediaPickerMini.d.ts +1 -1
  329. package/dist/_dts/preview-next/src/client/PreviewShellSmoke.d.ts +2 -1
  330. package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +7 -4
  331. package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +2 -1
  332. package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +7 -3
  333. package/dist/_dts/preview-next/src/client/blocks/blockCustomizePopoverRows.d.ts +25 -0
  334. package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -1
  335. package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +4 -30
  336. package/dist/_dts/preview-next/src/client/blocks/linkedEntryRenderOverlay.d.ts +11 -0
  337. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +3 -9
  338. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +2 -2
  339. package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +2 -1
  340. package/dist/_dts/preview-next/src/client/index.d.ts +0 -1
  341. package/dist/_dts/preview-next/src/client/layout/PreviewLayoutContext.d.ts +1 -1
  342. package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +4 -2
  343. package/dist/_dts/preview-next/src/client/preview/LinkedEntryEditEventBridge.d.ts +1 -0
  344. package/dist/_dts/preview-next/src/client/preview/MaintenanceModeBadge.d.ts +1 -1
  345. package/dist/_dts/preview-next/src/client/preview/OnboardingThemeSwitcher.d.ts +2 -1
  346. package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +6 -3
  347. package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +2 -2
  348. package/dist/_dts/preview-next/src/client/preview/PreviewAuthBanner.d.ts +2 -1
  349. package/dist/_dts/preview-next/src/client/preview/PreviewAuthInit.d.ts +1 -1
  350. package/dist/_dts/preview-next/src/client/preview/PreviewBlockCustomizeSelectionContext.d.ts +2 -2
  351. package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +20 -0
  352. package/dist/_dts/preview-next/src/client/preview/PreviewConfirmationDialog.d.ts +2 -1
  353. package/dist/_dts/preview-next/src/client/preview/PreviewDesignCoordinatorContext.d.ts +2 -2
  354. package/dist/_dts/preview-next/src/client/preview/PreviewDesignHistoryOrderContext.d.ts +13 -0
  355. package/dist/_dts/preview-next/src/client/preview/PreviewEditorGuidanceCard.d.ts +2 -1
  356. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +4 -3
  357. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +2 -2
  358. package/dist/_dts/preview-next/src/client/preview/PreviewOpenEditorButton.d.ts +3 -2
  359. package/dist/_dts/preview-next/src/client/preview/PreviewQueryProvider.d.ts +2 -2
  360. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +21 -20
  361. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +4 -3
  362. package/dist/_dts/preview-next/src/client/preview/PreviewSidebarSection.d.ts +13 -0
  363. package/dist/_dts/preview-next/src/client/preview/PreviewViewportControls.d.ts +1 -1
  364. package/dist/_dts/preview-next/src/client/preview/PreviewZoomControls.d.ts +1 -1
  365. package/dist/_dts/preview-next/src/client/preview/SelectedBlockCustomizePanel.d.ts +2 -1
  366. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeButton.d.ts +2 -1
  367. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +60 -6
  368. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +2 -1
  369. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +14 -1
  370. package/dist/_dts/preview-next/src/client/preview/SubrouteNoticePanel.d.ts +2 -1
  371. package/dist/_dts/preview-next/src/client/preview/linkedEntryEditEvents.d.ts +9 -0
  372. package/dist/_dts/preview-next/src/client/preview/previewChromePlacement.d.ts +51 -0
  373. package/dist/_dts/preview-next/src/client/preview/previewCustomizeControls.d.ts +68 -0
  374. package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +8 -1
  375. package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +11 -9
  376. package/dist/_dts/preview-next/src/client/preview/previewDesignHistoryOrder.d.ts +18 -0
  377. package/dist/_dts/preview-next/src/client/preview/previewUndoDomains.d.ts +1 -1
  378. package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +41 -0
  379. package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +120 -0
  380. package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +30 -0
  381. package/dist/_dts/preview-next/src/client/preview/siteStyleHistoryState.d.ts +55 -0
  382. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -0
  383. package/dist/_dts/preview-next/src/client/preview/themeOverlay.d.ts +2 -2
  384. package/dist/_dts/preview-next/src/client/sdk/SdkPreviewModeRuntime.d.ts +2 -1
  385. package/dist/_dts/preview-next/src/client/widgets/widgetAdapters.d.ts +2 -1
  386. package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +8 -5
  387. package/dist/_dts/preview-next/src/constants.d.ts +0 -1
  388. package/dist/_dts/sdk/src/__mocks__/next-cache.d.ts +4 -3
  389. package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +1 -1
  390. package/dist/_dts/sdk/src/cli/config-loader.d.ts +3 -1
  391. package/dist/_dts/sdk/src/cli/content/reader.d.ts +6 -12
  392. package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +1 -0
  393. package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +31 -0
  394. package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +3 -1
  395. package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +1 -0
  396. package/dist/_dts/sdk/src/cli/sync/validation.d.ts +7 -7
  397. package/dist/_dts/sdk/src/client/types.d.ts +36 -4
  398. package/dist/_dts/sdk/src/client.d.ts +1 -1
  399. package/dist/_dts/sdk/src/config/content-types.d.ts +3 -14
  400. package/dist/_dts/sdk/src/config/content-validation.d.ts +9 -214
  401. package/dist/_dts/sdk/src/config/types.d.ts +10 -1
  402. package/dist/_dts/sdk/src/config/validation.d.ts +24 -24
  403. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +30 -4
  404. package/dist/_dts/sdk/src/index.d.ts +1 -1
  405. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +6 -6
  406. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +4 -3
  407. package/dist/_dts/sdk/src/public-api/contracts.d.ts +39 -37
  408. package/dist/_dts/sdk/src/rendering/components/Block.d.ts +1 -1
  409. package/dist/_dts/sdk/src/rendering/components/Block.server.d.ts +1 -1
  410. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +1 -1
  411. package/dist/_dts/sdk/src/rendering/components/Page.d.ts +1 -1
  412. package/dist/_dts/sdk/src/rendering/components/Page.server.d.ts +1 -1
  413. package/dist/_dts/sdk/src/rendering/components/PageHydrationBootstrap.d.ts +1 -1
  414. package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +10 -9
  415. package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +9 -0
  416. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -15
  417. package/dist/_dts/sdk/src/rendering/mediaAssets.d.ts +4 -0
  418. package/dist/_dts/sdk/src/rendering/primitives/RichText.d.ts +2 -1
  419. package/dist/_dts/sdk/src/server.d.ts +1 -1
  420. package/dist/_dts/sdk/src/theme-bridge/ThemeBridgeProvider.d.ts +1 -1
  421. package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
  422. package/dist/_dts/sdk/src/version.d.ts +1 -1
  423. package/dist/_dts/site-commands/src/commands.d.ts +69 -21
  424. package/dist/_dts/theme-core/src/ClientThemeScope.d.ts +1 -1
  425. package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +3 -2
  426. package/dist/_dts/theme-core/src/ThemeScope.d.ts +1 -1
  427. package/dist/_dts/theme-core/src/ThemeScopeCore.d.ts +1 -1
  428. package/dist/_dts/theme-core/src/accordions/types.d.ts +5 -5
  429. package/dist/_dts/theme-core/src/buttons/constants.d.ts +26 -1
  430. package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +11 -0
  431. package/dist/_dts/theme-core/src/buttons/personalities/joy-stamp.d.ts +22 -0
  432. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +8 -7
  433. package/dist/_dts/theme-core/src/buttons/types.d.ts +26 -17
  434. package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +44 -0
  435. package/dist/_dts/theme-core/src/cards/types.d.ts +5 -5
  436. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  437. package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
  438. package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
  439. package/dist/_dts/theme-core/src/interactive/types.d.ts +10 -0
  440. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +228 -198
  441. package/dist/_dts/theme-core/src/mock-themes/components/PaletteCard.d.ts +1 -1
  442. package/dist/_dts/theme-core/src/mock-themes/components/swatch.d.ts +1 -1
  443. package/dist/_dts/theme-core/src/navigation/presets.d.ts +1 -1
  444. package/dist/_dts/theme-core/src/navigation/types.d.ts +1 -1
  445. package/dist/_dts/theme-core/src/palette/variants/index.d.ts +15 -0
  446. package/dist/_dts/theme-core/src/palette/variants/types.d.ts +6 -6
  447. package/dist/_dts/theme-core/src/palette/variants/warm-dark.d.ts +27 -0
  448. package/dist/_dts/theme-core/src/schema.d.ts +273 -226
  449. package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +2 -2
  450. package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +4 -1
  451. package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +87 -31
  452. package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +6 -2
  453. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +27 -0
  454. package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +87 -31
  455. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +30 -1
  456. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +32 -16
  457. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +13 -9
  458. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +5 -0
  459. package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
  460. package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
  461. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +3 -23
  462. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +276 -4
  463. package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +2 -0
  464. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +33 -3
  465. package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +508 -0
  466. package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +30 -0
  467. package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +10 -10
  468. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
  469. package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
  470. package/dist/_dts/theme-core/src/site-styles/types.d.ts +26 -6
  471. package/dist/_dts/theme-core/src/site-styles/typographyPresets.d.ts +16 -1
  472. package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
  473. package/dist/_dts/ui/src/async-boundary.d.ts +1 -1
  474. package/dist/_dts/ui/src/badge.d.ts +1 -1
  475. package/dist/_dts/ui/src/button-group.d.ts +3 -3
  476. package/dist/_dts/ui/src/calendar.d.ts +2 -2
  477. package/dist/_dts/ui/src/card.d.ts +6 -6
  478. package/dist/_dts/ui/src/combobox.d.ts +1 -1
  479. package/dist/_dts/ui/src/command-multi-select.d.ts +1 -1
  480. package/dist/_dts/ui/src/content-spinner.d.ts +1 -1
  481. package/dist/_dts/ui/src/delayed-spinner.d.ts +1 -1
  482. package/dist/_dts/ui/src/dev-toolbar.d.ts +1 -1
  483. package/dist/_dts/ui/src/dialog.d.ts +10 -10
  484. package/dist/_dts/ui/src/dropdown-menu.d.ts +1 -1
  485. package/dist/_dts/ui/src/editor-drawer.d.ts +1 -1
  486. package/dist/_dts/ui/src/empty-state.d.ts +1 -1
  487. package/dist/_dts/ui/src/filter-button-group.d.ts +1 -1
  488. package/dist/_dts/ui/src/fixed-bottom-surface.d.ts +1 -1
  489. package/dist/_dts/ui/src/form.d.ts +7 -7
  490. package/dist/_dts/ui/src/label.d.ts +1 -1
  491. package/dist/_dts/ui/src/menubar.d.ts +16 -16
  492. package/dist/_dts/ui/src/navigation-tabs.d.ts +2 -2
  493. package/dist/_dts/ui/src/number-input.d.ts +1 -1
  494. package/dist/_dts/ui/src/palette/ColorChooserDialog.d.ts +1 -1
  495. package/dist/_dts/ui/src/palette/ColorSlotButton.d.ts +1 -1
  496. package/dist/_dts/ui/src/palette/ColorSwatchButton.d.ts +1 -1
  497. package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +1 -1
  498. package/dist/_dts/ui/src/resizable-split-pane.d.ts +1 -1
  499. package/dist/_dts/ui/src/select.d.ts +10 -10
  500. package/dist/_dts/ui/src/separator.d.ts +1 -1
  501. package/dist/_dts/ui/src/sheet.d.ts +9 -9
  502. package/dist/_dts/ui/src/spinner.d.ts +1 -1
  503. package/dist/_dts/ui/src/tooltip.d.ts +4 -4
  504. package/dist/{chunk-MPBNEVPB.mjs → chunk-2BUMISSH.mjs} +1 -1
  505. package/dist/{chunk-7PCYG6YV.mjs → chunk-6FWNF3DJ.mjs} +2086 -1128
  506. package/dist/{chunk-BBLZSQEY.mjs → chunk-FIREV57T.mjs} +14 -9
  507. package/dist/{chunk-5NZGBSJF.mjs → chunk-G35HOQEN.mjs} +2608 -2397
  508. package/dist/{chunk-HTB4BMKD.mjs → chunk-HKB6XVIP.mjs} +321 -113
  509. package/dist/{chunk-GYXKAUFV.mjs → chunk-XQR6THQJ.mjs} +27831 -17740
  510. package/dist/cli/index.mjs +4581 -2802
  511. package/dist/cli/init-docs/content/workflow-custom-block.md +5 -0
  512. package/dist/client/{accordion-QFZMNB7O.mjs → accordion-G34C45TW.mjs} +2 -2
  513. package/dist/client/{bookingForm-NCIXFWIG.mjs → bookingForm-BLBVKSAQ.mjs} +12 -12
  514. package/dist/client/bookings.mjs +321 -60
  515. package/dist/client/{carousel-EO4BJMWD.mjs → carousel-7ZVTBRMD.mjs} +3 -3
  516. package/dist/client/{cart-FTYCLYUW.mjs → cart-Q6S6LZUO.mjs} +8 -7
  517. package/dist/client/{checkout-NFGLVCOX.mjs → checkout-5QJLDE4I.mjs} +8 -7
  518. package/dist/client/{chunk-IWFZSQNZ.mjs → chunk-5PQH4Y75.mjs} +3 -3
  519. package/dist/client/{chunk-Y37KDO7P.mjs → chunk-CHAB5ACD.mjs} +5 -4
  520. package/dist/client/{chunk-VDS5YFLX.mjs → chunk-CSZGLBYR.mjs} +1 -1
  521. package/dist/client/{chunk-3PEDD5KJ.mjs → chunk-DVNUDUVT.mjs} +1 -1
  522. package/dist/client/{chunk-6GVVWSPU.mjs → chunk-EQKYMX4N.mjs} +348 -301
  523. package/dist/client/{chunk-YLMKMCSJ.mjs → chunk-GFSQNTRW.mjs} +1 -3
  524. package/dist/client/chunk-L4J5Y62O.mjs +18 -0
  525. package/dist/client/{chunk-PUOELU4O.mjs → chunk-RJHTCTCZ.mjs} +550 -262
  526. package/dist/client/{chunk-AUJ5DBZJ.mjs → chunk-S3MKFGOG.mjs} +170 -28
  527. package/dist/client/{chunk-CE7IBGVW.mjs → chunk-SBBSMFFG.mjs} +1 -1
  528. package/dist/client/{chunk-4W66ALYT.mjs → chunk-U2EW7RSR.mjs} +1 -1
  529. package/dist/client/{chunk-PYRBIURC.mjs → chunk-WJFHDTYF.mjs} +17 -34
  530. package/dist/client/{chunk-T6UIP6UZ.mjs → chunk-ZF4XEWDM.mjs} +1 -1
  531. package/dist/client/client.mjs +13449 -9393
  532. package/dist/client/{courseRegistration-2EORROPS.mjs → courseRegistration-VUG2JJDB.mjs} +13 -12
  533. package/dist/client/{eventCalendar-WZI4VL6N.mjs → eventCalendar-E7D2LD4N.mjs} +14 -14
  534. package/dist/client/{eventCombined-QCB2TCNL.mjs → eventCombined-FUZ2Z3CS.mjs} +14 -14
  535. package/dist/client/{eventDetails-TFTATAPH.mjs → eventDetails-QRITJAOW.mjs} +9 -9
  536. package/dist/client/{eventListing-A2CQEHEQ.mjs → eventListing-INMQMJZ5.mjs} +14 -14
  537. package/dist/client/{eventRegistration-OELPVLUY.mjs → eventRegistration-TOOJD4WU.mjs} +17 -15
  538. package/dist/client/{form-NTIFD6WQ.mjs → form-BOWN7ZNQ.mjs} +3 -3
  539. package/dist/client/{headerSection-7TBNKCLA.mjs → headerSection-HFQNZOUU.mjs} +55 -14
  540. package/dist/client/hooks.mjs +26989 -25527
  541. package/dist/client/{locationMap-LRLB5A3H.mjs → locationMap-VUZGC7Y5.mjs} +2 -2
  542. package/dist/client/{newsletterForm-XI52RZSN.mjs → newsletterForm-X2XQTPCB.mjs} +3 -3
  543. package/dist/client/{productDetail-GSNKBFLY.mjs → productDetail-TA7D2G2B.mjs} +8 -7
  544. package/dist/client/{productList-BGCGT4KZ.mjs → productList-AZOLOZKM.mjs} +8 -7
  545. package/dist/client/rendering/client.mjs +5518 -3869
  546. package/dist/client/rendering/islands.mjs +32 -20
  547. package/dist/client/rendering.mjs +14494 -10485
  548. package/dist/client/{shop-RQHUCLNY.mjs → shop-ZDLO7IIG.mjs} +8 -7
  549. package/dist/client/spam-protection.mjs +3 -5
  550. package/dist/preview-next/client/runtime.css +1 -1
  551. package/dist/preview-next/client/runtime.mjs +5 -5
  552. package/dist/preview-next/constants.mjs +0 -2
  553. package/dist/preview-next/index.mjs +0 -2
  554. package/dist/{sdk-runtime-A4LHT2RS.mjs → sdk-runtime-CTWKNBDQ.mjs} +6 -6
  555. package/dist/{sdk-runtime-EEMNSB7J.css → sdk-runtime-JD4A6SU6.css} +1 -1
  556. package/dist/server/components.mjs +10475 -7369
  557. package/dist/server/config-validation.mjs +26616 -25360
  558. package/dist/server/config.mjs +26616 -25360
  559. package/dist/server/data.mjs +27048 -25586
  560. package/dist/server/index.mjs +109 -56
  561. package/dist/server/next.mjs +15424 -12076
  562. package/dist/server/page-converter.mjs +5570 -3107
  563. package/dist/server/prebuild.mjs +2 -1
  564. package/dist/server/rendering/server.mjs +10850 -7549
  565. package/dist/server/rendering.mjs +10855 -7554
  566. package/dist/server/routing.mjs +30134 -28531
  567. package/dist/server/server.mjs +27369 -25856
  568. package/dist/server/theme-bridge.mjs +902 -167
  569. package/dist/server/theme.mjs +197 -133
  570. package/dist/styles/index.css +606 -133
  571. package/package.json +16 -16
  572. package/dist/SdkPreviewModeRuntime-XE5M4UKM.mjs +0 -8
  573. package/dist/_dts/editor-blocks/src/block-editor/actionControlMode.d.ts +0 -2
  574. package/dist/_dts/preview-next/src/client/preview/previewSurface.d.ts +0 -3
@@ -1,12 +1,56 @@
1
- import { type ReactNode } from 'react';
2
- import type { ApiClient } from '../../../../api/src/request';
1
+ import React, { type ReactNode } from 'react';
2
+ import { type ApiClient } from '../../../../api/src/request';
3
3
  import type { Theme } from '../../../../blocks/src/index';
4
4
  import type { ButtonPersonalityId } from '../../../../theme-core/src/buttons/index';
5
5
  import type { PaletteOverrides, PaletteVariantId } from '../../../../theme-core/src/palette/index';
6
- import type { FooterLookId, FooterSelectionContext, HeaderLayoutId, HeaderLookId, HeaderSelectionContext, HeaderStyleId, TypographyPresetId } from '../../../../theme-core/src/site-styles/index';
6
+ import type { BrandDisplayMode, FooterLookId, FooterSelectionContext, HeaderLayoutId, HeaderLookId, HeaderSelectionContext, HeaderStyleId, LogoSizePolicy, SiteChromeBackgroundColorToken, SiteChromeBackgroundOverride, TypographyPresetId } from '../../../../theme-core/src/site-styles/index';
7
+ import { type StyleConfiguratorHistoryEntry } from './StyleConfigurator.state';
7
8
  import type { SiteStyleAccess } from './siteStyleAccess';
8
9
  import { type SiteChromeLookOption } from './siteChromeLookRows';
9
10
  import type { SiteChromeEditableSurfaceKind } from './SiteChromeEditableSurface';
11
+ import { type HeaderBrandDisplayOption, type HeaderLogoSizeOption } from './siteChromeBrandPreferences';
12
+ import { type SiteStyleHistoryFailure, type SiteStyleHistorySkipReason } from './siteStyleHistoryState';
13
+ import { type SiteChromeQuickControlHistoryFailure, type SiteChromeQuickControlHistorySkipReason } from './siteChromeQuickControlHistoryState';
14
+ type SiteStyleHistoryController = Readonly<{
15
+ recordAppliedSelection: (entry: StyleConfiguratorHistoryEntry) => void;
16
+ setStagedPreviewActive: (active: boolean) => void;
17
+ undo: () => Promise<SiteStyleHistoryApplyOutcome>;
18
+ redo: () => Promise<SiteStyleHistoryApplyOutcome>;
19
+ canUndo: boolean;
20
+ canRedo: boolean;
21
+ isHistoryPending: boolean;
22
+ isHistoryStale: boolean;
23
+ historyFailure: string | null;
24
+ hasActiveStagedPreview: boolean;
25
+ }>;
26
+ type SiteStyleHistoryApplyOutcome = Readonly<{
27
+ kind: 'saved';
28
+ }> | Readonly<{
29
+ kind: 'skipped';
30
+ reason: SiteStyleHistorySkipReason | 'not-ready' | 'staged-preview-active';
31
+ }> | SiteStyleHistoryFailure;
32
+ type SiteChromeQuickControlHistoryController = Readonly<{
33
+ undo: () => Promise<SiteChromeQuickControlApplyOutcome>;
34
+ redo: () => Promise<SiteChromeQuickControlApplyOutcome>;
35
+ canUndo: boolean;
36
+ canRedo: boolean;
37
+ isHistoryPending: boolean;
38
+ isHistoryStale: boolean;
39
+ historyFailure: string | null;
40
+ }>;
41
+ type SiteChromeQuickControlApplyOutcome = Readonly<{
42
+ kind: 'saved';
43
+ }> | Readonly<{
44
+ kind: 'skipped';
45
+ reason: SiteChromeQuickControlHistorySkipReason | 'superseded';
46
+ }> | SiteChromeQuickControlHistoryFailure;
47
+ export type SiteChromeBackgroundControlState = Readonly<{
48
+ available: boolean;
49
+ current: SiteChromeBackgroundOverride;
50
+ currentLabel: string;
51
+ quickTokens: readonly SiteChromeBackgroundColorToken[];
52
+ advancedTokens: readonly SiteChromeBackgroundColorToken[];
53
+ }>;
10
54
  type SiteChromeCustomizeSurfaceState = Readonly<{
11
55
  kind: 'unavailable';
12
56
  }> | Readonly<{
@@ -19,8 +63,12 @@ type SiteChromeCustomizeSurfaceState = Readonly<{
19
63
  currentId: HeaderStyleId;
20
64
  currentLabel: string;
21
65
  options: readonly SiteChromeLookOption<HeaderStyleId>[];
66
+ brandDisplay: BrandDisplayMode;
67
+ brandDisplayOptions: readonly HeaderBrandDisplayOption[];
68
+ logoSize: LogoSizePolicy;
69
+ logoSizeOptions: readonly HeaderLogoSizeOption[];
22
70
  diagnostics: readonly string[];
23
- saving: boolean;
71
+ background: SiteChromeBackgroundControlState;
24
72
  failure: string | null;
25
73
  applyAllowed: boolean;
26
74
  }> | Readonly<{
@@ -31,7 +79,7 @@ type SiteChromeCustomizeSurfaceState = Readonly<{
31
79
  currentLabel: string;
32
80
  options: readonly SiteChromeLookOption<FooterLookId | null>[];
33
81
  diagnostics: readonly string[];
34
- saving: boolean;
82
+ background: SiteChromeBackgroundControlState;
35
83
  failure: string | null;
36
84
  applyAllowed: boolean;
37
85
  }>;
@@ -39,6 +87,12 @@ type SiteChromeCustomizeContextValue = Readonly<{
39
87
  getSurfaceState: (surface: SiteChromeEditableSurfaceKind) => SiteChromeCustomizeSurfaceState;
40
88
  cycleSurfaceLook: (surface: SiteChromeEditableSurfaceKind, direction: 'prev' | 'next') => void;
41
89
  cycleSurfaceLayout: (surface: SiteChromeEditableSurfaceKind, direction: 'prev' | 'next') => void;
90
+ setHeaderBrandDisplay: (value: BrandDisplayMode) => void;
91
+ setHeaderLogoSize: (value: LogoSizePolicy) => void;
92
+ cycleSurfaceBackground: (surface: SiteChromeEditableSurfaceKind, direction: 'prev' | 'next') => void;
93
+ chooseSurfaceBackground: (surface: SiteChromeEditableSurfaceKind, override: SiteChromeBackgroundOverride) => void;
94
+ siteStyleHistory: SiteStyleHistoryController;
95
+ quickControlHistory: SiteChromeQuickControlHistoryController;
42
96
  }>;
43
97
  export type SiteChromeCustomizeProviderProps = Readonly<{
44
98
  children: ReactNode;
@@ -67,6 +121,6 @@ export type SiteChromeCustomizeProviderProps = Readonly<{
67
121
  footerSelectionContext?: Partial<FooterSelectionContext>;
68
122
  siteStyleAccess?: SiteStyleAccess;
69
123
  }>;
70
- export declare function SiteChromeCustomizeProvider({ children, siteId, apiClient, theme, themeId, selectionId, selectionVersion, selectionUpdatedAt, initialSelections, headerSelectionContext, footerSelectionContext, siteStyleAccess, }: SiteChromeCustomizeProviderProps): import("react/jsx-runtime").JSX.Element;
124
+ export declare function SiteChromeCustomizeProvider({ children, siteId, apiClient, theme, themeId, selectionId, selectionVersion, selectionUpdatedAt, initialSelections, headerSelectionContext, footerSelectionContext, siteStyleAccess, }: SiteChromeCustomizeProviderProps): React.JSX.Element;
71
125
  export declare function useSiteChromeCustomizeOptional(): SiteChromeCustomizeContextValue | null;
72
126
  export {};
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { ApiClient } from '../../../../api/src/request';
2
3
  import type { Theme } from '../../../../blocks/src/index';
3
4
  import { type ButtonPersonalityId } from '../../../../theme-core/src/buttons/index';
@@ -37,4 +38,4 @@ export type StyleConfiguratorProps = Readonly<{
37
38
  }> | null;
38
39
  siteStyleAccess: VisibleSiteStyleAccess;
39
40
  }>;
40
- export declare function StyleConfigurator({ siteId, apiClient, theme, selectionId, selectionVersion, selectionUpdatedAt, initialSelections, headerSelectionContext, footerSelectionContext, expandedRowRequest, siteStyleAccess, }: StyleConfiguratorProps): import("react/jsx-runtime").JSX.Element;
41
+ export declare function StyleConfigurator({ siteId, apiClient, theme, selectionId, selectionVersion, selectionUpdatedAt, initialSelections, headerSelectionContext, footerSelectionContext, expandedRowRequest, siteStyleAccess, }: StyleConfiguratorProps): React.JSX.Element;
@@ -14,6 +14,7 @@ import type { ButtonPersonalityId } from '../../../../theme-core/src/buttons/ind
14
14
  import type { PaletteOverrides, PaletteVariantId } from '../../../../theme-core/src/palette/index';
15
15
  import { type FooterLookId, type HeaderLayoutId, type HeaderLookId, type HeaderStyleId, type TypographyPresetId } from '../../../../theme-core/src/site-styles/index';
16
16
  import type { SelectionFallbackWarning, SiteStyleId } from '../../../../theme-core/src/site-styles/previewCompiler';
17
+ import { type EditorStagedSessionCapabilities, type EditorStagedSessionState } from '../../../../content-editor/src/editorTransactionState';
17
18
  export type StyleConfiguratorSaveStatus = Readonly<{
18
19
  kind: 'idle';
19
20
  }> | Readonly<{
@@ -52,6 +53,14 @@ export type SelectionSnapshot = Readonly<{
52
53
  typographyHeadingFontOverride: string | null;
53
54
  }>;
54
55
  type PaletteOverrideDrafts = Readonly<Partial<Record<PaletteVariantId, PaletteOverrides>>>;
56
+ type StyleConfiguratorTargetKey = 'design:site-style';
57
+ export type StyleConfiguratorHistoryEntry = Readonly<{
58
+ kind: 'site-style-design';
59
+ label: string;
60
+ previous: SelectionSnapshot;
61
+ next: SelectionSnapshot;
62
+ }>;
63
+ export type StyleConfiguratorStagedSession = EditorStagedSessionState<SelectionSnapshot, StyleConfiguratorHistoryEntry, StyleConfiguratorTargetKey>;
55
64
  export type StyleConfiguratorState = Readonly<{
56
65
  /**
57
66
  * Last persisted server snapshot. Updated on apply-success (and on
@@ -68,6 +77,7 @@ export type StyleConfiguratorState = Readonly<{
68
77
  notices: ReadonlyArray<StyleConfiguratorNotice>;
69
78
  paletteOverrideDrafts: PaletteOverrideDrafts;
70
79
  expandedRow: StyleConfiguratorExpandedRow;
80
+ stagedSession: StyleConfiguratorStagedSession;
71
81
  }>;
72
82
  export declare function createStyleConfiguratorState(base: SelectionSnapshot): StyleConfiguratorState;
73
83
  export declare function openRow(state: StyleConfiguratorState, row: Exclude<StyleConfiguratorExpandedRow, null>): StyleConfiguratorState;
@@ -77,6 +87,8 @@ export declare function openRow(state: StyleConfiguratorState, row: Exclude<Styl
77
87
  * `setOverrideTheme` call.
78
88
  */
79
89
  export declare function isPreviewingChange(state: StyleConfiguratorState): boolean;
90
+ export declare function deriveStyleConfiguratorCapabilities(state: StyleConfiguratorState): EditorStagedSessionCapabilities;
91
+ export declare function styleConfiguratorHistoryEntryForPersistedSelection(state: StyleConfiguratorState, persisted: SelectionSnapshot): StyleConfiguratorHistoryEntry | null;
80
92
  export declare function previewSiteStyle(state: StyleConfiguratorState, siteStyleId: SiteStyleId): StyleConfiguratorState;
81
93
  export declare function previewButtonPersonality(state: StyleConfiguratorState, buttonPersonalityId: ButtonPersonalityId): StyleConfiguratorState;
82
94
  export declare function previewHeaderLayout(state: StyleConfiguratorState, headerLayoutId: HeaderLayoutId): StyleConfiguratorState;
@@ -106,7 +118,7 @@ export declare function applyResolvedSelections(state: StyleConfiguratorState, i
106
118
  export declare function cancelPreview(state: StyleConfiguratorState): StyleConfiguratorState;
107
119
  export declare function markApplySaving(state: StyleConfiguratorState): StyleConfiguratorState;
108
120
  export declare function markApplySaved(state: StyleConfiguratorState, persisted: SelectionSnapshot): StyleConfiguratorState;
109
- export declare function markApplyFailed(state: StyleConfiguratorState, message: string): StyleConfiguratorState;
121
+ export declare function markApplyFailed(state: StyleConfiguratorState, message: string, failureKind?: 'retryable' | 'stale'): StyleConfiguratorState;
110
122
  export declare function toggleRow(state: StyleConfiguratorState, row: StyleConfiguratorExpandedRow): StyleConfiguratorState;
111
123
  export declare function dismissWarnings(state: StyleConfiguratorState): StyleConfiguratorState;
112
124
  export declare function dismissNotices(state: StyleConfiguratorState): StyleConfiguratorState;
@@ -116,5 +128,6 @@ export declare function dismissNotices(state: StyleConfiguratorState): StyleConf
116
128
  * changes the persisted selection out-of-band.
117
129
  */
118
130
  export declare function syncStyleConfiguratorState(state: StyleConfiguratorState, base: SelectionSnapshot): StyleConfiguratorState;
131
+ export declare function selectionSnapshotsEqual(a: SelectionSnapshot, b: SelectionSnapshot): boolean;
119
132
  export declare function paletteOverridesEqual(a: PaletteOverrides | null, b: PaletteOverrides | null): boolean;
120
133
  export {};
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { SubrouteNoticeModel } from './subrouteNotice';
2
3
  type SubrouteNoticeProps = {
3
4
  model: SubrouteNoticeModel;
@@ -9,5 +10,5 @@ type SubrouteNoticeProps = {
9
10
  * Render-only — all wording and the CTA target are produced by
10
11
  * {@link resolveSubrouteNotice}.
11
12
  */
12
- export declare function SubrouteNotice({ model }: SubrouteNoticeProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function SubrouteNotice({ model }: SubrouteNoticeProps): React.JSX.Element;
13
14
  export {};
@@ -0,0 +1,9 @@
1
+ import type { LinkedContentEditTarget, PreviewLinkedEntryFieldBinding } from '../../../../blocks/src/system/data/index';
2
+ export declare const LINKED_ENTRY_EDIT_EVENT: "riverbank:preview:linked-entry-edit";
3
+ export declare const LINKED_ENTRY_FIELD_FOCUS_EVENT: "riverbank:preview:linked-entry-field-focus";
4
+ export type LinkedEntryEditEvent = CustomEvent<LinkedContentEditTarget>;
5
+ export type LinkedEntryFieldFocusEvent = CustomEvent<PreviewLinkedEntryFieldBinding>;
6
+ export declare function dispatchLinkedEntryEditEvent(target: LinkedContentEditTarget): void;
7
+ export declare function dispatchLinkedEntryFieldFocusEvent(binding: PreviewLinkedEntryFieldBinding): void;
8
+ export declare function isLinkedEntryEditEvent(event: Event): event is LinkedEntryEditEvent;
9
+ export declare function isLinkedEntryFieldFocusEvent(event: Event): event is LinkedEntryFieldFocusEvent;
@@ -0,0 +1,51 @@
1
+ import type { BlockItem } from '../../../../editor-blocks/src/index';
2
+ export declare const PREVIEW_CHROME_EDGE_OFFSET_PX = 8;
3
+ export declare const DEFAULT_PREVIEW_CHROME_FLOATING_PLACEMENT: PreviewChromeFloatingPlacement;
4
+ export type HeaderClearance = Readonly<{
5
+ kind: 'none';
6
+ }> | Readonly<{
7
+ kind: 'overlay';
8
+ px: number;
9
+ }>;
10
+ export type PreviewChromeAnchorBox = Readonly<{
11
+ top: number;
12
+ right: number;
13
+ bottom: number;
14
+ height: number;
15
+ }>;
16
+ export type PreviewChromeFloatingPlacement = Readonly<{
17
+ kind: 'anchor-top-right';
18
+ topPx: number;
19
+ rightPx: number;
20
+ }> | Readonly<{
21
+ kind: 'anchor-top-right-clamped';
22
+ topPx: number;
23
+ rightPx: number;
24
+ minTopPx: number;
25
+ }> | Readonly<{
26
+ kind: 'viewport-top-right';
27
+ topPx: number;
28
+ rightPx: number;
29
+ }>;
30
+ export type PreviewChromeFloatingPosition = Readonly<{
31
+ topPx: number;
32
+ rightPx: number;
33
+ }>;
34
+ export declare function headerClearanceFromPx(px: number): HeaderClearance;
35
+ export declare function findFirstEditableContentBlockIndex(blocks: readonly Pick<BlockItem, 'kind'>[]): number | null;
36
+ export declare function blockReceivesHeaderClearance(blocks: readonly Pick<BlockItem, 'kind'>[], blockIndex: number): boolean;
37
+ export declare function planBlockToolbarPlacement(input: Readonly<{
38
+ blocks: readonly Pick<BlockItem, 'kind'>[];
39
+ blockIndex: number;
40
+ headerClearance: HeaderClearance;
41
+ }>): PreviewChromeFloatingPlacement;
42
+ export declare function planSiteChromeCustomizePlacement(input: Readonly<{
43
+ surface: 'header' | 'footer';
44
+ anchorBox: PreviewChromeAnchorBox | null;
45
+ }>): PreviewChromeFloatingPlacement;
46
+ export declare function resolvePreviewChromeFloatingPosition(input: Readonly<{
47
+ anchorBox: PreviewChromeAnchorBox | null;
48
+ containerTopEdgePx?: number;
49
+ containerRightEdgePx: number;
50
+ placement: PreviewChromeFloatingPlacement;
51
+ }>): PreviewChromeFloatingPosition;
@@ -0,0 +1,68 @@
1
+ import React, { type KeyboardEvent, type MouseEvent, type ReactNode, type Ref } from 'react';
2
+ export type CustomizeControlUnavailableReason = 'single-option' | 'preview-only';
3
+ export type CustomizeControlAvailability = Readonly<{
4
+ kind: 'available';
5
+ }> | Readonly<{
6
+ kind: 'unavailable';
7
+ reason: CustomizeControlUnavailableReason;
8
+ }>;
9
+ export type CustomizeCycleAvailabilityInput = Readonly<{
10
+ kind: 'available';
11
+ }> | Readonly<{
12
+ kind: CustomizeControlUnavailableReason;
13
+ }>;
14
+ export type CustomizePopoverController = Readonly<{
15
+ open: boolean;
16
+ close: () => void;
17
+ toggle: (event: MouseEvent<HTMLElement>) => void;
18
+ buttonRef: Ref<HTMLButtonElement>;
19
+ panelId: string;
20
+ descriptionId: string;
21
+ dialogRef: Ref<HTMLDivElement>;
22
+ registerInitialFocus: Ref<HTMLButtonElement>;
23
+ handleDialogKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
24
+ }>;
25
+ export declare function useCustomizePopoverController(): CustomizePopoverController;
26
+ export type CustomizePillButtonProps = Readonly<{
27
+ buttonRef: Ref<HTMLButtonElement>;
28
+ ariaLabel: string;
29
+ open: boolean;
30
+ controlsId: string;
31
+ onClick: (event: MouseEvent<HTMLButtonElement>) => void;
32
+ disabled?: boolean;
33
+ }>;
34
+ export declare function CustomizePillButton({ buttonRef, ariaLabel, open, controlsId, onClick, disabled, }: CustomizePillButtonProps): React.JSX.Element;
35
+ export type CustomizePopoverShellProps = Readonly<{
36
+ panelId: string;
37
+ descriptionId: string;
38
+ dialogLabel: string;
39
+ eyebrow: string;
40
+ title: string;
41
+ dialogRef: Ref<HTMLDivElement>;
42
+ closeButtonRef: Ref<HTMLButtonElement>;
43
+ onClose: () => void;
44
+ onKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
45
+ spacing?: 'normal' | 'compact';
46
+ children: ReactNode;
47
+ }>;
48
+ export declare function CustomizePopoverShell({ panelId, descriptionId, dialogLabel, eyebrow, title, dialogRef, closeButtonRef, onClose, onKeyDown, spacing, children, }: CustomizePopoverShellProps): React.JSX.Element;
49
+ export type CustomizeCycleRowProps = Readonly<{
50
+ label: string;
51
+ valueLabel: string;
52
+ previousLabel: string;
53
+ nextLabel: string;
54
+ availability: CustomizeControlAvailability;
55
+ onPrevious: () => void;
56
+ onNext: () => void;
57
+ }>;
58
+ export type CustomizeCycleControlPlan = CustomizeCycleRowProps;
59
+ export type CustomizePopoverControlPlan = Readonly<{
60
+ cycleRows: readonly CustomizeCycleControlPlan[];
61
+ }>;
62
+ export declare function CustomizeCycleRow({ label, valueLabel, previousLabel, nextLabel, availability, onPrevious, onNext, }: CustomizeCycleRowProps): React.JSX.Element;
63
+ export declare function cycleAvailability(input: CustomizeCycleAvailabilityInput): CustomizeControlAvailability;
64
+ export declare function cycleUnavailableReasonLabel(reason: CustomizeControlUnavailableReason): string;
65
+ export declare function cycleAvailabilityFromFlags(input: Readonly<{
66
+ canCycle: boolean;
67
+ applyAllowed: boolean;
68
+ }>): CustomizeControlAvailability;
@@ -4,7 +4,7 @@ import type { PreviewCustomizeAction } from '../blocks/previewCustomizeActions';
4
4
  import type { SystemCustomizeFacetHistorySelection } from '../../../../blocks/src/system/customize/facets';
5
5
  import { type BackgroundOverride } from '../../../../blocks/src/system/customize/backgrounds';
6
6
  type PreviewLoadedEditorModel = PageDesignEditorReadModel;
7
- export type PreviewCustomizeHistoryEntry = Readonly<{
7
+ export type PreviewCustomizeAtomicHistoryEntry = Readonly<{
8
8
  kind: 'layout';
9
9
  blockId: PreviewCustomizeActionBlockId;
10
10
  fromLayoutVariantKey: LayoutVariantKey;
@@ -30,6 +30,10 @@ export type PreviewCustomizeHistoryEntry = Readonly<{
30
30
  fromBoundaryOptionId: BoundaryOptionId | null;
31
31
  toBoundaryOptionId: BoundaryOptionId | null;
32
32
  }>;
33
+ export type PreviewCustomizeHistoryEntry = PreviewCustomizeAtomicHistoryEntry | Readonly<{
34
+ kind: 'batch';
35
+ entries: readonly PreviewCustomizeAtomicHistoryEntry[];
36
+ }>;
33
37
  type PreviewCustomizeActionBlockId = DesignBlockId;
34
38
  export type PreviewCustomizeHistoryPresent = Readonly<{
35
39
  editorModel: PreviewLoadedEditorModel;
@@ -40,12 +44,15 @@ export declare function createPreviewCustomizeHistoryState(editorModel: PreviewL
40
44
  export declare function canUndoPreviewCustomizeHistory(state: PreviewCustomizeHistoryState): boolean;
41
45
  export declare function canRedoPreviewCustomizeHistory(state: PreviewCustomizeHistoryState): boolean;
42
46
  export declare function pushPreviewCustomizeHistoryEntry(state: PreviewCustomizeHistoryState, entry: PreviewCustomizeHistoryEntry, editorModel: PreviewLoadedEditorModel): PreviewCustomizeHistoryState;
47
+ export declare function previewCustomizeBatchHistoryEntry(entries: readonly (PreviewCustomizeHistoryEntry | null)[]): PreviewCustomizeHistoryEntry | null;
43
48
  export declare function replacePreviewCustomizeHistoryModel(state: PreviewCustomizeHistoryState, editorModel: PreviewLoadedEditorModel): PreviewCustomizeHistoryState;
44
49
  export declare function undoPreviewCustomizeHistory(state: PreviewCustomizeHistoryState): PreviewCustomizeHistoryState;
45
50
  export declare function redoPreviewCustomizeHistory(state: PreviewCustomizeHistoryState): PreviewCustomizeHistoryState;
46
51
  export declare function previewCustomizeHistoryEntryFromAction(editorModel: PreviewLoadedEditorModel, action: PreviewCustomizeAction): PreviewCustomizeHistoryEntry | null;
47
52
  export declare function previewCustomizeUndoActionForEntry(entry: PreviewCustomizeHistoryEntry, editorModel: PreviewLoadedEditorModel): PreviewCustomizeAction;
48
53
  export declare function previewCustomizeRedoActionForEntry(entry: PreviewCustomizeHistoryEntry, editorModel: PreviewLoadedEditorModel): PreviewCustomizeAction;
54
+ export declare function previewCustomizeUndoActionsForEntry(entry: PreviewCustomizeHistoryEntry, editorModel: PreviewLoadedEditorModel): readonly PreviewCustomizeAction[];
55
+ export declare function previewCustomizeRedoActionsForEntry(entry: PreviewCustomizeHistoryEntry, editorModel: PreviewLoadedEditorModel): readonly PreviewCustomizeAction[];
49
56
  export declare function previewCustomizeHistoryPresentEquals(left: PreviewCustomizeHistoryPresent, right: PreviewCustomizeHistoryPresent): boolean;
50
57
  export declare function contentRevisionIdForBlock(editorModel: PreviewLoadedEditorModel, blockId: PreviewCustomizeActionBlockId): string | null;
51
58
  export {};
@@ -1,6 +1,7 @@
1
1
  import type { APIEndpoints } from '../../../../api/src/index';
2
2
  import type { PreviewCustomizeAction } from '../blocks/previewCustomizeActions';
3
3
  import { type PreviewCustomizeHistoryEntry, type PreviewCustomizeHistoryState } from './previewCustomizeHistory';
4
+ import { type EditorSaveBatch, type EditorTransaction } from '../../../../content-editor/src/editorTransactionState';
4
5
  type ApiPageDesignEditorStateResponse = NonNullable<APIEndpoints['getPageDesignEditorState']['response']>;
5
6
  type LoadedPageDesignEditorState = Extract<ApiPageDesignEditorStateResponse, Readonly<{
6
7
  kind: 'loaded';
@@ -45,23 +46,24 @@ export type PreviewCustomizeMutationState = Readonly<{
45
46
  actions: readonly PreviewCustomizePendingAction[];
46
47
  }> | Readonly<{
47
48
  kind: 'applying';
48
- action: PreviewCustomizeAction;
49
- historyEntry: PreviewCustomizeHistoryEntry | null;
49
+ batch: PreviewCustomizeSaveBatch;
50
50
  queuedActions: readonly PreviewCustomizePendingAction[];
51
51
  }> | Readonly<{
52
52
  kind: 'undoing';
53
- action: PreviewCustomizeAction;
53
+ actions: readonly PreviewCustomizeAction[];
54
54
  entry: PreviewCustomizeHistoryEntry;
55
55
  }> | Readonly<{
56
56
  kind: 'redoing';
57
- action: PreviewCustomizeAction;
57
+ actions: readonly PreviewCustomizeAction[];
58
58
  entry: PreviewCustomizeHistoryEntry;
59
59
  }> | Readonly<{
60
60
  kind: 'stale';
61
61
  message: string;
62
+ actions: readonly PreviewCustomizePendingAction[];
62
63
  }> | Readonly<{
63
64
  kind: 'failed';
64
65
  message: string;
66
+ actions: readonly PreviewCustomizePendingAction[];
65
67
  }>;
66
68
  export type PreviewCustomizeWorkflowState = Readonly<{
67
69
  kind: 'unsupported';
@@ -79,14 +81,14 @@ export type PreviewCustomizeWorkflowState = Readonly<{
79
81
  history: PreviewCustomizeHistoryState;
80
82
  mutation: PreviewCustomizeMutationState;
81
83
  }>;
82
- type PreviewCustomizePendingAction = Readonly<{
83
- action: PreviewCustomizeAction;
84
- historyEntry: PreviewCustomizeHistoryEntry | null;
85
- }>;
84
+ type PreviewCustomizeTargetKey = `block:${string}:layout` | `block:${string}:look` | `block:${string}:facet:${string}` | `block:${string}:background` | `boundary:${string}:${string}`;
85
+ type PreviewCustomizePendingAction = EditorTransaction<PreviewCustomizeAction, PreviewCustomizeHistoryEntry, PreviewCustomizeTargetKey>;
86
+ type PreviewCustomizeSaveBatch = EditorSaveBatch<PreviewCustomizeAction, PreviewCustomizeHistoryEntry, PreviewCustomizeTargetKey>;
86
87
  export type PreviewCustomizeBeginResult = Readonly<{
87
88
  kind: 'started';
88
89
  state: PreviewCustomizeWorkflowState;
89
- action: PreviewCustomizeAction;
90
+ actions: readonly PreviewCustomizeAction[];
91
+ recordsHistoryEntry: boolean;
90
92
  }> | Readonly<{
91
93
  kind: 'skipped';
92
94
  reason: PreviewCustomizeSkipReason;
@@ -0,0 +1,18 @@
1
+ export type PreviewDesignHistoryDomainId = 'site-style-design' | 'site-chrome-quick-controls' | 'theme-customize';
2
+ export type PreviewDesignHistoryOrderState = Readonly<{
3
+ past: readonly PreviewDesignHistoryDomainId[];
4
+ future: readonly PreviewDesignHistoryDomainId[];
5
+ }>;
6
+ export type PreviewDesignHistoryCommand = 'undo' | 'redo';
7
+ export type PreviewDesignHistoryDomainCapabilities = Readonly<{
8
+ canUndo: boolean;
9
+ canRedo: boolean;
10
+ isPending: boolean;
11
+ isStale: boolean;
12
+ }>;
13
+ export declare function createPreviewDesignHistoryOrderState(): PreviewDesignHistoryOrderState;
14
+ export declare function recordPreviewDesignHistoryDomain(state: PreviewDesignHistoryOrderState, domainId: PreviewDesignHistoryDomainId): PreviewDesignHistoryOrderState;
15
+ export declare function confirmPreviewDesignHistoryUndo(state: PreviewDesignHistoryOrderState, domainId: PreviewDesignHistoryDomainId): PreviewDesignHistoryOrderState;
16
+ export declare function confirmPreviewDesignHistoryRedo(state: PreviewDesignHistoryOrderState, domainId: PreviewDesignHistoryDomainId): PreviewDesignHistoryOrderState;
17
+ export declare function selectPreviewDesignHistoryDomain(state: PreviewDesignHistoryOrderState, command: PreviewDesignHistoryCommand, capabilities: Readonly<Record<PreviewDesignHistoryDomainId, PreviewDesignHistoryDomainCapabilities>>): PreviewDesignHistoryDomainId | null;
18
+ export declare function previewDesignHistoryDomainForCommand(state: PreviewDesignHistoryOrderState, command: PreviewDesignHistoryCommand): PreviewDesignHistoryDomainId | null;
@@ -1,4 +1,4 @@
1
- export type PreviewUndoDomainId = 'content' | 'theme-customize';
1
+ export type PreviewUndoDomainId = 'content' | 'preview-design-history' | 'theme-customize' | 'site-style-design';
2
2
  export type PreviewUndoDomainStatus = 'idle' | 'pending' | 'stale' | 'failed';
3
3
  export type PreviewUndoFocusOwner = 'preview-customize' | 'content' | 'native';
4
4
  export type PreviewUndoDomainOwnership = Readonly<{
@@ -0,0 +1,41 @@
1
+ import type { Theme } from '../../../../blocks/src/index';
2
+ import type { BrandDisplayMode, HeaderSelectionContext, LogoSizePolicy } from '../../../../theme-core/src/site-styles/index';
3
+ export type HeaderBrandPreferences = Readonly<{
4
+ brandDisplay: BrandDisplayMode;
5
+ logoSize: LogoSizePolicy;
6
+ }>;
7
+ export type HeaderBrandDisplayOption = Readonly<{
8
+ value: BrandDisplayMode;
9
+ label: string;
10
+ disabled?: boolean;
11
+ }>;
12
+ export type HeaderLogoSizeOption = Readonly<{
13
+ value: LogoSizePolicy;
14
+ label: string;
15
+ }>;
16
+ export type HeaderBrandControlState = Readonly<{
17
+ kind: 'logo-available';
18
+ preferences: HeaderBrandPreferences;
19
+ brandDisplayOptions: readonly HeaderBrandDisplayOption[];
20
+ logoSizeOptions: readonly HeaderLogoSizeOption[];
21
+ }> | Readonly<{
22
+ kind: 'no-logo';
23
+ preferences: HeaderBrandPreferences;
24
+ brandDisplayOptions: readonly HeaderBrandDisplayOption[];
25
+ logoSizeOptions: readonly HeaderLogoSizeOption[];
26
+ }>;
27
+ export declare const DEFAULT_HEADER_BRAND_PREFERENCES: HeaderBrandPreferences;
28
+ export declare const HEADER_LOGO_SIZE_OPTIONS: readonly HeaderLogoSizeOption[];
29
+ export declare function createHeaderBrandControlState({ theme, headerSelectionContext, }: {
30
+ theme: Theme | null;
31
+ headerSelectionContext: Partial<HeaderSelectionContext> | undefined;
32
+ }): HeaderBrandControlState;
33
+ export declare function createHeaderBrandControlStateFromPreferences({ preferences, headerSelectionContext, }: {
34
+ preferences: HeaderBrandPreferences;
35
+ headerSelectionContext: Partial<HeaderSelectionContext> | undefined;
36
+ }): HeaderBrandControlState;
37
+ export declare function readHeaderBrandPreferences(theme: Theme | null): HeaderBrandPreferences;
38
+ export declare function normalizeHeaderBrandPreferences(preferences: HeaderBrandPreferences, hasLogo: boolean): HeaderBrandPreferences;
39
+ export declare function withHeaderBrandThemePreferences(theme: Theme, preferences: HeaderBrandPreferences): Theme;
40
+ export declare function withHeaderBrandPreferences(context: Partial<HeaderSelectionContext> | undefined, preferences: HeaderBrandPreferences): Partial<HeaderSelectionContext> | undefined;
41
+ export declare function hasLogoInHeaderSelectionContext(context: Partial<HeaderSelectionContext> | undefined): boolean;
@@ -0,0 +1,120 @@
1
+ import { type HistoryState } from '../../../../content-editor/src/index';
2
+ import { type BrandDisplayMode, type FooterLookId, type LogoSizePolicy, type SiteChromeBackgroundOverride, type SiteChromeBackgroundPreferences } from '../../../../theme-core/src/site-styles/index';
3
+ import type { SelectionSnapshot } from './StyleConfigurator.state';
4
+ import type { HeaderBrandPreferences } from './siteChromeBrandPreferences';
5
+ type HeaderLayoutSelection = Pick<SelectionSnapshot, 'headerLayoutId' | 'headerStyleId' | 'headerLookId'>;
6
+ type HeaderStyleSelection = Pick<SelectionSnapshot, 'headerStyleId' | 'headerLookId'>;
7
+ export type SiteChromeQuickControlHistoryEntry = Readonly<{
8
+ kind: 'header-layout';
9
+ previous: HeaderLayoutSelection;
10
+ next: HeaderLayoutSelection;
11
+ }> | Readonly<{
12
+ kind: 'header-style';
13
+ previous: HeaderStyleSelection;
14
+ next: HeaderStyleSelection;
15
+ }> | Readonly<{
16
+ kind: 'footer-look';
17
+ previous: FooterLookId | null;
18
+ next: FooterLookId | null;
19
+ }> | Readonly<{
20
+ kind: 'header-background';
21
+ previous: SiteChromeBackgroundOverride;
22
+ next: SiteChromeBackgroundOverride;
23
+ }> | Readonly<{
24
+ kind: 'footer-background';
25
+ previous: SiteChromeBackgroundOverride;
26
+ next: SiteChromeBackgroundOverride;
27
+ }> | Readonly<{
28
+ kind: 'header-brand-display';
29
+ previous: BrandDisplayMode;
30
+ next: BrandDisplayMode;
31
+ }> | Readonly<{
32
+ kind: 'header-logo-size';
33
+ previous: LogoSizePolicy;
34
+ next: LogoSizePolicy;
35
+ }>;
36
+ export type SiteChromeQuickControlHistoryPresent = Readonly<{
37
+ selection: SelectionSnapshot;
38
+ headerBrandPreferences: HeaderBrandPreferences;
39
+ backgroundPreferences: SiteChromeBackgroundPreferences;
40
+ entry: SiteChromeQuickControlHistoryEntry | null;
41
+ }>;
42
+ type SiteChromeQuickControlHistoryPresentInput = Readonly<{
43
+ selection: SelectionSnapshot;
44
+ headerBrandPreferences: HeaderBrandPreferences;
45
+ backgroundPreferences?: SiteChromeBackgroundPreferences;
46
+ }>;
47
+ export type SiteChromeQuickControlReplayPlan = Readonly<{
48
+ kind: 'selection';
49
+ surface: 'header' | 'footer';
50
+ selection: SelectionSnapshot;
51
+ }> | Readonly<{
52
+ kind: 'brand-preferences';
53
+ preferences: HeaderBrandPreferences;
54
+ }> | Readonly<{
55
+ kind: 'background-preferences';
56
+ preferences: SiteChromeBackgroundPreferences;
57
+ }>;
58
+ export type SiteChromeQuickControlHistoryMutation = Readonly<{
59
+ kind: 'idle';
60
+ }> | Readonly<{
61
+ kind: 'undoing';
62
+ entry: SiteChromeQuickControlHistoryEntry;
63
+ base: SiteChromeQuickControlHistoryPresent;
64
+ target: SiteChromeQuickControlReplayPlan;
65
+ }> | Readonly<{
66
+ kind: 'redoing';
67
+ entry: SiteChromeQuickControlHistoryEntry;
68
+ base: SiteChromeQuickControlHistoryPresent;
69
+ target: SiteChromeQuickControlReplayPlan;
70
+ }> | Readonly<{
71
+ kind: 'failed';
72
+ message: string;
73
+ }> | Readonly<{
74
+ kind: 'stale';
75
+ message: string;
76
+ }>;
77
+ export type SiteChromeQuickControlHistoryState = Readonly<{
78
+ history: HistoryState<SiteChromeQuickControlHistoryPresent>;
79
+ mutation: SiteChromeQuickControlHistoryMutation;
80
+ }>;
81
+ export type SiteChromeQuickControlHistoryBeginResult = Readonly<{
82
+ kind: 'started';
83
+ state: SiteChromeQuickControlHistoryState;
84
+ entry: SiteChromeQuickControlHistoryEntry;
85
+ base: SiteChromeQuickControlHistoryPresent;
86
+ target: SiteChromeQuickControlReplayPlan;
87
+ }> | Readonly<{
88
+ kind: 'skipped';
89
+ reason: SiteChromeQuickControlHistorySkipReason;
90
+ }>;
91
+ export type SiteChromeQuickControlHistorySkipReason = 'not-ready' | 'mutation-pending' | 'stale' | 'cannot-undo' | 'cannot-redo' | 'no-history-entry';
92
+ export type SiteChromeQuickControlHistoryFailure = Readonly<{
93
+ kind: 'retryable' | 'stale';
94
+ message: string;
95
+ }>;
96
+ export type SiteChromeQuickControlSelectionTarget = 'header-layout' | 'header-style' | 'footer-look';
97
+ export type SiteChromeQuickControlBrandTarget = 'header-brand-display' | 'header-logo-size';
98
+ export type SiteChromeQuickControlBackgroundTarget = 'header-background' | 'footer-background';
99
+ export declare function createSiteChromeQuickControlHistoryState(present: SiteChromeQuickControlHistoryPresentInput): SiteChromeQuickControlHistoryState;
100
+ export declare function recordSiteChromeQuickControlHistoryEntry(state: SiteChromeQuickControlHistoryState, input: Readonly<{
101
+ entry: SiteChromeQuickControlHistoryEntry;
102
+ previous?: SiteChromeQuickControlHistoryPresentInput;
103
+ persisted: SiteChromeQuickControlHistoryPresentInput;
104
+ }>): SiteChromeQuickControlHistoryState;
105
+ export declare function quickControlHistoryEntryFromSelectionChange(previous: SelectionSnapshot, next: SelectionSnapshot, target: SiteChromeQuickControlSelectionTarget): SiteChromeQuickControlHistoryEntry | null;
106
+ export declare function quickControlHistoryEntryFromBrandPreferenceChange(previous: HeaderBrandPreferences, next: HeaderBrandPreferences, target: SiteChromeQuickControlBrandTarget): SiteChromeQuickControlHistoryEntry | null;
107
+ export declare function quickControlHistoryEntryFromBackgroundPreferenceChange(previous: SiteChromeBackgroundPreferences, next: SiteChromeBackgroundPreferences, target: SiteChromeQuickControlBackgroundTarget): SiteChromeQuickControlHistoryEntry | null;
108
+ export declare function beginSiteChromeQuickControlHistoryUndo(state: SiteChromeQuickControlHistoryState): SiteChromeQuickControlHistoryBeginResult;
109
+ export declare function beginSiteChromeQuickControlHistoryRedo(state: SiteChromeQuickControlHistoryState): SiteChromeQuickControlHistoryBeginResult;
110
+ export declare function confirmSiteChromeQuickControlHistoryMutation(state: SiteChromeQuickControlHistoryState, persisted: SiteChromeQuickControlHistoryPresentInput): SiteChromeQuickControlHistoryState;
111
+ export declare function rejectSiteChromeQuickControlHistoryMutation(state: SiteChromeQuickControlHistoryState, failure: SiteChromeQuickControlHistoryFailure): SiteChromeQuickControlHistoryState;
112
+ export declare function cancelSiteChromeQuickControlHistoryMutation(state: SiteChromeQuickControlHistoryState, mutation: Extract<SiteChromeQuickControlHistoryMutation, {
113
+ kind: 'undoing' | 'redoing';
114
+ }>): SiteChromeQuickControlHistoryState;
115
+ export declare function siteChromeQuickControlHistoryCanUndo(state: SiteChromeQuickControlHistoryState | null): boolean;
116
+ export declare function siteChromeQuickControlHistoryCanRedo(state: SiteChromeQuickControlHistoryState | null): boolean;
117
+ export declare function siteChromeQuickControlHistoryIsPending(state: SiteChromeQuickControlHistoryState | null): boolean;
118
+ export declare function siteChromeQuickControlHistoryIsStale(state: SiteChromeQuickControlHistoryState | null): boolean;
119
+ export declare function siteChromeQuickControlHistoryFailureMessage(state: SiteChromeQuickControlHistoryState | null): string | null;
120
+ export {};
@@ -0,0 +1,30 @@
1
+ import type { APIEndpoints } from '../../../../api/src/index';
2
+ import type { Theme } from '../../../../blocks/src/index';
3
+ import type { FooterSelectionContext, HeaderSelectionContext, SiteChromeBackgroundPreferences } from '../../../../theme-core/src/site-styles/index';
4
+ import type { CuratedSiteStyle } from '../../../../theme-core/src/site-styles/previewCompiler';
5
+ import type { SelectionSnapshot } from './StyleConfigurator.state';
6
+ import { type SiteStylePreviewPlan } from './siteStylePreviewPlanner';
7
+ import type { SiteChromeEditableSurfaceKind } from './SiteChromeEditableSurface';
8
+ import { type HeaderBrandPreferences } from './siteChromeBrandPreferences';
9
+ type SaveSiteChromeLookSelectionBody = NonNullable<APIEndpoints['saveSiteChromeLookSelection']['body']>;
10
+ export type SiteChromeSavePlan = Readonly<{
11
+ compiled: SiteStylePreviewPlan;
12
+ themeOverlay: Theme;
13
+ body: SaveSiteChromeLookSelectionBody;
14
+ }>;
15
+ export type BuildSiteChromeSavePlanInput = Readonly<{
16
+ surface: SiteChromeEditableSurfaceKind;
17
+ siteStyle: CuratedSiteStyle;
18
+ selection: SelectionSnapshot;
19
+ baseTheme: Theme | null | undefined;
20
+ headerSelectionContext: Partial<HeaderSelectionContext> | undefined;
21
+ footerSelectionContext: Partial<FooterSelectionContext> | undefined;
22
+ headerBrandPreferences: HeaderBrandPreferences;
23
+ backgroundPreferences: SiteChromeBackgroundPreferences;
24
+ themeId: string | null;
25
+ selectionId: string | null;
26
+ baseSelectionUpdatedAt: string | null;
27
+ }>;
28
+ export declare function buildSiteChromeSavePlan({ surface, siteStyle, selection, baseTheme, headerSelectionContext, footerSelectionContext, headerBrandPreferences, backgroundPreferences, themeId, selectionId, baseSelectionUpdatedAt, }: BuildSiteChromeSavePlanInput): SiteChromeSavePlan;
29
+ export declare function siteChromeSavePlanBodyForBaseRevision(plan: SiteChromeSavePlan, baseSelectionUpdatedAt: string | null): SaveSiteChromeLookSelectionBody;
30
+ export {};