@riverbankcms/sdk 0.147.0 → 0.149.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 (442) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/dist/{PreviewEditorSidebar-DtpB3_sS.mjs → PreviewEditorSidebar-DBKln68M.mjs} +301 -205
  4. package/dist/{PreviewEditorUI-DxTLgaHo.mjs → PreviewEditorUI-DpRX4Mum.mjs} +68 -63
  5. package/dist/{PreviewQueryProvider-Dd4dxOiU.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
  6. package/dist/{SdkPreviewModeRuntime-DMMNCngt.mjs → SdkPreviewModeRuntime-DJPmPY-r.mjs} +1247 -541
  7. package/dist/{SiteChromeCustomizeContext-DQXZXiqS.mjs → SiteChromeCustomizeContext-JYA0cJ_Z.mjs} +209720 -204978
  8. package/dist/_dts/ai/src/contracts/proposals.d.ts +0 -33
  9. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +0 -3
  10. package/dist/_dts/api/src/accessAdmin.d.ts +0 -4
  11. package/dist/_dts/api/src/accountApi.d.ts +1 -1
  12. package/dist/_dts/api/src/admin.d.ts +22 -22
  13. package/dist/_dts/api/src/aiPatch.d.ts +2 -2
  14. package/dist/_dts/api/src/aiPlayground.d.ts +1 -0
  15. package/dist/_dts/api/src/analytics.d.ts +2 -2
  16. package/dist/_dts/api/src/apiEndpointTypes.d.ts +2 -0
  17. package/dist/_dts/api/src/appointmentSetup.d.ts +2 -2
  18. package/dist/_dts/api/src/auth.d.ts +10 -10
  19. package/dist/_dts/api/src/availability.d.ts +6 -6
  20. package/dist/_dts/api/src/billing.d.ts +42 -15
  21. package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +8 -0
  22. package/dist/_dts/api/src/billingEndpointTypes.d.ts +15 -6
  23. package/dist/_dts/api/src/blocks.d.ts +15 -14
  24. package/dist/_dts/api/src/blocksKeys.d.ts +2 -0
  25. package/dist/_dts/api/src/bookingConfig.d.ts +33 -50
  26. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -6
  27. package/dist/_dts/api/src/bookingOperations.d.ts +9 -11
  28. package/dist/_dts/api/src/bookingRecords.d.ts +16 -11
  29. package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +5 -5
  30. package/dist/_dts/api/src/bookings.d.ts +7 -7
  31. package/dist/_dts/api/src/calendar.d.ts +9 -9
  32. package/dist/_dts/api/src/clientErrorReporting.d.ts +11 -0
  33. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -8
  34. package/dist/_dts/api/src/common/cancellation.d.ts +23 -0
  35. package/dist/_dts/api/src/common/envelope.d.ts +2 -2
  36. package/dist/_dts/api/src/content-editor.d.ts +2 -2
  37. package/dist/_dts/api/src/contentEntries.d.ts +17 -48
  38. package/dist/_dts/api/src/contentRuntime.d.ts +51 -37
  39. package/dist/_dts/api/src/contentTypes.d.ts +11 -11
  40. package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +6 -6
  41. package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +1 -1
  42. package/dist/_dts/api/src/documentLifecycle.d.ts +67 -0
  43. package/dist/_dts/api/src/domains.d.ts +16 -16
  44. package/dist/_dts/api/src/editLeaseEndpoints.d.ts +72 -0
  45. package/dist/_dts/api/src/emailSettings.d.ts +4 -4
  46. package/dist/_dts/api/src/endpoints.d.ts +135 -51
  47. package/dist/_dts/api/src/eventEmailTemplates.d.ts +2 -2
  48. package/dist/_dts/api/src/eventManagementContracts.d.ts +29 -7
  49. package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +0 -8
  50. package/dist/_dts/api/src/eventPageWords.d.ts +7 -12
  51. package/dist/_dts/api/src/footerSettings.d.ts +6 -6
  52. package/dist/_dts/api/src/index.d.ts +8 -7
  53. package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
  54. package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
  55. package/dist/_dts/api/src/navigation.d.ts +5 -5
  56. package/dist/_dts/api/src/pageSurfaceEditorEndpoints.d.ts +55 -0
  57. package/dist/_dts/api/src/pageSurfaceEndpoints.d.ts +28 -7
  58. package/dist/_dts/api/src/pages.d.ts +7 -7
  59. package/dist/_dts/api/src/performance.d.ts +1 -1
  60. package/dist/_dts/api/src/public/index.d.ts +1 -1
  61. package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +4 -2
  62. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +6 -29
  63. package/dist/_dts/api/src/redirects.d.ts +3 -3
  64. package/dist/_dts/api/src/request.d.ts +11 -2
  65. package/dist/_dts/api/src/resources.d.ts +4 -4
  66. package/dist/_dts/api/src/routes.d.ts +8 -3
  67. package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -2
  68. package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +21 -0
  69. package/dist/_dts/api/src/sdkContracts.d.ts +5 -28
  70. package/dist/_dts/api/src/sdkEventEndpointDefinitions.d.ts +1 -1
  71. package/dist/_dts/api/src/sdkEventOccurrenceRequestContracts.d.ts +43 -0
  72. package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +4 -2
  73. package/dist/_dts/api/src/sdkPullEventContracts.d.ts +9 -2
  74. package/dist/_dts/api/src/seo.d.ts +4 -4
  75. package/dist/_dts/api/src/services.d.ts +4 -4
  76. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +15 -8
  77. package/dist/_dts/api/src/siteMembers.d.ts +10 -10
  78. package/dist/_dts/api/src/siteOnboarding.d.ts +14 -0
  79. package/dist/_dts/api/src/siteOperations.d.ts +6 -2
  80. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +7 -3
  81. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +5 -12
  82. package/dist/_dts/api/src/siteRuntimeEntry.d.ts +31 -0
  83. package/dist/_dts/billing/src/checkout/platform.d.ts +77 -0
  84. package/dist/_dts/billing/src/components/index.d.ts +25 -40
  85. package/dist/_dts/billing/src/membership/index.d.ts +1 -3
  86. package/dist/_dts/billing/src/plans/entitlements.d.ts +80 -0
  87. package/dist/_dts/billing/src/plans/registry.d.ts +16 -16
  88. package/dist/_dts/billing/src/plans/standing.d.ts +9 -2
  89. package/dist/_dts/billing/src/plans/types.d.ts +5 -15
  90. package/dist/_dts/billing/src/site-arrangements.d.ts +2 -2
  91. package/dist/_dts/billing/src/subscriptions/standingEvidence.d.ts +2 -4
  92. package/dist/_dts/billing/src/subscriptions/store.d.ts +17 -11
  93. package/dist/_dts/block-form/src/backend/store-backend.d.ts +6 -7
  94. package/dist/_dts/block-form/src/backend/types.d.ts +7 -0
  95. package/dist/_dts/block-form/src/widgets/FieldFrame.d.ts +3 -1
  96. package/dist/_dts/blocks/src/client/events.d.ts +3 -0
  97. package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
  98. package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +2 -2
  99. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +54 -14
  100. package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +4 -13
  101. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +2 -0
  102. package/dist/_dts/blocks/src/portal/types.d.ts +9 -8
  103. package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +2 -1
  104. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +3 -1
  105. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +28 -28
  106. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +7 -2
  107. package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +84 -160
  108. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
  109. package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +31 -4
  110. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -2
  111. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  112. package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +4 -2
  113. package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +3 -1
  114. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +6 -0
  115. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +6 -0
  116. package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +4 -0
  117. package/dist/_dts/blocks/src/system/runtime/components/booking/SuccessMessage.d.ts +4 -1
  118. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +72 -12
  119. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +36 -6
  120. package/dist/_dts/blocks/src/system/runtime/hooks/useBookingNowIso.d.ts +8 -0
  121. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +3 -0
  122. package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +2 -1
  123. package/dist/_dts/blocks/src/system/runtime/hooks/usePolling.d.ts +7 -48
  124. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.checkout-return-context.d.ts +7 -0
  125. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.completion.d.ts +3 -1
  126. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
  127. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +9 -0
  128. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.payment-confirmation.d.ts +13 -0
  129. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +17 -2
  130. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-actions.d.ts +8 -0
  131. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-handler.d.ts +1 -0
  132. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +1 -0
  133. package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +2 -1
  134. package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
  135. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +14 -2
  136. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
  137. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts +5 -0
  138. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +2 -0
  139. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +4 -1
  140. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +3 -3
  141. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +2 -0
  142. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +2 -5
  143. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +4 -0
  144. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +9 -5
  145. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +6 -0
  146. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +37 -3
  147. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.client.d.ts +1 -1
  148. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +16 -1
  149. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardPresentations.d.ts +13 -0
  150. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +29 -29
  151. package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +1 -14
  152. package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.state.d.ts +12 -0
  153. package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +54 -6
  154. package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +7 -2
  155. package/dist/_dts/blocks/src/system/runtime/shared/components/DemoBookingPortalAccess.d.ts +22 -0
  156. package/dist/_dts/blocks/src/system/runtime/shared/components/DemoPortalSignInLink.d.ts +4 -0
  157. package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -0
  158. package/dist/_dts/blocks/src/system/runtime/shared/utils/demoBookingPassStorage.d.ts +10 -0
  159. package/dist/_dts/blocks/src/system/runtime/shared/utils/demoPortalMagicLink.d.ts +29 -0
  160. package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +54 -0
  161. package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +58 -13
  162. package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
  163. package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +16 -21
  164. package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +23 -40
  165. package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +2 -2
  166. package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
  167. package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
  168. package/dist/_dts/commerce/src/purchase/index.d.ts +1 -3
  169. package/dist/_dts/commerce/src/purchase/membershipOrderItemMetadata.d.ts +4 -0
  170. package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +9 -4
  171. package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +13 -1
  172. package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +5 -0
  173. package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +3 -1
  174. package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +7 -1
  175. package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +1 -1
  176. package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +2 -2
  177. package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +6 -0
  178. package/dist/_dts/commerce/src/purchase/types.d.ts +2 -1
  179. package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +2 -7
  180. package/dist/_dts/content-editor/src/controller/EditLeaseController.d.ts +39 -0
  181. package/dist/_dts/content-editor/src/controller/EditorWriteGate.d.ts +38 -0
  182. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +25 -61
  183. package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseBanner.d.ts +7 -0
  184. package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseControllers.d.ts +14 -0
  185. package/dist/_dts/content-editor/src/controller/deriveEditorUnpublishedState.d.ts +6 -0
  186. package/dist/_dts/content-editor/src/controller/documentValueBaseline.d.ts +25 -0
  187. package/dist/_dts/content-editor/src/controller/editLeaseHandover.d.ts +30 -0
  188. package/dist/_dts/content-editor/src/controller/editLeaseLossSignal.d.ts +6 -0
  189. package/dist/_dts/content-editor/src/controller/editLeaseNotice.d.ts +28 -0
  190. package/dist/_dts/content-editor/src/controller/editorClientId.d.ts +2 -0
  191. package/dist/_dts/content-editor/src/controller/editorEditability.d.ts +38 -0
  192. package/dist/_dts/content-editor/src/controller/editorLeaseParticipation.d.ts +34 -0
  193. package/dist/_dts/content-editor/src/controller/normalizedMetadataBaseline.d.ts +29 -0
  194. package/dist/_dts/content-editor/src/controller/pageSurfaceDocumentBaselines.d.ts +14 -0
  195. package/dist/_dts/content-editor/src/controller/pageSurfaceLifecycle.d.ts +11 -0
  196. package/dist/_dts/content-editor/src/controller/planDocumentBaselineRefresh.d.ts +19 -0
  197. package/dist/_dts/content-editor/src/controller/readDocumentLeaseBaselines.d.ts +19 -0
  198. package/dist/_dts/content-editor/src/controller/refreshDocumentLeaseBaseline.d.ts +12 -0
  199. package/dist/_dts/content-editor/src/controller/refreshLinkedEntry.d.ts +17 -0
  200. package/dist/_dts/content-editor/src/controller/replayRestoredEditorEffects.d.ts +2 -3
  201. package/dist/_dts/content-editor/src/controller/routeWrites.d.ts +26 -0
  202. package/dist/_dts/content-editor/src/controller/useAutosaveTriggers.d.ts +16 -17
  203. package/dist/_dts/content-editor/src/controller/useBlockedPublishPlan.d.ts +6 -2
  204. package/dist/_dts/content-editor/src/controller/useBlocksList.d.ts +3 -3
  205. package/dist/_dts/content-editor/src/controller/useEntryValueAutosaves.d.ts +21 -0
  206. package/dist/_dts/content-editor/src/controller/useInitialEditorUiStore.d.ts +24 -0
  207. package/dist/_dts/content-editor/src/controller/useServerBaselineReconciliation.d.ts +17 -0
  208. package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +1 -1
  209. package/dist/_dts/content-editor/src/hooks/applyBlockedPublishPlan.d.ts +5 -1
  210. package/dist/_dts/content-editor/src/hooks/blockDraftLifecycle.d.ts +8 -47
  211. package/dist/_dts/content-editor/src/hooks/editLeaseMachine.d.ts +120 -0
  212. package/dist/_dts/content-editor/src/hooks/publishability.d.ts +6 -10
  213. package/dist/_dts/content-editor/src/hooks/useAutosaveStatus.d.ts +3 -0
  214. package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +5 -15
  215. package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +7 -5
  216. package/dist/_dts/content-editor/src/hooks/useEditLease.d.ts +28 -0
  217. package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +25 -39
  218. package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +17 -19
  219. package/dist/_dts/content-editor/src/hooks/useLinkedEntryAutosave.d.ts +5 -8
  220. package/dist/_dts/content-editor/src/hooks/useValueAutosave.d.ts +64 -0
  221. package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +0 -7
  222. package/dist/_dts/content-editor/src/index.d.ts +26 -7
  223. package/dist/_dts/content-editor/src/lib/browserStorage.d.ts +5 -0
  224. package/dist/_dts/content-editor/src/linkedEntries/domain.d.ts +12 -0
  225. package/dist/_dts/content-editor/src/linkedEntries/owner.d.ts +9 -0
  226. package/dist/_dts/content-editor/src/liveDrafts/draftProjection.d.ts +66 -0
  227. package/dist/_dts/content-editor/src/liveDrafts/linkedSaveHandovers.d.ts +37 -0
  228. package/dist/_dts/content-editor/src/liveDrafts/remoteDraftOverlay.d.ts +113 -0
  229. package/dist/_dts/content-editor/src/liveDrafts/useLiveDrafts.d.ts +32 -0
  230. package/dist/_dts/content-editor/src/liveDrafts/useRetentionTicks.d.ts +7 -0
  231. package/dist/_dts/content-editor/src/primitives/shared/activePreviewField.d.ts +6 -0
  232. package/dist/_dts/content-editor/src/primitives/shared/storeBinding.d.ts +1 -0
  233. package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +96 -19
  234. package/dist/_dts/content-editor/src/services/editorApiClient.d.ts +13 -0
  235. package/dist/_dts/content-editor/src/services/index.d.ts +2 -0
  236. package/dist/_dts/content-editor/src/services/pageSurfaceEditorServices.d.ts +23 -0
  237. package/dist/_dts/content-editor/src/sync/flushValues.d.ts +13 -0
  238. package/dist/_dts/content-editor/src/sync/lifecycleFailure.d.ts +51 -0
  239. package/dist/_dts/content-editor/src/sync/runLifecycle.d.ts +64 -0
  240. package/dist/_dts/content-editor/src/sync/schedulerValues.d.ts +27 -0
  241. package/dist/_dts/content-editor/src/sync/sendPlanning.d.ts +104 -0
  242. package/dist/_dts/content-editor/src/sync/valueSync.d.ts +114 -0
  243. package/dist/_dts/content-editor/src/ui/blockCollection.d.ts +8 -0
  244. package/dist/_dts/content-editor/src/ui/documentLifecycle.d.ts +18 -0
  245. package/dist/_dts/content-editor/src/ui/editorLeaseUiState.d.ts +7 -0
  246. package/dist/_dts/content-editor/src/ui/editorRefresh.d.ts +82 -0
  247. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +102 -127
  248. package/dist/_dts/content-editor/src/ui/editorTransactionState.d.ts +1 -1
  249. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +126 -72
  250. package/dist/_dts/content-editor/src/ui/editorValueSnapshot.d.ts +18 -0
  251. package/dist/_dts/content-editor/src/ui/serverBlockAdmission.d.ts +26 -0
  252. package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +16 -27
  253. package/dist/_dts/content-editor/src/ui/stores/blockVersionsStore.d.ts +24 -0
  254. package/dist/_dts/content-editor/src/ui/stores/linkedEntryLeaseStore.d.ts +54 -0
  255. package/dist/_dts/content-editor/src/ui/stores/linkedSaveHandoversStore.d.ts +11 -0
  256. package/dist/_dts/content-editor/src/ui/stores/remoteDraftsStore.d.ts +10 -0
  257. package/dist/_dts/content-editor/src/ui/stores/types.d.ts +63 -3
  258. package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +2 -2
  259. package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +1 -1
  260. package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +4 -4
  261. package/dist/_dts/content-model/src/content-types/builtins.d.ts +4 -4
  262. package/dist/_dts/content-model/src/definitions/shared.d.ts +11 -2
  263. package/dist/_dts/content-model/src/entry-slots/index.d.ts +1 -0
  264. package/dist/_dts/content-model/src/entry-slots/serializeAllowedBlocks.d.ts +2 -0
  265. package/dist/_dts/content-model/src/metadataConfig.d.ts +10 -38
  266. package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -1
  267. package/dist/_dts/content-model/src/types.d.ts +0 -1
  268. package/dist/_dts/core/src/block-content-identity.d.ts +49 -1
  269. package/dist/_dts/core/src/booking-flexible-balance.d.ts +2 -2
  270. package/dist/_dts/core/src/booking-instalment-deposit.d.ts +20 -0
  271. package/dist/_dts/core/src/booking-live-payment-terms.d.ts +72 -0
  272. package/dist/_dts/core/src/booking-payment-options.d.ts +24 -0
  273. package/dist/_dts/core/src/booking-payment-schemas.d.ts +522 -0
  274. package/dist/_dts/core/src/branded.d.ts +15 -0
  275. package/dist/_dts/core/src/currency-format.d.ts +8 -2
  276. package/dist/_dts/core/src/demo-lifecycle-status.d.ts +2 -2
  277. package/dist/_dts/core/src/demo-warm-pool-target.d.ts +8 -0
  278. package/dist/_dts/core/src/edit-lease.d.ts +60 -0
  279. package/dist/_dts/core/src/editor-state.d.ts +38 -13
  280. package/dist/_dts/core/src/editor-value-sync.d.ts +79 -0
  281. package/dist/_dts/core/src/html-entities.d.ts +6 -0
  282. package/dist/_dts/core/src/index.d.ts +7 -0
  283. package/dist/_dts/core/src/uuid.d.ts +7 -5
  284. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +456 -189
  285. package/dist/_dts/editor/src/EditorProvider.d.ts +5 -0
  286. package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +14 -0
  287. package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +1 -0
  288. package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +0 -1
  289. package/dist/_dts/editor/src/index.d.ts +1 -1
  290. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +10 -9
  291. package/dist/_dts/editor-blocks/src/BlockForm.d.ts +1 -1
  292. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +1 -1
  293. package/dist/_dts/editor-blocks/src/block-editor/BlockCardFrame.d.ts +1 -1
  294. package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +1 -1
  295. package/dist/_dts/editor-blocks/src/block-editor/applyExtendedFieldDefaults.d.ts +3 -4
  296. package/dist/_dts/editor-blocks/src/block-editor/blockDraftBaselineSeed.d.ts +4 -8
  297. package/dist/_dts/editor-blocks/src/block-editor/editorBlockItem.d.ts +23 -0
  298. package/dist/_dts/editor-blocks/src/block-editor/generatedIconApplyCoordination.d.ts +2 -7
  299. package/dist/_dts/editor-blocks/src/block-editor/hooks/applyBlockStructureChange.d.ts +4 -0
  300. package/dist/_dts/editor-blocks/src/block-editor/hooks/buildInsertBlockHistoryCommand.d.ts +14 -5
  301. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +21 -19
  302. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -10
  303. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +8 -16
  304. package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +6 -16
  305. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +37 -9
  306. package/dist/_dts/editor-blocks/src/index.d.ts +2 -1
  307. package/dist/_dts/editor-blocks/src/widgets/entry-picker/loaders.d.ts +1 -1
  308. package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +1 -1
  309. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +1 -1
  310. package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +1 -1
  311. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +3 -2
  312. package/dist/_dts/media-core/src/fileStorage.d.ts +4 -0
  313. package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +3 -1
  314. package/dist/_dts/media-editor/src/MediaPickerMiniDialog.d.ts +10 -0
  315. package/dist/_dts/media-editor/src/context.d.ts +1 -1
  316. package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -2
  317. package/dist/_dts/media-editor/src/index.d.ts +2 -0
  318. package/dist/_dts/media-editor/src/provider.d.ts +3 -2
  319. package/dist/_dts/media-react/src/hooks/internal/classification.d.ts +1 -1
  320. package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +3 -1
  321. package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +8 -3
  322. package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +6 -3
  323. package/dist/_dts/preview-next/src/client/blocks/linkedEntryRenderOverlay.d.ts +22 -2
  324. package/dist/_dts/preview-next/src/client/blocks/previewProjection/entryFieldRebinding.d.ts +13 -0
  325. package/dist/_dts/preview-next/src/client/blocks/previewProjection/index.d.ts +2 -1
  326. package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +11 -1
  327. package/dist/_dts/preview-next/src/client/blocks/renderPrecedence.d.ts +17 -0
  328. package/dist/_dts/preview-next/src/client/blocks/useLinkedSaveHandoverRetention.d.ts +20 -0
  329. package/dist/_dts/preview-next/src/client/index.d.ts +1 -1
  330. package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -1
  331. package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -1
  332. package/dist/_dts/preview-next/src/client/preview/PreviewAccessBanners.d.ts +7 -0
  333. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
  334. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +23 -14
  335. package/dist/_dts/preview-next/src/client/preview/PreviewLeaseEditingMode.d.ts +2 -0
  336. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +9 -2
  337. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
  338. package/dist/_dts/preview-next/src/client/preview/previewCustomizeAutosave.d.ts +5 -0
  339. package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +3 -4
  340. package/dist/_dts/preview-next/src/client/preview/sdkConfig.d.ts +1 -0
  341. package/dist/_dts/preview-next/src/client/preview/usePreviewCustomizeWorkflowState.d.ts +4 -0
  342. package/dist/_dts/preview-next/src/client/previewAuthStore.d.ts +7 -0
  343. package/dist/_dts/preview-next/src/constants.d.ts +4 -0
  344. package/dist/_dts/preview-next/src/keepAlive.d.ts +1 -0
  345. package/dist/_dts/realtime/src/client.d.ts +3 -0
  346. package/dist/_dts/realtime/src/draftChannel.d.ts +91 -0
  347. package/dist/_dts/realtime/src/drafts.d.ts +210 -0
  348. package/dist/_dts/realtime/src/index.d.ts +3 -0
  349. package/dist/_dts/realtime/src/leaseChangeSubscriptions.d.ts +8 -0
  350. package/dist/_dts/realtime/src/types.d.ts +113 -0
  351. package/dist/_dts/realtime/src/useDraftChannel.d.ts +34 -0
  352. package/dist/_dts/realtime/src/useSiteRealtimeReload.d.ts +27 -0
  353. package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -55
  354. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
  355. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -0
  356. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +2 -0
  357. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -12
  358. package/dist/_dts/sdk/src/version.d.ts +1 -1
  359. package/dist/_dts/surfaces/src/index.d.ts +1 -0
  360. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
  361. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
  362. package/dist/_dts/ui/src/color-picker.d.ts +1 -1
  363. package/dist/_dts/ui/src/palette/useHexDraft.d.ts +7 -0
  364. package/dist/client/{BookingMailingListNote-1n4Ch_u_.mjs → BookingMailingListNote-Cr3EeTP5.mjs} +504 -163
  365. package/dist/client/DemoBookingPortalAccess-BFGB1Fay.mjs +344 -0
  366. package/dist/client/{EventCombined.client-C0pgma9y.mjs → EventCombined.client-DKYV0_ft.mjs} +6 -6
  367. package/dist/client/{EventListing.client-4fhLOvHP.mjs → EventListing.client-B9UIcEYc.mjs} +2 -2
  368. package/dist/client/{LeafletStaticMap-DScC4F3w.mjs → LeafletStaticMap-CFLPkP0K.mjs} +1 -1
  369. package/dist/client/{TerminalPanel-B5ZUsYhe.mjs → TerminalPanel-JjmgxEsR.mjs} +1 -1
  370. package/dist/client/{ThemedButton-DoVIV1Ao.mjs → ThemedButton-CKV1Jh2m.mjs} +1 -1
  371. package/dist/client/{accordion-CoT5g7zo.mjs → accordion-DXWIfT3T.mjs} +1 -1
  372. package/dist/client/{bookingForm-BWxB46xD.mjs → bookingForm-CjZgHNvv.mjs} +216 -63
  373. package/dist/client/bookings.mjs +1187 -692
  374. package/dist/client/{carousel-DtNYWFd3.mjs → carousel-DSLikmvZ.mjs} +1 -1
  375. package/dist/client/{cart-z4qZih1Y.mjs → cart-HDjWReFt.mjs} +3 -3
  376. package/dist/client/{checkout-DpL7euFH.mjs → checkout-CUvRZA3W.mjs} +3 -3
  377. package/dist/client/{checkoutUrls-BEfR7kVu.mjs → checkoutUrls-CXhko2Rv.mjs} +1 -1
  378. package/dist/client/client.mjs +2711 -1684
  379. package/dist/client/{context-C8TinPJc.mjs → context-DFmaZa-Q.mjs} +4 -3
  380. package/dist/client/{dates-vwwxTeB0.mjs → dates-BBep1JnF.mjs} +56 -11
  381. package/dist/client/{eventCalendar-DIbHfJXO.mjs → eventCalendar-zEobhxo4.mjs} +9 -9
  382. package/dist/client/{eventCombined-DoGMJ6cg.mjs → eventCombined-Dp7bz5k-.mjs} +4 -4
  383. package/dist/client/{eventDetails-BjN9v6a1.mjs → eventDetails-FE-zqTt7.mjs} +4 -4
  384. package/dist/client/{eventListing-DajjWgOv.mjs → eventListing-BMt5snal.mjs} +4 -4
  385. package/dist/client/{eventRegistration-DMq9gMA-.mjs → eventRegistration-O6ZxHfOb.mjs} +422 -570
  386. package/dist/client/{form-Qf6qTbos.mjs → form-DFa1D8vt.mjs} +3 -3
  387. package/dist/client/{headerSection-D7qJrqFX.mjs → headerSection-CmjHLR-N.mjs} +3 -3
  388. package/dist/client/hooks.mjs +414 -182
  389. package/dist/client/{locationMap-CCF9-t_0.mjs → locationMap-BXKP_lGh.mjs} +3 -3
  390. package/dist/client/{media-CwBGetqC.mjs → media-Cl38iOMI.mjs} +10 -3
  391. package/dist/client/{newsletterForm-DzCLSP4S.mjs → newsletterForm-CU-HmxGx.mjs} +3 -3
  392. package/dist/client/{pricing-Cgxv2KLC.mjs → pricing-KEAEsibq.mjs} +1 -1
  393. package/dist/client/{productDetail-ru9w5GHx.mjs → productDetail-Ckp7MGnt.mjs} +3 -3
  394. package/dist/client/{productList-zaapKSl-.mjs → productList-D91V0sYa.mjs} +3 -3
  395. package/dist/client/{propsDecoder-CwvvNOHx.mjs → propsDecoder-DZd6RJeA.mjs} +244 -94
  396. package/dist/client/rendering/client.mjs +2656 -1705
  397. package/dist/client/rendering/islands.mjs +18 -18
  398. package/dist/client/rendering.mjs +3430 -2352
  399. package/dist/client/{routeIslandApiConfig-BwVFo0Y4.mjs → routeIslandApiConfig-E1EkhhYY.mjs} +1 -1
  400. package/dist/client/{shop-mktkXvbV.mjs → shop-4F2jLQPI.mjs} +131 -85
  401. package/dist/client/{shop-commerce-De7gEnkA.mjs → shop-commerce-BbfCJjB3.mjs} +25 -13
  402. package/dist/client/{shop-commerce-store-B3MCxIBW.mjs → shop-commerce-store-vicweP2K.mjs} +1 -1
  403. package/dist/client/{shopShared-TqExh235.mjs → shopShared-DlONJt0T.mjs} +4 -4
  404. package/dist/client/{useEventFilters-n_OjkIjX.mjs → useEventFilters-COYyL3m7.mjs} +32 -17
  405. package/dist/preview-next/before-render.mjs +207 -105
  406. package/dist/preview-next/client/runtime.mjs +4 -4
  407. package/dist/preview-next/constants.mjs +5 -1
  408. package/dist/preview-next/index.mjs +5 -1
  409. package/dist/preview-next/keepAlive.mjs +341 -165
  410. package/dist/preview-next/middleware.mjs +207 -105
  411. package/dist/{previewAuthStore-C_EHQ5XA.mjs → previewAuthStore-BBmV7UsW.mjs} +243 -112
  412. package/dist/{sdk-runtime-BIkJg5y1.mjs → sdk-runtime-CwvFFjB-.mjs} +2 -2
  413. package/dist/{separator-C9qDP95Z.mjs → separator-ByL72zUT.mjs} +1 -1
  414. package/dist/server/components.mjs +1839 -1475
  415. package/dist/server/config-validation.mjs +381 -166
  416. package/dist/server/config.mjs +381 -166
  417. package/dist/server/data.mjs +381 -166
  418. package/dist/server/index.mjs +214 -110
  419. package/dist/server/next.mjs +663 -351
  420. package/dist/server/page-converter.mjs +198 -79
  421. package/dist/server/prebuild.mjs +1 -1
  422. package/dist/server/rendering/server.mjs +1536 -1169
  423. package/dist/server/rendering.mjs +2432 -2068
  424. package/dist/server/routing.mjs +456 -173
  425. package/dist/server/server.mjs +447 -267
  426. package/package.json +1 -1
  427. package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
  428. package/dist/_dts/billing/src/plans/display.d.ts +0 -15
  429. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-note.d.ts +0 -3
  430. package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +0 -10
  431. package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +0 -55
  432. package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +0 -24
  433. package/dist/_dts/content-editor/src/controller/buildBlockPublishedBaselines.d.ts +0 -4
  434. package/dist/_dts/content-editor/src/controller/buildPublishSuccessTransition.d.ts +0 -16
  435. package/dist/_dts/content-editor/src/controller/driver.d.ts +0 -14
  436. package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +0 -7
  437. package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +0 -29
  438. package/dist/_dts/content-editor/src/hooks/autosaveScopePlanning.d.ts +0 -26
  439. package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +0 -64
  440. package/dist/_dts/content-editor/src/hooks/useStoreAutosave.d.ts +0 -48
  441. package/dist/_dts/content-editor/src/types.d.ts +0 -44
  442. package/dist/client/DiscountCodeDisclosure-CKJtz0mY.mjs +0 -137
@@ -29,6 +29,8 @@ export type ApiKeyId = Brand<string, 'ApiKeyId'>;
29
29
  export type SiteRouteId = Brand<string, 'SiteRouteId'>;
30
30
  export type PageId = Brand<string, 'PageId'>;
31
31
  export type PageSurfaceId = Brand<string, 'PageSurfaceId'>;
32
+ export type EditLeaseToken = Brand<string, 'EditLeaseToken'>;
33
+ export type EditorClientId = Brand<string, 'EditorClientId'>;
32
34
  export type OccurrenceId = Brand<string, 'OccurrenceId'>;
33
35
  export type EventOfferingId = Brand<string, 'EventOfferingId'>;
34
36
  export type EventSeriesId = Brand<string, 'EventSeriesId'>;
@@ -78,6 +80,7 @@ export type MembershipId = Brand<string, 'MembershipId'>;
78
80
  export type RetiredCourseId = Brand<string, 'RetiredCourseId'>;
79
81
  export type CustomerId = Brand<string, 'CustomerId'>;
80
82
  export type OrderId = Brand<string, 'OrderId'>;
83
+ export type OrderRetirementOperationId = Brand<string, 'OrderRetirementOperationId'>;
81
84
  export type OrderItemId = Brand<string, 'OrderItemId'>;
82
85
  export type OrderRefundId = Brand<string, 'OrderRefundId'>;
83
86
  export type OrderPaymentReceiptId = Brand<string, 'OrderPaymentReceiptId'>;
@@ -116,6 +119,10 @@ export type ContentBlockId = Brand<string, 'ContentBlockId'>;
116
119
  export type ContentVersionId = Brand<string, 'ContentVersionId'>;
117
120
  export type EntryContentHash = Brand<string, 'EntryContentHash'>;
118
121
  export type StripeInvoiceId = Brand<string, 'StripeInvoiceId'>;
122
+ /** A platform (not Connect) Stripe customer id, `cus_…`. */
123
+ export type StripeCustomerId = Brand<string, 'StripeCustomerId'>;
124
+ /** A Stripe subscription id, `sub_…`. */
125
+ export type StripeSubscriptionId = Brand<string, 'StripeSubscriptionId'>;
119
126
  export type NewsletterSubscriberId = Brand<string, 'NewsletterSubscriberId'>;
120
127
  export type NavigationMenuId = Brand<string, 'NavigationMenuId'>;
121
128
  export type NavigationItemId = Brand<string, 'NavigationItemId'>;
@@ -178,6 +185,8 @@ export declare const unsafeAsApiKeyId: (id: string) => ApiKeyId;
178
185
  export declare const unsafeAsSiteRouteId: (id: string) => SiteRouteId;
179
186
  export declare const unsafeAsPageId: (id: string) => PageId;
180
187
  export declare const unsafeAsPageSurfaceId: (id: string) => PageSurfaceId;
188
+ export declare const unsafeAsEditLeaseToken: (id: string) => EditLeaseToken;
189
+ export declare const unsafeAsEditorClientId: (id: string) => EditorClientId;
181
190
  export declare const unsafeAsOccurrenceId: (id: string) => OccurrenceId;
182
191
  export declare const unsafeAsEventOfferingId: (id: string) => EventOfferingId;
183
192
  export declare const unsafeAsEventSeriesId: (id: string) => EventSeriesId;
@@ -220,6 +229,7 @@ export declare const unsafeAsFormSubmissionId: (id: string) => FormSubmissionId;
220
229
  export declare const unsafeAsPassId: (id: string) => PassId;
221
230
  export declare const unsafeAsMembershipId: (id: string) => MembershipId;
222
231
  export declare const unsafeAsCustomerId: (id: string) => CustomerId;
232
+ export declare const unsafeAsOrderRetirementOperationId: (id: string) => OrderRetirementOperationId;
223
233
  export declare const unsafeAsOrderId: (id: string) => OrderId;
224
234
  export declare const unsafeAsOrderItemId: (id: string) => OrderItemId;
225
235
  export declare const unsafeAsOrderRefundId: (id: string) => OrderRefundId;
@@ -250,6 +260,8 @@ export declare const unsafeAsContentBlockId: (id: string) => ContentBlockId;
250
260
  export declare const unsafeAsContentVersionId: (id: string) => ContentVersionId;
251
261
  export declare const unsafeAsEntryContentHash: (value: string) => EntryContentHash;
252
262
  export declare const unsafeAsStripeInvoiceId: (id: string) => StripeInvoiceId;
263
+ export declare const unsafeAsStripeCustomerId: (id: string) => StripeCustomerId;
264
+ export declare const unsafeAsStripeSubscriptionId: (id: string) => StripeSubscriptionId;
253
265
  export declare const unsafeAsNewsletterSubscriberId: (id: string) => NewsletterSubscriberId;
254
266
  export declare const unsafeAsNavigationMenuId: (id: string) => NavigationMenuId;
255
267
  export declare const unsafeAsNavigationItemId: (id: string) => NavigationItemId;
@@ -286,6 +298,8 @@ export declare const parseApiKeyId: (value: unknown) => Result<ApiKeyId, Branded
286
298
  export declare const parseSiteRouteId: (value: unknown) => Result<SiteRouteId, BrandedIdParseError>;
287
299
  export declare const parsePageId: (value: unknown) => Result<PageId, BrandedIdParseError>;
288
300
  export declare const parsePageSurfaceId: (value: unknown) => Result<PageSurfaceId, BrandedIdParseError>;
301
+ export declare const parseEditLeaseToken: (value: unknown) => Result<EditLeaseToken, BrandedIdParseError>;
302
+ export declare const parseEditorClientId: (value: unknown) => Result<EditorClientId, BrandedIdParseError>;
289
303
  export declare const parseOccurrenceId: (value: unknown) => Result<OccurrenceId, BrandedIdParseError>;
290
304
  export declare const parseEventOfferingId: (value: unknown) => Result<EventOfferingId, BrandedIdParseError>;
291
305
  export declare const parseEventAttendeeTicketLineId: (value: unknown) => Result<EventAttendeeTicketLineId, BrandedIdParseError>;
@@ -326,6 +340,7 @@ export declare const parseEventSeriesRegistrationId: (value: unknown) => Result<
326
340
  export declare const parseParticipantId: (value: unknown) => Result<ParticipantId, BrandedIdParseError>;
327
341
  export declare const parseParticipantParticipationId: (value: unknown) => Result<ParticipantParticipationId, BrandedIdParseError>;
328
342
  export declare const parseOrderItemId: (value: unknown) => Result<OrderItemId, BrandedIdParseError>;
343
+ export declare const parseOrderRetirementOperationId: (value: unknown) => Result<OrderRetirementOperationId, BrandedIdParseError>;
329
344
  export declare const parseOrderId: (value: unknown) => Result<OrderId, BrandedIdParseError>;
330
345
  export declare const parseOrderRefundId: (value: unknown) => Result<OrderRefundId, BrandedIdParseError>;
331
346
  export declare const parseOrderPaymentReceiptId: (value: unknown) => Result<OrderPaymentReceiptId, BrandedIdParseError>;
@@ -17,9 +17,10 @@ export declare function unsafeCurrencyCode(value: string): CurrencyCode;
17
17
  /**
18
18
  * Trailing-decimal policy for a formatted amount:
19
19
  * - 'exact' : the currency's natural precision (usually 2) — "£25.00"
20
- * - 'auto' : drop trailing zeros within the currency's natural precision — "£25", "£25.50"
20
+ * - 'auto' : drop trailing zeros within the currency's natural precision — "£25", "£25.5"
21
+ * - 'whole' : round to whole major units — "£25"
21
22
  */
22
- export type CurrencyDecimals = 'exact' | 'auto';
23
+ export type CurrencyDecimals = 'exact' | 'auto' | 'whole';
23
24
  export type FormatCurrencyOptions = Readonly<{
24
25
  /** Defaults to 'exact'. */
25
26
  decimals?: CurrencyDecimals;
@@ -36,4 +37,9 @@ export type FormatCurrencyOptions = Readonly<{
36
37
  * own `Intl.NumberFormat`.
37
38
  */
38
39
  export declare function formatCurrencyAmount(amountCents: number, currency: string, options?: FormatCurrencyOptions): string;
40
+ /**
41
+ * `formatCurrencyAmount` for an amount already in MAJOR units (29.99 = £29.99),
42
+ * such as a registrar price. Prefer minor units everywhere else.
43
+ */
44
+ export declare function formatCurrencyMajorUnits(amount: number, currency: string, options?: FormatCurrencyOptions): string;
39
45
  export {};
@@ -1,10 +1,10 @@
1
1
  export declare const demoBlueprintStatusValues: readonly ["draft", "published", "archived"];
2
2
  export type DemoBlueprintStatus = (typeof demoBlueprintStatusValues)[number];
3
- export declare const demoInstanceStatusValues: readonly ["warming", "available", "claimed", "expired", "recycling", "failed"];
3
+ export declare const demoInstanceStatusValues: readonly ["warming", "available", "claimed", "expired", "showcase", "failed"];
4
4
  export type DemoInstanceStatus = (typeof demoInstanceStatusValues)[number];
5
5
  export declare const demoClaimStatusValues: readonly ["active", "expired", "released"];
6
6
  export type DemoClaimStatus = (typeof demoClaimStatusValues)[number];
7
- export declare const demoBlueprintArtifactKindValues: readonly ["site_backup", "manual_snapshot"];
7
+ export declare const demoBlueprintArtifactKindValues: readonly ["recipe"];
8
8
  export type DemoBlueprintArtifactKind = (typeof demoBlueprintArtifactKindValues)[number];
9
9
  export declare function narrowDemoInstanceStatus(value: string): DemoInstanceStatus;
10
10
  export declare function narrowDemoClaimStatus(value: string): DemoClaimStatus;
@@ -0,0 +1,8 @@
1
+ import { type Result } from './result';
2
+ export declare const DEFAULT_DEMO_WARM_POOL_TARGET = 0;
3
+ export declare const MAX_DEMO_WARM_POOL_TARGET = 20;
4
+ export type DemoWarmPoolTargetError = Readonly<{
5
+ kind: 'invalid_demo_warm_pool_target';
6
+ message: 'DEMO_WARM_POOL_TARGET must be a whole number from 0 to 20.';
7
+ }>;
8
+ export declare function parseDemoWarmPoolTarget(value: string | null | undefined): Result<number, DemoWarmPoolTargetError>;
@@ -0,0 +1,60 @@
1
+ import type { ContentEntryId, EditLeaseToken, EditorClientId, PageId, PageSurfaceId } from './branded';
2
+ /**
3
+ * How long a lease lasts without a heartbeat. The server grants for this long, and a
4
+ * reload handover is only worth presenting within it (issue 1570).
5
+ */
6
+ export declare const EDIT_LEASE_TTL_SECONDS = 60;
7
+ export type EditLeaseScope = Readonly<{
8
+ nodeType: 'page';
9
+ nodeId: PageId;
10
+ }> | Readonly<{
11
+ nodeType: 'content_entry';
12
+ nodeId: ContentEntryId;
13
+ }> | Readonly<{
14
+ nodeType: 'page_surface';
15
+ nodeId: PageSurfaceId;
16
+ }>;
17
+ export type EditLeaseHolder = Readonly<{
18
+ kind: 'your-other-tab';
19
+ }> | Readonly<{
20
+ kind: 'another-user';
21
+ name: string | null;
22
+ }>;
23
+ export type EditLeaseView = Readonly<{
24
+ kind: 'free';
25
+ }> | Readonly<{
26
+ kind: 'mine';
27
+ expiresAt: string;
28
+ }> | Readonly<{
29
+ kind: 'held-elsewhere';
30
+ holder: EditLeaseHolder;
31
+ expiresAt: string;
32
+ }>;
33
+ export type EditLeaseAcquireResult = Readonly<{
34
+ kind: 'granted';
35
+ token: EditLeaseToken;
36
+ expiresAt: string;
37
+ }> | Extract<EditLeaseView, {
38
+ kind: 'held-elsewhere';
39
+ }>;
40
+ export type EditAuthority = Readonly<{
41
+ kind: 'edit-lease';
42
+ token: EditLeaseToken;
43
+ clientId: EditorClientId;
44
+ }> | Readonly<{
45
+ kind: 'exempt';
46
+ reason: 'team-member-profile' | 'sdk';
47
+ }>;
48
+ export type OwnerEditAuthority = EditAuthority | Readonly<{
49
+ kind: 'no-lease-headers';
50
+ }>;
51
+ export type EditLeaseTarget = Readonly<{
52
+ kind: 'leased';
53
+ scope: EditLeaseScope;
54
+ }> | Readonly<{
55
+ kind: 'unleased';
56
+ }>;
57
+ export declare function parseEditLeaseScope(input: Readonly<{
58
+ nodeType: EditLeaseScope['nodeType'];
59
+ nodeId: string;
60
+ }>): EditLeaseScope | null;
@@ -1,5 +1,6 @@
1
+ import type { EditorBlockVersions } from './block-content-identity';
1
2
  import type { Brand } from './branded';
2
- import type { BlockContentIdentity } from './block-content-identity';
3
+ import type { ValueSync } from './editor-value-sync';
3
4
  export type EditorSiteId = Brand<string, 'EditorSiteId'>;
4
5
  export type EditorPageId = Brand<string, 'EditorPageId'>;
5
6
  export type EditorEntryId = Brand<string, 'EditorEntryId'>;
@@ -8,6 +9,31 @@ export declare const unsafeAsEditorSiteId: (value: string) => EditorSiteId;
8
9
  export declare const unsafeAsEditorPageId: (value: string) => EditorPageId;
9
10
  export declare const unsafeAsEditorEntryId: (value: string) => EditorEntryId;
10
11
  export declare const unsafeAsEditorBlockId: (value: string) => EditorBlockId;
12
+ /** Identity of the ordered block collection currently mounted in the editor. */
13
+ export type EditorBlockCollectionOwner = Readonly<{
14
+ kind: 'page';
15
+ pageId: string;
16
+ }> | Readonly<{
17
+ kind: 'entry-slot';
18
+ type: string;
19
+ entryId: string;
20
+ slotKey: string;
21
+ }> | Readonly<{
22
+ kind: 'surface-slot';
23
+ pageSurfaceId: string;
24
+ slotKey: string;
25
+ }> | Readonly<{
26
+ kind: 'site-footer';
27
+ siteId: string;
28
+ }>;
29
+ /** Server membership facts for a loaded collection, independent of selected local edits. */
30
+ export type EditorBlockCollectionReadBaseline = Readonly<{
31
+ owner: EditorBlockCollectionOwner;
32
+ currentBlockIds: readonly string[];
33
+ publishedBlockIds: readonly string[];
34
+ }>;
35
+ export declare function editorBlockCollectionOwnerKey(owner: EditorBlockCollectionOwner): string;
36
+ export declare function editorBlockCollectionOwnersEqual(left: EditorBlockCollectionOwner | null, right: EditorBlockCollectionOwner | null): boolean;
11
37
  export type EditorValueRecord = Readonly<Record<string, unknown>>;
12
38
  export type EditorMetadataValues = Brand<EditorValueRecord, 'EditorMetadataValues'>;
13
39
  export type EditorContentValues = Brand<EditorValueRecord, 'EditorContentValues'>;
@@ -15,6 +41,7 @@ export type EditorBlockValues = Brand<EditorValueRecord, 'EditorBlockValues'>;
15
41
  export declare const unsafeAsEditorMetadataValues: (value: EditorValueRecord) => EditorMetadataValues;
16
42
  export declare const unsafeAsEditorContentValues: (value: EditorValueRecord) => EditorContentValues;
17
43
  export declare const unsafeAsEditorBlockValues: (value: EditorValueRecord) => EditorBlockValues;
44
+ /** Presentation of a value's sync state, derived from its `ValueSync` (`syncStateOf`). */
18
45
  export type EditorSyncState = {
19
46
  kind: 'baseline';
20
47
  } | {
@@ -28,15 +55,12 @@ export type EditorStructuralDraftMeta = Readonly<{
28
55
  kind: string;
29
56
  purpose: string | null;
30
57
  orderIndex: number | null;
31
- publishedContent: EditorBlockValues | null;
32
- optimisticHash: string | null;
33
58
  }>;
59
+ /** The baseline revision is the block's optimistic hash. */
34
60
  export type EditorStructuralDraftSnapshot = Readonly<{
35
61
  id: EditorBlockId;
36
62
  version: number;
37
- baseline: EditorBlockValues | null;
38
- current: EditorBlockValues | null;
39
- syncState: EditorDraftSyncState;
63
+ sync: ValueSync<EditorBlockValues | null>;
40
64
  meta: EditorStructuralDraftMeta;
41
65
  }>;
42
66
  export type EditorBlockDataRowInput = Readonly<{
@@ -47,28 +71,29 @@ export type EditorDraftBlockInitMetaInput = Readonly<{
47
71
  kind: string;
48
72
  purpose?: string | null;
49
73
  orderIndex?: number | null;
50
- publishedContent?: EditorBlockBaselineInput;
51
74
  optimisticHash?: string | null;
52
75
  }>;
53
76
  export type EditorDraftBlockBaselineUpdateMetaInput = Readonly<{
54
77
  kind?: string;
55
78
  purpose?: string | null;
56
79
  orderIndex?: number | null;
57
- publishedContent?: EditorBlockBaselineInput;
58
80
  optimisticHash?: string | null;
59
81
  }>;
60
- export type EditorBlockPublishedBaselineInput = Readonly<{
82
+ /** One block's server versions, as recorded into the editor's block-versions state. */
83
+ export type EditorBlockVersionsEntry = Readonly<{
61
84
  id: EditorBlockId;
62
- kind?: string;
63
- publishedContent?: EditorBlockBaselineInput;
85
+ versions: EditorBlockVersions;
64
86
  }>;
65
- export type EditorPersistedBlock = BlockContentIdentity & Readonly<{
87
+ /**
88
+ * A block as undo history records it. Server version identity is deliberately
89
+ * absent: it lives in the editor's block-versions state, outside history.
90
+ */
91
+ export type EditorPersistedBlock = Readonly<{
66
92
  id: EditorBlockId;
67
93
  kind: string;
68
94
  content: EditorBlockValues | null;
69
95
  orderIndex: number | null;
70
96
  draftContent: EditorBlockValues | null;
71
- publishedContent: EditorBlockValues | null;
72
97
  bindings: EditorBlockValues | null;
73
98
  purpose: string | null;
74
99
  optimisticHash: string | null;
@@ -0,0 +1,79 @@
1
+ import type { Brand } from './branded';
2
+ import type { EditorSyncState } from './editor-state';
3
+ /**
4
+ * One editor value's sync state: the server baseline it was loaded from, and what the
5
+ * person intends locally. The request slot nests under local intent, so a pristine value
6
+ * can never hold a send in flight or a failure (issue 1553, D1).
7
+ *
8
+ * The transitions live in `@riverbankcms/content-editor`'s `sync/valueSync.ts`. The
9
+ * read-only selectors below live here because block-form and editor-blocks read them
10
+ * and can't depend on content-editor.
11
+ */
12
+ /** Identifies one save request; a response for any other id is ignored. Allocated by the store. */
13
+ export type SendId = Brand<number, 'SendId'>;
14
+ export declare const unsafeAsSendId: (value: number) => SendId;
15
+ /** The server's compare-and-set token for a baseline. Compared by equality only. */
16
+ export type BaselineRevision = Readonly<{
17
+ kind: 'known';
18
+ value: string | null;
19
+ }> | Readonly<{
20
+ kind: 'unknown';
21
+ }>;
22
+ export type ValueBaseline<V> = Readonly<{
23
+ values: V;
24
+ revision: BaselineRevision;
25
+ }>;
26
+ export type IdleRequest = Readonly<{
27
+ kind: 'idle';
28
+ }>;
29
+ export type InFlightRequest<V> = Readonly<{
30
+ kind: 'in-flight';
31
+ id: SendId;
32
+ sent: V;
33
+ basis: BaselineRevision;
34
+ }>;
35
+ export type FailedRequest<V> = Readonly<{
36
+ kind: 'failed';
37
+ id: SendId;
38
+ sent: V;
39
+ error: string;
40
+ reason: 'rejected' | 'conflict';
41
+ }>;
42
+ /** A request still outstanding whose edits the person discarded. It presents as saved. */
43
+ export type AbandonedRequest = Readonly<{
44
+ kind: 'abandoned';
45
+ id: SendId;
46
+ basis: BaselineRevision;
47
+ }>;
48
+ export type PristineRequest = IdleRequest | AbandonedRequest;
49
+ export type EditedRequest<V> = IdleRequest | InFlightRequest<V> | FailedRequest<V> | AbandonedRequest;
50
+ export type LocalIntent<V> = Readonly<{
51
+ kind: 'pristine';
52
+ request: PristineRequest;
53
+ }> | Readonly<{
54
+ kind: 'edited';
55
+ values: V;
56
+ request: EditedRequest<V>;
57
+ }>;
58
+ export type ValueSync<V> = Readonly<{
59
+ baseline: ValueBaseline<V>;
60
+ local: LocalIntent<V>;
61
+ }>;
62
+ /** Lease loss isn't an error: the edits stay unsaved and send again once the tab can write. */
63
+ export type SaveFailure = Readonly<{
64
+ kind: 'rejected' | 'conflict';
65
+ message: string;
66
+ }> | Readonly<{
67
+ kind: 'lease-lost';
68
+ }>;
69
+ export declare const UNKNOWN_REVISION: BaselineRevision;
70
+ export declare function knownRevision(value: string | null): BaselineRevision;
71
+ /** A pristine value at the given baseline. */
72
+ export declare function pristineValueSync<V>(values: V, revision: BaselineRevision): ValueSync<V>;
73
+ export type ValueStatus = 'saved' | 'unsaved' | 'saving' | 'failed';
74
+ /** What the person sees: their edits, or the baseline when there are none. */
75
+ export declare function displayedValues<V>(sync: ValueSync<V>): V;
76
+ /** Pristine counts as saved even with an abandoned request: nothing the person wants is unsaved. */
77
+ export declare function valueStatus<V>(sync: ValueSync<V>): ValueStatus;
78
+ /** Projects the model onto the presentation sync state: unsaved and saving are both `pending`. */
79
+ export declare function syncStateOf<V>(sync: ValueSync<V>): EditorSyncState;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Decodes the HTML entities rendered pages commonly contain (the basic named
3
+ * set plus decimal and hex numeric references), leaving anything else as is.
4
+ * For reading text back out of server-rendered HTML, not for sanitising input.
5
+ */
6
+ export declare function decodeHtmlEntities(text: string): string;
@@ -1,9 +1,11 @@
1
1
  export * from './branded';
2
2
  export * from './date-math';
3
+ export * from './html-entities';
3
4
  export * from './duration';
4
5
  export * from './demo-capability-policy';
5
6
  export * from './demo-claim-access';
6
7
  export * from './demo-lifecycle-status';
8
+ export * from './demo-warm-pool-target';
7
9
  export * from './demo-runtime';
8
10
  export * from './collections';
9
11
  export * from './event-booking-offer';
@@ -16,6 +18,9 @@ export * from './money-input';
16
18
  export * from './booking-flexible-balance';
17
19
  export * from './booking-refunds';
18
20
  export * from './booking-instalments';
21
+ export * from './booking-instalment-deposit';
22
+ export * from './booking-live-payment-terms';
23
+ export * from './booking-payment-options';
19
24
  export * from './booking-date-time';
20
25
  export * from './booking-consent';
21
26
  export * from './appointment-service-categories';
@@ -30,6 +35,8 @@ export { tryAsync } from './try-async';
30
35
  export * from './narrow-result';
31
36
  export * from './non-empty-array';
32
37
  export * from './editor-state';
38
+ export * from './editor-value-sync';
39
+ export * from './edit-lease';
33
40
  export * from './block-content-identity';
34
41
  export * from './sensitive-collection';
35
42
  export * from './assertNever';
@@ -1,6 +1,8 @@
1
- /**
2
- * Validates whether a string matches UUID v4 format
3
- * Format: 8-4-4-4-12 hexadecimal digits
4
- * Example: 550e8400-e29b-41d4-a716-446655440000
5
- */
1
+ /** Validate a UUID in the existing 8-4-4-4-12 hexadecimal format. */
6
2
  export declare function isValidUuid(str: string): boolean;
3
+ /** UUID v4 generation in both secure and local HTTP browser contexts. */
4
+ export type UuidCryptoSource = Readonly<{
5
+ randomUUID?: () => string;
6
+ getRandomValues: (array: Uint8Array<ArrayBuffer>) => Uint8Array<ArrayBuffer>;
7
+ }>;
8
+ export declare function generateUuidV4(cryptoSource?: UuidCryptoSource): string;