@riverbankcms/sdk 0.142.0 → 0.144.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 (187) hide show
  1. package/dist/{PreviewEditorSidebar-Dk6Dt11f.mjs → PreviewEditorSidebar-CQZNnFiM.mjs} +20 -26
  2. package/dist/{PreviewEditorUI-D6EQTsCA.mjs → PreviewEditorUI-DCNxnmI0.mjs} +3 -3
  3. package/dist/{PreviewQueryProvider-CC-EPkyQ.mjs → PreviewQueryProvider-BCYICImX.mjs} +1 -1
  4. package/dist/{SdkPreviewModeRuntime-DH1n4ytY.mjs → SdkPreviewModeRuntime-BJolUbr1.mjs} +17 -8
  5. package/dist/{SiteChromeCustomizeContext-DunIzY0K.mjs → SiteChromeCustomizeContext-CKgEpoxi.mjs} +2406 -1988
  6. package/dist/_dts/api/src/billing.d.ts +1 -1
  7. package/dist/_dts/api/src/billingEndpointTypes.d.ts +8 -2
  8. package/dist/_dts/api/src/bookingConfig.d.ts +3 -1
  9. package/dist/_dts/api/src/endpoints.d.ts +7 -0
  10. package/dist/_dts/api/src/index.d.ts +1 -1
  11. package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +4 -4
  12. package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
  13. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +49 -41
  14. package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
  15. package/dist/_dts/api/src/sdkSettingsContracts.d.ts +8 -0
  16. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -8
  17. package/dist/_dts/api/src/siteSettings.d.ts +17 -7
  18. package/dist/_dts/billing/src/membership/index.d.ts +3 -0
  19. package/dist/_dts/block-form/src/backend/types.d.ts +14 -0
  20. package/dist/_dts/block-form/src/client/index.d.ts +1 -0
  21. package/dist/_dts/block-form/src/context/RepeaterHostActionsContext.d.ts +30 -0
  22. package/dist/_dts/block-form/src/context/index.d.ts +1 -0
  23. package/dist/_dts/block-form/src/index.d.ts +1 -0
  24. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +4 -1
  25. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +5 -2
  26. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +11 -1
  27. package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +1 -0
  28. package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useEmptyStateFocusAfterRemoval.d.ts +8 -0
  29. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +15 -1
  30. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterRowActionsDomain.d.ts +5 -2
  31. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +34 -10
  32. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +3 -0
  33. package/dist/_dts/blocks/src/system/constants/events.d.ts +10 -0
  34. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +7 -1
  35. package/dist/_dts/blocks/src/system/runtime/api/context.d.ts +3 -3
  36. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +18 -0
  37. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +3 -2
  38. package/dist/_dts/blocks/src/system/runtime/api/readAuthority.d.ts +11 -0
  39. package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +9 -0
  40. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +95 -35
  41. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -13
  42. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -6
  43. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +9 -4
  44. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +0 -1
  45. package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -3
  46. package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +7 -24
  47. package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -0
  48. package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -0
  49. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +2 -1
  50. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
  51. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
  52. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentStatusStep.d.ts +10 -0
  53. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +0 -2
  54. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +14 -1
  55. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.d.ts +2 -1
  56. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +2 -2
  57. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +1 -4
  58. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +12 -0
  59. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -1
  60. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +1 -0
  61. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.d.ts +4 -5
  62. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +9 -11
  63. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +56 -2
  64. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +12 -6
  65. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +23 -0
  66. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +1 -1
  67. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -0
  68. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -5
  69. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +7 -2
  70. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +7 -5
  71. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -6
  72. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +3 -1
  73. package/dist/_dts/blocks/src/system/runtime/nodes/header-control.d.ts +10 -0
  74. package/dist/_dts/blocks/src/system/runtime/nodes/layout.d.ts +6 -21
  75. package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -0
  76. package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -0
  77. package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
  78. package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -0
  79. package/dist/_dts/blocks/src/system/runtime/shared/components/ThemedButton.d.ts +58 -0
  80. package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -0
  81. package/dist/_dts/blocks/src/system/transforms/registry/chromeLogo.d.ts +23 -0
  82. package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
  83. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +3 -1
  84. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +4 -1
  85. package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -4
  86. package/dist/_dts/commerce/src/purchase/eventCheckoutRecoveryWindow.d.ts +8 -0
  87. package/dist/_dts/commerce/src/purchase/index.d.ts +2 -1
  88. package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +1 -13
  89. package/dist/_dts/core/src/event-catalogue.d.ts +27 -0
  90. package/dist/_dts/core/src/event-preset-vocabulary.d.ts +7 -0
  91. package/dist/_dts/core/src/index.d.ts +2 -0
  92. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +3126 -3077
  93. package/dist/_dts/db/src/schemas/forms.d.ts +286 -2
  94. package/dist/_dts/editor-blocks/src/block-editor/{BlockCardHeader.d.ts → BlockCardFrame.d.ts} +11 -3
  95. package/dist/_dts/logger/src/console.d.ts +3 -0
  96. package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +1 -0
  97. package/dist/_dts/sdk/src/client/types.d.ts +3 -0
  98. package/dist/_dts/sdk/src/navigation/index.d.ts +27 -0
  99. package/dist/_dts/sdk/src/public-api/contracts.d.ts +15 -7
  100. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
  101. package/dist/_dts/sdk/src/rendering/client.d.ts +1 -0
  102. package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +1 -0
  103. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +7 -1
  104. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
  105. package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +3 -2
  106. package/dist/_dts/sdk/src/rendering/islands/enhancers/shopShared.d.ts +2 -0
  107. package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
  108. package/dist/_dts/sdk/src/version.d.ts +1 -1
  109. package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +1 -1
  110. package/dist/_dts/theme-core/src/buttons/classNames.d.ts +3 -13
  111. package/dist/_dts/theme-core/src/customCss/index.d.ts +1 -1
  112. package/dist/_dts/theme-core/src/customCss/patch.d.ts +0 -5
  113. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  114. package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
  115. package/dist/_dts/theme-core/src/surfaces/logoVariant.d.ts +26 -0
  116. package/dist/_dts/theme-core/src/utils/colorStyles.d.ts +10 -0
  117. package/dist/_dts/ui/src/editor-item-card.d.ts +116 -0
  118. package/dist/_dts/ui/src/index.d.ts +1 -0
  119. package/dist/client/{BookingConsentAgreement-CnJeq3_r.mjs → BookingConsentAgreement-DoAILrkN.mjs} +4 -55
  120. package/dist/client/{DiscountCodeDisclosure-BINEO6J9.mjs → DiscountCodeDisclosure-X528hUTf.mjs} +27 -17
  121. package/dist/client/{EventCombined.client-srxNQ6sZ.mjs → EventCombined.client-DSBVwq5m.mjs} +54 -46
  122. package/dist/client/{EventListing.client-DbyVyGkX.mjs → EventListing.client-DmFAX7Vb.mjs} +3 -4
  123. package/dist/client/{LeafletStaticMap-B-wpijzL.mjs → LeafletStaticMap-BAqXdfhq.mjs} +1 -1
  124. package/dist/client/ThemedButton-BwNFVwi4.mjs +412 -0
  125. package/dist/client/{accordion-B-iUXU7n.mjs → accordion-DRhMdkbd.mjs} +1 -1
  126. package/dist/client/{bookingForm-BXYPke5q.mjs → bookingForm-iJ_nCsNF.mjs} +26 -32
  127. package/dist/client/bookings.mjs +657 -650
  128. package/dist/client/{carousel-Cr4aj63H.mjs → carousel-D8zuffZr.mjs} +2 -2
  129. package/dist/client/{carousel.client-DQTjCVQT.mjs → carousel.client-jahpU9Vz.mjs} +1 -1
  130. package/dist/client/{cart-DibP9WWa.mjs → cart-DeMGJViN.mjs} +3 -3
  131. package/dist/client/{checkout-CrSBVnL8.mjs → checkout-DXc06Km2.mjs} +3 -3
  132. package/dist/client/{checkoutUrls-FL6lRkrt.mjs → checkoutUrls-CW3-78uu.mjs} +1 -1
  133. package/dist/client/client.mjs +2714 -2448
  134. package/dist/client/{colorStyles-3013aRAY.mjs → colorStyles-CuJBiS-1.mjs} +16 -4
  135. package/dist/client/{context-Ces-AgdR.mjs → context-CDLCfDep.mjs} +35 -8
  136. package/dist/client/{dates-BXyNeNhB.mjs → dates-ClFx7Epy.mjs} +2 -2
  137. package/dist/client/{eventCalendar-HwpPeqrH.mjs → eventCalendar-BaGpnOGN.mjs} +39 -50
  138. package/dist/client/{eventCombined-BpFUkuEI.mjs → eventCombined-ywONOx2m.mjs} +5 -4
  139. package/dist/client/{eventDetails-DK_agiWy.mjs → eventDetails-B2LlOTYY.mjs} +4 -4
  140. package/dist/client/{eventListing-DhzHqP1c.mjs → eventListing-CMgxWpqP.mjs} +5 -4
  141. package/dist/client/{eventRegistration-BdQ_Dn2d.mjs → eventRegistration-BarLDNHR.mjs} +549 -592
  142. package/dist/client/{form-B1frcuzy.mjs → form-BjqKaBJ7.mjs} +9 -10
  143. package/dist/client/{headerSection-CT5z460s.mjs → headerSection-CP4XDwz1.mjs} +23 -30
  144. package/dist/client/hooks.mjs +269 -63
  145. package/dist/client/{locationMap-CIQXB9i2.mjs → locationMap-C5gW-d-w.mjs} +9 -10
  146. package/dist/client/{media-DHpfFwd3.mjs → media-BtJ37tzS.mjs} +1 -1
  147. package/dist/client/{newsletterForm-BYNYZSes.mjs → newsletterForm-afXlVSA0.mjs} +8 -9
  148. package/dist/client/{pricing-CbTlAsmt.mjs → pricing-Bl1CAl28.mjs} +1 -1
  149. package/dist/client/{productDetail-CR7Z3yjS.mjs → productDetail-CvQ3jWQe.mjs} +3 -3
  150. package/dist/client/{productList-DXj00vzR.mjs → productList-U874PGO7.mjs} +3 -3
  151. package/dist/client/{propsDecoder-DiLiBdek.mjs → propsDecoder-DPXtCZWP.mjs} +100 -29
  152. package/dist/client/rendering/client.mjs +2397 -2279
  153. package/dist/client/rendering/islands.mjs +19 -19
  154. package/dist/client/rendering.mjs +2742 -2452
  155. package/dist/client/{routeIslandApiConfig-UNsfPcYq.mjs → routeIslandApiConfig-NGYiUWXu.mjs} +8 -1
  156. package/dist/client/{scrollToBlock-CrcbBf0h.mjs → scrollToBlock-0-C3DVhK.mjs} +1 -1
  157. package/dist/client/{shop-DgqiB_1b.mjs → shop-BXjXhM9P.mjs} +45 -58
  158. package/dist/client/{shop-commerce-D_J781in.mjs → shop-commerce-BZ6UlWJ7.mjs} +42 -55
  159. package/dist/client/{shop-commerce-store-PGUbDwqe.mjs → shop-commerce-store-DlSBXb3D.mjs} +1 -1
  160. package/dist/client/{shopShared-C_Bb2zwG.mjs → shopShared-kkEOiLPA.mjs} +6 -5
  161. package/dist/client/{useEventFilters-CM17Xpr1.mjs → useEventFilters-zvnnE1ro.mjs} +66 -355
  162. package/dist/preview-next/before-render.mjs +11 -0
  163. package/dist/preview-next/client/runtime.mjs +4 -4
  164. package/dist/preview-next/editor-chrome.css +8 -0
  165. package/dist/preview-next/keepAlive.mjs +11 -0
  166. package/dist/preview-next/middleware.mjs +11 -0
  167. package/dist/{previewAuthStore-oVttoRDO.mjs → previewAuthStore-JA6-I_sL.mjs} +11 -0
  168. package/dist/{sdk-runtime-DhmuRhIX.mjs → sdk-runtime-DFJlQt3q.mjs} +2 -2
  169. package/dist/{separator-C3hlg9LH.mjs → separator-o8GHb1xh.mjs} +1 -1
  170. package/dist/server/components.mjs +840 -625
  171. package/dist/server/config-validation.mjs +269 -63
  172. package/dist/server/config.mjs +269 -63
  173. package/dist/server/data.mjs +269 -63
  174. package/dist/server/index.mjs +20 -5
  175. package/dist/server/navigation.mjs +28 -1
  176. package/dist/server/next.mjs +14129 -13937
  177. package/dist/server/page-converter.mjs +111 -59
  178. package/dist/server/prebuild.mjs +1 -1
  179. package/dist/server/rendering/server.mjs +844 -624
  180. package/dist/server/rendering.mjs +842 -626
  181. package/dist/server/routing.mjs +306 -69
  182. package/dist/server/server.mjs +278 -68
  183. package/dist/server/theme-bridge.mjs +40 -1
  184. package/dist/styles/index.css +6 -0
  185. package/package.json +1 -1
  186. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/checkoutRecovery.d.ts +0 -14
  187. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useCheckoutRecovery.d.ts +0 -8
