@riverbankcms/sdk 0.143.0 → 0.145.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 (254) hide show
  1. package/dist/{PreviewEditorSidebar-DROGfMKi.mjs → PreviewEditorSidebar-O-V6Pl5a.mjs} +20 -26
  2. package/dist/{PreviewEditorUI-BaRjhFu-.mjs → PreviewEditorUI-1UlX_9cw.mjs} +3 -3
  3. package/dist/{PreviewQueryProvider-BCYICImX.mjs → PreviewQueryProvider-BxGwdOCV.mjs} +1 -1
  4. package/dist/{SdkPreviewModeRuntime-OIABYLES.mjs → SdkPreviewModeRuntime-DYbA_4iv.mjs} +431 -351
  5. package/dist/{SiteChromeCustomizeContext-ohjTvZbc.mjs → SiteChromeCustomizeContext-CNTKQ9nx.mjs} +3989 -2769
  6. package/dist/_dts/ai/src/contracts/proposals.d.ts +4719 -66
  7. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +429 -6
  8. package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +49 -0
  9. package/dist/_dts/api/src/appointmentServiceCategoryEndpoints.d.ts +75 -0
  10. package/dist/_dts/api/src/appointmentServiceContracts.d.ts +80 -0
  11. package/dist/_dts/api/src/appointmentSetup.d.ts +8 -1
  12. package/dist/_dts/api/src/billing.d.ts +1 -1
  13. package/dist/_dts/api/src/billingEndpointTypes.d.ts +8 -2
  14. package/dist/_dts/api/src/bookingConfig.d.ts +3 -1
  15. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -12
  16. package/dist/_dts/api/src/communications.d.ts +14 -22
  17. package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
  18. package/dist/_dts/api/src/endpoints.d.ts +105 -58
  19. package/dist/_dts/api/src/index.d.ts +1 -1
  20. package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
  21. package/dist/_dts/api/src/launchReadiness.d.ts +2 -0
  22. package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +4 -4
  23. package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +0 -23
  24. package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +3 -0
  25. package/dist/_dts/api/src/publicBookingService.d.ts +35 -1
  26. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +1 -0
  27. package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +13 -0
  28. package/dist/_dts/api/src/publicNewsletterEndpointDefinitions.d.ts +58 -0
  29. package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +3 -3
  30. package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
  31. package/dist/_dts/api/src/sdkSettingsContracts.d.ts +8 -0
  32. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -6
  33. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -8
  34. package/dist/_dts/api/src/siteSettings.d.ts +17 -7
  35. package/dist/_dts/api/src/types.d.ts +2 -1
  36. package/dist/_dts/billing/src/membership/index.d.ts +3 -0
  37. package/dist/_dts/block-form/src/backend/types.d.ts +14 -0
  38. package/dist/_dts/block-form/src/client/index.d.ts +1 -0
  39. package/dist/_dts/block-form/src/context/RepeaterHostActionsContext.d.ts +30 -0
  40. package/dist/_dts/block-form/src/context/index.d.ts +1 -0
  41. package/dist/_dts/block-form/src/index.d.ts +1 -0
  42. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +4 -1
  43. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +5 -2
  44. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +11 -1
  45. package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +1 -0
  46. package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useEmptyStateFocusAfterRemoval.d.ts +8 -0
  47. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +15 -1
  48. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterRowActionsDomain.d.ts +5 -2
  49. package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -4
  50. package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
  51. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +58 -10
  52. package/dist/_dts/blocks/src/index.d.ts +1 -1
  53. package/dist/_dts/blocks/src/pageRenderJoins.d.ts +68 -0
  54. package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -27
  55. package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +7 -4
  56. package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +40 -23
  57. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +3 -0
  58. package/dist/_dts/blocks/src/server.d.ts +1 -1
  59. package/dist/_dts/blocks/src/system/blocks/appointment-services.d.ts +2 -0
  60. package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +2 -2
  61. package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +1 -1
  62. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
  63. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
  64. package/dist/_dts/blocks/src/system/constants/events.d.ts +10 -0
  65. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +29 -3
  66. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +5 -0
  67. package/dist/_dts/blocks/src/system/runtime/api/context.d.ts +3 -3
  68. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +10 -0
  69. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +3 -2
  70. package/dist/_dts/blocks/src/system/runtime/api/readAuthority.d.ts +11 -0
  71. package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +9 -0
  72. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -13
  73. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -6
  74. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +9 -4
  75. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +0 -1
  76. package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -3
  77. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -1
  78. package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +22 -2
  79. package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +7 -24
  80. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +3 -1
  81. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +57 -2
  82. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-categories.d.ts +29 -0
  83. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-choices.d.ts +13 -0
  84. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +3 -3
  85. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +13 -1
  86. package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -0
  87. package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -0
  88. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +2 -1
  89. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
  90. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
  91. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
  92. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.d.ts +2 -1
  93. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +1 -1
  94. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
  95. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -0
  96. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -5
  97. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +7 -2
  98. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +7 -5
  99. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -6
  100. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +6 -4
  101. package/dist/_dts/blocks/src/system/runtime/nodes/header-control.d.ts +10 -0
  102. package/dist/_dts/blocks/src/system/runtime/nodes/layout.d.ts +6 -21
  103. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +20 -1
  104. package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -0
  105. package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -0
  106. package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
  107. package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -0
  108. package/dist/_dts/blocks/src/system/runtime/shared/components/ThemedButton.d.ts +58 -0
  109. package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -0
  110. package/dist/_dts/blocks/src/system/transforms/registry/chromeLogo.d.ts +23 -0
  111. package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
  112. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +3 -1
  113. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +4 -1
  114. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -0
  115. package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
  116. package/dist/_dts/core/src/appointment-service-categories.d.ts +108 -0
  117. package/dist/_dts/core/src/editor-state.d.ts +6 -0
  118. package/dist/_dts/core/src/event-catalogue.d.ts +27 -0
  119. package/dist/_dts/core/src/event-preset-vocabulary.d.ts +7 -0
  120. package/dist/_dts/core/src/index.d.ts +3 -0
  121. package/dist/_dts/core/src/public-profile.d.ts +9 -0
  122. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +676 -241
  123. package/dist/_dts/db/src/schemas/forms.d.ts +286 -2
  124. package/dist/_dts/editor-blocks/src/block-editor/{BlockCardHeader.d.ts → BlockCardFrame.d.ts} +11 -3
  125. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +6 -0
  126. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +16 -1
  127. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +13 -0
  128. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +29 -0
  129. package/dist/_dts/logger/src/console.d.ts +3 -0
  130. package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +7 -2
  131. package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +1 -1
  132. package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +1 -0
  133. package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +1 -3
  134. package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
  135. package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -2
  136. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
  137. package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +1 -0
  138. package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +8 -0
  139. package/dist/_dts/sdk/src/client/types.d.ts +4 -1
  140. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  141. package/dist/_dts/sdk/src/contracts/page.d.ts +7 -2
  142. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
  143. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +2 -2
  144. package/dist/_dts/sdk/src/navigation/index.d.ts +27 -0
  145. package/dist/_dts/sdk/src/public-api/contracts.d.ts +21 -15
  146. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +3 -2
  147. package/dist/_dts/sdk/src/rendering/client.d.ts +1 -0
  148. package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +1 -0
  149. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +7 -1
  150. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +4 -2
  151. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
  152. package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -1
  153. package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +3 -2
  154. package/dist/_dts/sdk/src/rendering/islands/enhancers/shopShared.d.ts +2 -0
  155. package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
  156. package/dist/_dts/sdk/src/version.d.ts +1 -1
  157. package/dist/_dts/surfaces/src/index.d.ts +1 -0
  158. package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +1 -1
  159. package/dist/_dts/theme-core/src/buttons/classNames.d.ts +3 -13
  160. package/dist/_dts/theme-core/src/customCss/index.d.ts +1 -1
  161. package/dist/_dts/theme-core/src/customCss/patch.d.ts +0 -5
  162. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  163. package/dist/_dts/theme-core/src/layout/boundaryCss.d.ts +3 -0
  164. package/dist/_dts/theme-core/src/site-styles/compositionBudget.d.ts +8 -0
  165. package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +3 -2
  166. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +1 -3
  167. package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -0
  168. package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
  169. package/dist/_dts/theme-core/src/site-styles/joinTreatment.d.ts +132 -0
  170. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorBoundaries.d.ts +31 -0
  171. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +33 -29
  172. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
  173. package/dist/_dts/theme-core/src/site-styles/pageFlowPresets.d.ts +36 -0
  174. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -10
  175. package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +17 -4
  176. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +20 -74
  177. package/dist/_dts/theme-core/src/site-styles/sectionBoundaryComposition.d.ts +95 -0
  178. package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +80 -518
  179. package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +9 -4
  180. package/dist/_dts/theme-core/src/site-styles/transitionCatalogue.d.ts +320 -0
  181. package/dist/_dts/theme-core/src/site-styles/types.d.ts +3 -18
  182. package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
  183. package/dist/_dts/theme-core/src/surfaces/logoVariant.d.ts +26 -0
  184. package/dist/_dts/theme-core/src/utils/colorStyles.d.ts +10 -0
  185. package/dist/_dts/ui/src/editor-item-card.d.ts +116 -0
  186. package/dist/_dts/ui/src/index.d.ts +1 -0
  187. package/dist/client/{BookingConsentAgreement-BoCtvzzu.mjs → BookingConsentAgreement-DlVOmpW4.mjs} +4 -55
  188. package/dist/client/{DiscountCodeDisclosure-B5S30nZk.mjs → DiscountCodeDisclosure-T9q623PQ.mjs} +27 -17
  189. package/dist/client/{EventCombined.client-CeZ2-zSt.mjs → EventCombined.client-DnsUeONl.mjs} +54 -46
  190. package/dist/client/{EventListing.client-DJN3j8B3.mjs → EventListing.client-CNBFqJS4.mjs} +3 -4
  191. package/dist/client/{LeafletStaticMap-RjtGzDQT.mjs → LeafletStaticMap-C7higg52.mjs} +1 -1
  192. package/dist/client/ThemedButton-LAJTNrS8.mjs +412 -0
  193. package/dist/client/{accordion-DOmnDoyg.mjs → accordion-BcNF9TjX.mjs} +1 -1
  194. package/dist/client/{bookingForm-C0vk7pgS.mjs → bookingForm-BUaQ3S03.mjs} +161 -75
  195. package/dist/client/bookings.mjs +392 -182
  196. package/dist/client/{carousel-BZJ7pno3.mjs → carousel-CTdF6e0V.mjs} +2 -2
  197. package/dist/client/{carousel.client-DQTjCVQT.mjs → carousel.client-jahpU9Vz.mjs} +1 -1
  198. package/dist/client/{cart-CaeVAHJl.mjs → cart-pGtyf_XU.mjs} +3 -3
  199. package/dist/client/{checkout-7wmoNDtG.mjs → checkout-Da9WSn7Y.mjs} +3 -3
  200. package/dist/client/{checkoutUrls-FL6lRkrt.mjs → checkoutUrls-CW3-78uu.mjs} +1 -1
  201. package/dist/client/client.mjs +3819 -2717
  202. package/dist/client/{colorStyles-3013aRAY.mjs → colorStyles-CuJBiS-1.mjs} +16 -4
  203. package/dist/client/{context-BOimxE3U.mjs → context-BFeY_Wbm.mjs} +24 -8
  204. package/dist/client/{dates-BnzVksi4.mjs → dates-BhwVSxDg.mjs} +2 -2
  205. package/dist/client/{eventCalendar-l-fpaslC.mjs → eventCalendar-BAtdnR4s.mjs} +39 -50
  206. package/dist/client/{eventCombined-DGGvssK6.mjs → eventCombined-RksA3tRC.mjs} +5 -4
  207. package/dist/client/{eventDetails-DRiCm_hL.mjs → eventDetails-BB9hB4wR.mjs} +4 -4
  208. package/dist/client/{eventListing-dph8loYX.mjs → eventListing-BpJBkviM.mjs} +5 -4
  209. package/dist/client/{eventRegistration-ClBohmbY.mjs → eventRegistration-B18jFq_o.mjs} +83 -68
  210. package/dist/client/{form-BLVVAnd3.mjs → form-Dodt8Y8t.mjs} +9 -10
  211. package/dist/client/{headerSection-DHy4C8Ix.mjs → headerSection-B0qj9ttg.mjs} +23 -30
  212. package/dist/client/hooks.mjs +807 -162
  213. package/dist/client/{locationMap-6HuS28ck.mjs → locationMap-gn-iMk7a.mjs} +9 -10
  214. package/dist/client/{media-DHpfFwd3.mjs → media-BtJ37tzS.mjs} +1 -1
  215. package/dist/client/{newsletterForm-xOdcOhZP.mjs → newsletterForm-oByLdFkr.mjs} +31 -11
  216. package/dist/client/{pricing-ChinRYFt.mjs → pricing-BOU0_Hai.mjs} +1 -1
  217. package/dist/client/{productDetail-0chA5gbK.mjs → productDetail-D9v1zH2j.mjs} +3 -3
  218. package/dist/client/{productList-OoINA0h1.mjs → productList-D-mItx1n.mjs} +3 -3
  219. package/dist/client/{propsDecoder-CIZ-hbIG.mjs → propsDecoder-C3TP_z4x.mjs} +158 -61
  220. package/dist/client/rendering/client.mjs +2785 -2000
  221. package/dist/client/rendering/islands.mjs +19 -19
  222. package/dist/client/rendering.mjs +3855 -2694
  223. package/dist/client/{routeIslandApiConfig-UNsfPcYq.mjs → routeIslandApiConfig-DzN1W0sq.mjs} +8 -1
  224. package/dist/client/{scrollToBlock-BPZl0gPZ.mjs → scrollToBlock-CWs8EIdo.mjs} +1 -1
  225. package/dist/client/{shop-CLJFqNIq.mjs → shop-Dufw7N7o.mjs} +45 -58
  226. package/dist/client/{shop-commerce-PpANg5wB.mjs → shop-commerce-gklw_hLF.mjs} +42 -55
  227. package/dist/client/{shop-commerce-store-TA_Kz2ku.mjs → shop-commerce-store-Sf1eyTaZ.mjs} +1 -1
  228. package/dist/client/{shopShared-DzcFcA5g.mjs → shopShared-B5nyA41S.mjs} +6 -5
  229. package/dist/client/{useEventFilters-CFU21QZo.mjs → useEventFilters-CLL829vy.mjs} +66 -355
  230. package/dist/preview-next/before-render.mjs +147 -77
  231. package/dist/preview-next/client/runtime.mjs +4 -4
  232. package/dist/preview-next/editor-chrome.css +8 -0
  233. package/dist/preview-next/keepAlive.mjs +147 -77
  234. package/dist/preview-next/middleware.mjs +147 -77
  235. package/dist/{previewAuthStore-JA6-I_sL.mjs → previewAuthStore-BxAFlu-j.mjs} +147 -77
  236. package/dist/{sdk-runtime-CDKl0Fr7.mjs → sdk-runtime-D0uZFev7.mjs} +2 -2
  237. package/dist/{separator-BTp96X32.mjs → separator-EvdCAn4V.mjs} +1 -1
  238. package/dist/server/components.mjs +2548 -1607
  239. package/dist/server/config-validation.mjs +794 -160
  240. package/dist/server/config.mjs +794 -160
  241. package/dist/server/data.mjs +806 -161
  242. package/dist/server/index.mjs +167 -85
  243. package/dist/server/navigation.mjs +28 -1
  244. package/dist/server/next.mjs +14930 -14036
  245. package/dist/server/page-converter.mjs +494 -113
  246. package/dist/server/prebuild.mjs +1 -1
  247. package/dist/server/rendering/server.mjs +2537 -1590
  248. package/dist/server/rendering.mjs +2571 -1618
  249. package/dist/server/routing.mjs +918 -200
  250. package/dist/server/server.mjs +819 -205
  251. package/dist/server/theme-bridge.mjs +1232 -28
  252. package/dist/server/theme.mjs +6 -4
  253. package/dist/styles/index.css +6 -0
  254. package/package.json +2 -1
