@riverbankcms/sdk 0.111.0 → 0.119.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 (196) hide show
  1. package/dist/{PreviewEditorSidebar-CTR6LUhN.mjs → PreviewEditorSidebar-C7TXFitV.mjs} +4 -4
  2. package/dist/{PreviewEditorUI-DZg15Zip.mjs → PreviewEditorUI-_1JIHTXS.mjs} +3 -3
  3. package/dist/{PreviewQueryProvider-kkmjklLG.mjs → PreviewQueryProvider-nKUT4TL-.mjs} +1 -1
  4. package/dist/{SdkPreviewModeRuntime-DeOTAFvR.mjs → SdkPreviewModeRuntime-CvJTVgWa.mjs} +2579 -34325
  5. package/dist/{SiteChromeCustomizeContext-DOSDLCiJ.mjs → SiteChromeCustomizeContext-66QfCbAS.mjs} +64625 -32791
  6. package/dist/_dts/ai/src/contracts/proposals.d.ts +5211 -639
  7. package/dist/_dts/ai/src/designer/themePatch.d.ts +1 -1
  8. package/dist/_dts/api/src/bookingAdjustments.d.ts +30 -36
  9. package/dist/_dts/api/src/bookingConfig.d.ts +26 -1
  10. package/dist/_dts/api/src/bookingRecords.d.ts +6 -74
  11. package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +3 -3
  12. package/dist/_dts/api/src/contentRuntime.d.ts +5 -1
  13. package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +4 -4
  14. package/dist/_dts/api/src/endpoints.d.ts +35 -0
  15. package/dist/_dts/api/src/event-presentation.d.ts +4 -0
  16. package/dist/_dts/api/src/index.d.ts +4 -4
  17. package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +4 -1
  18. package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +2 -2
  19. package/dist/_dts/api/src/sdk-event-upsert.d.ts +2 -2
  20. package/dist/_dts/api/src/sdkContracts.d.ts +85 -7
  21. package/dist/_dts/api/src/siteBanner.d.ts +8 -8
  22. package/dist/_dts/api/src/siteOperations.d.ts +1 -1
  23. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +32 -4
  24. package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldDefaults.d.ts +3 -12
  25. package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldSchema.d.ts +1 -5
  26. package/dist/_dts/blocks/src/bindings/index.d.ts +1 -10
  27. package/dist/_dts/blocks/src/index.d.ts +3 -6
  28. package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +2 -2
  29. package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +2 -2
  30. package/dist/_dts/blocks/src/system/blocks/events/recurring-schedule.d.ts +2 -2
  31. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +2 -8
  32. package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +2 -2
  33. package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +3 -3
  34. package/dist/_dts/blocks/src/system/blocks/form.d.ts +2 -15
  35. package/dist/_dts/blocks/src/system/blocks/intro.d.ts +2 -2
  36. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +66 -66
  37. package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +2 -16
  38. package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +0 -3
  39. package/dist/_dts/blocks/src/system/fragments/index.d.ts +0 -1
  40. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +19 -2
  41. package/dist/_dts/blocks/src/system/manifest/richTextSchema.d.ts +8 -70
  42. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +1 -0
  43. package/dist/_dts/blocks/src/system/manifest/validation.d.ts +6 -0
  44. package/dist/_dts/blocks/src/system/node/schema.d.ts +4 -4
  45. package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +1 -10
  46. package/dist/_dts/blocks/src/system/runtime/nodes/buttonAffordance.d.ts +5 -21
  47. package/dist/_dts/blocks/src/system/runtime/nodes/richText-coerce.d.ts +14 -2
  48. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
  49. package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +1 -1
  50. package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +17 -1
  51. package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +1 -1
  52. package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +1 -1
  53. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +3 -2
  54. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +2 -2
  55. package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +1 -1
  56. package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -1
  57. package/dist/_dts/content-model/src/content-types/builtins.d.ts +3 -15
  58. package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +2 -0
  59. package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
  60. package/dist/_dts/content-model/src/templates/defaults.d.ts +1 -21
  61. package/dist/_dts/core/src/editor-state.d.ts +14 -1
  62. package/dist/_dts/core/src/footer-composition.d.ts +2 -1
  63. package/dist/_dts/core/src/index.d.ts +1 -0
  64. package/dist/_dts/core/src/rich-text.d.ts +16 -0
  65. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +189 -86
  66. package/dist/_dts/editor/src/index.d.ts +1 -1
  67. package/dist/_dts/editor/src/primitives/rich-text/utils.d.ts +3 -5
  68. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +1 -1
  69. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +2 -1
  70. package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -1
  71. package/dist/_dts/editor-blocks/src/block-editor/blockDraftBaselineSeed.d.ts +15 -0
  72. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +3 -7
  73. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +12 -0
  74. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
  75. package/dist/_dts/editor-blocks/src/block-editor/utils.d.ts +1 -1
  76. package/dist/_dts/editor-blocks/src/index.d.ts +6 -5
  77. package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
  78. package/dist/_dts/media-core/src/contentMediaAudit.d.ts +104 -0
  79. package/dist/_dts/media-core/src/contentMediaAuditFieldAdapter.d.ts +8 -0
  80. package/dist/_dts/media-core/src/contentMediaSnapshotAudit.d.ts +22 -0
  81. package/dist/_dts/media-core/src/index.d.ts +3 -1
  82. package/dist/_dts/sdk/src/cli/commands/event.d.ts +18 -1
  83. package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +2 -16
  84. package/dist/_dts/sdk/src/cli/content/reader.d.ts +8 -5
  85. package/dist/_dts/sdk/src/client/management/events.d.ts +2 -1
  86. package/dist/_dts/sdk/src/client/management/index.d.ts +1 -1
  87. package/dist/_dts/sdk/src/client/management/types.d.ts +36 -9
  88. package/dist/_dts/sdk/src/config/typed-entries.d.ts +7 -7
  89. package/dist/_dts/sdk/src/config/validation.d.ts +7 -7
  90. package/dist/_dts/sdk/src/contracts/content.d.ts +5 -15
  91. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  92. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +12 -25
  93. package/dist/_dts/sdk/src/contracts/theme.d.ts +2 -18
  94. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +1 -1
  95. package/dist/_dts/sdk/src/manifest/three-pass-converter.d.ts +4 -4
  96. package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +1 -2
  97. package/dist/_dts/sdk/src/rendering/helpers/index.d.ts +1 -1
  98. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -13
  99. package/dist/_dts/sdk/src/theme/index.d.ts +0 -29
  100. package/dist/_dts/sdk/src/version.d.ts +1 -1
  101. package/dist/_dts/site-commands/src/commands.d.ts +31 -18
  102. package/dist/_dts/theme-core/src/buttons/affordanceIcons.d.ts +2 -2
  103. package/dist/_dts/theme-core/src/buttons/core.d.ts +0 -1
  104. package/dist/_dts/theme-core/src/buttons/effectClassification.d.ts +22 -9
  105. package/dist/_dts/theme-core/src/buttons/effects/presets/background.d.ts +1 -2
  106. package/dist/_dts/theme-core/src/buttons/effects/presets/border.d.ts +1 -2
  107. package/dist/_dts/theme-core/src/buttons/effects/presets/overlay.d.ts +3 -1
  108. package/dist/_dts/theme-core/src/buttons/effects/presets/shadow.d.ts +2 -2
  109. package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +8 -18
  110. package/dist/_dts/theme-core/src/buttons/generateButtonCss.d.ts +2 -2
  111. package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +5 -5
  112. package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -4
  113. package/dist/_dts/theme-core/src/buttons/parseThemeForPersistence.d.ts +36 -0
  114. package/dist/_dts/theme-core/src/buttons/types.d.ts +1638 -93
  115. package/dist/_dts/theme-core/src/cards/types.d.ts +13 -13
  116. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +969 -69
  117. package/dist/_dts/theme-core/src/navigation/types.d.ts +2 -2
  118. package/dist/_dts/theme-core/src/recommend/generateThemes.d.ts +0 -1
  119. package/dist/_dts/theme-core/src/schema.d.ts +1100 -116
  120. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  121. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +14 -14
  122. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
  123. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
  124. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +6 -0
  125. package/dist/cli/index.mjs +5706 -4852
  126. package/dist/cli/init-docs/content/cli-reference.md +40 -1
  127. package/dist/cli/init-docs/content/content-management.md +6 -0
  128. package/dist/client/{DiscountCodeDisclosure-C4xvTBux.mjs → DiscountCodeDisclosure-DIWj-P9v.mjs} +1 -1
  129. package/dist/client/{EventCombined.client-Cr7G131j.mjs → EventCombined.client-De8YWBSr.mjs} +2 -2
  130. package/dist/client/{EventListing.client-CAjbseNy.mjs → EventListing.client-seHTjimY.mjs} +2 -2
  131. package/dist/client/{LeafletStaticMap-BMlWfwz3.mjs → LeafletStaticMap-BmQxFcJW.mjs} +1 -1
  132. package/dist/client/{MagicLinkForm-ChdFz96y.mjs → MagicLinkForm-OoJAIUIj.mjs} +1 -1
  133. package/dist/client/{StepIndicator-7D3GaBeM.mjs → StepIndicator-CiZ8kdPk.mjs} +2 -2
  134. package/dist/client/{accordion-D8JTs2Si.mjs → accordion-6lnN__XJ.mjs} +1 -1
  135. package/dist/client/{bookingForm-H3DCRBHs.mjs → bookingForm-5uyqhONU.mjs} +6 -6
  136. package/dist/client/bookings.mjs +2219 -527
  137. package/dist/client/{carousel-DMr_QWlz.mjs → carousel-Dtnifil_.mjs} +1 -1
  138. package/dist/client/{cart-DWMbfBdR.mjs → cart-5Tc5S7NV.mjs} +3 -3
  139. package/dist/client/{checkout-zmfdkXLx.mjs → checkout-CYKKN5Hr.mjs} +3 -3
  140. package/dist/client/client.mjs +2498 -2384
  141. package/dist/client/{colorTokenParts-FSS3al6l.mjs → colorStyles-BWpj_h4C.mjs} +88 -1
  142. package/dist/client/{courseRegistration-Z_mn18jy.mjs → courseRegistration-CxCBybB4.mjs} +6 -6
  143. package/dist/client/{eventCalendar-CYp0YJGF.mjs → eventCalendar-Xj2jZS9X.mjs} +4 -4
  144. package/dist/client/{eventCombined-rKyYZUa9.mjs → eventCombined-CgcMoOgM.mjs} +2 -2
  145. package/dist/client/{eventDetails-X0ZaUuMj.mjs → eventDetails-CEAH8Edc.mjs} +3 -3
  146. package/dist/client/{eventListing-W1SuL7EP.mjs → eventListing-qyPVQ0wP.mjs} +2 -2
  147. package/dist/client/{eventRegistration-ClWricui.mjs → eventRegistration-DDu79CtL.mjs} +6 -6
  148. package/dist/client/{form--eKPwAAD.mjs → form-Bc7JKI7I.mjs} +1 -1
  149. package/dist/client/{headerSection-BSeGr-FS.mjs → headerSection-vTku_LEl.mjs} +2 -2
  150. package/dist/client/hooks.mjs +373 -555
  151. package/dist/client/{locationMap-BpOrtNYn.mjs → locationMap-Bg7X4Jna.mjs} +3 -3
  152. package/dist/client/{media-DoF0dcVx.mjs → media-CNE1Z-wb.mjs} +1 -2
  153. package/dist/client/{newsletterForm-Bt7it7Dy.mjs → newsletterForm-lpylVdp5.mjs} +1 -1
  154. package/dist/client/{pricing-BTjSDDr4.mjs → pricing-DE8fjJiT.mjs} +1 -1
  155. package/dist/client/{productDetail-ICnVTcCg.mjs → productDetail-D7Bo2RMH.mjs} +3 -3
  156. package/dist/client/{productList-ZHr6D604.mjs → productList-VjnZqiqN.mjs} +3 -3
  157. package/dist/client/{propsDecoder-wWN0tBDF.mjs → propsDecoder-DreFXjNP.mjs} +2212 -621
  158. package/dist/client/rendering/client.mjs +21612 -21646
  159. package/dist/client/rendering/islands.mjs +20 -20
  160. package/dist/client/rendering.mjs +1571 -1547
  161. package/dist/client/{shop-C1u_BUn0.mjs → shop-IRsHHbf7.mjs} +5 -5
  162. package/dist/client/{shop-commerce-CleZdRha.mjs → shop-commerce-gnI8PieZ.mjs} +27 -10
  163. package/dist/client/{shop-commerce-store-ycnoB2Ce.mjs → shop-commerce-store-BTbrhObn.mjs} +1 -1
  164. package/dist/client/{shopShared-CPhByt2a.mjs → shopShared-D6KS2_qk.mjs} +3 -3
  165. package/dist/client/{useDiscountCodeUi-cStSQI6C.mjs → useDiscountCodeUi-DCccGCxV.mjs} +1 -1
  166. package/dist/client/{useEventFilters-DKPN7hSY.mjs → useEventFilters-eGs3rPZQ.mjs} +3 -104
  167. package/dist/client/{usePolling-BKAd6pkZ.mjs → usePolling-CvSU2sur.mjs} +2 -2
  168. package/dist/preview-next/before-render.mjs +57 -0
  169. package/dist/preview-next/client/runtime.mjs +4 -4
  170. package/dist/preview-next/middleware.mjs +57 -0
  171. package/dist/{previewAuthStore-BkT1D06A.mjs → previewAuthStore-DN7vcRsv.mjs} +57 -0
  172. package/dist/{sdk-runtime-hu3wr3ng.mjs → sdk-runtime-DaOiA7ct.mjs} +2 -2
  173. package/dist/{separator-Bln8izQ9.mjs → separator-CqRhcCxD.mjs} +1 -1
  174. package/dist/server/components.mjs +4092 -4108
  175. package/dist/server/config-template-validation.mjs +4 -23
  176. package/dist/server/config-validation.mjs +373 -555
  177. package/dist/server/config.mjs +410 -558
  178. package/dist/server/data.mjs +373 -555
  179. package/dist/server/index.mjs +58 -1
  180. package/dist/server/next.mjs +32958 -32926
  181. package/dist/server/page-converter.mjs +369 -526
  182. package/dist/server/prebuild.mjs +1 -1
  183. package/dist/server/rendering/server.mjs +5371 -3174
  184. package/dist/server/rendering.mjs +4099 -4124
  185. package/dist/server/routing.mjs +758 -966
  186. package/dist/server/server.mjs +448 -632
  187. package/dist/server/theme-bridge.mjs +472 -525
  188. package/dist/server/theme.mjs +1074 -392
  189. package/package.json +1 -1
  190. package/dist/_dts/blocks/src/primitives/content/components/Button.d.ts +0 -40
  191. package/dist/_dts/blocks/src/system/fragments/library/footerBottomText.d.ts +0 -19
  192. package/dist/_dts/media-core/src/legacyMediaValue.d.ts +0 -11
  193. package/dist/_dts/theme-core/src/styles/buttons.d.ts +0 -27
  194. package/dist/_dts/theme-core/src/styles/buttonsLibrary.d.ts +0 -2
  195. package/dist/_dts/theme-core/src/styles/glow.d.ts +0 -3
  196. package/dist/client/colorStyles-gcTh5yZT.mjs +0 -89
