@riverbankcms/sdk 0.78.2 → 0.80.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 (230) hide show
  1. package/README.md +80 -0
  2. package/dist/PreviewEditorSidebar-QZG37QIF.mjs +2655 -0
  3. package/dist/{PreviewEditorUI-CS5P4N3P.mjs → PreviewEditorUI-AXIKSMZA.mjs} +27 -4
  4. package/dist/SdkPreviewModeRuntime-XE5M4UKM.mjs +8 -0
  5. package/dist/_dts/ai/src/contracts/proposals.d.ts +56 -0
  6. package/dist/_dts/api/src/endpoints.d.ts +79 -0
  7. package/dist/_dts/api/src/index.d.ts +6 -4
  8. package/dist/_dts/api/src/media.d.ts +8 -1
  9. package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
  10. package/dist/_dts/api/src/navigation/dashboardSiteNav.d.ts +8 -8
  11. package/dist/_dts/api/src/navigation/identity.d.ts +59 -0
  12. package/dist/_dts/api/src/navigation.d.ts +2 -0
  13. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +4 -0
  14. package/dist/_dts/api/src/sdkContracts.d.ts +1 -0
  15. package/dist/_dts/api/src/siteIcons.d.ts +128 -0
  16. package/dist/_dts/api/src/siteInfrastructure.d.ts +124 -0
  17. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +16 -0
  18. package/dist/_dts/api/src/siteOnboarding.d.ts +13 -0
  19. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +17 -1
  20. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +6 -1
  21. package/dist/_dts/api/src/types.d.ts +1 -1
  22. package/dist/_dts/api/src/webhooks.d.ts +239 -0
  23. package/dist/_dts/block-form/src/client/index.d.ts +2 -0
  24. package/dist/_dts/block-form/src/index.d.ts +2 -0
  25. package/dist/_dts/block-form/src/utils/evaluateVisibility.d.ts +2 -1
  26. package/dist/_dts/blocks/src/client/header.d.ts +1 -1
  27. package/dist/_dts/blocks/src/client.d.ts +12 -12
  28. package/dist/_dts/blocks/src/index.d.ts +5 -1
  29. package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +288 -288
  30. package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +288 -288
  31. package/dist/_dts/blocks/src/system/blocks/cart.d.ts +288 -288
  32. package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +288 -288
  33. package/dist/_dts/blocks/src/system/blocks/collection.d.ts +288 -288
  34. package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +2 -2
  35. package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -1
  36. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -1
  37. package/dist/_dts/blocks/src/system/blocks/faq.d.ts +294 -289
  38. package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +57 -0
  39. package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +4 -0
  40. package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +288 -288
  41. package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -0
  42. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +1 -1
  43. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +22 -22
  44. package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +288 -288
  45. package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +288 -288
  46. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +288 -288
  47. package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +13 -1
  48. package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +179 -0
  49. package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +4 -2
  50. package/dist/_dts/blocks/src/system/fragments/library/faqHeading.d.ts +1 -0
  51. package/dist/_dts/blocks/src/system/fragments/library/testimonialsCarousel.d.ts +10 -0
  52. package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +3 -1
  53. package/dist/_dts/blocks/src/system/icons/ids.d.ts +13 -0
  54. package/dist/_dts/blocks/src/system/icons/index.d.ts +6 -0
  55. package/dist/_dts/blocks/src/system/icons/presets.d.ts +4 -0
  56. package/dist/_dts/blocks/src/system/icons/registry.d.ts +18 -0
  57. package/dist/_dts/blocks/src/system/icons/semantic.d.ts +239 -0
  58. package/dist/_dts/blocks/src/system/icons/value.d.ts +94 -0
  59. package/dist/_dts/blocks/src/system/index.d.ts +1 -0
  60. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +4 -1
  61. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +23 -0
  62. package/dist/_dts/blocks/src/system/node/fragments/headingDecoration.d.ts +1 -4
  63. package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
  64. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -7
  65. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -3
  66. package/dist/_dts/blocks/src/system/runtime/header/enhanceHeaderSection.d.ts +10 -2
  67. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -5
  68. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.server.d.ts +2 -2
  69. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventSpotlight.d.ts +2 -2
  70. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +2 -2
  71. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventDetailModal.d.ts +2 -2
  72. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModals.d.ts +2 -2
  73. package/dist/_dts/blocks/src/system/runtime/nodes/feature-card-icon.d.ts +13 -0
  74. package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +2 -2
  75. package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +3 -0
  76. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +9 -0
  77. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +14 -1
  78. package/dist/_dts/content-model/src/contentManifest.d.ts +3 -1
  79. package/dist/_dts/core/src/branded.d.ts +6 -0
  80. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +200 -3
  81. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +8 -1
  82. package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +8 -1
  83. package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +8 -2
  84. package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +17 -0
  85. package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +42 -0
  86. package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +7 -1
  87. package/dist/_dts/editor-blocks/src/block-editor/featureCardIconActions.d.ts +82 -0
  88. package/dist/_dts/editor-blocks/src/index.d.ts +2 -0
  89. package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
  90. package/dist/_dts/media-core/src/fileDomain.d.ts +8 -1
  91. package/dist/_dts/media-editor/src/MediaEditor.d.ts +3 -2
  92. package/dist/_dts/media-react/src/components/MediaLibrary.d.ts +2 -1
  93. package/dist/_dts/media-react/src/components/MediaPickerMini.d.ts +2 -1
  94. package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +5 -1
  95. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +17 -0
  96. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +24 -0
  97. package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +34 -0
  98. package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -5
  99. package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +8 -1
  100. package/dist/_dts/preview-next/src/client/preview/PreviewBlockCustomizeSelectionContext.d.ts +20 -0
  101. package/dist/_dts/preview-next/src/client/preview/PreviewOpenEditorButton.d.ts +2 -0
  102. package/dist/_dts/preview-next/src/client/preview/SelectedBlockCustomizePanel.d.ts +13 -0
  103. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +3 -2
  104. package/dist/_dts/preview-next/src/client/preview/previewCustomizeEditorDraftPatch.d.ts +13 -0
  105. package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +6 -0
  106. package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +2 -0
  107. package/dist/_dts/preview-next/src/client/preview/storeTypes.d.ts +4 -0
  108. package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +3 -1
  109. package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +44 -0
  110. package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +11 -0
  111. package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +4 -0
  112. package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +1 -0
  113. package/dist/_dts/sdk/src/cli/sync/diff.d.ts +9 -0
  114. package/dist/_dts/sdk/src/client/management/index.d.ts +1 -1
  115. package/dist/_dts/sdk/src/client/management/types.d.ts +58 -0
  116. package/dist/_dts/sdk/src/client/management/webhooks.d.ts +3 -0
  117. package/dist/_dts/sdk/src/config/field-definitions.d.ts +3 -1
  118. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  119. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +24 -4
  120. package/dist/_dts/sdk/src/next/index.d.ts +1 -1
  121. package/dist/_dts/sdk/src/next/revalidate.d.ts +26 -5
  122. package/dist/_dts/sdk/src/next/static-params.d.ts +28 -3
  123. package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -1
  124. package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
  125. package/dist/_dts/sdk/src/version.d.ts +1 -1
  126. package/dist/_dts/sdk/src/webhooks/index.d.ts +1 -1
  127. package/dist/_dts/sdk/src/webhooks/verify.d.ts +6 -102
  128. package/dist/_dts/site-commands/src/commands.d.ts +3 -0
  129. package/dist/_dts/theme-core/src/accordions/siteStyleDefaults.d.ts +220 -0
  130. package/dist/_dts/theme-core/src/accordions/types.d.ts +45 -2
  131. package/dist/_dts/theme-core/src/blockOverrides.d.ts +8 -0
  132. package/dist/_dts/theme-core/src/blocks/types.d.ts +1 -1
  133. package/dist/_dts/theme-core/src/blocks/vars/testimonials.d.ts +4 -1
  134. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +1 -1
  135. package/dist/_dts/theme-core/src/cards/core.d.ts +20 -0
  136. package/dist/_dts/theme-core/src/cards/generateDefaultCardSystem.d.ts +6 -3
  137. package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +105 -0
  138. package/dist/_dts/theme-core/src/cards/types.d.ts +177 -0
  139. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  140. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +159 -21
  141. package/dist/_dts/theme-core/src/palette/variants/index.d.ts +15 -0
  142. package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +16 -0
  143. package/dist/_dts/theme-core/src/palette/variants/types.d.ts +1 -1
  144. package/dist/_dts/theme-core/src/schema.d.ts +451 -57
  145. package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +86 -17
  146. package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +2 -3
  147. package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +86 -17
  148. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +135 -3
  149. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +5 -5
  150. package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +20 -1
  151. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +8 -2
  152. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +286 -6
  153. package/dist/_dts/theme-core/src/site-styles/index.d.ts +2 -0
  154. package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +193 -0
  155. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +6 -12
  156. package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +2 -0
  157. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +10 -7
  158. package/dist/_dts/theme-core/src/site-styles/siteStyleThemeCompiler.d.ts +11 -0
  159. package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +2 -2
  160. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
  161. package/dist/_dts/theme-core/src/site-styles/testimonialQuotePresets.d.ts +15 -0
  162. package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
  163. package/dist/_dts/theme-core/src/site-styles/types.d.ts +7 -29
  164. package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +2 -0
  165. package/dist/_dts/ui/src/combobox.d.ts +1 -0
  166. package/dist/{PreviewEditorSidebar-4DXLYX2V.mjs → chunk-5NZGBSJF.mjs} +2215 -2566
  167. package/dist/{chunk-RGTOD4AJ.mjs → chunk-7PCYG6YV.mjs} +621 -108
  168. package/dist/{chunk-CR5HKAGU.mjs → chunk-BBLZSQEY.mjs} +79 -0
  169. package/dist/{chunk-MCRQMPET.mjs → chunk-GYXKAUFV.mjs} +4500 -912
  170. package/dist/{chunk-6HYXHRAI.mjs → chunk-HTB4BMKD.mjs} +267 -49
  171. package/dist/{chunk-OKMBEAXY.mjs → chunk-MPBNEVPB.mjs} +1 -1
  172. package/dist/cli/index.mjs +3255 -702
  173. package/dist/cli/init-docs/content/workflow-editor-workflows.md +2 -0
  174. package/dist/cli/init-docs/content/workflow-isr-revalidation.md +150 -0
  175. package/dist/client/{accordion-PLYNJIIM.mjs → accordion-QFZMNB7O.mjs} +1 -1
  176. package/dist/client/{bookingForm-BXAP6AO7.mjs → bookingForm-NCIXFWIG.mjs} +3 -3
  177. package/dist/client/bookings.mjs +1246 -323
  178. package/dist/client/{carousel-TRBXDHGF.mjs → carousel-EO4BJMWD.mjs} +2 -2
  179. package/dist/client/{cart-Z7H3HJRS.mjs → cart-FTYCLYUW.mjs} +5 -5
  180. package/dist/client/{checkout-WAFCUBIX.mjs → checkout-NFGLVCOX.mjs} +5 -5
  181. package/dist/client/{chunk-CWGTG37I.mjs → chunk-4W66ALYT.mjs} +1 -1
  182. package/dist/client/{chunk-JRDUHZCT.mjs → chunk-6GVVWSPU.mjs} +4 -4
  183. package/dist/client/{chunk-75OUS5MT.mjs → chunk-IWFZSQNZ.mjs} +1 -1
  184. package/dist/client/{chunk-JGXPTEI2.mjs → chunk-PUOELU4O.mjs} +95 -8
  185. package/dist/client/{chunk-FUXW6VW2.mjs → chunk-PYRBIURC.mjs} +4 -4
  186. package/dist/client/{chunk-ZI3LLBPZ.mjs → chunk-T6UIP6UZ.mjs} +1 -1
  187. package/dist/client/{chunk-DNRGY432.mjs → chunk-VDS5YFLX.mjs} +1 -1
  188. package/dist/client/{chunk-UVQEJJTN.mjs → chunk-Y37KDO7P.mjs} +1 -1
  189. package/dist/client/client.mjs +24277 -20796
  190. package/dist/client/{courseRegistration-AHFQHWIJ.mjs → courseRegistration-2EORROPS.mjs} +3 -3
  191. package/dist/client/{eventCalendar-LDXTV5R7.mjs → eventCalendar-WZI4VL6N.mjs} +5 -5
  192. package/dist/client/{eventCombined-A4JGTNJO.mjs → eventCombined-QCB2TCNL.mjs} +5 -5
  193. package/dist/client/{eventDetails-4YXTZ7EG.mjs → eventDetails-TFTATAPH.mjs} +5 -5
  194. package/dist/client/{eventListing-P72TPFFM.mjs → eventListing-A2CQEHEQ.mjs} +5 -5
  195. package/dist/client/{eventRegistration-LSYJHGMT.mjs → eventRegistration-OELPVLUY.mjs} +5 -5
  196. package/dist/client/{form-AOPYOKOW.mjs → form-NTIFD6WQ.mjs} +1 -1
  197. package/dist/client/{headerSection-5TFYDFVQ.mjs → headerSection-7TBNKCLA.mjs} +65 -24
  198. package/dist/client/hooks.mjs +3687 -2024
  199. package/dist/client/{locationMap-QSZ3ZVAZ.mjs → locationMap-LRLB5A3H.mjs} +1 -1
  200. package/dist/client/{newsletterForm-KTRHZY52.mjs → newsletterForm-XI52RZSN.mjs} +1 -1
  201. package/dist/client/{productDetail-N4E775RG.mjs → productDetail-GSNKBFLY.mjs} +5 -5
  202. package/dist/client/{productList-UGUQ2S45.mjs → productList-BGCGT4KZ.mjs} +5 -5
  203. package/dist/client/rendering/client.mjs +5274 -3030
  204. package/dist/client/rendering/islands.mjs +18 -18
  205. package/dist/client/rendering.mjs +6271 -2790
  206. package/dist/client/{shop-VHSZEEQ2.mjs → shop-RQHUCLNY.mjs} +5 -5
  207. package/dist/preview-next/before-render.mjs +79 -0
  208. package/dist/preview-next/client/runtime.mjs +5 -5
  209. package/dist/preview-next/middleware.mjs +79 -0
  210. package/dist/{sdk-runtime-WHPJEF5G.mjs → sdk-runtime-A4LHT2RS.mjs} +6 -6
  211. package/dist/server/components.mjs +6215 -3057
  212. package/dist/server/config-validation.mjs +3858 -2194
  213. package/dist/server/config.mjs +3858 -2194
  214. package/dist/server/data.mjs +3687 -2024
  215. package/dist/server/index.mjs +88 -1
  216. package/dist/server/next/revalidate.mjs +229 -34
  217. package/dist/server/next.mjs +6295 -3036
  218. package/dist/server/page-converter.mjs +3055 -1883
  219. package/dist/server/prebuild.mjs +1 -1
  220. package/dist/server/rendering/server.mjs +6220 -3062
  221. package/dist/server/rendering.mjs +6233 -3075
  222. package/dist/server/routing.mjs +4251 -2137
  223. package/dist/server/server.mjs +3705 -2042
  224. package/dist/server/theme-bridge.mjs +1617 -329
  225. package/dist/server/theme.mjs +411 -221
  226. package/dist/server/webhooks.mjs +129 -25
  227. package/dist/styles/index.css +355 -33
  228. package/package.json +2 -1
  229. package/dist/SdkPreviewModeRuntime-IJDHTW4W.mjs +0 -8
  230. package/dist/chunk-4QEGTLK6.mjs +0 -1175
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { useWaitlistClaim, MagicLinkForm } from './chunk-ZI3LLBPZ.mjs';
2
+ import { useWaitlistClaim, MagicLinkForm } from './chunk-T6UIP6UZ.mjs';
3
3
  import { SpinnerNode } from './chunk-CE7IBGVW.mjs';
