@riverbankcms/sdk 0.60.16 → 0.62.4

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 (232) hide show
  1. package/dist/_dts/api/src/accessAdmin.d.ts +7 -0
  2. package/dist/_dts/api/src/bookingClosures.d.ts +106 -0
  3. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +59 -1
  4. package/dist/_dts/api/src/bookingRecords.d.ts +101 -4
  5. package/dist/_dts/api/src/bookings.d.ts +2 -1
  6. package/dist/_dts/api/src/calendar.d.ts +11 -1
  7. package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
  8. package/dist/_dts/api/src/contentVersionHistory.d.ts +52 -0
  9. package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +45 -0
  10. package/dist/_dts/api/src/endpoints.d.ts +206 -6
  11. package/dist/_dts/api/src/index.d.ts +9 -2
  12. package/dist/_dts/api/src/participantMessaging.d.ts +113 -0
  13. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +31 -7
  14. package/dist/_dts/api/src/siteMembers.d.ts +10 -1
  15. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +76 -51
  16. package/dist/_dts/api/src/types.d.ts +3 -1
  17. package/dist/_dts/api/src/url.d.ts +3 -3
  18. package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
  19. package/dist/_dts/blocks/src/index.d.ts +66 -62
  20. package/dist/_dts/blocks/src/lib/media.d.ts +60 -0
  21. package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +2 -2
  22. package/dist/_dts/blocks/src/system/blocks/audio-player.d.ts +2 -2
  23. package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +2 -2
  24. package/dist/_dts/blocks/src/system/blocks/blog-post.d.ts +0 -21
  25. package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +2 -6
  26. package/dist/_dts/blocks/src/system/blocks/cart.d.ts +2 -2
  27. package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +2 -2
  28. package/dist/_dts/blocks/src/system/blocks/collection.d.ts +0 -10
  29. package/dist/_dts/blocks/src/system/blocks/columns.d.ts +0 -10
  30. package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -20
  31. package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +0 -20
  32. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +15 -15
  33. package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +5 -10
  34. package/dist/_dts/blocks/src/system/blocks/embed.d.ts +0 -11
  35. package/dist/_dts/blocks/src/system/blocks/event-details.d.ts +0 -20
  36. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +0 -20
  37. package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +43 -27
  38. package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +24 -15
  39. package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -2
  40. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +132 -12
  41. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +3 -2
  42. package/dist/_dts/blocks/src/system/blocks/faq.d.ts +2 -10
  43. package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +2 -2
  44. package/dist/_dts/blocks/src/system/blocks/form.d.ts +2 -24
  45. package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +2 -2
  46. package/dist/_dts/blocks/src/system/blocks/hero.d.ts +2 -3
  47. package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +2 -2
  48. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +0 -13
  49. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +17 -17
  50. package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +2 -10
  51. package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +2 -2
  52. package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +2 -2
  53. package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +9 -9
  54. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
  55. package/dist/_dts/blocks/src/system/blocks/single-button.d.ts +16 -15
  56. package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +2 -6
  57. package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +0 -11
  58. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -3
  59. package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +2 -2
  60. package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +2 -2
  61. package/dist/_dts/blocks/src/system/constants/events.d.ts +18 -0
  62. package/dist/_dts/blocks/src/system/customize/facets.d.ts +105 -0
  63. package/dist/_dts/blocks/src/system/defineBlock.d.ts +29 -5
  64. package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +2 -1
  65. package/dist/_dts/blocks/src/system/fragments/library/blogFeaturedPost.d.ts +0 -24
  66. package/dist/_dts/blocks/src/system/fragments/library/bodyCopy.d.ts +0 -4
  67. package/dist/_dts/blocks/src/system/fragments/library/bookingForm.d.ts +0 -4
  68. package/dist/_dts/blocks/src/system/fragments/library/card.d.ts +0 -6
  69. package/dist/_dts/blocks/src/system/fragments/library/columnContent.d.ts +0 -6
  70. package/dist/_dts/blocks/src/system/fragments/library/ctaCopy.d.ts +0 -4
  71. package/dist/_dts/blocks/src/system/fragments/library/ctaRow.d.ts +0 -4
  72. package/dist/_dts/blocks/src/system/fragments/library/faqAccordion.d.ts +0 -4
  73. package/dist/_dts/blocks/src/system/fragments/library/faqHeading.d.ts +0 -4
  74. package/dist/_dts/blocks/src/system/fragments/library/feedbackCallout.d.ts +0 -6
  75. package/dist/_dts/blocks/src/system/fragments/library/footerBottomText.d.ts +0 -4
  76. package/dist/_dts/blocks/src/system/fragments/library/formCopy.d.ts +0 -4
  77. package/dist/_dts/blocks/src/system/fragments/library/formEmbed.d.ts +0 -18
  78. package/dist/_dts/blocks/src/system/fragments/library/headerCta.d.ts +0 -4
  79. package/dist/_dts/blocks/src/system/fragments/library/heading.d.ts +0 -6
  80. package/dist/_dts/blocks/src/system/fragments/library/heroCopy.d.ts +0 -4
  81. package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +0 -4
  82. package/dist/_dts/blocks/src/system/fragments/library/heroLayoutControls.d.ts +0 -4
  83. package/dist/_dts/blocks/src/system/fragments/library/image.d.ts +0 -6
  84. package/dist/_dts/blocks/src/system/fragments/library/newsletterCopy.d.ts +0 -4
  85. package/dist/_dts/blocks/src/system/fragments/library/newsletterForm.d.ts +0 -4
  86. package/dist/_dts/blocks/src/system/fragments/library/quote.d.ts +0 -6
  87. package/dist/_dts/blocks/src/system/fragments/library/richText.d.ts +0 -6
  88. package/dist/_dts/blocks/src/system/fragments/library/sectionState.d.ts +0 -6
  89. package/dist/_dts/blocks/src/system/fragments/library/singleButton.d.ts +0 -4
  90. package/dist/_dts/blocks/src/system/fragments/library/spinner.d.ts +0 -5
  91. package/dist/_dts/blocks/src/system/fragments/library/teamMember.d.ts +0 -6
  92. package/dist/_dts/blocks/src/system/fragments/library/testimonialsCarousel.d.ts +0 -31
  93. package/dist/_dts/blocks/src/system/fragments/library/testimonialsHeading.d.ts +0 -4
  94. package/dist/_dts/blocks/src/system/fragments/library/videoEmbed.d.ts +0 -6
  95. package/dist/_dts/blocks/src/system/fragments/types.d.ts +11 -3
  96. package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +4 -0
  97. package/dist/_dts/blocks/src/system/index.d.ts +1 -0
  98. package/dist/_dts/blocks/src/system/manifest/derivedContent.d.ts +3 -3
  99. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +10 -10
  100. package/dist/_dts/blocks/src/system/media/constrainedVideoMedia.d.ts +13 -0
  101. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -0
  102. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -0
  103. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -0
  104. package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +1 -0
  105. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +12 -0
  106. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -0
  107. package/dist/_dts/blocks/src/system/runtime/shared/components/FieldValidationMessage.d.ts +19 -0
  108. package/dist/_dts/blocks/src/system/runtime/shared/components/TerminalPanel.d.ts +8 -2
  109. package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +3 -1
  110. package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
  111. package/dist/_dts/blocks/src/system/transforms/registry/_utils/themeColorResolution.d.ts +7 -0
  112. package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +24 -0
  113. package/dist/_dts/content-editor/src/index.d.ts +1 -0
  114. package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +1 -0
  115. package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -0
  116. package/dist/_dts/content-model/src/contentManifest.d.ts +2 -2
  117. package/dist/_dts/content-model/src/referenceFields.d.ts +7 -1
  118. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +242 -6
  119. package/dist/_dts/db/src/schemas/forms.d.ts +1 -0
  120. package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -0
  121. package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerWidgetProvider.d.ts +3 -2
  122. package/dist/_dts/editor-blocks/src/widgets/entry-picker/loaders.d.ts +2 -1
  123. package/dist/_dts/editor-blocks/src/widgets/entry-picker/types.d.ts +2 -1
  124. package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +2 -1
  125. package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +2 -1
  126. package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +2 -1
  127. package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +2 -1
  128. package/dist/_dts/editor-blocks/src/widgets/link/types.d.ts +3 -2
  129. package/dist/_dts/editor-blocks/src/widgets/reference/dynamicAdapters.d.ts +9 -0
  130. package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +5 -1
  131. package/dist/_dts/media-core/src/index.d.ts +1 -0
  132. package/dist/_dts/media-core/src/videoSlotPolicy.d.ts +38 -0
  133. package/dist/_dts/media-editor/src/MediaEditor.d.ts +3 -1
  134. package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +7 -0
  135. package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +2 -1
  136. package/dist/_dts/preview-next/src/client/blocks/composer/composePageFromBlocks.d.ts +2 -1
  137. package/dist/_dts/preview-next/src/client/blocks/composer/index.d.ts +2 -2
  138. package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -1
  139. package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +31 -8
  140. package/dist/_dts/preview-next/src/client/blocks/customizeFacetControls.d.ts +9 -0
  141. package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +6 -5
  142. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +14 -0
  143. package/dist/_dts/preview-next/src/client/blocks/previewProjection/aiProposalProjection.d.ts +7 -0
  144. package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +7 -0
  145. package/dist/_dts/preview-next/src/client/blocks/previewProjection/index.d.ts +4 -0
  146. package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +5 -0
  147. package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +72 -0
  148. package/dist/_dts/preview-next/src/client/index.d.ts +1 -1
  149. package/dist/_dts/preview-next/src/client/layout/PreviewLayoutContext.d.ts +8 -5
  150. package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +2 -1
  151. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +11 -1
  152. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +9 -5
  153. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +6 -1
  154. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +13 -2
  155. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +7 -1
  156. package/dist/_dts/preview-next/src/client/preview/previewCustomizeControlStyles.d.ts +1 -0
  157. package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +7 -3
  158. package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +9 -1
  159. package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +13 -0
  160. package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +8 -2
  161. package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +49 -0
  162. package/dist/_dts/preview-next/src/client/widgets/widgetAdapters.d.ts +1 -1
  163. package/dist/_dts/sdk/src/contracts/content.d.ts +10 -0
  164. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -1
  165. package/dist/_dts/sdk/src/manifest/prompt/examples/features-grid.d.ts +1 -1
  166. package/dist/_dts/sdk/src/manifest/prompt/examples/pricing.d.ts +5 -5
  167. package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -1
  168. package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +1 -0
  169. package/dist/_dts/sdk/src/version.d.ts +1 -1
  170. package/dist/_dts/surfaces/src/index.d.ts +1 -0
  171. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  172. package/dist/_dts/theme-core/src/index.d.ts +1 -0
  173. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +3 -0
  174. package/dist/_dts/theme-core/src/palette/variants/types.d.ts +2 -21
  175. package/dist/_dts/theme-core/src/schema.d.ts +25 -0
  176. package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +451 -0
  177. package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +12 -0
  178. package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +61 -0
  179. package/dist/_dts/theme-core/src/site-styles/appearancePresets.d.ts +5 -563
  180. package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +448 -0
  181. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +30 -0
  182. package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +94 -0
  183. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +12 -0
  184. package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +59 -0
  185. package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +4 -0
  186. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -0
  187. package/dist/_dts/theme-core/src/site-styles/headerCtaVariants.d.ts +3 -0
  188. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +155 -0
  189. package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +15 -0
  190. package/dist/_dts/theme-core/src/site-styles/index.d.ts +6 -0
  191. package/dist/_dts/theme-core/src/site-styles/pageDesignAuthority.d.ts +7 -0
  192. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +25 -0
  193. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +15 -1
  194. package/dist/_dts/theme-core/src/site-styles/records.d.ts +1 -0
  195. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +8 -0
  196. package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +96 -0
  197. package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +6 -6
  198. package/dist/_dts/theme-core/src/site-styles/types.d.ts +23 -5
  199. package/dist/_dts/theme-core/src/siteChrome.d.ts +53 -0
  200. package/dist/_dts/theme-core/src/tokens/colorTokenParts.d.ts +13 -0
  201. package/dist/_dts/theme-core/src/tokens/index.d.ts +2 -0
  202. package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +29 -0
  203. package/dist/_dts/theme-core/src/utils/tokenOrColor.d.ts +27 -1
  204. package/dist/cli/index.mjs +5149 -3635
  205. package/dist/client/bookings.mjs +711 -560
  206. package/dist/client/client.mjs +10110 -8168
  207. package/dist/client/hooks.mjs +3861 -2739
  208. package/dist/client/rendering/client.mjs +8606 -7009
  209. package/dist/client/rendering/islands.mjs +25202 -23768
  210. package/dist/client/rendering.mjs +10661 -8713
  211. package/dist/preview-next/before-render.mjs +256 -6
  212. package/dist/preview-next/client/runtime.mjs +7700 -4016
  213. package/dist/preview-next/editor-base.css +31 -0
  214. package/dist/preview-next/middleware.mjs +267 -6
  215. package/dist/server/components.mjs +4501 -3270
  216. package/dist/server/config-validation.mjs +4089 -2967
  217. package/dist/server/config.mjs +4089 -2967
  218. package/dist/server/data.mjs +3861 -2739
  219. package/dist/server/index.mjs +322 -24
  220. package/dist/server/next.mjs +4274 -3041
  221. package/dist/server/page-converter.mjs +3520 -2717
  222. package/dist/server/prebuild.mjs +1 -1
  223. package/dist/server/rendering/server.mjs +4500 -3270
  224. package/dist/server/rendering.mjs +4526 -3291
  225. package/dist/server/routing.mjs +4006 -2723
  226. package/dist/server/server.mjs +3897 -2772
  227. package/dist/server/theme-bridge.mjs +1435 -788
  228. package/dist/server/theme.mjs +628 -497
  229. package/dist/styles/index.css +61 -9
  230. package/package.json +1 -1
  231. package/dist/_dts/blocks/src/system/transforms/registry/_utils/colorResolution.d.ts +0 -13
  232. package/dist/_dts/preview-next/src/client/blocks/overlay.d.ts +0 -30