@@ -1,5 +1,12 @@
1
+ import { U as createHostedBlockApiConfig } from "./propsDecoder-DPXtCZWP.mjs";
1
2
  //#region src/rendering/islands/enhancers/routeIslandApiConfig.ts
2
- function buildRouteIslandApiConfig({ apiBaseUrl, portalToken, previewToken, siteId, stage }) {
3
+ function buildRouteIslandApiConfig({ apiBaseUrl, portalToken, previewToken, siteId, stage, readAuthority }) {
4
+ if (readAuthority) return createHostedBlockApiConfig({
5
+ baseUrl: apiBaseUrl,
6
+ siteId,
7
+ readAuthority,
8
+ portalToken
9
+ });
3
10
  return {
4
11
  baseUrl: apiBaseUrl,
5
12
  auth: previewToken ? {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-BINEO6J9.mjs";
2
+ import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-X528hUTf.mjs";
3
3
  import { useEffect, useReducer, useRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/CheckIcon.tsx
@@ -1,14 +1,15 @@
1
1
  "use client";
2
- import { Pt as assertNever, dt as themeButtonClassName, mn as assertNever$1, o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder } from "./propsDecoder-DiLiBdek.mjs";
3
- import { n as useBlockApi } from "./context-Ces-AgdR.mjs";
4
- import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-CrcbBf0h.mjs";
5
- import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-BINEO6J9.mjs";
2
+ import { o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder, yn as assertNever$1, zt as assertNever } from "./propsDecoder-DPXtCZWP.mjs";
3
+ import { n as useBlockApi } from "./context-CDLCfDep.mjs";
4
+ import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-0-C3DVhK.mjs";
5
+ import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-X528hUTf.mjs";
6
+ import { t as ThemedButton } from "./ThemedButton-BwNFVwi4.mjs";
6
7
  import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
7
8
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
8
9
  import { n as consumeSearchParams } from "./urlParams-D71VXFGx.mjs";
9
10
  import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
10
- import { _ as MembershipCardView, a as getDiscountApplyFeedback, b as PassesMembershipsSectionView, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassPurchaseUnavailable } from "./shopShared-C_Bb2zwG.mjs";
11
- import { t as addPassToCommerceCart } from "./shop-commerce-store-PGUbDwqe.mjs";
11
+ import { _ as MembershipCardView, a as getDiscountApplyFeedback, b as PassesMembershipsSectionView, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassPurchaseUnavailable } from "./shopShared-kkEOiLPA.mjs";
12
+ import { t as addPassToCommerceCart } from "./shop-commerce-store-DlSBXb3D.mjs";
12
13
  import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
13
14
  import React, { useCallback, useEffect, useRef, useState } from "react";
14
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -143,15 +144,13 @@ function PassProductCard(props) {
143
144
  });
144
145
  return /* @__PURE__ */ jsx(PassCardView, {
145
146
  display: props.display,
146
- action: /* @__PURE__ */ jsx("button", {
147
+ action: /* @__PURE__ */ jsx(ThemedButton, {
147
148
  type: "button",
148
- className: themeButtonClassName({
149
- variant: props.buttonVariant,
150
- size: "md",
151
- extraClassName: "shop__cta"
152
- }),
153
- onClick: () => props.onBuy(action.product),
154
- children: action.label
149
+ variant: props.buttonVariant,
150
+ size: "md",
151
+ extraClassName: "shop__cta",
152
+ label: action.label,
153
+ onClick: () => props.onBuy(action.product)
155
154
  }),
156
155
  feedback: /* @__PURE__ */ jsx(ShopAddFeedback, {
157
156
  active: props.feedbackActive,
@@ -377,15 +376,13 @@ function PassesMembershipsController({ render }) {
377
376
  }),
378
377
  title: state.returnNotice.kind === "success" ? "Payment successful" : "Payment cancelled",
379
378
  body: state.returnNotice.kind === "success" ? "Check your email for confirmation." : "You can try again whenever you’re ready.",
380
- actions: /* @__PURE__ */ jsx("button", {
379
+ actions: /* @__PURE__ */ jsx(ThemedButton, {
381
380
  type: "button",
382
- className: themeButtonClassName({
383
- variant: "secondary",
384
- size: "sm",
385
- extraClassName: "shop__return-dismiss"
386
- }),
387
- onClick: () => dispatch({ type: "clearReturnNotice" }),
388
- children: "Dismiss"
381
+ variant: "secondary",
382
+ size: "sm",
383
+ extraClassName: "shop__return-dismiss",
384
+ label: "Dismiss",
385
+ onClick: () => dispatch({ type: "clearReturnNotice" })
389
386
  })
390
387
  }) : null }),
391
388
  passCards: display.passes.map((passDisplay) => {
@@ -401,15 +398,13 @@ function PassesMembershipsController({ render }) {
401
398
  if (!membership) return null;
402
399
  return /* @__PURE__ */ jsx(MembershipCardView, {
403
400
  display: membershipDisplay,
404
- action: /* @__PURE__ */ jsx("button", {
401
+ action: /* @__PURE__ */ jsx(ThemedButton, {
405
402
  type: "button",
406
- className: themeButtonClassName({
407
- variant: hydration.buttonVariant,
408
- size: "md",
409
- extraClassName: "shop__cta"
410
- }),
411
- onClick: () => handleSubscribe(membership),
412
- children: membershipDisplay.actionLabel
403
+ variant: hydration.buttonVariant,
404
+ size: "md",
405
+ extraClassName: "shop__cta",
406
+ label: membershipDisplay.actionLabel,
407
+ onClick: () => handleSubscribe(membership)
413
408
  })
414
409
  }, membership.id);
415
410
  })
@@ -475,23 +470,19 @@ function PassesMembershipsController({ render }) {
475
470
  }),
476
471
  /* @__PURE__ */ jsxs(ActionRow, {
477
472
  className: "shop__modal-warning-actions",
478
- children: [/* @__PURE__ */ jsx("button", {
473
+ children: [/* @__PURE__ */ jsx(ThemedButton, {
479
474
  type: "button",
480
- className: themeButtonClassName({
481
- variant: "secondary",
482
- size: "md"
483
- }),
484
- onClick: closeCheckout,
485
- children: "Cancel"
486
- }), /* @__PURE__ */ jsx("button", {
475
+ variant: "secondary",
476
+ size: "md",
477
+ label: "Cancel",
478
+ onClick: closeCheckout
479
+ }), /* @__PURE__ */ jsx(ThemedButton, {
487
480
  type: "button",
488
- className: themeButtonClassName({
489
- variant: "default",
490
- size: "md"
491
- }),
481
+ variant: "default",
482
+ size: "md",
483
+ label: checkout.submitting ? "Processing..." : "Subscribe Anyway",
492
484
  onClick: handleConfirmDuplicate,
493
- disabled: checkout.submitting,
494
- children: checkout.submitting ? "Processing..." : "Subscribe Anyway"
485
+ disabled: checkout.submitting
495
486
  })]
496
487
  })
497
488
  ]
@@ -575,23 +566,19 @@ function PassesMembershipsController({ render }) {
575
566
  }) : null,
576
567
  /* @__PURE__ */ jsxs(ActionRow, {
577
568
  className: "shop__modal-actions",
578
- children: [/* @__PURE__ */ jsx("button", {
569
+ children: [/* @__PURE__ */ jsx(ThemedButton, {
579
570
  type: "button",
580
- className: themeButtonClassName({
581
- variant: "secondary",
582
- size: "md"
583
- }),
571
+ variant: "secondary",
572
+ size: "md",
573
+ label: "Cancel",
584
574
  onClick: closeCheckout,
585
- disabled: checkout.submitting,
586
- children: "Cancel"
587
- }), /* @__PURE__ */ jsx("button", {
575
+ disabled: checkout.submitting
576
+ }), /* @__PURE__ */ jsx(ThemedButton, {
588
577
  type: "submit",
589
- className: themeButtonClassName({
590
- variant: "default",
591
- size: "md"
592
- }),
593
- disabled: checkout.submitting,
594
- children: checkout.submitting ? "Processing..." : "Continue to Payment"
578
+ variant: "default",
579
+ size: "md",
580
+ label: checkout.submitting ? "Processing..." : "Continue to Payment",
581
+ disabled: checkout.submitting
595
582
  })]
596
583
  })
597
584
  ]
@@ -1,14 +1,15 @@
1
1
  "use client";
2
- import { Ft as clearWorkflowFeedback, Mt as RichTextDocSchema, Pt as assertNever, a as buildProductDetailDisplay, d as deriveCommerceCheckoutState, dt as themeButtonClassName, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, pt as logger, u as buildProductCartItem, zt as reportWorkflowError } from "./propsDecoder-DiLiBdek.mjs";
3
- import { n as useBlockApi } from "./context-Ces-AgdR.mjs";
4
- import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-BINEO6J9.mjs";
2
+ import { Bt as clearWorkflowFeedback, Lt as RichTextDocSchema, Wt as reportWorkflowError, a as buildProductDetailDisplay, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, u as buildProductCartItem, vt as logger, zt as assertNever } from "./propsDecoder-DPXtCZWP.mjs";
3
+ import { n as useBlockApi } from "./context-CDLCfDep.mjs";
4
+ import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-X528hUTf.mjs";
5
+ import { n as ThemedButtonLink, t as ThemedButton } from "./ThemedButton-BwNFVwi4.mjs";
5
6
  import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
6
- import { n as RichText, t as buildCheckoutReturnUrls } from "./checkoutUrls-FL6lRkrt.mjs";
7
+ import { n as RichText, t as buildCheckoutReturnUrls } from "./checkoutUrls-CW3-78uu.mjs";
7
8
  import { t as consumeSearchParam } from "./urlParams-D71VXFGx.mjs";
8
- import { t as CarouselNodeClient } from "./carousel.client-DQTjCVQT.mjs";
9
+ import { t as CarouselNodeClient } from "./carousel.client-jahpU9Vz.mjs";
9
10
  import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
10
- import { C as ProductGalleryFrameView, S as ProductDetailView, T as VariantSelectView, a as getDiscountApplyFeedback, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as ProductListSectionView, x as ProductCardView } from "./shopShared-C_Bb2zwG.mjs";
11
- import { n as useCommerceCart } from "./shop-commerce-store-PGUbDwqe.mjs";
11
+ import { C as ProductGalleryFrameView, S as ProductDetailView, T as VariantSelectView, a as getDiscountApplyFeedback, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as ProductListSectionView, x as ProductCardView } from "./shopShared-kkEOiLPA.mjs";
12
+ import { n as useCommerceCart } from "./shop-commerce-store-DlSBXb3D.mjs";
12
13
  import * as React$1 from "react";
13
14
  import { useEffect, useState } from "react";
14
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -134,12 +135,11 @@ function ProductListController(props) {
134
135
  [card.productId]: variantId
135
136
  }))
136
137
  }),
137
- actions: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("button", {
138
+ actions: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ThemedButton, {
138
139
  type: "button",
139
- className: themeButtonClassName({
140
- variant: "default",
141
- size: "md"
142
- }),
140
+ variant: "default",
141
+ size: "md",
142
+ label: card.soldOut ? "Sold out" : card.actionLabel,
143
143
  onClick: () => {
144
144
  const product = props.render.hydration.products.find((candidate) => candidate.id === card.productId);
145
145
  if (!product) return;
@@ -151,15 +151,12 @@ function ProductListController(props) {
151
151
  cart.addProduct(cartItem);
152
152
  addFeedback.markAdded(cartItem.key);
153
153
  },
154
- disabled: card.soldOut,
155
- children: card.soldOut ? "Sold out" : card.actionLabel
156
- }), card.path ? /* @__PURE__ */ jsx("a", {
154
+ disabled: card.soldOut
155
+ }), card.path ? /* @__PURE__ */ jsx(ThemedButtonLink, {
157
156
  href: card.path,
158
- className: themeButtonClassName({
159
- variant: "secondary",
160
- size: "sm"
161
- }),
162
- children: "View details"
157
+ variant: "secondary",
158
+ size: "sm",
159
+ label: "View details"
163
160
  }) : null] }),
164
161
  feedback: /* @__PURE__ */ jsx(ShopAddFeedback, {
165
162
  active: addFeedback.activeKey === productItemKey(card.productId, card.selectedVariantId),
@@ -206,12 +203,11 @@ function ProductDetailController(props) {
206
203
  selectedVariantId: display.selectedVariantId,
207
204
  onChange: setVariantId
208
205
  }) : null,
209
- actions: display.state === "ready" ? /* @__PURE__ */ jsx("button", {
206
+ actions: display.state === "ready" ? /* @__PURE__ */ jsx(ThemedButton, {
210
207
  type: "button",
211
- className: themeButtonClassName({
212
- variant: "default",
213
- size: "md"
214
- }),
208
+ variant: "default",
209
+ size: "md",
210
+ label: display.soldOut ? "Sold out" : display.actionLabel,
215
211
  disabled: display.soldOut,
216
212
  onClick: () => {
217
213
  if (!selectedProduct) return;
@@ -222,8 +218,7 @@ function ProductDetailController(props) {
222
218
  });
223
219
  cart.addProduct(cartItem);
224
220
  addFeedback.markAdded(cartItem.key);
225
- },
226
- children: display.soldOut ? "Sold out" : display.actionLabel
221
+ }
227
222
  }) : null,
228
223
  feedback: display.state === "ready" ? /* @__PURE__ */ jsx(ShopAddFeedback, {
229
224
  active: addFeedback.activeKey === productItemKey(selectedProduct?.id ?? "", display.selectedVariantId),
@@ -248,33 +243,27 @@ function CartController(props) {
248
243
  readOnly: !item.quantityEditable,
249
244
  "aria-label": `Quantity for ${item.title}`,
250
245
  onChange: item.quantityEditable ? (event) => cart.updateQuantity(item.key, Number(event.target.value)) : void 0
251
- }), /* @__PURE__ */ jsx("button", {
246
+ }), /* @__PURE__ */ jsx(ThemedButton, {
252
247
  type: "button",
253
- className: themeButtonClassName({
254
- variant: "secondary",
255
- size: "sm"
256
- }),
257
- onClick: () => cart.removeItem(item.key),
258
- children: "Remove"
248
+ variant: "secondary",
249
+ size: "sm",
250
+ label: "Remove",
251
+ onClick: () => cart.removeItem(item.key)
259
252
  })] }),
260
- footerActions: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("button", {
253
+ footerActions: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ThemedButton, {
261
254
  type: "button",
262
- className: themeButtonClassName({
263
- variant: "secondary",
264
- size: "sm"
265
- }),
266
- onClick: () => cart.clear(),
267
- children: display.clearButtonText
268
- }), /* @__PURE__ */ jsx("button", {
255
+ variant: "secondary",
256
+ size: "sm",
257
+ label: display.clearButtonText,
258
+ onClick: () => cart.clear()
259
+ }), /* @__PURE__ */ jsx(ThemedButton, {
269
260
  type: "button",
270
- className: themeButtonClassName({
271
- variant: "default",
272
- size: "md"
273
- }),
261
+ variant: "default",
262
+ size: "md",
263
+ label: display.checkoutButtonText,
274
264
  onClick: () => {
275
265
  window.location.href = resolveDedicatedCheckoutPath(window.location.pathname);
276
- },
277
- children: display.checkoutButtonText
266
+ }
278
267
  })] })
279
268
  });
280
269
  }