@@ -1,11 +1,12 @@
1
1
  "use client";
2
- import { d as hexToRgb, u as relativeLuminance } from "./colorStyles-3013aRAY.mjs";
3
- import { Ft as assertNever, G as normalizeCsvString, K as normalizeOptionalId, M as isSemanticSpacing, N as resolveSpacing, U as getEventRuntimeFiltersKey, W as normalizeCsvIds, ct as boxBackgroundSchema, dt as resolveTokenOrCssColorValue, ft as themeButtonClassName, j as SEMANTIC_SPACING_VALUES, lt as isCssColorLiteral, pt as normalizeCardRole, ut as resolveOnColorForThemeToken } from "./propsDecoder-CIZ-hbIG.mjs";
4
- import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-DHpfFwd3.mjs";
5
- import { o as formatEventRemainingPlaces, t as formatEventPrice } from "./pricing-ChinRYFt.mjs";
6
- import { a as formatTime, d as resolveEventLinkProps, i as formatEventNextDateFact, n as formatEventCompactDateRail, t as formatDate, u as resolveEventCta } from "./dates-BnzVksi4.mjs";
7
- import { n as useBlockApi } from "./context-BOimxE3U.mjs";
8
- import { t as LeafletStaticMap } from "./LeafletStaticMap-RjtGzDQT.mjs";
2
+ import { d as hexToRgb, u as relativeLuminance } from "./colorStyles-CuJBiS-1.mjs";
3
+ import { J as normalizeCsvString, K as getEventRuntimeFiltersKey, M as isSemanticSpacing, N as resolveSpacing, W as getBlockApiReadStage, Y as normalizeOptionalId, _t as normalizeCardRole, dt as boxBackgroundSchema, ft as isCssColorLiteral, j as SEMANTIC_SPACING_VALUES, mt as resolveTokenOrCssColorValue, pt as resolveOnColorForThemeToken, q as normalizeCsvIds, zt as assertNever } from "./propsDecoder-C3TP_z4x.mjs";
4
+ import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-BtJ37tzS.mjs";
5
+ import { o as formatEventRemainingPlaces, t as formatEventPrice } from "./pricing-BOU0_Hai.mjs";
6
+ import { a as formatTime, d as resolveEventLinkProps, i as formatEventNextDateFact, n as formatEventCompactDateRail, t as formatDate, u as resolveEventCta } from "./dates-BhwVSxDg.mjs";
7
+ import { n as useBlockApi } from "./context-BFeY_Wbm.mjs";
8
+ import { n as ThemedButtonLink, r as ClockIcon, t as ThemedButton } from "./ThemedButton-LAJTNrS8.mjs";
9
+ import { t as LeafletStaticMap } from "./LeafletStaticMap-C7higg52.mjs";
9
10
  import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