@@ -424,6 +424,8 @@ export type Database = {
424
424
  };
425
425
  appointment_availability_rules: {
426
426
  Row: {
427
+ command_batch_ref: string | null;
428
+ command_owner_ref: string | null;
427
429
  created_at: string;
428
430
  end_time: string;
429
431
  id: string;
@@ -435,6 +437,8 @@ export type Database = {
435
437
  weekday: number;
436
438
  };
437
439
  Insert: {
440
+ command_batch_ref?: string | null;
441
+ command_owner_ref?: string | null;
438
442
  created_at?: string;
439
443
  end_time: string;
440
444
  id?: string;
@@ -446,6 +450,8 @@ export type Database = {
446
450
  weekday: number;
447
451
  };
448
452
  Update: {
453
+ command_batch_ref?: string | null;
454
+ command_owner_ref?: string | null;
449
455
  created_at?: string;
450
456
  end_time?: string;
451
457
  id?: string;
@@ -1300,6 +1306,202 @@ export type Database = {
1300
1306
  }
1301
1307
  ];
1302
1308
  };
1309
+ booking_closure_notification_jobs: {
1310
+ Row: {
1311
+ attendee_id: string;
1312
+ closure_id: string;
1313
+ created_at: string;
1314
+ id: string;
1315
+ idempotency_key: string;
1316
+ occurrence_id: string;
1317
+ site_id: string;
1318
+ transactional_email_job_id: string;
1319
+ };
1320
+ Insert: {
1321
+ attendee_id: string;
1322
+ closure_id: string;
1323
+ created_at?: string;
1324
+ id?: string;
1325
+ idempotency_key: string;
1326
+ occurrence_id: string;
1327
+ site_id: string;
1328
+ transactional_email_job_id: string;
1329
+ };
1330
+ Update: {
1331
+ attendee_id?: string;
1332
+ closure_id?: string;
1333
+ created_at?: string;
1334
+ id?: string;
1335
+ idempotency_key?: string;
1336
+ occurrence_id?: string;
1337
+ site_id?: string;
1338
+ transactional_email_job_id?: string;
1339
+ };
1340
+ Relationships: [
1341
+ {
1342
+ foreignKeyName: "booking_closure_notification_jo_transactional_email_job_id_fkey";
1343
+ columns: ["transactional_email_job_id"];
1344
+ isOneToOne: false;
1345
+ referencedRelation: "transactional_email_jobs";
1346
+ referencedColumns: ["id"];
1347
+ },
1348
+ {
1349
+ foreignKeyName: "booking_closure_notification_jobs_attendee_id_fkey";
1350
+ columns: ["attendee_id"];
1351
+ isOneToOne: false;
1352
+ referencedRelation: "event_attendees";
1353
+ referencedColumns: ["id"];
1354
+ },
1355
+ {
1356
+ foreignKeyName: "booking_closure_notification_jobs_closure_id_fkey";
1357
+ columns: ["closure_id"];
1358
+ isOneToOne: false;
1359
+ referencedRelation: "booking_closures";
1360
+ referencedColumns: ["id"];
1361
+ },
1362
+ {
1363
+ foreignKeyName: "booking_closure_notification_jobs_occurrence_id_fkey";
1364
+ columns: ["occurrence_id"];
1365
+ isOneToOne: false;
1366
+ referencedRelation: "event_occurrences";
1367
+ referencedColumns: ["id"];
1368
+ },
1369
+ {
1370
+ foreignKeyName: "booking_closure_notification_jobs_site_id_fkey";
1371
+ columns: ["site_id"];
1372
+ isOneToOne: false;
1373
+ referencedRelation: "sites";
1374
+ referencedColumns: ["id"];
1375
+ }
1376
+ ];
1377
+ };
1378
+ booking_closure_occurrence_actions: {
1379
+ Row: {
1380
+ action_type: string;
1381
+ cancellation_state: string;
1382
+ closure_id: string;
1383
+ created_at: string;
1384
+ id: string;
1385
+ last_error: string | null;
1386
+ occurrence_id: string;
1387
+ site_id: string;
1388
+ updated_at: string;
1389
+ };
1390
+ Insert: {
1391
+ action_type?: string;
1392
+ cancellation_state?: string;
1393
+ closure_id: string;
1394
+ created_at?: string;
1395
+ id?: string;
1396
+ last_error?: string | null;
1397
+ occurrence_id: string;
1398
+ site_id: string;
1399
+ updated_at?: string;
1400
+ };
1401
+ Update: {
1402
+ action_type?: string;
1403
+ cancellation_state?: string;
1404
+ closure_id?: string;
1405
+ created_at?: string;
1406
+ id?: string;
1407
+ last_error?: string | null;
1408
+ occurrence_id?: string;
1409
+ site_id?: string;
1410
+ updated_at?: string;
1411
+ };
1412
+ Relationships: [
1413
+ {
1414
+ foreignKeyName: "booking_closure_occurrence_actions_closure_id_fkey";
1415
+ columns: ["closure_id"];
1416
+ isOneToOne: false;
1417
+ referencedRelation: "booking_closures";
1418
+ referencedColumns: ["id"];
1419
+ },
1420
+ {
1421
+ foreignKeyName: "booking_closure_occurrence_actions_occurrence_id_fkey";
1422
+ columns: ["occurrence_id"];
1423
+ isOneToOne: false;
1424
+ referencedRelation: "event_occurrences";
1425
+ referencedColumns: ["id"];
1426
+ },
1427
+ {
1428
+ foreignKeyName: "booking_closure_occurrence_actions_site_id_fkey";
1429
+ columns: ["site_id"];
1430
+ isOneToOne: false;
1431
+ referencedRelation: "sites";
1432
+ referencedColumns: ["id"];
1433
+ }
1434
+ ];
1435
+ };
1436
+ booking_closures: {
1437
+ Row: {
1438
+ created_at: string;
1439
+ created_by_user_id: string | null;
1440
+ deleted_at: string | null;
1441
+ deleted_by_user_id: string | null;
1442
+ ends_on: string;
1443
+ id: string;
1444
+ metadata: Json;
1445
+ name: string | null;
1446
+ reason: string;
1447
+ scope_type: string;
1448
+ site_id: string;
1449
+ starts_on: string;
1450
+ timezone: string;
1451
+ updated_at: string;
1452
+ venue_id: string | null;
1453
+ };
1454
+ Insert: {
1455
+ created_at?: string;
1456
+ created_by_user_id?: string | null;
1457
+ deleted_at?: string | null;
1458
+ deleted_by_user_id?: string | null;
1459
+ ends_on: string;
1460
+ id?: string;
1461
+ metadata?: Json;
1462
+ name?: string | null;
1463
+ reason: string;
1464
+ scope_type: string;
1465
+ site_id: string;
1466
+ starts_on: string;
1467
+ timezone: string;
1468
+ updated_at?: string;
1469
+ venue_id?: string | null;
1470
+ };
1471
+ Update: {
1472
+ created_at?: string;
1473
+ created_by_user_id?: string | null;
1474
+ deleted_at?: string | null;
1475
+ deleted_by_user_id?: string | null;
1476
+ ends_on?: string;
1477
+ id?: string;
1478
+ metadata?: Json;
1479
+ name?: string | null;
1480
+ reason?: string;
1481
+ scope_type?: string;
1482
+ site_id?: string;
1483
+ starts_on?: string;
1484
+ timezone?: string;
1485
+ updated_at?: string;
1486
+ venue_id?: string | null;
1487
+ };
1488
+ Relationships: [
1489
+ {
1490
+ foreignKeyName: "booking_closures_site_id_fkey";
1491
+ columns: ["site_id"];
1492
+ isOneToOne: false;
1493
+ referencedRelation: "sites";
1494
+ referencedColumns: ["id"];
1495
+ },
1496
+ {
1497
+ foreignKeyName: "booking_closures_venue_id_fkey";
1498
+ columns: ["venue_id"];
1499
+ isOneToOne: false;
1500
+ referencedRelation: "venues";
1501
+ referencedColumns: ["id"];
1502
+ }
1503
+ ];
1504
+ };
1303
1505
  booking_credit_restorations: {
1304
1506
  Row: {
1305
1507
  actor_kind: string;
@@ -3024,6 +3226,7 @@ export type Database = {
3024
3226
  finalized_by_customer_at: string | null;
3025
3227
  id: string;
3026
3228
  original_filename: string;
3229
+ participant_participation_id: string;
3027
3230
  rejection_reason: string | null;
3028
3231
  requirement_id: string;
3029
3232
  session_id: string;
@@ -3053,6 +3256,7 @@ export type Database = {
3053
3256
  finalized_by_customer_at?: string | null;
3054
3257
  id?: string;
3055
3258
  original_filename: string;
3259
+ participant_participation_id: string;
3056
3260
  rejection_reason?: string | null;
3057
3261
  requirement_id: string;
3058
3262
  session_id: string;
@@ -3082,6 +3286,7 @@ export type Database = {
3082
3286
  finalized_by_customer_at?: string | null;
3083
3287
  id?: string;
3084
3288
  original_filename?: string;
3289
+ participant_participation_id?: string;
3085
3290
  rejection_reason?: string | null;
3086
3291
  requirement_id?: string;
3087
3292
  session_id?: string;
@@ -3128,6 +3333,13 @@ export type Database = {
3128
3333
  referencedRelation: "event_attendees";
3129
3334
  referencedColumns: ["id"];
3130
3335
  },
3336
+ {
3337
+ foreignKeyName: "booking_requirement_document_uploads_participant_participation_";
3338
+ columns: ["participant_participation_id"];
3339
+ isOneToOne: false;
3340
+ referencedRelation: "booking_participant_participations";
3341
+ referencedColumns: ["id"];
3342
+ },
3131
3343
  {
3132
3344
  foreignKeyName: "booking_requirement_document_uploads_requirement_id_fkey";
3133
3345
  columns: ["requirement_id"];
@@ -3156,7 +3368,7 @@ export type Database = {
3156
3368
  event_attendee_id: string | null;
3157
3369
  id: string;
3158
3370
  participant_id: string | null;
3159
- participant_participation_id: string | null;
3371
+ participant_participation_id: string;
3160
3372
  requirement_id: string;
3161
3373
  site_id: string;
3162
3374
  snapshot_json: Json;
@@ -3173,7 +3385,7 @@ export type Database = {
3173
3385
  event_attendee_id?: string | null;
3174
3386
  id?: string;
3175
3387
  participant_id?: string | null;
3176
- participant_participation_id?: string | null;
3388
+ participant_participation_id: string;
3177
3389
  requirement_id: string;
3178
3390
  site_id: string;
3179
3391
  snapshot_json?: Json;
@@ -3190,7 +3402,7 @@ export type Database = {
3190
3402
  event_attendee_id?: string | null;
3191
3403
  id?: string;
3192
3404
  participant_id?: string | null;
3193
- participant_participation_id?: string | null;
3405
+ participant_participation_id?: string;
3194
3406
  requirement_id?: string;
3195
3407
  site_id?: string;
3196
3408
  snapshot_json?: Json;
@@ -3336,7 +3548,7 @@ export type Database = {
3336
3548
  event_attendee_id: string | null;
3337
3549
  id: string;
3338
3550
  participant_id: string | null;
3339
- participant_participation_id: string | null;
3551
+ participant_participation_id: string;
3340
3552
  requirement_id: string;
3341
3553
  site_id: string;
3342
3554
  };
@@ -3350,7 +3562,7 @@ export type Database = {
3350
3562
  event_attendee_id?: string | null;
3351
3563
  id?: string;
3352
3564
  participant_id?: string | null;
3353
- participant_participation_id?: string | null;
3565
+ participant_participation_id: string;
3354
3566
  requirement_id: string;
3355
3567
  site_id: string;
3356
3568
  };
@@ -3364,7 +3576,7 @@ export type Database = {
3364
3576
  event_attendee_id?: string | null;
3365
3577
  id?: string;
3366
3578
  participant_id?: string | null;
3367
- participant_participation_id?: string | null;
3579
+ participant_participation_id?: string;
3368
3580
  requirement_id?: string;
3369
3581
  site_id?: string;
3370
3582
  };
@@ -12240,6 +12452,8 @@ export type Database = {
12240
12452
  Row: {
12241
12453
  button_personality_id: string | null;
12242
12454
  created_at: string;
12455
+ footer_look_id: string | null;
12456
+ header_look_id: string | null;
12243
12457
  id: string;
12244
12458
  is_current: boolean;
12245
12459
  overrides: Json;
@@ -12253,6 +12467,8 @@ export type Database = {
12253
12467
  Insert: {
12254
12468
  button_personality_id?: string | null;
12255
12469
  created_at?: string;
12470
+ footer_look_id?: string | null;
12471
+ header_look_id?: string | null;
12256
12472
  id?: string;
12257
12473
  is_current?: boolean;
12258
12474
  overrides?: Json;
@@ -12266,6 +12482,8 @@ export type Database = {
12266
12482
  Update: {
12267
12483
  button_personality_id?: string | null;
12268
12484
  created_at?: string;
12485
+ footer_look_id?: string | null;
12486
+ header_look_id?: string | null;
12269
12487
  id?: string;
12270
12488
  is_current?: boolean;
12271
12489
  overrides?: Json;
@@ -14717,6 +14935,24 @@ export type Database = {
14717
14935
  order_id: string;
14718
14936
  }[];
14719
14937
  };
14938
+ postgres_fdw_disconnect: {
14939
+ Args: {
14940
+ "": string;
14941
+ };
14942
+ Returns: boolean;
14943
+ };
14944
+ postgres_fdw_disconnect_all: {
14945
+ Args: never;
14946
+ Returns: boolean;
14947
+ };
14948
+ postgres_fdw_get_connections: {
14949
+ Args: never;
14950
+ Returns: Record<string, unknown>[];
14951
+ };
14952
+ postgres_fdw_handler: {
14953
+ Args: never;
14954
+ Returns: unknown;
14955
+ };
14720
14956
  redeem_pass_credits: {
14721
14957
  Args: {
14722
14958
  credits_amount?: number;
@@ -886,6 +886,7 @@ export declare function parseBookingQuestionsContent(shape: BookingQuestionsForm
886
886
  * Form creation payload schema
887
887
  * Validates the request body when creating a new form via API
888
888
  */
889
+ export declare const formSlugSchema: z.ZodString;
889
890
  export declare const createFormPayloadSchema: z.ZodObject<{
890
891
  name: z.ZodString;
891
892
  slug: z.ZodString;
@@ -1,8 +1,10 @@
1
1
  import type { FieldWidgetProps } from '@riverbankcms/block-form/client';
2
2
  import type { MediaFieldConfig } from '@riverbankcms/block-form/client';
3
3
  import type { UploadIntentContract } from '@riverbankcms/api';
4
+ import { type VideoPrepIntent } from '@riverbankcms/media-core';
4
5
  import { type MediaValue } from '@riverbankcms/media-editor';
5
6
  import type { VideoPrepIntentResolver } from '@riverbankcms/media-react';
6
7
  export declare function uploadIntentForMediaField(blockKind: string | undefined, fieldPath: string): UploadIntentContract | undefined;
7
8
  export declare function videoPrepIntentForMediaField(blockKind: string | undefined, fieldPath: string, mediaKinds: readonly NonNullable<MediaFieldConfig['mediaKinds']>[number][] | undefined): VideoPrepIntentResolver | undefined;
9
+ export declare function videoSelectionIntentForMediaField(blockKind: string | undefined, fieldPath: string, mediaKinds: readonly NonNullable<MediaFieldConfig['mediaKinds']>[number][] | undefined): VideoPrepIntent | undefined;
8
10
  export declare function MediaField({ path, backend, config }: FieldWidgetProps<MediaValue, MediaFieldConfig>): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,12 @@
1
1
  import { type ReactNode } from 'react';
2
+ import type { SiteId } from '@riverbankcms/core';
2
3
  import type { EntryPickerWidgetAdapter } from './types';
3
4
  type EntryPickerWidgetContextValue = {
4
- siteId: string;
5
+ siteId: SiteId;
5
6
  adapter: EntryPickerWidgetAdapter | null;
6
7
  };
7
8
  export type EntryPickerWidgetProviderProps = {
8
- siteId: string;
9
+ siteId: SiteId;
9
10
  adapter?: EntryPickerWidgetAdapter | null;
10
11
  children: ReactNode;
11
12
  };
@@ -1,9 +1,10 @@
1
1
  import type { ContentEntrySummary } from '@riverbankcms/api/content-entries';
2
2
  import type { ApiClient } from '@riverbankcms/api/request';
3
+ import type { SiteId } from '@riverbankcms/core';
3
4
  import type { EntryPickerItem, EntryPickerValueFrom } from './types';
4
5
  export type EntryPickerLoaderArgs = Readonly<{
5
6
  apiClient: ApiClient;
6
- siteId: string;
7
+ siteId: SiteId;
7
8
  contentType: string;
8
9
  valueFrom?: EntryPickerValueFrom;
9
10
  }>;
@@ -1,4 +1,5 @@
1
1
  import type { PickerLabels, PickerOption, PickerOptionBadgeVariant } from '@riverbankcms/ui';
2
+ import type { SiteId } from '@riverbankcms/core';
2
3
  export type EntryPickerItemBadgeVariant = PickerOptionBadgeVariant;
3
4
  export type EntryPickerValueFrom = 'id' | 'identifier' | 'slug';
4
5
  export type EntryPickerItem = PickerOption & {
@@ -8,7 +9,7 @@ export type EntryPickerItem = PickerOption & {
8
9
  slug?: string | null;
9
10
  };
10
11
  export type EntryPickerAdapterArgs = {
11
- siteId: string;
12
+ siteId: SiteId;
12
13
  contentType: string;
13
14
  /** Determines what should be stored in the field value */
14
15
  valueFrom?: EntryPickerValueFrom;
@@ -1,8 +1,9 @@
1
1
  import type { RoutableContentItem } from '@riverbankcms/api/navigation';
2
+ import type { SiteId } from '@riverbankcms/core';
2
3
  import type { LinkValue } from '@riverbankcms/blocks';
3
4
  import type { LinkWidgetAdapters } from './types';
4
5
  export type LinkPickerProps = {
5
- siteId?: string;
6
+ siteId?: SiteId;
6
7
  value: LinkValue | null;
7
8
  onChange: (value: LinkValue | null) => void;
8
9
  disabled?: boolean;
@@ -1,9 +1,10 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type LinkValue } from '@riverbankcms/blocks';
3
3
  import type { RoutableContentItem } from '@riverbankcms/api/navigation';
4
+ import type { SiteId } from '@riverbankcms/core';
4
5
  import type { LinkWidgetAdapters } from './types';
5
6
  type LinkWidgetProps = {
6
- siteId?: string;
7
+ siteId?: SiteId;
7
8
  value: LinkValue | null;
8
9
  onChange: (value: LinkValue | null) => void;
9
10
  disabled?: boolean;
@@ -1,5 +1,6 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import type { RoutableContentItem } from '@riverbankcms/api/navigation';
3
+ import type { SiteId } from '@riverbankcms/core';
3
4
  import type { LinkWidgetAdapters } from './types';
4
5
  /**
5
6
  * Context value for LinkWidget
@@ -8,7 +9,7 @@ import type { LinkWidgetAdapters } from './types';
8
9
  * without prop drilling through FormRenderer
9
10
  */
10
11
  export type LinkWidgetContextValue = {
11
- siteId?: string;
12
+ siteId?: SiteId;
12
13
  adapters?: LinkWidgetAdapters;
13
14
  initialItems?: RoutableContentItem[];
14
15
  };
@@ -1,7 +1,8 @@
1
1
  import type { RoutableContentItem } from '@riverbankcms/api/navigation';
2
2
  import type { ApiClient } from '@riverbankcms/api/request';
3
+ import type { SiteId } from '@riverbankcms/core';
3
4
  export type RoutableContentLoaderArgs = Readonly<{
4
5
  apiClient: ApiClient;
5
- siteId: string;
6
+ siteId: SiteId;
6
7
  }>;
7
8
  export declare function loadRoutableContentItems({ apiClient, siteId, }: RoutableContentLoaderArgs): Promise<RoutableContentItem[]>;
@@ -1,9 +1,10 @@
1
1
  import type { RoutableContentItem } from '@riverbankcms/api/navigation';
2
+ import type { SiteId } from '@riverbankcms/core';
2
3
  export type LinkWidgetAdapters = {
3
- fetchRoutableContent?: (siteId: string) => Promise<RoutableContentItem[]>;
4
+ fetchRoutableContent?: (siteId: SiteId) => Promise<RoutableContentItem[]>;
4
5
  };
5
6
  export type CreateLinkWidgetOptions = {
6
- siteId?: string;
7
+ siteId?: SiteId;
7
8
  adapters?: LinkWidgetAdapters;
8
9
  initialItems?: RoutableContentItem[];
9
10
  };
@@ -0,0 +1,9 @@
1
+ import { type ReferenceContentTypeKey } from '@riverbankcms/content-model';
2
+ import type { ReferenceWidgetAdapter, ReferenceWidgetAdapters } from './types';
3
+ export type DynamicContentReferenceAdapterFactory = (contentTypeKey: ReferenceContentTypeKey) => ReferenceWidgetAdapter;
4
+ /**
5
+ * Adds dynamic `content:${contentTypeKey}` adapter resolution to a static
6
+ * reference adapter map while keeping symbol property lookups inert for
7
+ * framework/devtool probes.
8
+ */
9
+ export declare function createDynamicReferenceAdapters(staticAdapters: ReferenceWidgetAdapters, createDynamicContentAdapter: DynamicContentReferenceAdapterFactory): ReferenceWidgetAdapters;
@@ -15,13 +15,16 @@
15
15
  * composition layer.
16
16
  */
17
17
  import type { ApiClient } from '@riverbankcms/api/request';
18
- import type { BuiltInReferenceKind } from '@riverbankcms/content-model';
18
+ import type { BuiltInReferenceKind, ReferenceContentTypeKey } from '@riverbankcms/content-model';
19
19
  import type { SiteId } from '@riverbankcms/core';
20
20
  import type { ReferenceWidgetItem } from './types';
21
21
  export interface ReferenceLoaderArgs {
22
22
  apiClient: ApiClient;
23
23
  siteId: SiteId;
24
24
  }
25
+ export interface DynamicContentReferenceLoaderArgs extends ReferenceLoaderArgs {
26
+ contentTypeKey: ReferenceContentTypeKey;
27
+ }
25
28
  export type ReferenceLoader<K extends BuiltInReferenceKind = BuiltInReferenceKind> = ((args: ReferenceLoaderArgs) => Promise<ReferenceWidgetItem[]>) & Readonly<{
26
29
  referenceKind: K;
27
30
  }>;
@@ -35,6 +38,7 @@ export declare const loadAppointmentServiceReferenceItems: ReferenceLoader<"appo
35
38
  export declare const loadAppointmentResourceReferenceItems: ReferenceLoader<"appointmentResource">;
36
39
  export declare const loadPageReferenceItems: ReferenceLoader<"page">;
37
40
  export declare const loadNewsletterListReferenceItems: ReferenceLoader<"newsletterList">;
41
+ export declare function loadDynamicContentReferenceItems({ apiClient, siteId, contentTypeKey, }: DynamicContentReferenceLoaderArgs): Promise<ReferenceWidgetItem[]>;
38
42
  /**
39
43
  * Typed map keyed by `BuiltInReferenceKind`. Adding a new built-in kind fails to
40
44
  * compile here. The `satisfies` form preserves the literal's inferred shape while
@@ -15,6 +15,7 @@ export * from './fileAssetDeletion';
15
15
  export * from './fileAssetCompatibility';
16
16
  export * from './fileMimeDetection';
17
17
  export * from './videoPrep';
18
+ export * from './videoSlotPolicy';
18
19
  export * from './identifiers';
19
20
  export { getImageUrl, getDirectImageUrl, getDirectImageUrlForRelativePath, getDirectImageUrlForSiteScopedPath, getDirectImageUrlForBucketPath, getDirectImageUrlForStoragePath, getDirectImageUrlForMediaAsset, isRelativeDirectImageStoragePath, isSiteScopedDirectImageStoragePath, type DirectImageMediaAsset, type DirectImageUrlOptions, type DirectImageUrlPathTarget, type ImageProxyFit, type ImageProxyParams, } from './url';
20
21
  export { isSameTransformRect, isSameHotspot, type HotspotLike } from './compare';
@@ -0,0 +1,38 @@
1
+ import { type VideoPrepIntent } from './videoPrep';
2
+ export type VideoSlotPolicyIntent = Extract<VideoPrepIntent, {
3
+ readonly tag: 'inline-content';
4
+ } | {
5
+ readonly tag: 'background-video';
6
+ }>;
7
+ export type VideoSlotPolicy = Readonly<{
8
+ intent: VideoSlotPolicyIntent;
9
+ maxDurationSeconds: number;
10
+ }>;
11
+ export type VideoSlotAssetLike = Readonly<{
12
+ mimeType?: string | null;
13
+ durationSeconds?: number | null;
14
+ }>;
15
+ export type VideoSlotFieldInput = Readonly<{
16
+ blockKind?: string | null;
17
+ fieldPath: string;
18
+ mediaKinds?: readonly string[] | null;
19
+ }>;
20
+ export type VideoSlotAssetPolicyResult = Readonly<{
21
+ tag: 'allowed';
22
+ }> | Readonly<{
23
+ tag: 'not-video';
24
+ }> | Readonly<{
25
+ tag: 'unconstrained';
26
+ }> | Readonly<{
27
+ tag: 'duration-unknown';
28
+ maxSeconds: number;
29
+ }> | Readonly<{
30
+ tag: 'duration-too-long';
31
+ actualSeconds: number;
32
+ maxSeconds: number;
33
+ }>;
34
+ export declare function deriveVideoSlotPolicy(intent: VideoPrepIntent | undefined): VideoSlotPolicy | undefined;
35
+ export declare function evaluateVideoSlotAssetPolicy(asset: VideoSlotAssetLike, policy: VideoSlotPolicy | undefined): VideoSlotAssetPolicyResult;
36
+ export declare function resolveVideoSelectionIntentForMediaField(input: VideoSlotFieldInput): VideoSlotPolicyIntent | undefined;
37
+ export declare function isVideoSlotAssetSelectable(result: VideoSlotAssetPolicyResult): boolean;
38
+ export declare function videoSlotAssetPolicyMessage(result: VideoSlotAssetPolicyResult): string | undefined;
@@ -1,5 +1,6 @@
1
1
  import type { MediaKind } from '@riverbankcms/media-storage-supabase';
2
2
  import { type UploadIntentResolver, type VideoPrepIntentResolver } from '@riverbankcms/media-react';
3
+ import type { VideoPrepIntent } from '@riverbankcms/media-core';
3
4
  import type { MediaValue } from './types';
4
5
  export type MediaEditorProps = {
5
6
  value: MediaValue | undefined;
@@ -20,5 +21,6 @@ export type MediaEditorProps = {
20
21
  showRemoveAction?: boolean;
21
22
  uploadIntent?: UploadIntentResolver;
22
23
  videoPrepIntent?: VideoPrepIntentResolver;
24
+ videoSelectionIntent?: VideoPrepIntent;
23
25
  };
24
- export declare const MediaEditor: ({ value, onChange, allowedKinds, previewAspectRatio, minSourceWidth, minSourceHeight, showAltInput, cropEditorMode, cropEditorAutoOpen, mediaPickerAutoOpen, showPreview, showActionOverlay, onEditDetails, fullWidth, previewVariant, showRemoveAction, uploadIntent, videoPrepIntent, }: MediaEditorProps) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const MediaEditor: ({ value, onChange, allowedKinds, previewAspectRatio, minSourceWidth, minSourceHeight, showAltInput, cropEditorMode, cropEditorAutoOpen, mediaPickerAutoOpen, showPreview, showActionOverlay, onEditDetails, fullWidth, previewVariant, showRemoveAction, uploadIntent, videoPrepIntent, videoSelectionIntent, }: MediaEditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -24,5 +24,12 @@ export type MediaPickerDialogProps = {
24
24
  export type MediaPickerPolicy = {
25
25
  readonly allowsAsset?: (asset: MediaAssetWithLabels) => boolean;
26
26
  readonly allowsUpload?: (file: File) => boolean;
27
+ readonly assetSelection?: (asset: MediaAssetWithLabels) => MediaPickerAssetSelection;
27
28
  };
29
+ export type MediaPickerAssetSelection = Readonly<{
30
+ tag: 'selectable';
31
+ }> | Readonly<{
32
+ tag: 'disabled';
33
+ reason: string;
34
+ }>;
28
35
  export declare const MediaPickerDialog: ({ allowedKinds, open, onOpenChange, assets, loading, hasMore, selectAsset, loadMore, enqueueUploads, uploads, closeOnSelect, disableSelection, statusMessage, statusTone, title, uploadButtonLabel, uploadAccept, showCameraInput, policy, }: MediaPickerDialogProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
- export declare function BlockToolbar({ blockId, blockKind, content, }: {
1
+ export declare function BlockToolbar({ blockId, blockKind, content, headerClearancePx, }: {
2
2
  blockId: string;
3
3
  blockKind: string;
4
4
  content: Record<string, unknown>;
5
+ headerClearancePx?: number;
5
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,8 @@
1
1
  import type { MutableRefObject } from 'react';
2
2
  import type { PageOutline } from '@riverbankcms/blocks';
3
- import type { ComposePageArgs, CachedBlockTransform, BlockWithContent } from './types';
3
+ import type { ComposePageArgs, ComposePreviewRenderPageArgs, CachedBlockTransform, BlockWithContent } from './types';
4
4
  export type PageOutlineWithContent = Omit<PageOutline, 'blocks'> & {
5
5
  blocks: BlockWithContent[];
6
6
  };
7
7
  export declare function composePageFromBlocks(args: ComposePageArgs, cacheRef: MutableRefObject<Map<string, CachedBlockTransform>>): PageOutlineWithContent | null;
8
+ export declare function composePreviewRenderPage(args: ComposePreviewRenderPageArgs, cacheRef: MutableRefObject<Map<string, CachedBlockTransform>>): PageOutlineWithContent | null;
@@ -1,2 +1,2 @@
1
- export { composePageFromBlocks } from './composePageFromBlocks';
2
- export type { ComposePageArgs, CachedBlockTransform, EditorDraftInspectorStore } from './types';
1
+ export { composePageFromBlocks, composePreviewRenderPage, } from './composePageFromBlocks';
2
+ export type { CachedBlockTransform, ComposePageArgs, ComposePreviewRenderPageArgs, EditorDraftInspectorStore, } from './types';
@@ -1,5 +1,6 @@
1
1
  import type { EditorBlockId } from '@riverbankcms/core';
2
2
  import type { BlockItem } from '@riverbankcms/editor-blocks';
3
3
  import type { DraftSnapshot, EditorDraftInspectorStore, EnrichedBlock } from './types';
4
+ import { type PreviewProjection } from '../previewProjection';
4
5
  export declare function getDraftSnapshots(uiStore: EditorDraftInspectorStore): Map<EditorBlockId, DraftSnapshot>;
5
- export declare function mergeBlockWithDraft(block: BlockItem, draftMap: Map<EditorBlockId, DraftSnapshot>, index: number, uiStore: EditorDraftInspectorStore): EnrichedBlock;
6
+ export declare function mergeBlockWithDraft(block: BlockItem, draftMap: Map<EditorBlockId, DraftSnapshot>, index: number, projections?: readonly PreviewProjection[]): EnrichedBlock;