@@ -441,14 +430,12 @@ function CheckoutController(props) {
441
430
  role: "alert",
442
431
  children: state.feedback.message
443
432
  }) : null,
444
- /* @__PURE__ */ jsx("button", {
433
+ /* @__PURE__ */ jsx(ThemedButton, {
445
434
  type: "submit",
446
- className: themeButtonClassName({
447
- variant: "default",
448
- size: "md"
449
- }),
450
- disabled: state.submission === "submitting",
451
- children: state.submission === "submitting" ? "Loading…" : display.submitButtonText
435
+ variant: "default",
436
+ size: "md",
437
+ label: state.submission === "submitting" ? "Loading…" : display.submitButtonText,
438
+ disabled: state.submission === "submitting"
452
439
  })
453
440
  ]
454
441
  })
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-DiLiBdek.mjs";
2
+ import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-DPXtCZWP.mjs";
3
3
  import * as React$1 from "react";
4
4
  //#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
5
5
  const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { D as ok, E as err } from "./colorStyles-3013aRAY.mjs";
3
- import { Pt as assertNever } from "./propsDecoder-DiLiBdek.mjs";
4
- import { t as BlockApiProvider } from "./context-Ces-AgdR.mjs";
5
- import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-BINEO6J9.mjs";
2
+ import { D as ok, E as err } from "./colorStyles-CuJBiS-1.mjs";
3
+ import { zt as assertNever } from "./propsDecoder-DPXtCZWP.mjs";
4
+ import { t as BlockApiProvider } from "./context-CDLCfDep.mjs";
5
+ import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-X528hUTf.mjs";
6
6
  import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
7
7
  import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
8
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
8
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-NGYiUWXu.mjs";
9
9
  import * as React$1 from "react";
10
10
  import { useCallback } from "react";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -642,6 +642,7 @@ function mountShopBlockIsland(root, props, Component, label) {
642
642
  if (!siteId) throw new Error(`[sdk:islands] ${label} requires siteId`);
643
643
  if (!apiBaseUrl) throw new Error(`[sdk:islands] ${label} requires apiBaseUrl`);
644
644
  const apiConfig = buildRouteIslandApiConfig({
645
+ readAuthority: props.readAuthority,
645
646
  apiBaseUrl,
646
647
  siteId,
647
648
  stage