4
- import { DiscountCodeDisclosure, getStepNumber, logoutPortal, StepIndicator, LoggedInAsUser, CheckIcon, formatPrice, TerminalPanel, StateIcon, ClockIcon, CrossIcon, scrollToBlock, buildCheckoutReturnUrls, MembershipHero, validateFormData } from './chunk-UVQEJJTN.mjs';
4
+ import { DiscountCodeDisclosure, getStepNumber, logoutPortal, StepIndicator, LoggedInAsUser, CheckIcon, formatPrice, TerminalPanel, StateIcon, ClockIcon, CrossIcon, scrollToBlock, buildCheckoutReturnUrls, MembershipHero, validateFormData } from './chunk-Y37KDO7P.mjs';
5
5
  import { getFieldValidationControlProps, FieldValidationMessage } from './chunk-3DCJ45Z2.mjs';
6
6
  import { ModalShell } from './chunk-3PEDD5KJ.mjs';
7
7
  import { AltchaWidget, getChallengeUrl, isSpamProtectionEnabled } from './chunk-YLMKMCSJ.mjs';
8
8
  import { BlockApiProvider, useBlockApi } from './chunk-UDNSI5PY.mjs';
9
9
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
10
- import { defineIslandPropsDecoder, themeButtonClassName, resolveCoursePricingState, formatCoursePriceDisplay, formatCoursePriceAmount } from './chunk-JGXPTEI2.mjs';
10
+ import { defineIslandPropsDecoder, themeButtonClassName, resolveCoursePricingState, formatCoursePriceDisplay, formatCoursePriceAmount } from './chunk-PUOELU4O.mjs';
11
11
  import { formatBookingDate, toScheduledBookingDateTime, toBookingTimeZone, formatBookingTime } from './chunk-AUJ5DBZJ.mjs';