@@ -12416,6 +12416,8 @@ export type Database = {
12416
12416
  order_payment_receipts: {
12417
12417
  Row: {
12418
12418
  amount_cents: number;
12419
+ application_state: string;
12420
+ applied_cents: number;
12419
12421
  created_at: string;
12420
12422
  currency: string;
12421
12423
  customer_id: string;
@@ -12440,6 +12442,8 @@ export type Database = {
12440
12442
  };
12441
12443
  Insert: {
12442
12444
  amount_cents: number;
12445
+ application_state?: string;
12446
+ applied_cents?: number;
12443
12447
  created_at?: string;
12444
12448
  currency: string;
12445
12449
  customer_id: string;
@@ -12464,6 +12468,8 @@ export type Database = {
12464
12468
  };
12465
12469
  Update: {
12466
12470
  amount_cents?: number;
12471
+ application_state?: string;
12472
+ applied_cents?: number;
12467
12473
  created_at?: string;
12468
12474
  currency?: string;
12469
12475
  customer_id?: string;
@@ -12535,6 +12541,7 @@ export type Database = {
12535
12541
  Row: {
12536
12542
  amount_refunded_cents: number;
12537
12543
  amount_requested_cents: number;
12544
+ cash_conversion_reserved_cents: number;
12538
12545
  created_at: string;
12539
12546
  currency: string;
12540
12547
  entitlement_action_status: string;
@@ -12549,9 +12556,11 @@ export type Database = {
12549
12556
  order_id: string;
12550
12557
  payment_last4: string | null;
12551
12558
  payment_receipt_id: string | null;
12559
+ projection_settled_at: string | null;
12552
12560
  reason: string | null;
12553
12561
  refund_mode: string;
12554
12562
  refund_rail: string | null;
12563
+ settled_at: string | null;
12555
12564
  site_id: string;
12556
12565
  source_record_id: string | null;
12557
12566
  source_type: string | null;
@@ -12564,6 +12573,7 @@ export type Database = {
12564
12573
  Insert: {
12565
12574
  amount_refunded_cents: number;
12566
12575
  amount_requested_cents: number;
12576
+ cash_conversion_reserved_cents?: number;
12567
12577
  created_at?: string;
12568
12578
  currency: string;
12569
12579
  entitlement_action_status?: string;
@@ -12578,9 +12588,11 @@ export type Database = {
12578
12588
  order_id: string;
12579
12589
  payment_last4?: string | null;
12580
12590
  payment_receipt_id?: string | null;
12591
+ projection_settled_at?: string | null;
12581
12592
  reason?: string | null;
12582
12593
  refund_mode?: string;
12583
12594
  refund_rail?: string | null;
12595
+ settled_at?: string | null;
12584
12596
  site_id: string;
12585
12597
  source_record_id?: string | null;
12586
12598
  source_type?: string | null;
@@ -12593,6 +12605,7 @@ export type Database = {
12593
12605
  Update: {
12594
12606
  amount_refunded_cents?: number;
12595
12607
  amount_requested_cents?: number;
12608
+ cash_conversion_reserved_cents?: number;
12596
12609
  created_at?: string;
12597
12610
  currency?: string;
12598
12611
  entitlement_action_status?: string;
@@ -12607,9 +12620,11 @@ export type Database = {
12607
12620
  order_id?: string;
12608
12621
  payment_last4?: string | null;
12609
12622
  payment_receipt_id?: string | null;
12623
+ projection_settled_at?: string | null;
12610
12624
  reason?: string | null;
12611
12625
  refund_mode?: string;
12612
12626
  refund_rail?: string | null;
12627
+ settled_at?: string | null;
12613
12628
  site_id?: string;
12614
12629
  source_record_id?: string | null;
12615
12630
  source_type?: string | null;
@@ -14148,6 +14163,7 @@ export type Database = {
14148
14163
  http_status: number;
14149
14164
  id: string;
14150
14165
  is_active: boolean;
14166
+ managed_route_id: string | null;
14151
14167
  site_id: string;
14152
14168
  to_path: string;
14153
14169
  updated_at: string;
@@ -14159,6 +14175,7 @@ export type Database = {
14159
14175
  http_status?: number;
14160
14176
  id?: string;
14161
14177
  is_active?: boolean;
14178
+ managed_route_id?: string | null;
14162
14179
  site_id: string;
14163
14180
  to_path: string;
14164
14181
  updated_at?: string;
@@ -14170,11 +14187,19 @@ export type Database = {
14170
14187
  http_status?: number;
14171
14188
  id?: string;
14172
14189
  is_active?: boolean;
14190
+ managed_route_id?: string | null;
14173
14191
  site_id?: string;
14174
14192
  to_path?: string;
14175
14193
  updated_at?: string;
14176
14194
  };
14177
14195
  Relationships: [
14196
+ {
14197
+ foreignKeyName: "redirect_rules_managed_route_id_fkey";
14198
+ columns: ["managed_route_id"];
14199
+ isOneToOne: false;
14200
+ referencedRelation: "site_routes";
14201
+ referencedColumns: ["id"];
14202
+ },
14178
14203
  {
14179
14204
  foreignKeyName: "redirect_rules_site_id_fkey";
14180
14205
  columns: ["site_id"];
@@ -14704,44 +14729,6 @@ export type Database = {
14704
14729
  }
14705
14730
  ];
14706
14731
  };
14707
- site_cost_changes: {
14708
- Row: {
14709
- changed_by: string;
14710
- created_at: string;
14711
- id: string;
14712
- new_cost_cents: number;
14713
- previous_cost_cents: number;
14714
- reason: string | null;
14715
- site_id: string;
14716
- };
14717
- Insert: {
14718
- changed_by: string;
14719
- created_at?: string;
14720
- id?: string;
14721
- new_cost_cents: number;
14722
- previous_cost_cents: number;
14723
- reason?: string | null;
14724
- site_id: string;
14725
- };
14726
- Update: {
14727
- changed_by?: string;
14728
- created_at?: string;
14729
- id?: string;
14730
- new_cost_cents?: number;
14731
- previous_cost_cents?: number;
14732
- reason?: string | null;
14733
- site_id?: string;
14734
- };
14735
- Relationships: [
14736
- {
14737
- foreignKeyName: "site_cost_changes_site_id_fkey";
14738
- columns: ["site_id"];
14739
- isOneToOne: false;
14740
- referencedRelation: "sites";
14741
- referencedColumns: ["id"];
14742
- }
14743
- ];
14744
- };
14745
14732
  site_custom_blocks: {
14746
14733
  Row: {
14747
14734
  block_id: string;
@@ -17708,6 +17695,18 @@ export type Database = {
17708
17695
  };
17709
17696
  Returns: number;
17710
17697
  };
17698
+ apply_canonical_order_refund_projection: {
17699
+ Args: {
17700
+ p_expected_order_refunded_cents: number;
17701
+ p_line_updates: Json;
17702
+ p_next_order_refunded_cents: number;
17703
+ p_next_order_status: string;
17704
+ p_order_id: string;
17705
+ p_refund_id: string;
17706
+ p_site_id: string;
17707
+ };
17708
+ Returns: string;
17709
+ };
17711
17710
  apply_customer_profile_rectification: {
17712
17711
  Args: {
17713
17712
  audit_actor_user_id: string;
@@ -18076,6 +18075,10 @@ export type Database = {
18076
18075
  participant_participation_id: string;
18077
18076
  }[];
18078
18077
  };
18078
+ backfill_order_item_attendee_reservations: {
18079
+ Args: never;
18080
+ Returns: number;
18081
+ };
18079
18082
  begin_site_billing_transition_attempt_atomic: {
18080
18083
  Args: {
18081
18084
  p_billing_user_id?: string;
@@ -18437,6 +18440,13 @@ export type Database = {
18437
18440
  };
18438
18441
  Returns: Json;
18439
18442
  };
18443
+ classify_order_item_attendee_reservations: {
18444
+ Args: never;
18445
+ Returns: {
18446
+ classification: string;
18447
+ row_count: number;
18448
+ }[];
18449
+ };
18440
18450
  commit_authoritative_page_surface_draft_version: {
18441
18451
  Args: {
18442
18452
  p_data: Json;
@@ -18817,6 +18827,14 @@ export type Database = {
18817
18827
  used_capacity: number;
18818
18828
  }[];
18819
18829
  };
18830
+ delete_event_occurrence_if_unregistered: {
18831
+ Args: {
18832
+ p_occurrence_id: string;
18833
+ p_series_id: string;
18834
+ p_site_id: string;
18835
+ };
18836
+ Returns: string;
18837
+ };
18820
18838
  discard_page_surface_draft_content_guarded: {
18821
18839
  Args: {
18822
18840
  p_expected_draft_updated_at: string;
@@ -19510,24 +19528,6 @@ export type Database = {
19510
19528
  order_id: string;
19511
19529
  }[];
19512
19530
  };
19513
- postgres_fdw_disconnect: {
19514
- Args: {
19515
- "": string;
19516
- };
19517
- Returns: boolean;
19518
- };
19519
- postgres_fdw_disconnect_all: {
19520
- Args: never;
19521
- Returns: boolean;
19522
- };
19523
- postgres_fdw_get_connections: {
19524
- Args: never;
19525
- Returns: Record<string, unknown>[];
19526
- };
19527
- postgres_fdw_handler: {
19528
- Args: never;
19529
- Returns: unknown;
19530
- };
19531
19531
  prepare_dated_offering_whole_series_checkout_v1_atomic: {
19532
19532
  Args: {
19533
19533
  p_allow_waitlist_conversion?: boolean;
@@ -19700,6 +19700,29 @@ export type Database = {
19700
19700
  stale_until: string;
19701
19701
  }[];
19702
19702
  };
19703
+ record_unapplied_order_payment_receipt: {
19704
+ Args: {
19705
+ p_allocations: Json;
19706
+ p_amount_cents: number;
19707
+ p_currency: string;
19708
+ p_flexible_balance_contract_id: string;
19709
+ p_order_id: string;
19710
+ p_paid_at: string;
19711
+ p_payment_plan_id: string;
19712
+ p_payment_plan_instalment_id: string;
19713
+ p_purpose: string;
19714
+ p_rail: string;
19715
+ p_site_id: string;
19716
+ p_stripe_account_id: string;
19717
+ p_stripe_checkout_session_id: string;
19718
+ p_stripe_invoice_id: string;
19719
+ p_stripe_payment_intent_id: string;
19720
+ };
19721
+ Returns: {
19722
+ outcome: string;
19723
+ receipt_id: string;
19724
+ }[];
19725
+ };
19703
19726
  redeem_pass_credits: {
19704
19727
  Args: {
19705
19728
  credits_amount?: number;
@@ -19855,6 +19878,12 @@ export type Database = {
19855
19878
  reservation_id: string;
19856
19879
  }[];
19857
19880
  };
19881
+ reserve_order_refund_capacity: {
19882
+ Args: {
19883
+ p_refund: Json;
19884
+ };
19885
+ Returns: Json;
19886
+ };
19858
19887
  resolve_dated_offering_engine_readiness: {
19859
19888
  Args: {
19860
19889
  p_site_id: string;
@@ -20652,6 +20681,7 @@ export type Database = {
20652
20681
  created_at: string | null;
20653
20682
  id: string;
20654
20683
  last_accessed_at: string | null;
20684
+ level: number | null;
20655
20685
  metadata: Json | null;
20656
20686
  name: string | null;
20657
20687
  owner: string | null;
@@ -20666,6 +20696,7 @@ export type Database = {
20666
20696
  created_at?: string | null;
20667
20697
  id?: string;
20668
20698
  last_accessed_at?: string | null;
20699
+ level?: number | null;
20669
20700
  metadata?: Json | null;
20670
20701
  name?: string | null;
20671
20702
  owner?: string | null;
@@ -20680,6 +20711,7 @@ export type Database = {
20680
20711
  created_at?: string | null;
20681
20712
  id?: string;
20682
20713
  last_accessed_at?: string | null;
20714
+ level?: number | null;
20683
20715
  metadata?: Json | null;
20684
20716
  name?: string | null;
20685
20717
  owner?: string | null;
@@ -20699,6 +20731,38 @@ export type Database = {
20699
20731
  }
20700
20732
  ];
20701
20733
  };
20734
+ prefixes: {
20735
+ Row: {
20736
+ bucket_id: string;
20737
+ created_at: string | null;
20738
+ level: number;
20739
+ name: string;
20740
+ updated_at: string | null;
20741
+ };
20742
+ Insert: {
20743
+ bucket_id: string;
20744
+ created_at?: string | null;
20745
+ level?: number;
20746
+ name: string;
20747
+ updated_at?: string | null;
20748
+ };
20749
+ Update: {
20750
+ bucket_id?: string;
20751
+ created_at?: string | null;
20752
+ level?: number;
20753
+ name?: string;
20754
+ updated_at?: string | null;
20755
+ };
20756
+ Relationships: [
20757
+ {
20758
+ foreignKeyName: "prefixes_bucketId_fkey";
20759
+ columns: ["bucket_id"];
20760
+ isOneToOne: false;
20761
+ referencedRelation: "buckets";
20762
+ referencedColumns: ["id"];
20763
+ }
20764
+ ];
20765
+ };
20702
20766
  s3_multipart_uploads: {
20703
20767
  Row: {
20704
20768
  bucket_id: string;
@@ -20706,7 +20770,6 @@ export type Database = {
20706
20770
  id: string;
20707
20771
  in_progress_size: number;
20708
20772
  key: string;
20709
- metadata: Json | null;
20710
20773
  owner_id: string | null;
20711
20774
  upload_signature: string;
20712
20775
  user_metadata: Json | null;
@@ -20718,7 +20781,6 @@ export type Database = {
20718
20781
  id: string;
20719
20782
  in_progress_size?: number;
20720
20783
  key: string;
20721
- metadata?: Json | null;
20722
20784
  owner_id?: string | null;
20723
20785
  upload_signature: string;
20724
20786
  user_metadata?: Json | null;
@@ -20730,7 +20792,6 @@ export type Database = {
20730
20792
  id?: string;
20731
20793
  in_progress_size?: number;
20732
20794
  key?: string;
20733
- metadata?: Json | null;
20734
20795
  owner_id?: string | null;
20735
20796
  upload_signature?: string;
20736
20797
  user_metadata?: Json | null;
@@ -20849,17 +20910,12 @@ export type Database = {
20849
20910
  [_ in never]: never;
20850
20911
  };
20851
20912
  Functions: {
20852
- allow_any_operation: {
20853
- Args: {
20854
- expected_operations: string[];
20855
- };
20856
- Returns: boolean;
20857
- };
20858
- allow_only_operation: {
20913
+ add_prefixes: {
20859
20914
  Args: {
20860
- expected_operation: string;
20915
+ _bucket_id: string;
20916
+ _name: string;
20861
20917
  };
20862
- Returns: boolean;
20918
+ Returns: undefined;
20863
20919
  };
20864
20920
  can_insert_object: {
20865
20921
  Args: {
@@ -20870,6 +20926,20 @@ export type Database = {
20870
20926
  };
20871
20927
  Returns: undefined;
20872
20928
  };
20929
+ delete_leaf_prefixes: {
20930
+ Args: {
20931
+ bucket_ids: string[];
20932
+ names: string[];
20933
+ };
20934
+ Returns: undefined;
20935
+ };
20936
+ delete_prefix: {
20937
+ Args: {
20938
+ _bucket_id: string;
20939
+ _name: string;
20940
+ };
20941
+ Returns: boolean;
20942
+ };
20873
20943
  extension: {
20874
20944
  Args: {
20875
20945
  name: string;
@@ -20888,14 +20958,24 @@ export type Database = {
20888
20958
  };
20889
20959
  Returns: string[];
20890
20960
  };
20891
- get_common_prefix: {
20961
+ get_level: {
20892
20962
  Args: {
20893
- p_delimiter: string;
20894
- p_key: string;
20895
- p_prefix: string;
20963
+ name: string;
20964
+ };
20965
+ Returns: number;
20966
+ };
20967
+ get_prefix: {
20968
+ Args: {
20969
+ name: string;
20896
20970
  };
20897
20971
  Returns: string;
20898
20972
  };
20973
+ get_prefixes: {
20974
+ Args: {
20975
+ name: string;
20976
+ };
20977
+ Returns: string[];
20978
+ };
20899
20979
  get_size_by_bucket: {
20900
20980
  Args: never;
20901
20981
  Returns: {
@@ -20920,23 +21000,27 @@ export type Database = {
20920
21000
  };
20921
21001
  list_objects_with_delimiter: {
20922
21002
  Args: {
20923
- _bucket_id: string;
21003
+ bucket_id: string;
20924
21004
  delimiter_param: string;
20925
21005
  max_keys?: number;
20926
21006
  next_token?: string;
20927
21007
  prefix_param: string;
20928
- sort_order?: string;
20929
21008
  start_after?: string;
20930
21009
  };
20931
21010
  Returns: {
20932
- created_at: string;
20933
21011
  id: string;
20934
- last_accessed_at: string;
20935
21012
  metadata: Json;
20936
21013
  name: string;
20937
21014
  updated_at: string;
20938
21015
  }[];
20939
21016
  };
21017
+ lock_top_prefixes: {
21018
+ Args: {
21019
+ bucket_ids: string[];
21020
+ names: string[];
21021
+ };
21022
+ Returns: undefined;
21023
+ };
20940
21024
  operation: {
20941
21025
  Args: never;
20942
21026
  Returns: string;
@@ -20961,21 +21045,40 @@ export type Database = {
20961
21045
  updated_at: string;
20962
21046
  }[];
20963
21047
  };
20964
- search_by_timestamp: {
21048
+ search_legacy_v1: {
20965
21049
  Args: {
20966
- p_bucket_id: string;
20967
- p_level: number;
20968
- p_limit: number;
20969
- p_prefix: string;
20970
- p_sort_column: string;
20971
- p_sort_column_after: string;
20972
- p_sort_order: string;
20973
- p_start_after: string;
21050
+ bucketname: string;
21051
+ levels?: number;
21052
+ limits?: number;
21053
+ offsets?: number;
21054
+ prefix: string;
21055
+ search?: string;
21056
+ sortcolumn?: string;
21057
+ sortorder?: string;
21058
+ };
21059
+ Returns: {
21060
+ created_at: string;
21061
+ id: string;
21062
+ last_accessed_at: string;
21063
+ metadata: Json;
21064
+ name: string;
21065
+ updated_at: string;
21066
+ }[];
21067
+ };
21068
+ search_v1_optimised: {
21069
+ Args: {
21070
+ bucketname: string;
21071
+ levels?: number;
21072
+ limits?: number;
21073
+ offsets?: number;
21074
+ prefix: string;
21075
+ search?: string;
21076
+ sortcolumn?: string;
21077
+ sortorder?: string;
20974
21078
  };
20975
21079
  Returns: {
20976
21080
  created_at: string;
20977
21081
  id: string;
20978
- key: string;
20979
21082
  last_accessed_at: string;
20980
21083
  metadata: Json;
20981
21084
  name: string;
@@ -22,7 +22,7 @@ export type { RichTextRoutableItem } from './primitives/rich-text/toolbar/linkPo
22
22
  export { useRichTextEditor } from './primitives/rich-text/useRichTextEditor';
23
23
  export { buildRichTextImageAttrs, getRichTextImagePositionFromTarget, getSelectedRichTextImagePosition, insertOrReplaceRichTextImage, } from './primitives/rich-text/imageActions';
24
24
  export type { PickedRichTextImage } from './primitives/rich-text/imageActions';
25
- export { EMPTY_DOC, isDocEmpty, normaliseDoc, } from './primitives/rich-text/utils';
25
+ export { EMPTY_DOC, isDocEmpty, parseRichTextDoc, } from './primitives/rich-text/utils';
26
26
  export { formatUnsupportedRichTextSummary, hasUnsupportedRichTextContent, sanitizeRichTextContentForSchema, } from './primitives/rich-text/sanitize';
27
27
  export type { RichTextContentWarnings } from './primitives/rich-text/sanitize';
28
28
  export { EditorContent } from '@tiptap/react';
@@ -1,3 +1,5 @@
1
+ import { type RichTextDoc } from '../../../../blocks/src/system/manifest/richTextSchema';
2
+ export type { RichTextDoc } from '../../../../blocks/src/system/manifest/richTextSchema';
1
3
  export interface TextNode {
2
4
  type: 'text';
3
5
  text: string;
@@ -11,10 +13,6 @@ export interface ContentNode {
11
13
  content?: Array<TextNode | ContentNode>;
12
14
  [key: string]: unknown;
13
15
  }
14
- export interface RichTextDoc {
15
- type: 'doc';
16
- content: ContentNode[];
17
- }
18
16
  export declare const EMPTY_DOC: RichTextDoc;
19
17
  export declare function isDocEmpty(doc: unknown): boolean;
20
- export declare function normaliseDoc(doc: unknown): RichTextDoc;
18
+ export declare function parseRichTextDoc(doc: unknown): RichTextDoc;
@@ -44,7 +44,7 @@ export type BlockEditorProps = {
44
44
  siteId: string;
45
45
  dashboardBaseUrl?: string | null;
46
46
  owner: BlockEditorOwner;
47
- blocks: BlockItem[];
47
+ blocks: readonly BlockItem[];
48
48
  recoveryConflictBlockIds?: readonly string[];
49
49
  recoveryConflictReviewRequestId?: number | null;
50
50
  uiStore: StoreApi<UiState>;
@@ -23,7 +23,8 @@ type BlockCardStore = UiStore<Pick<UiSlice, 'activeBlockId' | 'setActiveBlockId'
23
23
  drafts: Pick<DraftsSlice, 'getBlockSnapshot' | 'getCurrentValues' | 'getAtPath' | 'setAtPath' | 'edit' | 'initNewBlock' | 'updateBlockBaseline' | 'clearError'>;
24
24
  arrayKeys: ArrayKeysManager;
25
25
  } & GeneratedIconApplyState>;
26
- export declare function BlockCard({ siteId, block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onCollapsedChange, highlighted, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, uiStore, hideThemeV2RawStyleFields, pageDesignBlock, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
26
+ export declare function BlockCard({ interactionReady, siteId, block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onCollapsedChange, highlighted, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, uiStore, hideThemeV2RawStyleFields, pageDesignBlock, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
27
+ interactionReady: boolean;
27
28
  siteId: string;
28
29
  block: BlockItem;
29
30
  manifest: SystemBlockDefinition['manifest'];
@@ -12,7 +12,8 @@ type BlockCardHeaderStore = UiStore<GeneratedIconApplyState & {
12
12
  drafts: Pick<DraftsSlice, 'getBlockSnapshot' | 'getCurrentValues' | 'initNewBlock' | 'updateBlockBaseline' | 'clearError' | 'setAtPath' | 'getAtPath'>;
13
13
  arrayKeys: ArrayKeysManager;
14
14
  }>;
15
- export declare function BlockCardHeader({ block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onToggleCollapsed, contentId, uiStore, widgetOverrides, theme, hideThemeV2RawStyleFields, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
15
+ export declare function BlockCardHeader({ interactionReady, block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onToggleCollapsed, contentId, uiStore, widgetOverrides, theme, hideThemeV2RawStyleFields, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
16
+ interactionReady: boolean;
16
17
  block: BlockItem;
17
18
  manifest: SystemBlockDefinition['manifest'];
18
19
  isFirst: boolean;
@@ -0,0 +1,15 @@
1
+ import { type EditorBlockBaselineInput, type EditorBlockId, type EditorDraftBlockBaselineUpdateMetaInput, type EditorDraftBlockInitMetaInput } from '../../../core/src/index';
2
+ import type { BlockItem } from './types';
3
+ export type BlockFieldExtensions = Readonly<Record<string, {
4
+ fields?: ReadonlyArray<{
5
+ id: string;
6
+ defaultValue?: unknown;
7
+ }>;
8
+ }>>;
9
+ export type BlockDraftBaselineSeed = Readonly<{
10
+ blockId: EditorBlockId;
11
+ baseline: EditorBlockBaselineInput;
12
+ initMeta: EditorDraftBlockInitMetaInput;
13
+ refreshMeta: EditorDraftBlockBaselineUpdateMetaInput;
14
+ }>;
15
+ export declare function buildBlockDraftBaselineSeed(block: BlockItem, index: number, blockFieldExtensions?: BlockFieldExtensions | null): BlockDraftBaselineSeed | null;
@@ -1,5 +1,6 @@
1
1
  import { type EditorBlockId, type EditorBlockBaselineInput, type EditorDraftBlockBaselineUpdateMetaInput, type EditorDraftBlockInitMetaInput } from '../../../../core/src/index';
2
2
  import type { BlockItem } from '../types';
3
+ import { type BlockFieldExtensions } from '../blockDraftBaselineSeed';
3
4
  type DraftsSlice = {
4
5
  getBlockSnapshot: (blockId: EditorBlockId) => {
5
6
  id: EditorBlockId;
@@ -18,13 +19,8 @@ type UiStore = {
18
19
  };
19
20
  export declare function useBlockBaselineSync({ enabled, blockList, blockFieldExtensions, uiStore, }: {
20
21
  enabled: boolean;
21
- blockList: BlockItem[];
22
- blockFieldExtensions?: Readonly<Record<string, {
23
- fields?: ReadonlyArray<{
24
- id: string;
25
- defaultValue?: unknown;
26
- }>;
27
- }>> | null;
22
+ blockList: readonly BlockItem[];
23
+ blockFieldExtensions?: BlockFieldExtensions | null;
28
24
  uiStore: UiStore | null;
29
25
  }): void;
30
26
  export {};
@@ -9,6 +9,18 @@ type UiStore = {
9
9
  };
10
10
  };
11
11
  };
12
+ export declare function buildDuplicatedBlockItem(input: Readonly<{
13
+ createdBlock: BlockItem;
14
+ copiedContent: Record<string, unknown> | null;
15
+ persistedCopy: Readonly<{
16
+ data: unknown;
17
+ optimistic_hash?: string | null;
18
+ }> | null;
19
+ orderIndex: number;
20
+ }>): BlockItem;
21
+ export declare function requirePersistedDuplicateRevision(owner: BlockEditorOwner, persistedCopy: Readonly<{
22
+ optimistic_hash?: string | null;
23
+ }>): string | null;
12
24
  export declare function useBlockDuplication({ allowCreation, apiClient, siteId, owner, blockList, setBlockList, onBlocksChange, triggerFocus, setErrorMessage, uiStore, onStructuralRevisionChange, }: {
13
25
  allowCreation: boolean;
14
26
  apiClient: ApiClient;
@@ -7,6 +7,7 @@ export type BlockItem = {
7
7
  draftContent?: Record<string, unknown> | null;
8
8
  publishedContent?: Record<string, unknown> | null;
9
9
  bindings?: Record<string, unknown> | null;
10
+ purpose?: string | null;
10
11
  optimisticHash?: string | null;
11
12
  };
12
13
  export type DraftBlockSnapshot = EditorStructuralDraftSnapshot;
@@ -1,3 +1,3 @@
1
1
  import type { BlockItem } from './types';
2
- export declare const normalizeBlockListInitial: (items: BlockItem[]) => BlockItem[];
2
+ export declare const normalizeBlockListInitial: (items: readonly BlockItem[]) => BlockItem[];
3
3
  export declare const reindexBlockList: (items: BlockItem[]) => BlockItem[];