10
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
12
  //#region ../theme-core/src/palette/utils/textColor.ts
@@ -404,7 +405,7 @@ const MediaNodeServer = ({ value, className, style, videoPlayback = "inline", lo
404
405
  };
405
406
  //#endregion
406
407
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventCardIcons.tsx
407
- function MapPinIcon$1({ className, size = 16, strokeWidth = 2 }) {
408
+ function MapPinIcon({ className, size = 16, strokeWidth = 2 }) {
408
409
  return /* @__PURE__ */ jsxs("svg", {
409
410
  className,
410
411
  width: size,
@@ -424,7 +425,7 @@ function MapPinIcon$1({ className, size = 16, strokeWidth = 2 }) {
424
425
  })]
425
426
  });
426
427
  }
427
- function CalendarIcon$1({ className, size = 16, strokeWidth = 2 }) {
428
+ function CalendarIcon({ className, size = 16, strokeWidth = 2 }) {
428
429
  return /* @__PURE__ */ jsxs("svg", {
429
430
  className,
430
431
  width: size,
@@ -471,10 +472,6 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
471
472
  const formattedTime = `${formatTime(event.startsAt, { timeZone })} - ${formatTime(event.endsAt, { timeZone })}`;
472
473
  const cta = resolveEventCta(event, buttonText);
473
474
  const cardClass = boxStyleClassNames({ role: cardRole }, { baseClass: "event-card" });
474
- const buttonClass = themeButtonClassName({
475
- variant: buttonVariant,
476
- size: "md"
477
- });
478
475
  const title = event.title;
479
476
  const summary = event.presentation?.summary ?? event.description;
480
477
  const image = event.presentation?.image ?? null;
@@ -504,7 +501,7 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
504
501
  image
505
502
  }), /* @__PURE__ */ jsx(EventCardContent, {
506
503
  allowMap,
507
- buttonClass,
504
+ buttonVariant,
508
505
  capacityText,
509
506
  categoryBadge,
510
507
  categoryId: category?.id,
@@ -584,7 +581,7 @@ function EventCardContent(props) {
584
581
  className: "rb-mb-2 rb-caption",
585
582
  children: /* @__PURE__ */ jsxs("div", {
586
583
  className: "rb-flex rb-items-center rb-gap-2",
587
- children: [/* @__PURE__ */ jsx(CalendarIcon$1, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("time", { children: props.formattedDate }), /* @__PURE__ */ jsx("p", {
584
+ children: [/* @__PURE__ */ jsx(CalendarIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("time", { children: props.formattedDate }), /* @__PURE__ */ jsx("p", {
588
585
  className: "rb-pl-6",
589
586
  children: props.formattedTime
590
587
  })] })]
@@ -606,7 +603,7 @@ function EventCardContent(props) {
606
603
  children: props.summary
607
604
  }),
608
605
  /* @__PURE__ */ jsx(EventCardFooter, {
609
- buttonClass: props.buttonClass,
606
+ buttonVariant: props.buttonVariant,
610
607
  capacityText: props.capacityText,
611
608
  cta: props.cta,
612
609
  priceText: props.priceText
@@ -621,7 +618,7 @@ function EventCardVenue(props) {
621
618
  className: "rb-mb-3",
622
619
  children: [/* @__PURE__ */ jsxs("div", {
623
620
  className: "rb-flex rb-items-center rb-gap-2 rb-caption",
624
- children: [/* @__PURE__ */ jsx(MapPinIcon$1, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), venue.address ? ` · ${venue.address}` : null] })]
621
+ children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), venue.address ? ` · ${venue.address}` : null] })]
625
622
  }), props.showMap && props.allowMap && venue.location && props.mapSlot && /* @__PURE__ */ jsx("div", {
626
623
  className: "rb-mt-2",
627
624
  children: props.mapSlot
@@ -644,12 +641,14 @@ function EventCardFooter(props) {
644
641
  className: "event-card-status rb-caption status-muted rb-text-center",
645
642
  children: props.cta.label
646
643
  }),
647
- !props.cta.hidden && /* @__PURE__ */ jsx("a", {
644
+ !props.cta.hidden && /* @__PURE__ */ jsx(ThemedButtonLink, {
648
645
  href: props.cta.href,
649
646
  target: props.cta.external ? "_blank" : void 0,
650
647
  rel: props.cta.external ? "noopener noreferrer" : void 0,
651
- className: `${props.buttonClass} event-card-cta`,
652
- children: props.cta.label
648
+ variant: props.buttonVariant,
649
+ size: "md",
650
+ extraClassName: "event-card-cta",
651
+ label: props.cta.label
653
652
  })
654
653
  ]
655
654
  });
@@ -715,309 +714,6 @@ function EventCardClient({ event, showMap = true, allowMap = true, ...cardProps
715
714
  });
716
715
  }
717
716
  //#endregion
718
- //#region ../blocks/src/system/icons/svg.tsx
719
- function createIcon(displayName, children) {
720
- const Icon = ({ size = "1em", strokeWidth = 2, title, className, focusable = false, role, ...props }) => /* @__PURE__ */ jsxs("svg", {
721
- "aria-hidden": title ? void 0 : true,
722
- className,
723
- "data-rb-icon": displayName.replace(/Icon$/, ""),
724
- fill: "none",
725
- focusable,
726
- height: size,
727
- role: title ? role ?? "img" : role,
728
- stroke: "currentColor",
729
- strokeLinecap: "round",
730
- strokeLinejoin: "round",
731
- strokeWidth,
732
- viewBox: "0 0 24 24",
733
- width: size,
734
- xmlns: "http://www.w3.org/2000/svg",
735
- ...props,
736
- children: [title ? /* @__PURE__ */ jsx("title", { children: title }) : null, children]
737
- });
738
- Icon.displayName = displayName;
739
- return Icon;
740
- }
741
- createIcon("ArrowDownIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 5v14" }), /* @__PURE__ */ jsx("path", { d: "m6 13 6 6 6-6" })] }));
742
- createIcon("ArrowLeftIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M19 12H5" }), /* @__PURE__ */ jsx("path", { d: "m11 6-6 6 6 6" })] }));
743
- createIcon("ArrowRightIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M5 12h14" }), /* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })] }));
744
- createIcon("AwardIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
745
- cx: "12",
746
- cy: "8",
747
- r: "4"
748
- }), /* @__PURE__ */ jsx("path", { d: "m8.5 12.5-1.5 7 5-3 5 3-1.5-7" })] }));
749
- createIcon("BadgeCheckIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "m8 3 4-1 4 1 3 3 1 4-1 4-3 3-4 1-4-1-3-3-1-4 1-4Z" }), /* @__PURE__ */ jsx("path", { d: "m8.5 11.5 2.5 2.5 4.5-5" })] }));
750
- createIcon("BookOpenIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
751
- /* @__PURE__ */ jsx("path", { d: "M4 5.5A3 3 0 0 1 7 4h13v15H7a3 3 0 0 0-3 1.5Z" }),
752
- /* @__PURE__ */ jsx("path", { d: "M4 5.5V20" }),
753
- /* @__PURE__ */ jsx("path", { d: "M12 4v15" })
754
- ] }));
755
- createIcon("BrainIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
756
- /* @__PURE__ */ jsx("path", { d: "M9 4a4 4 0 0 0-4 4 4 4 0 0 0 0 8 4 4 0 0 0 4 4" }),
757
- /* @__PURE__ */ jsx("path", { d: "M15 4a4 4 0 0 1 4 4 4 4 0 0 1 0 8 4 4 0 0 1-4 4" }),
758
- /* @__PURE__ */ jsx("path", { d: "M9 4v16" }),
759
- /* @__PURE__ */ jsx("path", { d: "M15 4v16" }),
760
- /* @__PURE__ */ jsx("path", { d: "M9 8h6" }),
761
- /* @__PURE__ */ jsx("path", { d: "M9 14h6" })
762
- ] }));
763
- createIcon("BriefcaseBusinessIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
764
- /* @__PURE__ */ jsx("path", { d: "M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2" }),
765
- /* @__PURE__ */ jsx("rect", {
766
- x: "3",
767
- y: "7",
768
- width: "18",
769
- height: "13",
770
- rx: "2"
771
- }),
772
- /* @__PURE__ */ jsx("path", { d: "M3 12h18" }),
773
- /* @__PURE__ */ jsx("path", { d: "M9 12v2" }),
774
- /* @__PURE__ */ jsx("path", { d: "M15 12v2" })
775
- ] }));
776
- createIcon("CalendarIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
777
- /* @__PURE__ */ jsx("path", { d: "M8 3v4" }),
778
- /* @__PURE__ */ jsx("path", { d: "M16 3v4" }),
779
- /* @__PURE__ */ jsx("rect", {
780
- x: "4",
781
- y: "5",
782
- width: "16",
783
- height: "16",
784
- rx: "2"
785
- }),
786
- /* @__PURE__ */ jsx("path", { d: "M4 10h16" })
787
- ] }));
788
- createIcon("CheckIcon", /* @__PURE__ */ jsx("path", { d: "m5 12 4 4L19 6" }));
789
- createIcon("ChevronDownIcon", /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" }));
790
- createIcon("ChevronLeftIcon", /* @__PURE__ */ jsx("path", { d: "m15 18-6-6 6-6" }));
791
- createIcon("ChevronRightIcon", /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" }));
792
- createIcon("ChevronUpIcon", /* @__PURE__ */ jsx("path", { d: "m18 15-6-6-6 6" }));
793
- createIcon("CircleMinusIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
794
- cx: "12",
795
- cy: "12",
796
- r: "9"
797
- }), /* @__PURE__ */ jsx("path", { d: "M8 12h8" })] }));
798
- createIcon("CirclePlusIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
799
- /* @__PURE__ */ jsx("circle", {
800
- cx: "12",
801
- cy: "12",
802
- r: "9"
803
- }),
804
- /* @__PURE__ */ jsx("path", { d: "M8 12h8" }),
805
- /* @__PURE__ */ jsx("path", { d: "M12 8v8" })
806
- ] }));
807
- const ClockIcon = createIcon("ClockIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
808
- cx: "12",
809
- cy: "12",
810
- r: "9"
811
- }), /* @__PURE__ */ jsx("path", { d: "M12 7v5l3 2" })] }));
812
- createIcon("CompassIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
813
- cx: "12",
814
- cy: "12",
815
- r: "9"
816
- }), /* @__PURE__ */ jsx("path", { d: "m15 9-2 6-4 2 2-6Z" })] }));
817
- createIcon("DownloadIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
818
- /* @__PURE__ */ jsx("path", { d: "M12 3v12" }),
819
- /* @__PURE__ */ jsx("path", { d: "m7 10 5 5 5-5" }),
820
- /* @__PURE__ */ jsx("path", { d: "M5 21h14" })
821
- ] }));
822
- createIcon("ExternalLinkIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
823
- /* @__PURE__ */ jsx("path", { d: "M14 4h6v6" }),
824
- /* @__PURE__ */ jsx("path", { d: "m10 14 10-10" }),
825
- /* @__PURE__ */ jsx("path", { d: "M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5" })
826
- ] }));
827
- createIcon("FileArchiveIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
828
- /* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
829
- /* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
830
- /* @__PURE__ */ jsx("path", { d: "M10 7h2" }),
831
- /* @__PURE__ */ jsx("path", { d: "M10 11h2" }),
832
- /* @__PURE__ */ jsx("path", { d: "M10 15h4v4h-4Z" })
833
- ] }));
834
- createIcon("FileAudioIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
835
- /* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
836
- /* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
837
- /* @__PURE__ */ jsx("path", { d: "M10 16V10l5-2v6" }),
838
- /* @__PURE__ */ jsx("circle", {
839
- cx: "9",
840
- cy: "17",
841
- r: "1.5"
842
- }),
843
- /* @__PURE__ */ jsx("circle", {
844
- cx: "15",
845
- cy: "15",
846
- r: "1.5"
847
- })
848
- ] }));
849
- createIcon("FileSpreadsheetIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
850
- /* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
851
- /* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
852
- /* @__PURE__ */ jsx("path", { d: "M8 12h8" }),
853
- /* @__PURE__ */ jsx("path", { d: "M8 16h8" }),
854
- /* @__PURE__ */ jsx("path", { d: "M12 10v8" })
855
- ] }));
856
- createIcon("FileTextIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
857
- /* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
858
- /* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
859
- /* @__PURE__ */ jsx("path", { d: "M9 13h6" }),
860
- /* @__PURE__ */ jsx("path", { d: "M9 17h6" })
861
- ] }));
862
- createIcon("Flower2Icon", /* @__PURE__ */ jsxs(Fragment, { children: [
863
- /* @__PURE__ */ jsx("circle", {
864
- cx: "12",
865
- cy: "12",
866
- r: "2"
867
- }),
868
- /* @__PURE__ */ jsx("path", { d: "M12 10C8 4 16 4 12 10Z" }),
869
- /* @__PURE__ */ jsx("path", { d: "M14 12c6-4 6 4 0 0Z" }),
870
- /* @__PURE__ */ jsx("path", { d: "M12 14c4 6-4 6 0 0Z" }),
871
- /* @__PURE__ */ jsx("path", { d: "M10 12c-6 4-6-4 0 0Z" })
872
- ] }));
873
- createIcon("GlobeIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
874
- /* @__PURE__ */ jsx("circle", {
875
- cx: "12",
876
- cy: "12",
877
- r: "9"
878
- }),
879
- /* @__PURE__ */ jsx("path", { d: "M3 12h18" }),
880
- /* @__PURE__ */ jsx("path", { d: "M12 3a14 14 0 0 1 0 18" }),
881
- /* @__PURE__ */ jsx("path", { d: "M12 3a14 14 0 0 0 0 18" })
882
- ] }));
883
- createIcon("GraduationCapIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
884
- /* @__PURE__ */ jsx("path", { d: "m3 8 9-4 9 4-9 4Z" }),
885
- /* @__PURE__ */ jsx("path", { d: "M7 10v5c3 3 7 3 10 0v-5" }),
886
- /* @__PURE__ */ jsx("path", { d: "M21 8v6" })
887
- ] }));
888
- createIcon("HandHeartIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
889
- /* @__PURE__ */ jsx("path", { d: "M3 15h4l4 4h5l5-5" }),
890
- /* @__PURE__ */ jsx("path", { d: "M7 15l3-3h4a2 2 0 0 1 2 2" }),
891
- /* @__PURE__ */ jsx("path", { d: "M12 8c-2-2-5 1-2 4l2 2 2-2c3-3 0-6-2-4Z" })
892
- ] }));
893
- createIcon("HeartIcon", /* @__PURE__ */ jsx("path", { d: "M12 21s-8-5-8-11a5 5 0 0 1 8-4 5 5 0 0 1 8 4c0 6-8 11-8 11Z" }));
894
- createIcon("HeartHandshakeIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 21s-8-5-8-11a5 5 0 0 1 8-4 5 5 0 0 1 8 4c0 6-8 11-8 11Z" }), /* @__PURE__ */ jsx("path", { d: "m8 12 2 2 2-2 2 2 2-2" })] }));
895
- createIcon("HomeIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
896
- /* @__PURE__ */ jsx("path", { d: "m3 11 9-8 9 8" }),
897
- /* @__PURE__ */ jsx("path", { d: "M5 10v10h14V10" }),
898
- /* @__PURE__ */ jsx("path", { d: "M9 20v-6h6v6" })
899
- ] }));
900
- createIcon("InfoIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
901
- /* @__PURE__ */ jsx("circle", {
902
- cx: "12",
903
- cy: "12",
904
- r: "9"
905
- }),
906
- /* @__PURE__ */ jsx("path", { d: "M12 11v6" }),
907
- /* @__PURE__ */ jsx("path", { d: "M12 7h.01" })
908
- ] }));
909
- createIcon("LeafIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M5 20C5 10 12 4 21 4c0 9-6 16-16 16Z" }), /* @__PURE__ */ jsx("path", { d: "M5 20c4-5 8-8 13-11" })] }));
910
- createIcon("LightbulbIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
911
- /* @__PURE__ */ jsx("path", { d: "M9 18h6" }),
912
- /* @__PURE__ */ jsx("path", { d: "M10 22h4" }),
913
- /* @__PURE__ */ jsx("path", { d: "M8 14a6 6 0 1 1 8 0c-1 1-1 2-1 4H9c0-2 0-3-1-4Z" })
914
- ] }));
915
- createIcon("LockIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("rect", {
916
- x: "5",
917
- y: "10",
918
- width: "14",
919
- height: "10",
920
- rx: "2"
921
- }), /* @__PURE__ */ jsx("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })] }));
922
- createIcon("MailIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("rect", {
923
- x: "3",
924
- y: "5",
925
- width: "18",
926
- height: "14",
927
- rx: "2"
928
- }), /* @__PURE__ */ jsx("path", { d: "m3 7 9 6 9-6" })] }));
929
- createIcon("MapPinIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 21s7-5 7-12a7 7 0 0 0-14 0c0 7 7 12 7 12Z" }), /* @__PURE__ */ jsx("circle", {
930
- cx: "12",
931
- cy: "9",
932
- r: "2.5"
933
- })] }));
934
- createIcon("MessageCircleIcon", /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M21 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.1-5.3A8.5 8.5 0 1 1 21 11.5Z" }) }));
935
- createIcon("MinusIcon", /* @__PURE__ */ jsx("path", { d: "M5 12h14" }));
936
- createIcon("PackageIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
937
- /* @__PURE__ */ jsx("path", { d: "m12 3 8 4.5v9L12 21l-8-4.5v-9Z" }),
938
- /* @__PURE__ */ jsx("path", { d: "M12 12 4 7.5" }),
939
- /* @__PURE__ */ jsx("path", { d: "m12 12 8-4.5" }),
940
- /* @__PURE__ */ jsx("path", { d: "M12 12v9" })
941
- ] }));
942
- createIcon("PhoneIcon", /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M22 16.9v3a2 2 0 0 1-2.2 2A19 19 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7l.4 2.5a2 2 0 0 1-.6 1.8L7.7 9.2a13 13 0 0 0 7.1 7.1l1.2-1.2a2 2 0 0 1 1.8-.6l2.5.4a2 2 0 0 1 1.7 2Z" }) }));
943
- createIcon("PlayIcon", /* @__PURE__ */ jsx("path", { d: "m8 5 11 7-11 7Z" }));
944
- createIcon("PlusIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 5v14" }), /* @__PURE__ */ jsx("path", { d: "M5 12h14" })] }));
945
- createIcon("ShieldIcon", /* @__PURE__ */ jsx("path", { d: "M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11Z" }));
946
- createIcon("ShoppingBagIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M6 8h12l1 13H5Z" }), /* @__PURE__ */ jsx("path", { d: "M9 8a3 3 0 0 1 6 0" })] }));
947
- createIcon("ShoppingCartIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
948
- /* @__PURE__ */ jsx("circle", {
949
- cx: "9",
950
- cy: "20",
951
- r: "1"
952
- }),
953
- /* @__PURE__ */ jsx("circle", {
954
- cx: "18",
955
- cy: "20",
956
- r: "1"
957
- }),
958
- /* @__PURE__ */ jsx("path", { d: "M2 3h3l3 12h10l3-8H7" })
959
- ] }));
960
- createIcon("SmileIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
961
- /* @__PURE__ */ jsx("circle", {
962
- cx: "12",
963
- cy: "12",
964
- r: "9"
965
- }),
966
- /* @__PURE__ */ jsx("path", { d: "M8 14s1.5 2 4 2 4-2 4-2" }),
967
- /* @__PURE__ */ jsx("path", { d: "M9 9h.01" }),
968
- /* @__PURE__ */ jsx("path", { d: "M15 9h.01" })
969
- ] }));
970
- createIcon("SparklesIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "m12 3 2 5 5 2-5 2-2 5-2-5-5-2 5-2Z" }), /* @__PURE__ */ jsx("path", { d: "m19 15 .8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8Z" })] }));
971
- createIcon("SproutIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
972
- /* @__PURE__ */ jsx("path", { d: "M12 21V10" }),
973
- /* @__PURE__ */ jsx("path", { d: "M12 10C8 5 4 6 3 10c4 1 7 0 9 0Z" }),
974
- /* @__PURE__ */ jsx("path", { d: "M12 11c4-5 8-4 9 0-4 1-7 0-9 0Z" })
975
- ] }));
976
- createIcon("StarIcon", /* @__PURE__ */ jsx("path", { d: "m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.2 6.4 20.2 7.5 14 3 9.6l6.2-.9Z" }));
977
- createIcon("TargetIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
978
- /* @__PURE__ */ jsx("circle", {
979
- cx: "12",
980
- cy: "12",
981
- r: "9"
982
- }),
983
- /* @__PURE__ */ jsx("circle", {
984
- cx: "12",
985
- cy: "12",
986
- r: "5"
987
- }),
988
- /* @__PURE__ */ jsx("circle", {
989
- cx: "12",
990
- cy: "12",
991
- r: "1"
992
- })
993
- ] }));
994
- createIcon("UploadIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
995
- /* @__PURE__ */ jsx("path", { d: "M12 21V9" }),
996
- /* @__PURE__ */ jsx("path", { d: "m7 14 5-5 5 5" }),
997
- /* @__PURE__ */ jsx("path", { d: "M5 3h14" })
998
- ] }));
999
- createIcon("UserRoundCheckIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
1000
- /* @__PURE__ */ jsx("circle", {
1001
- cx: "10",
1002
- cy: "8",
1003
- r: "4"
1004
- }),
1005
- /* @__PURE__ */ jsx("path", { d: "M3 21a7 7 0 0 1 11.5-5.3" }),
1006
- /* @__PURE__ */ jsx("path", { d: "m15 19 2 2 4-5" })
1007
- ] }));
1008
- createIcon("UsersIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
1009
- /* @__PURE__ */ jsx("circle", {
1010
- cx: "9",
1011
- cy: "8",
1012
- r: "4"
1013
- }),
1014
- /* @__PURE__ */ jsx("path", { d: "M2 21a7 7 0 0 1 14 0" }),
1015
- /* @__PURE__ */ jsx("path", { d: "M17 11a4 4 0 0 0 0-7" }),
1016
- /* @__PURE__ */ jsx("path", { d: "M22 21a7 7 0 0 0-5-6.7" })
1017
- ] }));
1018
- createIcon("WrenchIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M14.7 6.3A5 5 0 0 0 7 12.6L3.5 16a2.1 2.1 0 0 0 3 3L10 15.5A5 5 0 0 0 16.7 9Z" }), /* @__PURE__ */ jsx("path", { d: "m15 5 4 4" })] }));
1019
- createIcon("XIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }), /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })] }));
1020
- //#endregion
1021
717
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventCompactRow.tsx
1022
718
  /**
1023
719
  * EventCompactRow Component
@@ -1033,10 +729,6 @@ const EventCompactRow = ({ event, buttonVariant = "primary", buttonText }) => {
1033
729
  const price = formatEventPrice(event);
1034
730
  const teacherLine = formatEventTeacherLine(event);
1035
731
  const cta = resolveEventCta(event, buttonText);
1036
- const buttonClass = themeButtonClassName({
1037
- variant: buttonVariant,
1038
- size: "sm"
1039
- });
1040
732
  return /* @__PURE__ */ jsxs("article", {
1041
733
  className: "event-compact-row",
1042
734
  children: [/* @__PURE__ */ jsxs("time", {
@@ -1073,7 +765,7 @@ const EventCompactRow = ({ event, buttonVariant = "primary", buttonText }) => {
1073
765
  children: [
1074
766
  event.venue && /* @__PURE__ */ jsxs("span", {
1075
767
  className: "event-compact-row-venue",
1076
- children: [/* @__PURE__ */ jsx(MapPinIcon$1, { className: "rb-shrink-0" }), event.venue.name]
768
+ children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), event.venue.name]
1077
769
  }),
1078
770
  teacherLine && /* @__PURE__ */ jsx("span", {
1079
771
  className: "event-compact-row-teacher",
@@ -1100,12 +792,15 @@ const EventCompactRow = ({ event, buttonVariant = "primary", buttonText }) => {
1100
792
  }), cta.hidden ? /* @__PURE__ */ jsx("span", {
1101
793
  className: "event-compact-row-status",
1102
794
  children: cta.label
1103
- }) : /* @__PURE__ */ jsx("a", {
795
+ }) : /* @__PURE__ */ jsx(ThemedButtonLink, {
1104
796
  href: cta.href,
1105
797
  target: cta.external ? "_blank" : void 0,
1106
798
  rel: cta.external ? "noopener noreferrer" : void 0,
1107
- className: `${buttonClass} event-compact-row-cta`,
1108
- children: /* @__PURE__ */ jsx("span", { children: cta.label })
799
+ variant: buttonVariant,
800
+ size: "sm",
801
+ extraClassName: "event-compact-row-cta",
802
+ labelClassName: "event-compact-row-cta-label",
803
+ label: cta.label
1109
804
  })]
1110
805
  })]
1111
806
  })]