12
12
  import React2, { Component, useMemo, useState, useEffect } from 'react';
13
13
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -1,17 +1,17 @@
1
- import { EventCalendarClient } from './chunk-JRDUHZCT.mjs';
1
+ import { EventCalendarClient } from './chunk-6GVVWSPU.mjs';
2
2
  import './chunk-XSV6KW4D.mjs';
3
- import './chunk-ZI3LLBPZ.mjs';
3
+ import './chunk-T6UIP6UZ.mjs';
4
4
  import './chunk-I2MMZO53.mjs';
5
- import './chunk-DNRGY432.mjs';
5
+ import './chunk-VDS5YFLX.mjs';
6
6
  import './chunk-CE7IBGVW.mjs';
7
7
  import './chunk-ZFHRN6W2.mjs';
8
- import './chunk-UVQEJJTN.mjs';
8
+ import './chunk-Y37KDO7P.mjs';
9
9
  import './chunk-3DCJ45Z2.mjs';
10
10
  import './chunk-3PEDD5KJ.mjs';
11
11
  import './chunk-YLMKMCSJ.mjs';
12
12
  import { BlockApiProvider } from './chunk-UDNSI5PY.mjs';
13
13
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
14
- import { defineIslandPropsDecoder } from './chunk-JGXPTEI2.mjs';
14
+ import { defineIslandPropsDecoder } from './chunk-PUOELU4O.mjs';
15
15
  import './chunk-AUJ5DBZJ.mjs';
