@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.
- package/dist/{PreviewEditorSidebar-Dk6Dt11f.mjs → PreviewEditorSidebar-CQZNnFiM.mjs} +20 -26
- package/dist/{PreviewEditorUI-D6EQTsCA.mjs → PreviewEditorUI-DCNxnmI0.mjs} +3 -3
- package/dist/{PreviewQueryProvider-CC-EPkyQ.mjs → PreviewQueryProvider-BCYICImX.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DH1n4ytY.mjs → SdkPreviewModeRuntime-BJolUbr1.mjs} +17 -8
- package/dist/{SiteChromeCustomizeContext-DunIzY0K.mjs → SiteChromeCustomizeContext-CKgEpoxi.mjs} +2406 -1988
- package/dist/_dts/api/src/billing.d.ts +1 -1
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +8 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +3 -1
- package/dist/_dts/api/src/endpoints.d.ts +7 -0
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +4 -4
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +49 -41
- package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkSettingsContracts.d.ts +8 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -8
- package/dist/_dts/api/src/siteSettings.d.ts +17 -7
- package/dist/_dts/billing/src/membership/index.d.ts +3 -0
- package/dist/_dts/block-form/src/backend/types.d.ts +14 -0
- package/dist/_dts/block-form/src/client/index.d.ts +1 -0
- package/dist/_dts/block-form/src/context/RepeaterHostActionsContext.d.ts +30 -0
- package/dist/_dts/block-form/src/context/index.d.ts +1 -0
- package/dist/_dts/block-form/src/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +4 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +5 -2
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +11 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useEmptyStateFocusAfterRemoval.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +15 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterRowActionsDomain.d.ts +5 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +34 -10
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +3 -0
- package/dist/_dts/blocks/src/system/constants/events.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +7 -1
- package/dist/_dts/blocks/src/system/runtime/api/context.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/api/readAuthority.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +95 -35
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -13
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -6
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +9 -4
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +7 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentStatusStep.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +0 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +14 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +1 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.d.ts +4 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +9 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +56 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +12 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +23 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +7 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/header-control.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/layout.d.ts +6 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/ThemedButton.d.ts +58 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/chromeLogo.d.ts +23 -0
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +4 -1
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -4
- package/dist/_dts/commerce/src/purchase/eventCheckoutRecoveryWindow.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +2 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +1 -13
- package/dist/_dts/core/src/event-catalogue.d.ts +27 -0
- package/dist/_dts/core/src/event-preset-vocabulary.d.ts +7 -0
- package/dist/_dts/core/src/index.d.ts +2 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +3126 -3077
- package/dist/_dts/db/src/schemas/forms.d.ts +286 -2
- package/dist/_dts/editor-blocks/src/block-editor/{BlockCardHeader.d.ts → BlockCardFrame.d.ts} +11 -3
- package/dist/_dts/logger/src/console.d.ts +3 -0
- package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +1 -0
- package/dist/_dts/sdk/src/client/types.d.ts +3 -0
- package/dist/_dts/sdk/src/navigation/index.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +15 -7
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/client.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +7 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/islands/enhancers/shopShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/classNames.d.ts +3 -13
- package/dist/_dts/theme-core/src/customCss/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/customCss/patch.d.ts +0 -5
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/logoVariant.d.ts +26 -0
- package/dist/_dts/theme-core/src/utils/colorStyles.d.ts +10 -0
- package/dist/_dts/ui/src/editor-item-card.d.ts +116 -0
- package/dist/_dts/ui/src/index.d.ts +1 -0
- package/dist/client/{BookingConsentAgreement-CnJeq3_r.mjs → BookingConsentAgreement-DoAILrkN.mjs} +4 -55
- package/dist/client/{DiscountCodeDisclosure-BINEO6J9.mjs → DiscountCodeDisclosure-X528hUTf.mjs} +27 -17
- package/dist/client/{EventCombined.client-srxNQ6sZ.mjs → EventCombined.client-DSBVwq5m.mjs} +54 -46
- package/dist/client/{EventListing.client-DbyVyGkX.mjs → EventListing.client-DmFAX7Vb.mjs} +3 -4
- package/dist/client/{LeafletStaticMap-B-wpijzL.mjs → LeafletStaticMap-BAqXdfhq.mjs} +1 -1
- package/dist/client/ThemedButton-BwNFVwi4.mjs +412 -0
- package/dist/client/{accordion-B-iUXU7n.mjs → accordion-DRhMdkbd.mjs} +1 -1
- package/dist/client/{bookingForm-BXYPke5q.mjs → bookingForm-iJ_nCsNF.mjs} +26 -32
- package/dist/client/bookings.mjs +657 -650
- package/dist/client/{carousel-Cr4aj63H.mjs → carousel-D8zuffZr.mjs} +2 -2
- package/dist/client/{carousel.client-DQTjCVQT.mjs → carousel.client-jahpU9Vz.mjs} +1 -1
- package/dist/client/{cart-DibP9WWa.mjs → cart-DeMGJViN.mjs} +3 -3
- package/dist/client/{checkout-CrSBVnL8.mjs → checkout-DXc06Km2.mjs} +3 -3
- package/dist/client/{checkoutUrls-FL6lRkrt.mjs → checkoutUrls-CW3-78uu.mjs} +1 -1
- package/dist/client/client.mjs +2714 -2448
- package/dist/client/{colorStyles-3013aRAY.mjs → colorStyles-CuJBiS-1.mjs} +16 -4
- package/dist/client/{context-Ces-AgdR.mjs → context-CDLCfDep.mjs} +35 -8
- package/dist/client/{dates-BXyNeNhB.mjs → dates-ClFx7Epy.mjs} +2 -2
- package/dist/client/{eventCalendar-HwpPeqrH.mjs → eventCalendar-BaGpnOGN.mjs} +39 -50
- package/dist/client/{eventCombined-BpFUkuEI.mjs → eventCombined-ywONOx2m.mjs} +5 -4
- package/dist/client/{eventDetails-DK_agiWy.mjs → eventDetails-B2LlOTYY.mjs} +4 -4
- package/dist/client/{eventListing-DhzHqP1c.mjs → eventListing-CMgxWpqP.mjs} +5 -4
- package/dist/client/{eventRegistration-BdQ_Dn2d.mjs → eventRegistration-BarLDNHR.mjs} +549 -592
- package/dist/client/{form-B1frcuzy.mjs → form-BjqKaBJ7.mjs} +9 -10
- package/dist/client/{headerSection-CT5z460s.mjs → headerSection-CP4XDwz1.mjs} +23 -30
- package/dist/client/hooks.mjs +269 -63
- package/dist/client/{locationMap-CIQXB9i2.mjs → locationMap-C5gW-d-w.mjs} +9 -10
- package/dist/client/{media-DHpfFwd3.mjs → media-BtJ37tzS.mjs} +1 -1
- package/dist/client/{newsletterForm-BYNYZSes.mjs → newsletterForm-afXlVSA0.mjs} +8 -9
- package/dist/client/{pricing-CbTlAsmt.mjs → pricing-Bl1CAl28.mjs} +1 -1
- package/dist/client/{productDetail-CR7Z3yjS.mjs → productDetail-CvQ3jWQe.mjs} +3 -3
- package/dist/client/{productList-DXj00vzR.mjs → productList-U874PGO7.mjs} +3 -3
- package/dist/client/{propsDecoder-DiLiBdek.mjs → propsDecoder-DPXtCZWP.mjs} +100 -29
- package/dist/client/rendering/client.mjs +2397 -2279
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2742 -2452
- package/dist/client/{routeIslandApiConfig-UNsfPcYq.mjs → routeIslandApiConfig-NGYiUWXu.mjs} +8 -1
- package/dist/client/{scrollToBlock-CrcbBf0h.mjs → scrollToBlock-0-C3DVhK.mjs} +1 -1
- package/dist/client/{shop-DgqiB_1b.mjs → shop-BXjXhM9P.mjs} +45 -58
- package/dist/client/{shop-commerce-D_J781in.mjs → shop-commerce-BZ6UlWJ7.mjs} +42 -55
- package/dist/client/{shop-commerce-store-PGUbDwqe.mjs → shop-commerce-store-DlSBXb3D.mjs} +1 -1
- package/dist/client/{shopShared-C_Bb2zwG.mjs → shopShared-kkEOiLPA.mjs} +6 -5
- package/dist/client/{useEventFilters-CM17Xpr1.mjs → useEventFilters-zvnnE1ro.mjs} +66 -355
- package/dist/preview-next/before-render.mjs +11 -0
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-chrome.css +8 -0
- package/dist/preview-next/keepAlive.mjs +11 -0
- package/dist/preview-next/middleware.mjs +11 -0
- package/dist/{previewAuthStore-oVttoRDO.mjs → previewAuthStore-JA6-I_sL.mjs} +11 -0
- package/dist/{sdk-runtime-DhmuRhIX.mjs → sdk-runtime-DFJlQt3q.mjs} +2 -2
- package/dist/{separator-C3hlg9LH.mjs → separator-o8GHb1xh.mjs} +1 -1
- package/dist/server/components.mjs +840 -625
- package/dist/server/config-validation.mjs +269 -63
- package/dist/server/config.mjs +269 -63
- package/dist/server/data.mjs +269 -63
- package/dist/server/index.mjs +20 -5
- package/dist/server/navigation.mjs +28 -1
- package/dist/server/next.mjs +14129 -13937
- package/dist/server/page-converter.mjs +111 -59
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +844 -624
- package/dist/server/rendering.mjs +842 -626
- package/dist/server/routing.mjs +306 -69
- package/dist/server/server.mjs +278 -68
- package/dist/server/theme-bridge.mjs +40 -1
- package/dist/styles/index.css +6 -0
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/checkoutRecovery.d.ts +0 -14
- 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-
|
|
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 {
|
|
3
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
-
import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-
|
|
5
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
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-
|
|
11
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store-
|
|
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(
|
|
147
|
+
action: /* @__PURE__ */ jsx(ThemedButton, {
|
|
147
148
|
type: "button",
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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(
|
|
379
|
+
actions: /* @__PURE__ */ jsx(ThemedButton, {
|
|
381
380
|
type: "button",
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
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(
|
|
401
|
+
action: /* @__PURE__ */ jsx(ThemedButton, {
|
|
405
402
|
type: "button",
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
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(
|
|
473
|
+
children: [/* @__PURE__ */ jsx(ThemedButton, {
|
|
479
474
|
type: "button",
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
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
|
-
|
|
489
|
-
|
|
490
|
-
|
|
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(
|
|
569
|
+
children: [/* @__PURE__ */ jsx(ThemedButton, {
|
|
579
570
|
type: "button",
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
}),
|
|
571
|
+
variant: "secondary",
|
|
572
|
+
size: "md",
|
|
573
|
+
label: "Cancel",
|
|
584
574
|
onClick: closeCheckout,
|
|
585
|
-
disabled: checkout.submitting
|
|
586
|
-
|
|
587
|
-
}), /* @__PURE__ */ jsx("button", {
|
|
575
|
+
disabled: checkout.submitting
|
|
576
|
+
}), /* @__PURE__ */ jsx(ThemedButton, {
|
|
588
577
|
type: "submit",
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
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 {
|
|
3
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
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-
|
|
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-
|
|
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-
|
|
11
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
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(
|
|
138
|
+
actions: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ThemedButton, {
|
|
138
139
|
type: "button",
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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
|
-
|
|
156
|
-
}), card.path ? /* @__PURE__ */ jsx("a", {
|
|
154
|
+
disabled: card.soldOut
|
|
155
|
+
}), card.path ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
157
156
|
href: card.path,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
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(
|
|
206
|
+
actions: display.state === "ready" ? /* @__PURE__ */ jsx(ThemedButton, {
|
|
210
207
|
type: "button",
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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(
|
|
246
|
+
}), /* @__PURE__ */ jsx(ThemedButton, {
|
|
252
247
|
type: "button",
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
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(
|
|
253
|
+
footerActions: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ThemedButton, {
|
|
261
254
|
type: "button",
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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(
|
|
433
|
+
/* @__PURE__ */ jsx(ThemedButton, {
|
|
445
434
|
type: "submit",
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
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-
|
|
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-
|
|
3
|
-
import {
|
|
4
|
-
import { t as BlockApiProvider } from "./context-
|
|
5
|
-
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-
|
|
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-
|
|
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
|