@@ -1150,39 +845,33 @@ const EventPaginatedListView = ({ filters, display, events, loading, error, hasM
1150
845
  children: [/* @__PURE__ */ jsx("p", {
1151
846
  className: "status-error rb-caption rb-mb-2",
1152
847
  children: "Failed to load more events"
1153
- }), /* @__PURE__ */ jsx("button", {
848
+ }), /* @__PURE__ */ jsx(ThemedButton, {
1154
849
  type: "button",
1155
850
  onClick: loadMore,
1156
- className: themeButtonClassName({
1157
- variant: display.buttonVariant,
1158
- size: "md"
1159
- }),
1160
- children: "Try again"
851
+ variant: display.buttonVariant,
852
+ size: "md",
853
+ label: "Try again"
1161
854
  })]
1162
855
  }) : null,
1163
856
  paginationAction.kind === "loadMore" && hasMore && !error ? /* @__PURE__ */ jsx("div", {
1164
857
  className: "rb-mt-8 rb-text-center",
1165
- children: /* @__PURE__ */ jsx("button", {
858
+ children: /* @__PURE__ */ jsx(ThemedButton, {
1166
859
  type: "button",
1167
860
  onClick: loadMore,
1168
861
  disabled: loading,
1169
- className: themeButtonClassName({
1170
- variant: display.buttonVariant,
1171
- size: "md",
1172
- extraClassName: loading ? "rb-opacity-50 rb-cursor-wait" : null
1173
- }),
1174
- children: loading ? "Loading..." : paginationAction.label
862
+ variant: display.buttonVariant,
863
+ size: "md",
864
+ extraClassName: loading ? "rb-opacity-50 rb-cursor-wait" : null,
865
+ label: loading ? "Loading..." : paginationAction.label
1175
866
  })
1176
867
  }) : null,
1177
868
  paginationAction.kind === "seeAllLink" && hasMore ? /* @__PURE__ */ jsx("div", {
1178
869
  className: "rb-mt-8 rb-text-center",
1179
- children: /* @__PURE__ */ jsx("a", {
870
+ children: /* @__PURE__ */ jsx(ThemedButtonLink, {
1180
871
  href: paginationAction.href,
1181
- className: themeButtonClassName({
1182
- variant: display.buttonVariant,
1183
- size: "md"
1184
- }),
1185
- children: paginationAction.label
872
+ variant: display.buttonVariant,
873
+ size: "md",
874
+ label: paginationAction.label
1186
875
  })
1187
876
  }) : null
1188
877
  ] }),
@@ -1288,8 +977,12 @@ function getEventsKey(events) {
1288
977
  * });