16
16
  import { jsx } from 'react/jsx-runtime';
17
17
 
@@ -1,17 +1,17 @@
1
- import { EventCombinedIslandClient } from './chunk-JRDUHZCT.mjs';
1
+ import { EventCombinedIslandClient } from './chunk-6GVVWSPU.mjs';
2
2
  import './chunk-XSV6KW4D.mjs';
3
- import './chunk-ZI3LLBPZ.mjs';
3
+ import './chunk-T6UIP6UZ.mjs';
4
4
  import './chunk-I2MMZO53.mjs';
5
- import './chunk-DNRGY432.mjs';
5
+ import './chunk-VDS5YFLX.mjs';
6
6
  import './chunk-CE7IBGVW.mjs';
7
7
  import './chunk-ZFHRN6W2.mjs';
8
- import './chunk-UVQEJJTN.mjs';
8
+ import './chunk-Y37KDO7P.mjs';
9
9
  import './chunk-3DCJ45Z2.mjs';
10
10
  import './chunk-3PEDD5KJ.mjs';
11
11
  import './chunk-YLMKMCSJ.mjs';
12
12
  import { BlockApiProvider } from './chunk-UDNSI5PY.mjs';
13
13
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
14
- import { defineIslandPropsDecoder } from './chunk-JGXPTEI2.mjs';
14
+ import { defineIslandPropsDecoder } from './chunk-PUOELU4O.mjs';
15
15
  import './chunk-AUJ5DBZJ.mjs';
