@riverbankcms/sdk 0.139.0 → 0.141.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/README.md +1 -1
- package/dist/{PreviewEditorSidebar-BDeenhi3.mjs → PreviewEditorSidebar-Q-fy9GYw.mjs} +4 -4
- package/dist/{PreviewEditorUI-DSRhgjF5.mjs → PreviewEditorUI-LYGzgk85.mjs} +3 -3
- package/dist/{PreviewQueryProvider-D2K8GLUG.mjs → PreviewQueryProvider-CN0ewic5.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CL7wSnYu.mjs → SdkPreviewModeRuntime-CoPYI5Jq.mjs} +90 -50
- package/dist/{SiteChromeCustomizeContext-BhDn-5ir.mjs → SiteChromeCustomizeContext-D8LePX8x.mjs} +2731 -1303
- package/dist/_dts/ai/src/contracts/proposals.d.ts +165 -165
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +212 -212
- package/dist/_dts/api/src/accessAdmin.d.ts +74 -104
- package/dist/_dts/api/src/aiEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/authSubmission.d.ts +46 -0
- package/dist/_dts/api/src/billing.d.ts +8 -4
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +23 -0
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +26 -0
- package/dist/_dts/api/src/blocks.d.ts +2 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -2
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +8 -1
- package/dist/_dts/api/src/communications.d.ts +0 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +17 -31
- package/dist/_dts/api/src/domainConnection.d.ts +4 -0
- package/dist/_dts/api/src/endpoints.d.ts +93 -64
- package/dist/_dts/api/src/event-destination-policy.d.ts +2 -1
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +25 -0
- package/dist/_dts/api/src/footerSettings.d.ts +9 -6
- package/dist/_dts/api/src/index.d.ts +6 -7
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/launchReadiness.d.ts +1 -0
- package/dist/_dts/api/src/mailingListIntegration.d.ts +8 -2
- package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
- package/dist/_dts/api/src/navigation/dashboardSiteNav.d.ts +2 -1
- package/dist/_dts/api/src/navigation/types.d.ts +1 -1
- package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +25 -0
- package/dist/_dts/api/src/onboarding/surfaceData.d.ts +32 -32
- package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +11 -3
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +3 -29
- package/dist/_dts/api/src/publicOnboardingAttemptEndpointDefinitions.d.ts +65 -0
- package/dist/_dts/api/src/saveOutcome.d.ts +20 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +3 -22
- package/dist/_dts/api/src/sdkPushContracts.d.ts +18 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +44 -44
- package/dist/_dts/api/src/settings/permissions.d.ts +12 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +10 -29
- package/dist/_dts/api/src/siteOnboarding.d.ts +9 -9
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -4
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -1
- package/dist/_dts/api/src/siteSettings.d.ts +20 -7
- package/dist/_dts/api/src/types.d.ts +77 -77
- package/dist/_dts/api/src/wholeSeriesRuns.d.ts +2 -37
- package/dist/_dts/billing/src/membership/index.d.ts +3 -0
- package/dist/_dts/billing/src/plans/types.d.ts +3 -0
- package/dist/_dts/billing/src/site-arrangements.d.ts +23 -3
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +20 -4
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +2 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +7 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +2 -4
- package/dist/_dts/blocks/src/portal/waitlist-types.d.ts +35 -0
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +122 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/eventSelection.d.ts +11 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +42 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
- package/dist/_dts/blocks/src/system/data/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/prefetchBlockData.d.ts +7 -1
- package/dist/_dts/blocks/src/system/data/types.d.ts +9 -0
- package/dist/_dts/blocks/src/system/data/utils.d.ts +1 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +27 -1
- package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +0 -28
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +42 -186
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -93
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +48 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +1 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/checkoutRecovery.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +56 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.state.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +6 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useCheckoutRecovery.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.d.ts +10 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventCheckoutHandoffRestore.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +8 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +14 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useSettledCommerceView.d.ts +37 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +24 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +4 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +11 -101
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -6
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +12 -0
- package/dist/_dts/commerce/src/purchase/bookingInstalmentSchedule.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +27 -4
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +2 -1
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +3 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +3 -0
- package/dist/_dts/core/src/branded.d.ts +0 -8
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/mailing-list-setup-parser.d.ts +1 -1
- package/dist/_dts/core/src/mailing-list-setup.d.ts +14 -1
- package/dist/_dts/core/src/mailing-list-submission.d.ts +7 -27
- package/dist/_dts/core/src/participants.d.ts +2 -29
- package/dist/_dts/core/src/public-experience.d.ts +4 -0
- package/dist/_dts/core/src/public-profile.d.ts +27 -1
- package/dist/_dts/core/src/site-route-target.d.ts +9 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +296 -606
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListGlobalSettingsSummary.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListTargetingField.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/context.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/targetingState.d.ts +19 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +27 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +14 -20
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +7 -1
- package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +17 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +17 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/classNames.d.ts +16 -0
- package/dist/_dts/theme-core/src/buttons/generateButtonCss.d.ts +0 -6
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +4 -4
- package/dist/_dts/theme-core/src/cards/types.d.ts +21 -21
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +8 -2
- package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +2 -2
- package/dist/_dts/theme-core/src/hosted-booking-appearance.d.ts +54 -12
- package/dist/_dts/theme-core/src/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +54 -54
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -4
- package/dist/_dts/theme-core/src/schema.d.ts +84 -84
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/surfaces/foregroundInteraction.d.ts +77 -0
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/typography/generateTypographyCss.d.ts +2 -2
- package/dist/_dts/ui/src/lib/use-delayed-flag.d.ts +9 -0
- package/dist/_dts/ui/src/pending-button.d.ts +10 -0
- package/dist/client/{BookingConsentAgreement-CZvTDtsK.mjs → BookingConsentAgreement-xJeYNdnb.mjs} +4 -4
- package/dist/client/{DiscountCodeDisclosure-D-DsLCMU.mjs → DiscountCodeDisclosure-DdT6uzl9.mjs} +1 -1
- package/dist/client/{EventCombined.client-dWqgd5ZO.mjs → EventCombined.client-Cp28uYuM.mjs} +12 -16
- package/dist/client/{EventListing.client-BMRa9IYp.mjs → EventListing.client-CD6AJsMr.mjs} +4 -17
- package/dist/client/{LeafletStaticMap-D21W9kBZ.mjs → LeafletStaticMap-DBsAi9-e.mjs} +1 -1
- package/dist/client/{accordion-FxF_ta47.mjs → accordion-6dwbOKYR.mjs} +1 -1
- package/dist/client/{bookingForm-YnwW4TGw.mjs → bookingForm-CZE9_qPQ.mjs} +7 -7
- package/dist/client/bookings.mjs +500 -233
- package/dist/client/{carousel-vng7fFT5.mjs → carousel-7VHGQARz.mjs} +2 -2
- package/dist/client/{carousel.client-59G_WMr4.mjs → carousel.client-DQTjCVQT.mjs} +1 -1
- package/dist/client/{cart-DEPDsjNk.mjs → cart-Qg_mvQhh.mjs} +3 -3
- package/dist/client/{checkout-CZRWu9rW.mjs → checkout-D84rpgdr.mjs} +3 -3
- package/dist/client/{checkoutUrls-BuseL0dw.mjs → checkoutUrls-FL6lRkrt.mjs} +1 -1
- package/dist/client/client.mjs +2315 -1017
- package/dist/client/{colorStyles-CrxJrPjJ.mjs → colorStyles-3013aRAY.mjs} +3 -1
- package/dist/client/{context-DvU_WUmd.mjs → context-Ctp3T0Wr.mjs} +6 -19
- package/dist/client/{dates-wnPMiRl5.mjs → dates-DJKFcI_N.mjs} +2 -2
- package/dist/client/{eventCalendar-BA3Q5L15.mjs → eventCalendar-CK31z3vs.mjs} +12 -8
- package/dist/client/{eventCombined-51wgR-1R.mjs → eventCombined-DiXd-ewn.mjs} +3 -3
- package/dist/client/{eventDetails-modaetpm.mjs → eventDetails-CTRgt2DK.mjs} +4 -4
- package/dist/client/{eventListing-D8t2J3Kv.mjs → eventListing-Dy9vi_j_.mjs} +3 -3
- package/dist/client/{eventRegistration-CYqtkCE_.mjs → eventRegistration-CnalYMr2.mjs} +618 -177
- package/dist/client/{form-CBKXN5In.mjs → form-eUiMveTT.mjs} +3 -3
- package/dist/client/{headerSection-DylDqNrs.mjs → headerSection-Dy9kQpB1.mjs} +2 -2
- package/dist/client/hooks.mjs +692 -212
- package/dist/client/{locationMap-CvWrG0vZ.mjs → locationMap-DalCmWU0.mjs} +3 -3
- package/dist/client/{media-BOHuueS5.mjs → media-DHpfFwd3.mjs} +1 -1
- package/dist/client/{newsletterForm-Btwk70zw.mjs → newsletterForm-SDDPvhS0.mjs} +150 -94
- package/dist/client/{pricing-Uzw-GQ6Y.mjs → pricing-OcMz4SnX.mjs} +1 -1
- package/dist/client/{productDetail-JLcUYKnd.mjs → productDetail-BQrgHElM.mjs} +3 -3
- package/dist/client/{productList-FM0cbUzj.mjs → productList-OnPn_UJj.mjs} +3 -3
- package/dist/client/{propsDecoder-DYzafZb2.mjs → propsDecoder-zBdsnS-N.mjs} +168 -32
- package/dist/client/rendering/client.mjs +1355 -519
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2294 -953
- package/dist/client/{scrollToBlock-CvXszexS.mjs → scrollToBlock-BNM4Ob2Y.mjs} +28 -11
- package/dist/client/{shop-BIcjvy5a.mjs → shop-Bv1fPTwQ.mjs} +6 -6
- package/dist/client/{shop-commerce-BZQsy7xw.mjs → shop-commerce-D4KNGaW8.mjs} +7 -7
- package/dist/client/{shop-commerce-store-D5V7XAb5.mjs → shop-commerce-store-2N5EV0Rc.mjs} +1 -1
- package/dist/client/{shopShared-DowkXevB.mjs → shopShared-DvJGdHTV.mjs} +4 -4
- package/dist/client/{useEventFilters-oMoTw_JE.mjs → useEventFilters-BBBvGDHQ.mjs} +19 -13
- package/dist/preview-next/before-render.mjs +119 -64
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-chrome.css +4 -8
- package/dist/preview-next/keepAlive.mjs +119 -64
- package/dist/preview-next/middleware.mjs +119 -64
- package/dist/{previewAuthStore-COUyAKaX.mjs → previewAuthStore-Gjb6r6vz.mjs} +119 -64
- package/dist/{sdk-runtime-D4k2LSGF.mjs → sdk-runtime-Defnbfzw.mjs} +2 -2
- package/dist/{separator-UGtpag4Z.mjs → separator-CZXO3Sb0.mjs} +1 -1
- package/dist/server/components.mjs +1170 -384
- package/dist/server/config-validation.mjs +560 -105
- package/dist/server/config.mjs +564 -109
- package/dist/server/data.mjs +688 -212
- package/dist/server/index.mjs +126 -66
- package/dist/server/next.mjs +1429 -662
- package/dist/server/page-converter.mjs +372 -99
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1624 -817
- package/dist/server/rendering.mjs +1200 -391
- package/dist/server/routing.mjs +767 -247
- package/dist/server/server.mjs +715 -276
- package/dist/server/theme-bridge.mjs +475 -110
- package/dist/server/theme.mjs +9 -3
- package/dist/styles/index.css +265 -45
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionCompactRow.d.ts +0 -29
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionList.d.ts +0 -13
|
@@ -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-DdT6uzl9.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
|
|
@@ -118,10 +118,14 @@ function buildDiscountAvailabilityRequestPlan(options) {
|
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function discountAvailabilityStateFromResponse(response) {
|
|
122
|
-
if (!discountAvailabilityHasDiscounts(response)) return {
|
|
121
|
+
function discountAvailabilityStateFromResponse(requestKey, response) {
|
|
122
|
+
if (!discountAvailabilityHasDiscounts(response)) return {
|
|
123
|
+
tag: "unavailable",
|
|
124
|
+
requestKey
|
|
125
|
+
};
|
|
123
126
|
return {
|
|
124
127
|
tag: "available",
|
|
128
|
+
requestKey,
|
|
125
129
|
manualCodeEntryAllowed: discountAvailabilityAllowsManualEntry(response),
|
|
126
130
|
autoAppliedDiscount: getAutoAppliedDiscountPreview(response)
|
|
127
131
|
};
|
|
@@ -131,10 +135,13 @@ function discountCodeUiReducer(state, event) {
|
|
|
131
135
|
case "availability-disabled": return initialDiscountCodeUiState;
|
|
132
136
|
case "availability-loading": return {
|
|
133
137
|
...state,
|
|
134
|
-
availability: {
|
|
138
|
+
availability: {
|
|
139
|
+
tag: "loading",
|
|
140
|
+
previous: state.availability.tag === "available" || state.availability.tag === "unavailable" ? state.availability : state.availability.tag === "loading" ? state.availability.previous : null
|
|
141
|
+
}
|
|
135
142
|
};
|
|
136
143
|
case "availability-loaded": {
|
|
137
|
-
const availability = discountAvailabilityStateFromResponse(event.response);
|
|
144
|
+
const availability = discountAvailabilityStateFromResponse(event.requestKey, event.response);
|
|
138
145
|
if (availability.tag !== "available" || !availability.manualCodeEntryAllowed) return {
|
|
139
146
|
...state,
|
|
140
147
|
discountUiOpen: false,
|
|
@@ -150,7 +157,10 @@ function discountCodeUiReducer(state, event) {
|
|
|
150
157
|
...state,
|
|
151
158
|
discountUiOpen: false,
|
|
152
159
|
discountCode: "",
|
|
153
|
-
availability: {
|
|
160
|
+
availability: {
|
|
161
|
+
tag: "error",
|
|
162
|
+
requestKey: event.requestKey
|
|
163
|
+
}
|
|
154
164
|
};
|
|
155
165
|
case "discount-code-changed": return {
|
|
156
166
|
...state,
|
|
@@ -186,11 +196,15 @@ function useDiscountCodeUi(options) {
|
|
|
186
196
|
if (cancelled) return;
|
|
187
197
|
dispatch({
|
|
188
198
|
type: "availability-loaded",
|
|
199
|
+
requestKey: requestPlan.key,
|
|
189
200
|
response: res
|
|
190
201
|
});
|
|
191
202
|
} catch {
|
|
192
203
|
if (cancelled) return;
|
|
193
|
-
dispatch({
|
|
204
|
+
dispatch({
|
|
205
|
+
type: "availability-failed",
|
|
206
|
+
requestKey: requestPlan.key
|
|
207
|
+
});
|
|
194
208
|
}
|
|
195
209
|
}
|
|
196
210
|
checkDiscountAvailability();
|
|
@@ -199,8 +213,9 @@ function useDiscountCodeUi(options) {
|
|
|
199
213
|
};
|
|
200
214
|
}, [options.api, requestPlan]);
|
|
201
215
|
const availability = state.availability;
|
|
202
|
-
const
|
|
203
|
-
const
|
|
216
|
+
const settledAvailability = availability.tag === "loading" ? availability.previous : availability.tag === "available" || availability.tag === "unavailable" ? availability : null;
|
|
217
|
+
const isAvailable = settledAvailability?.tag === "available";
|
|
218
|
+
const manualCodeEntryAllowed = isAvailable ? settledAvailability.manualCodeEntryAllowed : false;
|
|
204
219
|
return {
|
|
205
220
|
discountUiOpen: state.discountUiOpen,
|
|
206
221
|
setDiscountUiOpen: (isOpen) => dispatch({
|
|
@@ -214,8 +229,10 @@ function useDiscountCodeUi(options) {
|
|
|
214
229
|
}),
|
|
215
230
|
discountsAvailable: isAvailable,
|
|
216
231
|
manualCodeEntryAllowed,
|
|
217
|
-
autoAppliedDiscount: isAvailable ?
|
|
218
|
-
discountsAvailableLoading: availability.tag === "loading"
|
|
232
|
+
autoAppliedDiscount: isAvailable ? settledAvailability.autoAppliedDiscount : null,
|
|
233
|
+
discountsAvailableLoading: availability.tag === "loading",
|
|
234
|
+
discountAvailabilityRequestKey: requestPlan.key,
|
|
235
|
+
settledDiscountAvailabilityRequestKey: availability.tag === "error" ? availability.requestKey : settledAvailability?.requestKey ?? null
|
|
219
236
|
};
|
|
220
237
|
}
|
|
221
238
|
//#endregion
|
|
@@ -1,14 +1,14 @@
|
|
|
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 { Pt as assertNever, dt as themeButtonClassName, mn as assertNever$1, o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder } from "./propsDecoder-zBdsnS-N.mjs";
|
|
3
|
+
import { n as useBlockApi } from "./context-Ctp3T0Wr.mjs";
|
|
4
|
+
import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-BNM4Ob2Y.mjs";
|
|
5
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-DdT6uzl9.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
7
7
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
|
|
8
8
|
import { n as consumeSearchParams } from "./urlParams-D71VXFGx.mjs";
|
|
9
9
|
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-
|
|
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-DvJGdHTV.mjs";
|
|
11
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-2N5EV0Rc.mjs";
|
|
12
12
|
import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
|
|
13
13
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
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-zBdsnS-N.mjs";
|
|
3
|
+
import { n as useBlockApi } from "./context-Ctp3T0Wr.mjs";
|
|
4
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-DdT6uzl9.mjs";
|
|
5
5
|
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
6
|
-
import { n as RichText, t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
6
|
+
import { n as RichText, t as buildCheckoutReturnUrls } from "./checkoutUrls-FL6lRkrt.mjs";
|
|
7
7
|
import { t as consumeSearchParam } from "./urlParams-D71VXFGx.mjs";
|
|
8
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
8
|
+
import { t as CarouselNodeClient } from "./carousel.client-DQTjCVQT.mjs";
|
|
9
9
|
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-
|
|
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-DvJGdHTV.mjs";
|
|
11
|
+
import { n as useCommerceCart } from "./shop-commerce-store-2N5EV0Rc.mjs";
|
|
12
12
|
import * as React$1 from "react";
|
|
13
13
|
import { useEffect, useState } from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -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-zBdsnS-N.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,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
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-3013aRAY.mjs";
|
|
3
|
+
import { Pt as assertNever } from "./propsDecoder-zBdsnS-N.mjs";
|
|
4
|
+
import { t as BlockApiProvider } from "./context-Ctp3T0Wr.mjs";
|
|
5
|
+
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-DdT6uzl9.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
7
7
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
8
8
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as hexToRgb, u as relativeLuminance } from "./colorStyles-
|
|
3
|
-
import { A as
|
|
4
|
-
import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-
|
|
5
|
-
import { o as formatEventRemainingPlaces, t as formatEventPrice } from "./pricing-
|
|
6
|
-
import { a as formatTime, d as resolveEventLinkProps, i as formatEventNextDateFact, n as formatEventCompactDateRail, t as formatDate, u as resolveEventCta } from "./dates-
|
|
7
|
-
import { n as useBlockApi } from "./context-
|
|
8
|
-
import { t as LeafletStaticMap } from "./LeafletStaticMap-
|
|
2
|
+
import { d as hexToRgb, u as relativeLuminance } from "./colorStyles-3013aRAY.mjs";
|
|
3
|
+
import { A as SEMANTIC_SPACING_VALUES, G as normalizeOptionalId, H as getEventRuntimeFiltersKey, M as resolveSpacing, Pt as assertNever, U as normalizeCsvIds, W as normalizeCsvString, ct as isCssColorLiteral, dt as themeButtonClassName, ft as normalizeCardRole, j as isSemanticSpacing, lt as resolveOnColorForThemeToken, st as boxBackgroundSchema, ut as resolveTokenOrCssColorValue } from "./propsDecoder-zBdsnS-N.mjs";
|
|
4
|
+
import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-DHpfFwd3.mjs";
|
|
5
|
+
import { o as formatEventRemainingPlaces, t as formatEventPrice } from "./pricing-OcMz4SnX.mjs";
|
|
6
|
+
import { a as formatTime, d as resolveEventLinkProps, i as formatEventNextDateFact, n as formatEventCompactDateRail, t as formatDate, u as resolveEventCta } from "./dates-DJKFcI_N.mjs";
|
|
7
|
+
import { n as useBlockApi } from "./context-Ctp3T0Wr.mjs";
|
|
8
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-DBsAi9-e.mjs";
|
|
9
9
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../theme-core/src/palette/utils/textColor.ts
|
|
@@ -740,7 +740,7 @@ function createIcon(displayName, children) {
|
|
|
740
740
|
}
|
|
741
741
|
createIcon("ArrowDownIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 5v14" }), /* @__PURE__ */ jsx("path", { d: "m6 13 6 6 6-6" })] }));
|
|
742
742
|
createIcon("ArrowLeftIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M19 12H5" }), /* @__PURE__ */ jsx("path", { d: "m11 6-6 6 6 6" })] }));
|
|
743
|
-
|
|
743
|
+
createIcon("ArrowRightIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M5 12h14" }), /* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })] }));
|
|
744
744
|
createIcon("AwardIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
|
|
745
745
|
cx: "12",
|
|
746
746
|
cy: "8",
|
|
@@ -1100,12 +1100,12 @@ const EventCompactRow = ({ event, buttonVariant = "primary", buttonText }) => {
|
|
|
1100
1100
|
}), cta.hidden ? /* @__PURE__ */ jsx("span", {
|
|
1101
1101
|
className: "event-compact-row-status",
|
|
1102
1102
|
children: cta.label
|
|
1103
|
-
}) : /* @__PURE__ */
|
|
1103
|
+
}) : /* @__PURE__ */ jsx("a", {
|
|
1104
1104
|
href: cta.href,
|
|
1105
1105
|
target: cta.external ? "_blank" : void 0,
|
|
1106
1106
|
rel: cta.external ? "noopener noreferrer" : void 0,
|
|
1107
1107
|
className: `${buttonClass} event-compact-row-cta`,
|
|
1108
|
-
children:
|
|
1108
|
+
children: /* @__PURE__ */ jsx("span", { children: cta.label })
|
|
1109
1109
|
})]
|
|
1110
1110
|
})]
|
|
1111
1111
|
})]
|
|
@@ -1312,6 +1312,7 @@ function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialO
|
|
|
1312
1312
|
const eventSurface = filters?.eventSurface;
|
|
1313
1313
|
const eventPresets = normalizeCsvString(filters?.eventPresets);
|
|
1314
1314
|
const scheduleScope = filters?.scheduleScope;
|
|
1315
|
+
const seriesIds = filters?.seriesIds;
|
|
1315
1316
|
const eventsRef = useRef(events);
|
|
1316
1317
|
const loadingRef = useRef(loading);
|
|
1317
1318
|
const hasMoreRef = useRef(hasMore);
|
|
@@ -1339,6 +1340,7 @@ function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialO
|
|
|
1339
1340
|
const currentEvents = eventsRef.current;
|
|
1340
1341
|
const lastEvent = options.reset ? void 0 : currentEvents[currentEvents.length - 1];
|
|
1341
1342
|
const newEvents = await getPublicEvents({
|
|
1343
|
+
seriesIds,
|
|
1342
1344
|
afterStartsAt: lastEvent ? lastEvent.startsAt : void 0,
|
|
1343
1345
|
afterId: lastEvent ? lastEvent.occurrenceId : void 0,
|
|
1344
1346
|
limit: pageSize,
|
|
@@ -1377,6 +1379,7 @@ function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialO
|
|
|
1377
1379
|
eventSurface,
|
|
1378
1380
|
eventPresets,
|
|
1379
1381
|
scheduleScope,
|
|
1382
|
+
seriesIds,
|
|
1380
1383
|
normalizedCategoryIds,
|
|
1381
1384
|
normalizedStaffMemberId,
|
|
1382
1385
|
normalizedVenueId
|
|
@@ -1386,7 +1389,7 @@ function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialO
|
|
|
1386
1389
|
}, [fetchPage]);
|
|
1387
1390
|
const initialFetchAttemptKeyRef = useRef(null);
|
|
1388
1391
|
useEffect(() => {
|
|
1389
|
-
if (!fetchInitialOnMount) return;
|
|
1392
|
+
if (!fetchInitialOnMount || seriesIds === "") return;
|
|
1390
1393
|
if (!filtersMatchInitial) return;
|
|
1391
1394
|
if (initialEventsRef.current.length > 0) return;
|
|
1392
1395
|
if (eventsRef.current.length > 0) return;
|
|
@@ -1400,7 +1403,8 @@ function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialO
|
|
|
1400
1403
|
fetchPage,
|
|
1401
1404
|
filtersKey,
|
|
1402
1405
|
filtersMatchInitial,
|
|
1403
|
-
stage
|
|
1406
|
+
stage,
|
|
1407
|
+
seriesIds
|
|
1404
1408
|
]);
|
|
1405
1409
|
const prevFiltersMatchInitialRef = useRef(filtersMatchInitial);
|
|
1406
1410
|
const prevInitialEventsKeyRef = useRef(initialEventsKey);
|
|
@@ -1524,7 +1528,7 @@ function getEventFiltersError(state) {
|
|
|
1524
1528
|
* const events = await api.getPublicEvents(params);
|
|
1525
1529
|
* ```
|
|
1526
1530
|
*/
|
|
1527
|
-
function useEventFilters({ showCategoryFilter = "auto", showVenueFilter = false, showStaffFilter = false, preFilterCategoryIds, preFilterStaffMemberId, preFilterVenueId, preFilterEventSurface, preFilterEventPresets, preFilterScheduleScope } = {}) {
|
|
1531
|
+
function useEventFilters({ showCategoryFilter = "auto", showVenueFilter = false, showStaffFilter = false, preFilterSeriesIds, preFilterCategoryIds, preFilterStaffMemberId, preFilterVenueId, preFilterEventSurface, preFilterEventPresets, preFilterScheduleScope } = {}) {
|
|
1528
1532
|
const api = useBlockApi();
|
|
1529
1533
|
const [loadState, dispatchLoadState] = useReducer(eventFiltersLoadReducer, void 0, createInitialEventFiltersLoadState);
|
|
1530
1534
|
const filters = getEventFiltersData(loadState);
|
|
@@ -1673,6 +1677,7 @@ function useEventFilters({ showCategoryFilter = "auto", showVenueFilter = false,
|
|
|
1673
1677
|
setSelectedVenueId("all");
|
|
1674
1678
|
}, []),
|
|
1675
1679
|
getFilterParams: useCallback(() => {
|
|
1680
|
+
if (preFilterSeriesIds != null) return { seriesIds: preFilterSeriesIds };
|
|
1676
1681
|
const params = {};
|
|
1677
1682
|
if (fixedEventSurface) params.eventSurface = fixedEventSurface;
|
|
1678
1683
|
if (fixedEventPresets) params.eventPresets = fixedEventPresets;
|
|
@@ -1686,6 +1691,7 @@ function useEventFilters({ showCategoryFilter = "auto", showVenueFilter = false,
|
|
|
1686
1691
|
params.staffMemberId = fixedStaffMemberId ?? (selectedStaffMemberId !== "all" ? selectedStaffMemberId : void 0);
|
|
1687
1692
|
return params;
|
|
1688
1693
|
}, [
|
|
1694
|
+
preFilterSeriesIds,
|
|
1689
1695
|
allowedCategoryIds,
|
|
1690
1696
|
allowedCategorySet,
|
|
1691
1697
|
fixedEventPresets,
|
|
@@ -1462,6 +1462,14 @@ const PUBLIC_BOOKING_AVAILABILITY_ENDPOINT_DEFINITIONS = defineEndpointDefinitio
|
|
|
1462
1462
|
auth: "public",
|
|
1463
1463
|
responseKind: "json"
|
|
1464
1464
|
},
|
|
1465
|
+
getPublicBookingServiceBySlug: {
|
|
1466
|
+
path: "/public/bookings/services/by-slug/{slug}",
|
|
1467
|
+
method: "GET",
|
|
1468
|
+
revalidate: publicReadFreshnessSeconds("getPublicBookingService"),
|
|
1469
|
+
tags: [TAG_TEMPLATES.publicBookingServices],
|
|
1470
|
+
auth: "public",
|
|
1471
|
+
responseKind: "json"
|
|
1472
|
+
},
|
|
1465
1473
|
getPublicBookingResourcesReference: {
|
|
1466
1474
|
path: "/public/bookings/resources/reference",
|
|
1467
1475
|
method: "GET",
|
|
@@ -2014,11 +2022,105 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
2014
2022
|
responseKind: "json"
|
|
2015
2023
|
}
|
|
2016
2024
|
});
|
|
2025
|
+
//#endregion
|
|
2026
|
+
//#region ../api/src/publicOnboardingAttemptEndpointDefinitions.ts
|
|
2027
|
+
/**
|
|
2028
|
+
* The anonymous onboarding attempt, addressed by its opaque resume token.
|
|
2029
|
+
*
|
|
2030
|
+
* Every route here is reached before there is an account, so none of them can
|
|
2031
|
+
* be scoped to a site or a user: the token is the whole credential. They are
|
|
2032
|
+
* kept together so that stays obvious.
|
|
2033
|
+
*/
|
|
2034
|
+
const PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
2035
|
+
createPublicOnboardingAttempt: {
|
|
2036
|
+
path: "/public/onboarding/attempts",
|
|
2037
|
+
method: "POST",
|
|
2038
|
+
auth: "public",
|
|
2039
|
+
errors: [],
|
|
2040
|
+
responseKind: "json"
|
|
2041
|
+
},
|
|
2042
|
+
createPublicOnboardingLogoUploadUrl: {
|
|
2043
|
+
path: "/public/onboarding/attempts/{attemptToken}/logo-upload-url",
|
|
2044
|
+
method: "POST",
|
|
2045
|
+
auth: "public",
|
|
2046
|
+
errors: [],
|
|
2047
|
+
responseKind: "json"
|
|
2048
|
+
},
|
|
2049
|
+
uploadPublicOnboardingLogo: {
|
|
2050
|
+
path: "/public/onboarding/attempts/{attemptToken}/logo",
|
|
2051
|
+
method: "POST",
|
|
2052
|
+
auth: "public",
|
|
2053
|
+
errors: [],
|
|
2054
|
+
responseKind: "json"
|
|
2055
|
+
},
|
|
2056
|
+
getPublicOnboardingAttempt: {
|
|
2057
|
+
path: "/public/onboarding/attempts/{attemptToken}",
|
|
2058
|
+
method: "GET",
|
|
2059
|
+
auth: "public",
|
|
2060
|
+
errors: [],
|
|
2061
|
+
responseKind: "json"
|
|
2062
|
+
},
|
|
2063
|
+
getPublicOnboardingAttemptProgress: {
|
|
2064
|
+
path: "/public/onboarding/attempts/{attemptToken}/status",
|
|
2065
|
+
method: "GET",
|
|
2066
|
+
auth: "public",
|
|
2067
|
+
errors: [],
|
|
2068
|
+
responseKind: "json"
|
|
2069
|
+
},
|
|
2070
|
+
updatePublicOnboardingAttempt: {
|
|
2071
|
+
path: "/public/onboarding/attempts/{attemptToken}",
|
|
2072
|
+
method: "PATCH",
|
|
2073
|
+
auth: "public",
|
|
2074
|
+
errors: [],
|
|
2075
|
+
responseKind: "json"
|
|
2076
|
+
},
|
|
2077
|
+
runPublicOnboardingAttempt: {
|
|
2078
|
+
path: "/public/onboarding/attempts/{attemptToken}/run",
|
|
2079
|
+
method: "POST",
|
|
2080
|
+
auth: "public",
|
|
2081
|
+
errors: [],
|
|
2082
|
+
responseKind: "json"
|
|
2083
|
+
},
|
|
2084
|
+
resendPublicOnboardingAttemptConfirmation: {
|
|
2085
|
+
path: "/public/onboarding/attempts/{attemptToken}/resend-confirmation",
|
|
2086
|
+
method: "POST",
|
|
2087
|
+
auth: "public",
|
|
2088
|
+
errors: [],
|
|
2089
|
+
responseKind: "json"
|
|
2090
|
+
}
|
|
2091
|
+
});
|
|
2092
|
+
//#endregion
|
|
2093
|
+
//#region ../api/src/billingEndpointDefinitions.ts
|
|
2094
|
+
const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
2095
|
+
adminChangePlan: {
|
|
2096
|
+
path: "/admin/billing/plan",
|
|
2097
|
+
method: "POST",
|
|
2098
|
+
tags: ["admin", "billing"],
|
|
2099
|
+
auth: "admin",
|
|
2100
|
+
responseKind: "json"
|
|
2101
|
+
},
|
|
2102
|
+
changePlan: {
|
|
2103
|
+
path: "/billing/plan/change",
|
|
2104
|
+
method: "POST",
|
|
2105
|
+
tags: ["billing"],
|
|
2106
|
+
auth: "user",
|
|
2107
|
+
responseKind: "json"
|
|
2108
|
+
},
|
|
2109
|
+
createBillingPortalSession: {
|
|
2110
|
+
path: "/billing/portal/session",
|
|
2111
|
+
method: "POST",
|
|
2112
|
+
tags: ["billing"],
|
|
2113
|
+
auth: "user",
|
|
2114
|
+
responseKind: "json"
|
|
2115
|
+
}
|
|
2116
|
+
});
|
|
2017
2117
|
const API_ENDPOINTS = {
|
|
2018
2118
|
...ACCOUNT_ENDPOINT_DEFINITIONS,
|
|
2119
|
+
...PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS,
|
|
2019
2120
|
...PUBLIC_EVENT_ENDPOINT_DEFINITIONS,
|
|
2020
2121
|
...GIFTING_ENDPOINT_DEFINITIONS,
|
|
2021
2122
|
...PUBLIC_READ_ENDPOINT_DEFINITIONS,
|
|
2123
|
+
...BILLING_ENDPOINT_DEFINITIONS,
|
|
2022
2124
|
aiContentUpdateChat: {
|
|
2023
2125
|
path: "/ai/content-update-chat",
|
|
2024
2126
|
method: "POST",
|
|
@@ -2172,55 +2274,6 @@ const API_ENDPOINTS = {
|
|
|
2172
2274
|
errors: [],
|
|
2173
2275
|
responseKind: "json"
|
|
2174
2276
|
},
|
|
2175
|
-
createPublicOnboardingAttempt: {
|
|
2176
|
-
path: "/public/onboarding/attempts",
|
|
2177
|
-
method: "POST",
|
|
2178
|
-
auth: "public",
|
|
2179
|
-
errors: [],
|
|
2180
|
-
responseKind: "json"
|
|
2181
|
-
},
|
|
2182
|
-
createPublicOnboardingLogoUploadUrl: {
|
|
2183
|
-
path: "/public/onboarding/attempts/{attemptToken}/logo-upload-url",
|
|
2184
|
-
method: "POST",
|
|
2185
|
-
auth: "public",
|
|
2186
|
-
errors: [],
|
|
2187
|
-
responseKind: "json"
|
|
2188
|
-
},
|
|
2189
|
-
uploadPublicOnboardingLogo: {
|
|
2190
|
-
path: "/public/onboarding/attempts/{attemptToken}/logo",
|
|
2191
|
-
method: "POST",
|
|
2192
|
-
auth: "public",
|
|
2193
|
-
errors: [],
|
|
2194
|
-
responseKind: "json"
|
|
2195
|
-
},
|
|
2196
|
-
getPublicOnboardingAttempt: {
|
|
2197
|
-
path: "/public/onboarding/attempts/{attemptToken}",
|
|
2198
|
-
method: "GET",
|
|
2199
|
-
auth: "public",
|
|
2200
|
-
errors: [],
|
|
2201
|
-
responseKind: "json"
|
|
2202
|
-
},
|
|
2203
|
-
getPublicOnboardingAttemptProgress: {
|
|
2204
|
-
path: "/public/onboarding/attempts/{attemptToken}/status",
|
|
2205
|
-
method: "GET",
|
|
2206
|
-
auth: "public",
|
|
2207
|
-
errors: [],
|
|
2208
|
-
responseKind: "json"
|
|
2209
|
-
},
|
|
2210
|
-
updatePublicOnboardingAttempt: {
|
|
2211
|
-
path: "/public/onboarding/attempts/{attemptToken}",
|
|
2212
|
-
method: "PATCH",
|
|
2213
|
-
auth: "public",
|
|
2214
|
-
errors: [],
|
|
2215
|
-
responseKind: "json"
|
|
2216
|
-
},
|
|
2217
|
-
runPublicOnboardingAttempt: {
|
|
2218
|
-
path: "/public/onboarding/attempts/{attemptToken}/run",
|
|
2219
|
-
method: "POST",
|
|
2220
|
-
auth: "public",
|
|
2221
|
-
errors: [],
|
|
2222
|
-
responseKind: "json"
|
|
2223
|
-
},
|
|
2224
2277
|
aiSiteWizardSuggestGoals: {
|
|
2225
2278
|
path: "/sites/{siteId}/ai/site-wizard/goals",
|
|
2226
2279
|
method: "POST",
|
|
@@ -3736,20 +3789,6 @@ const API_ENDPOINTS = {
|
|
|
3736
3789
|
auth: "admin",
|
|
3737
3790
|
responseKind: "json"
|
|
3738
3791
|
},
|
|
3739
|
-
adminChangePlan: {
|
|
3740
|
-
path: "/admin/billing/plan",
|
|
3741
|
-
method: "POST",
|
|
3742
|
-
tags: ["admin", "billing"],
|
|
3743
|
-
auth: "admin",
|
|
3744
|
-
responseKind: "json"
|
|
3745
|
-
},
|
|
3746
|
-
changePlan: {
|
|
3747
|
-
path: "/billing/plan/change",
|
|
3748
|
-
method: "POST",
|
|
3749
|
-
tags: ["billing"],
|
|
3750
|
-
auth: "user",
|
|
3751
|
-
responseKind: "json"
|
|
3752
|
-
},
|
|
3753
3792
|
mfaTotpEnroll: {
|
|
3754
3793
|
path: "/auth/mfa/totp/enroll",
|
|
3755
3794
|
method: "POST",
|
|
@@ -4098,7 +4137,12 @@ const API_ENDPOINTS = {
|
|
|
4098
4137
|
path: "/public/sites/{siteId}/sitemap",
|
|
4099
4138
|
method: "GET",
|
|
4100
4139
|
revalidate: 60,
|
|
4101
|
-
tags: [
|
|
4140
|
+
tags: [
|
|
4141
|
+
TAG_TEMPLATES.siteRoutableContent,
|
|
4142
|
+
TAG_TEMPLATES.siteSettings,
|
|
4143
|
+
TAG_TEMPLATES.publicEvents,
|
|
4144
|
+
TAG_TEMPLATES.publicBookingServices
|
|
4145
|
+
],
|
|
4102
4146
|
auth: "public",
|
|
4103
4147
|
responseKind: "json"
|
|
4104
4148
|
},
|
|
@@ -7417,6 +7461,17 @@ const API_ENDPOINTS = {
|
|
|
7417
7461
|
auth: "public",
|
|
7418
7462
|
responseKind: "json"
|
|
7419
7463
|
},
|
|
7464
|
+
portalCancelWaitlistEntry: {
|
|
7465
|
+
path: "/portal/waitlists/{entryId}/cancel",
|
|
7466
|
+
method: "POST",
|
|
7467
|
+
auth: "public",
|
|
7468
|
+
responseKind: "json",
|
|
7469
|
+
errors: [
|
|
7470
|
+
"resource:not_found",
|
|
7471
|
+
"resource:conflict",
|
|
7472
|
+
"server:internal_error"
|
|
7473
|
+
]
|
|
7474
|
+
},
|
|
7420
7475
|
portalGetEventGuests: {
|
|
7421
7476
|
path: "/portal/events/{registrationId}/guests",
|
|
7422
7477
|
method: "GET",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as usePreviewLayout, i as useOptionalPreviewLayout, n as createPreviewQueryClient, r as PreviewLayoutProvider, t as PreviewQueryProvider } from "../../PreviewQueryProvider-
|
|
2
|
+
import { a as usePreviewLayout, i as useOptionalPreviewLayout, n as createPreviewQueryClient, r as PreviewLayoutProvider, t as PreviewQueryProvider } from "../../PreviewQueryProvider-CN0ewic5.mjs";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/preview-next/client/runtime.tsx
|
|
6
6
|
const LazySdkPreviewMode = React.lazy(async () => {
|
|
7
|
-
return { default: (await import("../../SdkPreviewModeRuntime-
|
|
7
|
+
return { default: (await import("../../SdkPreviewModeRuntime-CoPYI5Jq.mjs").then((n) => n.n)).SdkPreviewModeRuntime };
|
|
8
8
|
});
|
|
9
9
|
const LazyPreviewShell = React.lazy(async () => {
|
|
10
|
-
return { default: (await import("../../sdk-runtime-
|
|
10
|
+
return { default: (await import("../../sdk-runtime-Defnbfzw.mjs")).PreviewShell };
|
|
11
11
|
});
|
|
12
12
|
const LazyPreviewShellLayout = React.lazy(async () => {
|
|
13
|
-
return { default: (await import("../../sdk-runtime-
|
|
13
|
+
return { default: (await import("../../sdk-runtime-Defnbfzw.mjs")).PreviewShellLayout };
|
|
14
14
|
});
|
|
15
15
|
function SdkPreviewMode(props) {
|
|
16
16
|
return /* @__PURE__ */ jsx(React.Suspense, {
|
|
@@ -26,19 +26,15 @@
|
|
|
26
26
|
|
|
27
27
|
/* Editor block highlighting */
|
|
28
28
|
[data-editor-block-highlight="true"] {
|
|
29
|
-
outline:
|
|
30
|
-
outline-offset: -
|
|
31
|
-
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
|
|
32
|
-
transition: outline-offset 0.2s ease, box-shadow 0.2s ease;
|
|
29
|
+
outline: 1px solid var(--ring);
|
|
30
|
+
outline-offset: -1px;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
/* Editor field highlighting */
|
|
36
34
|
[data-editor-field-highlight="true"] {
|
|
37
|
-
outline:
|
|
38
|
-
outline-offset: -
|
|
39
|
-
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
|
|
35
|
+
outline: 1px solid var(--ring);
|
|
36
|
+
outline-offset: -1px;
|
|
40
37
|
border-radius: 0.5rem;
|
|
41
|
-
transition: outline-offset 0.2s ease, box-shadow 0.2s ease;
|
|
42
38
|
}
|
|
43
39
|
|
|
44
40
|
/*
|