@riverbankcms/sdk 0.141.0 → 0.143.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-Q-fy9GYw.mjs → PreviewEditorSidebar-DROGfMKi.mjs} +24 -15
- package/dist/{PreviewEditorUI-LYGzgk85.mjs → PreviewEditorUI-BaRjhFu-.mjs} +3 -3
- package/dist/{PreviewQueryProvider-CN0ewic5.mjs → PreviewQueryProvider-BCYICImX.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CoPYI5Jq.mjs → SdkPreviewModeRuntime-OIABYLES.mjs} +16 -11
- package/dist/{SiteChromeCustomizeContext-D8LePX8x.mjs → SiteChromeCustomizeContext-ohjTvZbc.mjs} +607 -545
- package/dist/_dts/api/src/billing.d.ts +6 -1
- package/dist/_dts/api/src/bookingConfig.d.ts +1 -1
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/endpoints.d.ts +7 -27
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/publicBookingService.d.ts +1 -0
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +48 -41
- package/dist/_dts/api/src/sdkConfig/layout.d.ts +13 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +3 -8
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +1 -31
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +6 -1
- package/dist/_dts/billing/src/site-arrangements.d.ts +9 -5
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +56 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +95 -35
- 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 +12 -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 +10 -4
- 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/events/shared/eventCollectionContract.d.ts +56 -0
- 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/commerce/src/purchase/stripeCommissionMetadata.d.ts +1 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +58 -45
- package/dist/_dts/editor-blocks/src/block-editor/ColourFieldOptionsProvider.d.ts +7 -0
- package/dist/_dts/editor-blocks/src/block-editor/colourFieldVisibility.d.ts +7 -0
- package/dist/_dts/editor-blocks/src/block-editor/preparedManifest.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewFooterEditorPanel.d.ts +3 -6
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/footerInspection.d.ts +16 -0
- package/dist/_dts/preview-next/src/client/preview/sdkConfig.d.ts +6 -0
- package/dist/_dts/sdk/src/config/types.d.ts +2 -18
- package/dist/_dts/sdk/src/config/validation.d.ts +6 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/footer/mode.d.ts +10 -1
- package/dist/_dts/theme-core/src/schema.d.ts +1 -7
- package/dist/_dts/theme-core/src/site-styles/effectivePageDesign.d.ts +32 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/client/{BookingConsentAgreement-xJeYNdnb.mjs → BookingConsentAgreement-BoCtvzzu.mjs} +2 -2
- package/dist/client/{DiscountCodeDisclosure-DdT6uzl9.mjs → DiscountCodeDisclosure-B5S30nZk.mjs} +1 -1
- package/dist/client/{EventCombined.client-Cp28uYuM.mjs → EventCombined.client-CeZ2-zSt.mjs} +5 -5
- package/dist/client/{EventListing.client-CD6AJsMr.mjs → EventListing.client-DJN3j8B3.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DBsAi9-e.mjs → LeafletStaticMap-RjtGzDQT.mjs} +1 -1
- package/dist/client/{accordion-6dwbOKYR.mjs → accordion-DOmnDoyg.mjs} +1 -1
- package/dist/client/{bookingForm-CZE9_qPQ.mjs → bookingForm-C0vk7pgS.mjs} +5 -5
- package/dist/client/bookings.mjs +468 -534
- package/dist/client/{carousel-7VHGQARz.mjs → carousel-BZJ7pno3.mjs} +1 -1
- package/dist/client/{cart-Qg_mvQhh.mjs → cart-CaeVAHJl.mjs} +3 -3
- package/dist/client/{checkout-D84rpgdr.mjs → checkout-7wmoNDtG.mjs} +3 -3
- package/dist/client/client.mjs +559 -593
- package/dist/client/{context-Ctp3T0Wr.mjs → context-BOimxE3U.mjs} +12 -1
- package/dist/client/{dates-DJKFcI_N.mjs → dates-BnzVksi4.mjs} +2 -2
- package/dist/client/{eventCalendar-CK31z3vs.mjs → eventCalendar-l-fpaslC.mjs} +7 -7
- package/dist/client/{eventCombined-DiXd-ewn.mjs → eventCombined-DGGvssK6.mjs} +3 -3
- package/dist/client/{eventDetails-CTRgt2DK.mjs → eventDetails-DRiCm_hL.mjs} +4 -4
- package/dist/client/{eventListing-Dy9vi_j_.mjs → eventListing-dph8loYX.mjs} +3 -3
- package/dist/client/{eventRegistration-CnalYMr2.mjs → eventRegistration-ClBohmbY.mjs} +472 -531
- package/dist/client/{form-eUiMveTT.mjs → form-BLVVAnd3.mjs} +2 -2
- package/dist/client/{headerSection-Dy9kQpB1.mjs → headerSection-DHy4C8Ix.mjs} +2 -2
- package/dist/client/hooks.mjs +39 -13
- package/dist/client/{locationMap-DalCmWU0.mjs → locationMap-6HuS28ck.mjs} +2 -2
- package/dist/client/{newsletterForm-SDDPvhS0.mjs → newsletterForm-xOdcOhZP.mjs} +2 -2
- package/dist/client/{pricing-OcMz4SnX.mjs → pricing-ChinRYFt.mjs} +1 -1
- package/dist/client/{productDetail-BQrgHElM.mjs → productDetail-0chA5gbK.mjs} +3 -3
- package/dist/client/{productList-OnPn_UJj.mjs → productList-OoINA0h1.mjs} +3 -3
- package/dist/client/{propsDecoder-zBdsnS-N.mjs → propsDecoder-CIZ-hbIG.mjs} +33 -9
- package/dist/client/rendering/client.mjs +536 -550
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +602 -596
- package/dist/client/{scrollToBlock-BNM4Ob2Y.mjs → scrollToBlock-BPZl0gPZ.mjs} +1 -1
- package/dist/client/{shop-Bv1fPTwQ.mjs → shop-CLJFqNIq.mjs} +6 -6
- package/dist/client/{shop-commerce-D4KNGaW8.mjs → shop-commerce-PpANg5wB.mjs} +5 -5
- package/dist/client/{shop-commerce-store-2N5EV0Rc.mjs → shop-commerce-store-TA_Kz2ku.mjs} +1 -1
- package/dist/client/{shopShared-DvJGdHTV.mjs → shopShared-DzcFcA5g.mjs} +3 -3
- package/dist/client/{useEventFilters-BBBvGDHQ.mjs → useEventFilters-CFU21QZo.mjs} +5 -5
- package/dist/preview-next/before-render.mjs +11 -37
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +11 -37
- package/dist/preview-next/middleware.mjs +11 -37
- package/dist/{previewAuthStore-Gjb6r6vz.mjs → previewAuthStore-JA6-I_sL.mjs} +11 -37
- package/dist/{sdk-runtime-Defnbfzw.mjs → sdk-runtime-CDKl0Fr7.mjs} +2 -2
- package/dist/{separator-CZXO3Sb0.mjs → separator-BTp96X32.mjs} +1 -1
- package/dist/server/components.mjs +80 -51
- package/dist/server/config-validation.mjs +43 -14
- package/dist/server/config.mjs +43 -14
- package/dist/server/data.mjs +39 -13
- package/dist/server/index.mjs +12 -38
- package/dist/server/next.mjs +40 -53
- package/dist/server/page-converter.mjs +20 -8
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +80 -51
- package/dist/server/rendering.mjs +80 -51
- package/dist/server/routing.mjs +52 -17
- package/dist/server/server.mjs +40 -51
- package/dist/server/theme-bridge.mjs +10 -8
- package/dist/server/theme.mjs +10 -8
- 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
package/dist/server/server.mjs
CHANGED
|
@@ -2643,6 +2643,17 @@ function resolveSiteVerticalBookingConfig(rawConfig) {
|
|
|
2643
2643
|
//#endregion
|
|
2644
2644
|
//#region ../api/src/publicEventEndpointDefinitions.ts
|
|
2645
2645
|
const PUBLIC_EVENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
2646
|
+
checkPublicEventRegistrationNextStep: {
|
|
2647
|
+
path: "/public/sites/{siteId}/events/registration-next-step",
|
|
2648
|
+
method: "POST",
|
|
2649
|
+
auth: "public",
|
|
2650
|
+
responseKind: "json",
|
|
2651
|
+
errors: [
|
|
2652
|
+
"validation:invalid_input",
|
|
2653
|
+
"auth:forbidden",
|
|
2654
|
+
"server:internal_error"
|
|
2655
|
+
]
|
|
2656
|
+
},
|
|
2646
2657
|
listPublicEventCalendarWindow: {
|
|
2647
2658
|
path: "/public/sites/{siteId}/events/calendar-window",
|
|
2648
2659
|
method: "GET",
|
|
@@ -8098,13 +8109,6 @@ const API_ENDPOINTS$1 = {
|
|
|
8098
8109
|
auth: "service",
|
|
8099
8110
|
responseKind: "json"
|
|
8100
8111
|
},
|
|
8101
|
-
sdkCatalogTheme: {
|
|
8102
|
-
path: "/sdk/{siteId}/catalog/theme",
|
|
8103
|
-
method: "GET",
|
|
8104
|
-
errors: ["server:internal_error"],
|
|
8105
|
-
auth: "service",
|
|
8106
|
-
responseKind: "json"
|
|
8107
|
-
},
|
|
8108
8112
|
sdkCatalogBlocks: {
|
|
8109
8113
|
path: "/sdk/{siteId}/catalog/blocks",
|
|
8110
8114
|
method: "GET",
|
|
@@ -8165,12 +8169,6 @@ const API_ENDPOINTS$1 = {
|
|
|
8165
8169
|
auth: "service",
|
|
8166
8170
|
responseKind: "json"
|
|
8167
8171
|
},
|
|
8168
|
-
sdkPullTheme: {
|
|
8169
|
-
path: "/sdk/{siteId}/pull/theme",
|
|
8170
|
-
method: "GET",
|
|
8171
|
-
auth: "service",
|
|
8172
|
-
responseKind: "json"
|
|
8173
|
-
},
|
|
8174
8172
|
sdkPullFooter: {
|
|
8175
8173
|
path: "/sdk/{siteId}/pull/footer",
|
|
8176
8174
|
method: "GET",
|
|
@@ -8277,30 +8275,6 @@ const API_ENDPOINTS$1 = {
|
|
|
8277
8275
|
auth: "service",
|
|
8278
8276
|
responseKind: "json"
|
|
8279
8277
|
},
|
|
8280
|
-
sdkUpsertTheme: {
|
|
8281
|
-
path: "/sdk/{siteId}/theme",
|
|
8282
|
-
method: "POST",
|
|
8283
|
-
auth: "service",
|
|
8284
|
-
responseKind: "json",
|
|
8285
|
-
errors: [
|
|
8286
|
-
"validation:invalid_input",
|
|
8287
|
-
"resource:not_found",
|
|
8288
|
-
"resource:conflict",
|
|
8289
|
-
"server:internal_error"
|
|
8290
|
-
]
|
|
8291
|
-
},
|
|
8292
|
-
sdkApplySiteStyleSelection: {
|
|
8293
|
-
path: "/sdk/{siteId}/theme/style-selection/apply",
|
|
8294
|
-
method: "POST",
|
|
8295
|
-
auth: "service",
|
|
8296
|
-
responseKind: "json",
|
|
8297
|
-
errors: [
|
|
8298
|
-
"validation:invalid_input",
|
|
8299
|
-
"resource:not_found",
|
|
8300
|
-
"resource:conflict",
|
|
8301
|
-
"server:internal_error"
|
|
8302
|
-
]
|
|
8303
|
-
},
|
|
8304
8278
|
sdkUpsertFooter: {
|
|
8305
8279
|
path: "/sdk/{siteId}/footer",
|
|
8306
8280
|
method: "POST",
|
|
@@ -9565,7 +9539,7 @@ var SimpleCache = class {
|
|
|
9565
9539
|
* 1. This constant
|
|
9566
9540
|
* 2. The "version" field in package.json
|
|
9567
9541
|
*/
|
|
9568
|
-
const SDK_VERSION = "0.
|
|
9542
|
+
const SDK_VERSION = "0.143.0";
|
|
9569
9543
|
//#endregion
|
|
9570
9544
|
//#region src/client/error.ts
|
|
9571
9545
|
let _Symbol$for;
|
|
@@ -9814,6 +9788,14 @@ function formatKeyAsLabel(key) {
|
|
|
9814
9788
|
return key.replace(/([A-Z])/g, " $1").replace(/[-_]/g, " ").trim().split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
|
|
9815
9789
|
}
|
|
9816
9790
|
//#endregion
|
|
9791
|
+
//#region ../theme-core/src/footer/mode.ts
|
|
9792
|
+
const footerModeSchema = z.enum([
|
|
9793
|
+
"default",
|
|
9794
|
+
"blocks",
|
|
9795
|
+
"default+blocks",
|
|
9796
|
+
"none"
|
|
9797
|
+
]);
|
|
9798
|
+
//#endregion
|
|
9817
9799
|
//#region ../theme-core/src/lib/media.ts
|
|
9818
9800
|
const hotspotSchema = z.object({
|
|
9819
9801
|
x: z.number().min(0).max(1),
|
|
@@ -15856,12 +15838,6 @@ const footerVariant = z.enum([
|
|
|
15856
15838
|
"split"
|
|
15857
15839
|
]);
|
|
15858
15840
|
const footerMaxWidth = z.enum(["container", "full"]);
|
|
15859
|
-
const footerMode = z.enum([
|
|
15860
|
-
"default",
|
|
15861
|
-
"blocks",
|
|
15862
|
-
"default+blocks",
|
|
15863
|
-
"none"
|
|
15864
|
-
]);
|
|
15865
15841
|
const footerNavLayoutMode = z.enum([
|
|
15866
15842
|
"stack",
|
|
15867
15843
|
"inline",
|
|
@@ -15950,9 +15926,9 @@ const footerSchema = z.object({
|
|
|
15950
15926
|
/**
|
|
15951
15927
|
* SDK-only footer rendering mode.
|
|
15952
15928
|
*
|
|
15953
|
-
*
|
|
15929
|
+
* Historical persisted field; SDK rendering mode now lives in layout.footerMode.
|
|
15954
15930
|
*/
|
|
15955
|
-
mode:
|
|
15931
|
+
mode: footerModeSchema.optional(),
|
|
15956
15932
|
variant: footerVariant,
|
|
15957
15933
|
maxWidth: footerMaxWidth,
|
|
15958
15934
|
showLogoText: z.boolean().optional(),
|
|
@@ -35946,6 +35922,15 @@ const publicEventBaseSchema = z.object({
|
|
|
35946
35922
|
timeZone: z.string(),
|
|
35947
35923
|
pricing: publicEventPricingSchema,
|
|
35948
35924
|
paymentTerms: blockBookingPaymentTermsSchema,
|
|
35925
|
+
cancellationPolicy: z.object({ refunds: z.object({
|
|
35926
|
+
mode: z.enum([
|
|
35927
|
+
"never",
|
|
35928
|
+
"always",
|
|
35929
|
+
"cutoff"
|
|
35930
|
+
]),
|
|
35931
|
+
cutoffHours: z.number(),
|
|
35932
|
+
method: z.enum(["original_payment_method", "site_credit"])
|
|
35933
|
+
}) }),
|
|
35949
35934
|
consent: blockBookingConsentSchema.nullable(),
|
|
35950
35935
|
accessRestriction: accessRestrictionSchema,
|
|
35951
35936
|
allowedCategoryIds: z.array(z.string()),
|
|
@@ -36702,6 +36687,7 @@ function shellLabelForRegistrationStep(step, events) {
|
|
|
36702
36687
|
case "redirecting":
|
|
36703
36688
|
case "verifying-payment":
|
|
36704
36689
|
case "verifying-timeout":
|
|
36690
|
+
case "payment-status":
|
|
36705
36691
|
case "payment-failed": return "Details";
|
|
36706
36692
|
}
|
|
36707
36693
|
}
|
|
@@ -49226,11 +49212,14 @@ const sdkSiteStyleConfigSchema = z.object({
|
|
|
49226
49212
|
sectionOptions: sdkSectionOptionsConfigSchema.optional(),
|
|
49227
49213
|
containerOptions: sdkContainerOptionsConfigSchema.optional()
|
|
49228
49214
|
});
|
|
49229
|
-
const sdkSiteLayoutConfigSchema = z.object({
|
|
49230
|
-
|
|
49231
|
-
|
|
49232
|
-
|
|
49233
|
-
|
|
49215
|
+
const sdkSiteLayoutConfigSchema = z.object({
|
|
49216
|
+
footerMode: footerModeSchema.optional(),
|
|
49217
|
+
footerBlocks: z.array(z.object({
|
|
49218
|
+
id: z.string().min(1).optional(),
|
|
49219
|
+
kind: z.string().min(1),
|
|
49220
|
+
content: z.record(z.string(), z.unknown()).optional()
|
|
49221
|
+
})).optional()
|
|
49222
|
+
});
|
|
49234
49223
|
const sdkFieldSelectOptionSchema = z.object({
|
|
49235
49224
|
value: z.string(),
|
|
49236
49225
|
label: z.string()
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region ../theme-core/src/footer/mode.ts
|
|
5
|
+
const footerModeSchema = z.enum([
|
|
6
|
+
"default",
|
|
7
|
+
"blocks",
|
|
8
|
+
"default+blocks",
|
|
9
|
+
"none"
|
|
10
|
+
]);
|
|
11
|
+
//#endregion
|
|
4
12
|
//#region ../theme-core/src/lib/media.ts
|
|
5
13
|
const hotspotSchema = z.object({
|
|
6
14
|
x: z.number().min(0).max(1),
|
|
@@ -5644,12 +5652,6 @@ const footerVariant = z.enum([
|
|
|
5644
5652
|
"split"
|
|
5645
5653
|
]);
|
|
5646
5654
|
const footerMaxWidth = z.enum(["container", "full"]);
|
|
5647
|
-
const footerMode = z.enum([
|
|
5648
|
-
"default",
|
|
5649
|
-
"blocks",
|
|
5650
|
-
"default+blocks",
|
|
5651
|
-
"none"
|
|
5652
|
-
]);
|
|
5653
5655
|
const footerNavLayoutMode = z.enum([
|
|
5654
5656
|
"stack",
|
|
5655
5657
|
"inline",
|
|
@@ -5738,9 +5740,9 @@ const footerSchema = z.object({
|
|
|
5738
5740
|
/**
|
|
5739
5741
|
* SDK-only footer rendering mode.
|
|
5740
5742
|
*
|
|
5741
|
-
*
|
|
5743
|
+
* Historical persisted field; SDK rendering mode now lives in layout.footerMode.
|
|
5742
5744
|
*/
|
|
5743
|
-
mode:
|
|
5745
|
+
mode: footerModeSchema.optional(),
|
|
5744
5746
|
variant: footerVariant,
|
|
5745
5747
|
maxWidth: footerMaxWidth,
|
|
5746
5748
|
showLogoText: z.boolean().optional(),
|
package/dist/server/theme.mjs
CHANGED
|
@@ -636,6 +636,14 @@ z.string().transform((value, ctx) => {
|
|
|
636
636
|
return z.NEVER;
|
|
637
637
|
});
|
|
638
638
|
//#endregion
|
|
639
|
+
//#region ../theme-core/src/footer/mode.ts
|
|
640
|
+
const footerModeSchema = z.enum([
|
|
641
|
+
"default",
|
|
642
|
+
"blocks",
|
|
643
|
+
"default+blocks",
|
|
644
|
+
"none"
|
|
645
|
+
]);
|
|
646
|
+
//#endregion
|
|
639
647
|
//#region ../theme-core/src/lib/media.ts
|
|
640
648
|
const hotspotSchema = z.object({
|
|
641
649
|
x: z.number().min(0).max(1),
|
|
@@ -5435,12 +5443,6 @@ const footerVariant = z.enum([
|
|
|
5435
5443
|
"split"
|
|
5436
5444
|
]);
|
|
5437
5445
|
const footerMaxWidth = z.enum(["container", "full"]);
|
|
5438
|
-
const footerMode = z.enum([
|
|
5439
|
-
"default",
|
|
5440
|
-
"blocks",
|
|
5441
|
-
"default+blocks",
|
|
5442
|
-
"none"
|
|
5443
|
-
]);
|
|
5444
5446
|
const footerNavLayoutMode = z.enum([
|
|
5445
5447
|
"stack",
|
|
5446
5448
|
"inline",
|
|
@@ -5529,9 +5531,9 @@ const footerSchema = z.object({
|
|
|
5529
5531
|
/**
|
|
5530
5532
|
* SDK-only footer rendering mode.
|
|
5531
5533
|
*
|
|
5532
|
-
*
|
|
5534
|
+
* Historical persisted field; SDK rendering mode now lives in layout.footerMode.
|
|
5533
5535
|
*/
|
|
5534
|
-
mode:
|
|
5536
|
+
mode: footerModeSchema.optional(),
|
|
5535
5537
|
variant: footerVariant,
|
|
5536
5538
|
maxWidth: footerMaxWidth,
|
|
5537
5539
|
showLogoText: z.boolean().optional(),
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { PublicEventPricingOptionAvailability } from '../../../../../../core/src/index';
|
|
2
|
-
import type { EligibilityData, RegistrationEvent } from './types';
|
|
3
|
-
/** Recovery may select held places; checkout still owns admission and payment validation. */
|
|
4
|
-
export declare function checkoutRecoveryOptionAvailability(availability: PublicEventPricingOptionAvailability): PublicEventPricingOptionAvailability;
|
|
5
|
-
/**
|
|
6
|
-
* A form-only projection for the explicit existing-checkout path. It permits
|
|
7
|
-
* collecting the original selection without claiming a new place is available.
|
|
8
|
-
* The public checkout service identifies the customer and remains the admission
|
|
9
|
-
* authority; no reservation/customer data is exposed through this projection.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getCheckoutRecoveryFormEligibility(eligibility: EligibilityData | null): EligibilityData | null;
|
|
12
|
-
export declare function isSoldOutEventSelectable(event: RegistrationEvent, waitlistAvailable: boolean): boolean;
|
|
13
|
-
export declare function canJoinWaitlistOutsideRecovery(event: RegistrationEvent | null, attendanceMode: 'in_person' | 'online' | null, checkoutRecovery: boolean): boolean;
|
|
14
|
-
export declare function canRecoverEventCheckout(event: RegistrationEvent | null): boolean;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useCheckoutRecovery.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { EligibilityData, RegistrationEvent, RegistrationStep } from './types';
|
|
2
|
-
/** Recovery belongs to the selected booking subject; changing events resets its scope. */
|
|
3
|
-
export declare function useCheckoutRecovery(event: RegistrationEvent | null, setStep: (step: RegistrationStep) => void): {
|
|
4
|
-
checkoutRecovery: boolean;
|
|
5
|
-
startCheckoutRecovery: () => void;
|
|
6
|
-
};
|
|
7
|
-
/** Authenticated pending bookings enter the same form-only recovery path as guests. */
|
|
8
|
-
export declare function useCheckoutRecoveryEligibility(eligibility: EligibilityData | null, step: RegistrationStep, checkoutRecovery: boolean, startCheckoutRecovery: () => void): EligibilityData | null;
|