16
16
  import { jsx } from 'react/jsx-runtime';
17
17
 
@@ -1,17 +1,17 @@
1
- import { EventDetailsIslandClient } from './chunk-JRDUHZCT.mjs';
1
+ import { EventDetailsIslandClient } from './chunk-6GVVWSPU.mjs';
2
2
  import './chunk-XSV6KW4D.mjs';
3
- import './chunk-ZI3LLBPZ.mjs';
3
+ import './chunk-T6UIP6UZ.mjs';
4
4
  import './chunk-I2MMZO53.mjs';
5
- import './chunk-DNRGY432.mjs';
5
+ import './chunk-VDS5YFLX.mjs';
6
6
  import './chunk-CE7IBGVW.mjs';
7
7
  import './chunk-ZFHRN6W2.mjs';
8
- import './chunk-UVQEJJTN.mjs';
8
+ import './chunk-Y37KDO7P.mjs';
9
9
  import './chunk-3DCJ45Z2.mjs';
10
10
  import './chunk-3PEDD5KJ.mjs';
11
11
  import './chunk-YLMKMCSJ.mjs';
12
12
  import './chunk-UDNSI5PY.mjs';
13
13
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
14
- import { defineIslandPropsDecoder } from './chunk-JGXPTEI2.mjs';
14
+ import { defineIslandPropsDecoder } from './chunk-PUOELU4O.mjs';
15
15
  import './chunk-AUJ5DBZJ.mjs';
16
16
  import { jsx } from 'react/jsx-runtime';
17
17
 
@@ -1,17 +1,17 @@
1
- import { EventListingClient } from './chunk-JRDUHZCT.mjs';
1
+ import { EventListingClient } from './chunk-6GVVWSPU.mjs';
2
2
  import './chunk-XSV6KW4D.mjs';
3
- import './chunk-ZI3LLBPZ.mjs';
3
+ import './chunk-T6UIP6UZ.mjs';
4
4
  import './chunk-I2MMZO53.mjs';
5
- import './chunk-DNRGY432.mjs';
5
+ import './chunk-VDS5YFLX.mjs';
6
6
  import './chunk-CE7IBGVW.mjs';
7
7
  import './chunk-ZFHRN6W2.mjs';
8
- import './chunk-UVQEJJTN.mjs';
8
+ import './chunk-Y37KDO7P.mjs';
9
9
  import './chunk-3DCJ45Z2.mjs';
10
10
  import './chunk-3PEDD5KJ.mjs';
11
11
  import './chunk-YLMKMCSJ.mjs';
12
12
  import { BlockApiProvider } from './chunk-UDNSI5PY.mjs';
13
13
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
14
- import { defineIslandPropsDecoder } from './chunk-JGXPTEI2.mjs';
14
+ import { defineIslandPropsDecoder } from './chunk-PUOELU4O.mjs';
15
15
  import './chunk-AUJ5DBZJ.mjs';