1289
978
  * ```
1290
979
  */
1291
- function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialOnMount = false, initialFilters, filters, pageSize = 12, stage }) {
1292
- const { getPublicEvents } = useBlockApi();
980
+ function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialOnMount = false, initialFilters, filters, pageSize = 12 }) {
981
+ const { getPublicEvents, config } = useBlockApi();
982
+ const stage = getBlockApiReadStage(config);
983
+ const readScope = `${config.siteId ?? ""}:${stage}`;
984
+ const previousReadScope = useRef(readScope);
985
+ const readScopeChanged = previousReadScope.current !== readScope;
1293
986
  const initialFiltersKey = getEventRuntimeFiltersKey(initialFilters);
1294
987
  const filtersKey = getEventRuntimeFiltersKey(filters);
1295
988
  const filtersMatchInitial = filtersKey === initialFiltersKey;
@@ -1344,7 +1037,6 @@ function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialO
1344
1037
  afterStartsAt: lastEvent ? lastEvent.startsAt : void 0,
1345
1038
  afterId: lastEvent ? lastEvent.occurrenceId : void 0,
1346
1039
  limit: pageSize,
1347
- stage,
1348
1040
  detailLevel: "listing",
1349
1041
  eventSurface,
1350
1042
  eventPresets: eventPresets ?? void 0,
@@ -1387,6 +1079,25 @@ function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialO
1387
1079
  const loadMore = useCallback(() => {
1388
1080
  fetchPage({ reset: false });
1389
1081
  }, [fetchPage]);
1082
+ useEffect(() => {
1083
+ if (previousReadScope.current === readScope) return;
1084
+ previousReadScope.current = readScope;
1085
+ requestIdRef.current += 1;
1086
+ eventsRef.current = [];
1087
+ loadingRef.current = false;
1088
+ hasMoreRef.current = true;
1089
+ dispatchLoadState({
1090
+ type: "synced",
1091
+ events: [],
1092
+ pageSize
1093
+ });
1094
+ if (seriesIds !== "") fetchPage({ reset: true });
1095
+ }, [
1096
+ readScope,
1097
+ fetchPage,
1098
+ pageSize,
1099
+ seriesIds
1100
+ ]);
1390
1101
  const initialFetchAttemptKeyRef = useRef(null);
1391
1102
  useEffect(() => {
1392
1103
  if (!fetchInitialOnMount || seriesIds === "") return;
@@ -1445,8 +1156,8 @@ function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialO
1445
1156
  pageSize
1446
1157
  ]);
1447
1158
  return {
1448
- events,
1449
- loading,
1159
+ events: readScopeChanged ? [] : events,
1160
+ loading: readScopeChanged || loading,
1450
1161
  error,
1451
1162
  hasMore,
1452
1163
  loadMore