16
16
  import { jsx } from 'react/jsx-runtime';
17
17
 
@@ -1,17 +1,17 @@
1
- import { EventRegistrationIslandClient } from './chunk-JRDUHZCT.mjs';
1
+ import { EventRegistrationIslandClient } from './chunk-6GVVWSPU.mjs';
2
2
  import './chunk-XSV6KW4D.mjs';
3
- import './chunk-ZI3LLBPZ.mjs';
3
+ import './chunk-T6UIP6UZ.mjs';
4
4
  import './chunk-I2MMZO53.mjs';
5
- import './chunk-DNRGY432.mjs';
5
+ import './chunk-VDS5YFLX.mjs';
6
6
  import './chunk-CE7IBGVW.mjs';
7
7
  import './chunk-ZFHRN6W2.mjs';
8
- import './chunk-UVQEJJTN.mjs';
8
+ import './chunk-Y37KDO7P.mjs';
9
9
  import './chunk-3DCJ45Z2.mjs';
10
10
  import './chunk-3PEDD5KJ.mjs';
11
11
  import './chunk-YLMKMCSJ.mjs';
12
12
  import { BlockApiProvider } from './chunk-UDNSI5PY.mjs';
13
13
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
14
- import { defineIslandPropsDecoder } from './chunk-JGXPTEI2.mjs';
14
+ import { defineIslandPropsDecoder } from './chunk-PUOELU4O.mjs';
15
15
  import './chunk-AUJ5DBZJ.mjs';
16
16
  import { jsx } from 'react/jsx-runtime';
17
17
 
@@ -2,7 +2,7 @@
2
2
  import { isSpamProtectionEnabled, AltchaWidget, getChallengeUrl } from './chunk-YLMKMCSJ.mjs';
3
3
  import { BlockApiProvider, FeedbackMessage, useBlockApi } from './chunk-UDNSI5PY.mjs';
4
4
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
5
- import { defineIslandPropsDecoder, themeButtonClassName, assertNever11, err2, ok } from './chunk-JGXPTEI2.mjs';
5
+ import { defineIslandPropsDecoder, themeButtonClassName, assertNever11, err2, ok } from './chunk-PUOELU4O.mjs';
6
6
  import { clsx_default } from './chunk-AUJ5DBZJ.mjs';
7
7
  import { useState, useReducer, useRef } from 'react';
8
8
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { useCommerceCart } from './chunk-CWGTG37I.mjs';
2
+ import { useCommerceCart } from './chunk-4W66ALYT.mjs';
3
3
  import { resolveDedicatedCheckoutPath, ModalShell } from './chunk-3PEDD5KJ.mjs';
4
- import { defineIslandPropsDecoder, buildCartDisplay, themeButtonClassName } from './chunk-JGXPTEI2.mjs';
4
+ import { defineIslandPropsDecoder, buildCartDisplay, themeButtonClassName } from './chunk-PUOELU4O.mjs';
5
5
  import './chunk-AUJ5DBZJ.mjs';
6
6
  import * as React2 from 'react';
7
7
  import { createPortal } from 'react-dom';
@@ -390,12 +390,16 @@ function getFirstNonScriptChild(root) {
390
390
  }
391
391
  function enhanceDesktopDropdownAria(root) {
392
392
  const cleanups = [];
393
- const dropdowns = Array.from(root.querySelectorAll(SELECTORS.dropdown));
393
+ const dropdowns = Array.from(
394
+ root.querySelectorAll(SELECTORS.dropdown)
395
+ );
394
396
  const setExpanded = (trigger, expanded) => {
395
397
  trigger.setAttribute("aria-expanded", expanded ? "true" : "false");
396
398
  };
397
399
  dropdowns.forEach((dropdown) => {
398
- const trigger = dropdown.querySelector(SELECTORS.dropdownTrigger);
400
+ const trigger = dropdown.querySelector(
401
+ SELECTORS.dropdownTrigger
402
+ );
399
403
  if (!trigger) return;
400
404
  const menu = dropdown.querySelector(SELECTORS.dropdownMenu);
401
405
  let placementRafId = null;
@@ -466,11 +470,15 @@ function enhanceDesktopDropdownAria(root) {
466
470
  }
467
471
  function enhanceMobileDropdowns(root) {
468
472
  const cleanups = [];
469
- const triggers = Array.from(root.querySelectorAll(SELECTORS.mobileTrigger));
473
+ const triggers = Array.from(
474
+ root.querySelectorAll(SELECTORS.mobileTrigger)
475
+ );
470
476
  const reset = () => {
471
477
  triggers.forEach((trigger) => {
472
478
  const dropdown = trigger.closest(SELECTORS.mobileDropdown);
473
- const children = dropdown?.querySelector(SELECTORS.mobileChildren);
479
+ const children = dropdown?.querySelector(
480
+ SELECTORS.mobileChildren
481
+ );
474
482
  trigger.setAttribute("aria-expanded", "false");
475
483
  children?.classList.add(CLASSES.hidden);
476
484
  dropdown?.classList.remove(CLASSES.mobileOpen);
@@ -478,7 +486,9 @@ function enhanceMobileDropdowns(root) {
478
486
  };
479
487
  triggers.forEach((trigger) => {
480
488
  const dropdown = trigger.closest(SELECTORS.mobileDropdown);
481
- const children = dropdown?.querySelector(SELECTORS.mobileChildren);
489
+ const children = dropdown?.querySelector(
490
+ SELECTORS.mobileChildren
491
+ );
482
492
  if (!children) return;
483
493
  trigger.setAttribute("aria-expanded", "false");
484
494
  const handleClick = () => {
@@ -495,7 +505,9 @@ function enhanceMobileDropdowns(root) {
495
505
  function enhanceMobileOverlay(root, resetMobileDropdowns) {
496
506
  const cleanups = [];
497
507
  const overlay = root.querySelector(SELECTORS.mobileOverlay);
498
- const toggles = Array.from(root.querySelectorAll(SELECTORS.mobileToggle));
508
+ const toggles = Array.from(
509
+ root.querySelectorAll(SELECTORS.mobileToggle)
510
+ );
499
511
  const backdrop = root.querySelector(SELECTORS.mobileBackdrop);
500
512
  const closeBtn = root.querySelector(SELECTORS.mobileClose);
501
513
  if (!overlay || toggles.length === 0) return { cleanups };
@@ -526,7 +538,9 @@ function enhanceMobileOverlay(root, resetMobileDropdowns) {
526
538
  }
527
539
  document.body.style.overflow = "hidden";
528
540
  state.lastActiveElement = document.activeElement;
529
- const overlayToggle = overlay.querySelector(SELECTORS.mobileToggle);
541
+ const overlayToggle = overlay.querySelector(
542
+ SELECTORS.mobileToggle
543
+ );
530
544
  const focusTarget = overlayToggle ?? overlay.querySelector(FOCUSABLE_SELECTOR);
531
545
  if (focusTarget) {
532
546
  try {
@@ -576,20 +590,26 @@ function enhanceMobileOverlay(root, resetMobileDropdowns) {
576
590
  const link = targetEl?.closest("a[href]");
577
591
  if (link) handleClose();
578
592
  };
579
- toggles.forEach((toggle) => toggle.addEventListener("click", handleToggleClick));
593
+ toggles.forEach(
594
+ (toggle) => toggle.addEventListener("click", handleToggleClick)
595
+ );
580
596
  backdrop?.addEventListener("click", handleClose);
581
597
  closeBtn?.addEventListener("click", handleClose);
582
598
  document.addEventListener("keydown", handleKeyDown);
583
599
  overlay.addEventListener("click", handleOverlayClick);
584
600
  cleanups.push(() => {
585
601
  setOpen(false);
586
- toggles.forEach((toggle) => toggle.removeEventListener("click", handleToggleClick));
602
+ toggles.forEach(
603
+ (toggle) => toggle.removeEventListener("click", handleToggleClick)
604
+ );
587
605
  backdrop?.removeEventListener("click", handleClose);
588
606
  closeBtn?.removeEventListener("click", handleClose);
589
607
  document.removeEventListener("keydown", handleKeyDown);
590
608
  overlay.removeEventListener("click", handleOverlayClick);
591
- if (state.previousBodyOverflow !== null) document.body.style.overflow = state.previousBodyOverflow;
592
- if (state.previousBodyPaddingRight !== null) document.body.style.paddingRight = state.previousBodyPaddingRight;
609
+ if (state.previousBodyOverflow !== null)
610
+ document.body.style.overflow = state.previousBodyOverflow;
611
+ if (state.previousBodyPaddingRight !== null)
612
+ document.body.style.paddingRight = state.previousBodyPaddingRight;
593
613
  });
594
614
  return { cleanups };
595
615
  }
@@ -623,7 +643,9 @@ function parseCartMount(element) {
623
643
  }
624
644
  function enhanceCartMounts(root) {
625
645
  const cleanups = [];
626
- const parsedMounts = Array.from(root.querySelectorAll(SELECTORS.cartPlaceholder)).map((element) => parseCartMount(element)).filter((mount) => mount !== null);
646
+ const parsedMounts = Array.from(
647
+ root.querySelectorAll(SELECTORS.cartPlaceholder)
648
+ ).map((element) => parseCartMount(element)).filter((mount) => mount !== null);
627
649
  const firstMount = getFirstParsedCartMount(parsedMounts);
628
650
  if (!firstMount) {
629
651
  return { cleanups };
@@ -639,7 +661,10 @@ function enhanceCartMounts(root) {
639
661
  var SCROLL_THRESHOLD_PX = 8;
640
662
  var SCROLL_HYSTERESIS_PX = 4;
641
663
  var SCROLL_ON_THRESHOLD_PX = SCROLL_THRESHOLD_PX;
642
- var SCROLL_OFF_THRESHOLD_PX = Math.max(0, SCROLL_THRESHOLD_PX - SCROLL_HYSTERESIS_PX);
664
+ var SCROLL_OFF_THRESHOLD_PX = Math.max(
665
+ 0,
666
+ SCROLL_THRESHOLD_PX - SCROLL_HYSTERESIS_PX
667
+ );
643
668
  function getScrollContainer(element) {
644
669
  let parent = element.parentElement;
645
670
  while (parent && parent !== document.body) {
@@ -655,7 +680,8 @@ function getScrollContainer(element) {
655
680
  return document.scrollingElement || window;
656
681
  }
657
682
  function getRootScrollTop() {
658
- if (typeof window.scrollY === "number" && Number.isFinite(window.scrollY)) return window.scrollY;
683
+ if (typeof window.scrollY === "number" && Number.isFinite(window.scrollY))
684
+ return window.scrollY;
659
685
  const scrollingElement = document.scrollingElement;
660
686
  if (scrollingElement) return scrollingElement.scrollTop;
661
687
  return document.documentElement.scrollTop || document.body.scrollTop || 0;
@@ -672,10 +698,12 @@ function enhanceScrollBehavior(target, scrollEnabled) {
672
698
  const scrollTop = Math.max(0, getScrollTop());
673
699
  const isScrolled = target.classList.contains(CLASSES.headerScrolled);
674
700
  if (isScrolled) {
675
- if (scrollTop < SCROLL_OFF_THRESHOLD_PX) target.classList.remove(CLASSES.headerScrolled);
701
+ if (scrollTop < SCROLL_OFF_THRESHOLD_PX)
702
+ target.classList.remove(CLASSES.headerScrolled);
676
703
  return;
677
704
  }
678
- if (scrollTop > SCROLL_ON_THRESHOLD_PX) target.classList.add(CLASSES.headerScrolled);
705
+ if (scrollTop > SCROLL_ON_THRESHOLD_PX)
706
+ target.classList.add(CLASSES.headerScrolled);
679
707
  };
680
708
  let rafId = null;
681
709
  let rafScheduled = false;
@@ -698,8 +726,10 @@ function enhanceScrollBehavior(target, scrollEnabled) {
698
726
  });
699
727
  return cleanups;
700
728
  }
701
- function enhanceHeaderSection(root, options = {}) {
702
- if (root.dataset.rbHeaderEnhanced === "true") return;
729
+ function mountHeaderChromeRuntime(root, options = {}) {
730
+ if (root.dataset.rbHeaderEnhanced === "true") {
731
+ return { kind: "already-mounted" };
732
+ }
703
733
  root.dataset.rbHeaderEnhanced = "true";
704
734
  const cleanups = [];
705
735
  cleanups.push(...enhanceDesktopDropdownAria(root));
@@ -713,9 +743,19 @@ function enhanceHeaderSection(root, options = {}) {
713
743
  if (target) {
714
744
  cleanups.push(...enhanceScrollBehavior(target, options.scrollEnabled));
715
745
  }
716
- if (cleanups.length === 0) return;
717
- return () => {
718
- cleanups.forEach((fn) => fn());
746
+ if (cleanups.length === 0) {
747
+ delete root.dataset.rbHeaderEnhanced;
748
+ return { kind: "not-applicable" };
749
+ }
750
+ let disposed = false;
751
+ return {
752
+ kind: "mounted",
753
+ dispose: () => {
754
+ if (disposed) return;
755
+ disposed = true;
756
+ cleanups.forEach((fn) => fn());
757
+ delete root.dataset.rbHeaderEnhanced;
758
+ }
719
759
  };
720
760
  }
721
761
 
@@ -723,7 +763,8 @@ function enhanceHeaderSection(root, options = {}) {
723
763
  var decode = defineIslandPropsDecoder("headerSection");
724
764
  var enhance = (root, props) => {
725
765
  const scrollEnabled = typeof props?.scrollEnabled === "boolean" ? props.scrollEnabled : typeof props?.enabled === "boolean" ? props.enabled : void 0;
726
- return enhanceHeaderSection(root, { scrollEnabled });
766
+ const mount = mountHeaderChromeRuntime(root, { scrollEnabled });
767
+ return mount.kind === "mounted" ? mount.dispose : void 0;
727
768
  };
728
769
 
729
770
  export { decode, enhance };