@riverbankcms/sdk 0.88.0 → 0.90.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 +27 -4
- package/dist/{PreviewEditorSidebar-EVRS3C7T.mjs → PreviewEditorSidebar-KVXNF3VW.mjs} +3 -3
- package/dist/{PreviewEditorUI-54WD4IGE.mjs → PreviewEditorUI-J3JN5Z7T.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-UBL6MSNP.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +216 -0
- package/dist/_dts/altcha/src/AltchaWidget.d.ts +1 -1
- package/dist/_dts/api/src/accessAdmin.d.ts +7 -0
- package/dist/_dts/api/src/bookingOperations.d.ts +2 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +4 -2
- package/dist/_dts/api/src/bookings.d.ts +3 -1
- package/dist/_dts/api/src/endpoints.d.ts +8 -0
- package/dist/_dts/api/src/index.d.ts +7 -6
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +15 -5
- package/dist/_dts/api/src/request.d.ts +21 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +3 -1
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/siteMembers.d.ts +6 -1
- package/dist/_dts/api/src/types.d.ts +4 -2
- package/dist/_dts/api/src/url.d.ts +6 -3
- package/dist/_dts/block-form/src/utils/visibleWhen.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailCard.d.ts +5 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailGrid.d.ts +9 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/index.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +7 -11
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +6 -0
- package/dist/_dts/blocks/src/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +14 -6
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/hero.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +8 -0
- package/dist/_dts/blocks/src/system/constants/events.d.ts +4 -1
- package/dist/_dts/blocks/src/system/icons/cta.d.ts +3 -3
- package/dist/_dts/blocks/src/system/icons/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/icons/registry.d.ts +2 -2
- package/dist/_dts/blocks/src/system/icons/semantic.d.ts +3 -3
- package/dist/_dts/blocks/src/system/icons/svg.d.ts +72 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +18 -5
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +51 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/loadStateError.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.state.d.ts +55 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.state.d.ts +39 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFormConfig.d.ts +4 -27
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFormConfig.state.d.ts +40 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +20 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.state.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.state.d.ts +39 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +1 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +5 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +5 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.d.ts +50 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventPaginatedListView.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/calendarViewOptions.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +24 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.state.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-checkout-form.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.state.d.ts +35 -0
- package/dist/_dts/content-model/src/entry-slots/index.d.ts +1 -0
- package/dist/_dts/content-model/src/entry-slots/sdkBlocks.d.ts +21 -0
- package/dist/_dts/content-model/src/entry-slots/types.d.ts +61 -0
- package/dist/_dts/core/src/branded.d.ts +7 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/money-input.d.ts +18 -0
- package/dist/_dts/core/src/site-route-target.d.ts +40 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +209 -2
- package/dist/_dts/media-core/src/fileDomain.d.ts +4 -0
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -1
- package/dist/_dts/media-editor/src/fieldUi.d.ts +6 -0
- package/dist/_dts/media-editor/src/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewThemedSiteDocument.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/SiteChromeEditableSurface.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/themeRuntime.d.ts +6 -0
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +10 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +12 -5
- package/dist/_dts/sdk/src/client/management/types.d.ts +6 -55
- package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +160 -0
- package/dist/_dts/sdk/src/client/types.d.ts +26 -1
- package/dist/_dts/sdk/src/components.d.ts +1 -0
- package/dist/_dts/sdk/src/config/field-definitions.d.ts +3 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +3 -1
- package/dist/_dts/sdk/src/index.d.ts +3 -1
- package/dist/_dts/sdk/src/next/types.d.ts +8 -11
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/blocks-theme-scope.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +8 -7
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +5 -6
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/server.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/themeRuntime.d.ts +26 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +18 -0
- package/dist/_dts/theme-core/src/ResponsiveScope.d.ts +12 -0
- package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/cards/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +21 -21
- package/dist/_dts/theme-core/src/schema.d.ts +18 -18
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
- package/dist/_dts/theme-core/src/themeRuntime.d.ts +11 -0
- package/dist/{chunk-ER4UIW4X.mjs → chunk-AEOYWPE4.mjs} +91 -55
- package/dist/{chunk-O4LVYUVH.mjs → chunk-BOQXMCSP.mjs} +147 -101
- package/dist/{chunk-HVOBXA3Y.mjs → chunk-GSPFFUVB.mjs} +2 -2
- package/dist/{chunk-7KOO7RPP.mjs → chunk-PMBB6MQ7.mjs} +2273 -1113
- package/dist/{chunk-K3JWH6HE.mjs → chunk-RQ3XZ4SJ.mjs} +9 -1
- package/dist/{chunk-YDMBIIS5.mjs → chunk-UG7I7S7W.mjs} +1 -1
- package/dist/cli/index.mjs +1564 -546
- package/dist/cli/init-docs/content/cli-reference.md +6 -1
- package/dist/cli/init-docs/content/content-management.md +27 -0
- package/dist/client/{accordion-PT5CGW5N.mjs → accordion-GXQNWQ6O.mjs} +2 -2
- package/dist/client/{bookingForm-2HLRTEYS.mjs → bookingForm-STLUJ36H.mjs} +206 -335
- package/dist/client/bookings.mjs +821 -413
- package/dist/client/{carousel-Z2LKYSWA.mjs → carousel-CVRN6EPP.mjs} +4 -3
- package/dist/client/{cart-ND5IK4A6.mjs → cart-IYIBA5CL.mjs} +8 -8
- package/dist/client/{checkout-EYUSGAY7.mjs → checkout-O3BGM4GS.mjs} +8 -8
- package/dist/client/chunk-4RTFGHZN.mjs +433 -0
- package/dist/client/{chunk-DIRW2LNG.mjs → chunk-6DPXDOIL.mjs} +336 -225
- package/dist/client/chunk-6N7YRNYU.mjs +183 -0
- package/dist/client/{chunk-O5JNI3E4.mjs → chunk-7DH35FGA.mjs} +2 -2
- package/dist/client/{chunk-S4G65LGR.mjs → chunk-D3ETC2SU.mjs} +1 -1
- package/dist/client/{chunk-BAWHZ5GM.mjs → chunk-DAS5CIER.mjs} +460 -157
- package/dist/client/{chunk-6DVPO44G.mjs → chunk-FHU6PFPM.mjs} +1 -1
- package/dist/client/{chunk-SDIYSQAY.mjs → chunk-HIHOQGIP.mjs} +2 -3
- package/dist/client/{chunk-BL66UWGD.mjs → chunk-MFPKS6QS.mjs} +13 -16
- package/dist/client/{chunk-X7GVFB7Y.mjs → chunk-NBFRJ5NB.mjs} +157 -5
- package/dist/client/{chunk-WCVK4MBJ.mjs → chunk-VFHZLZAC.mjs} +1 -1
- package/dist/client/{chunk-GOFO7HRH.mjs → chunk-WHZQDPBZ.mjs} +19 -1
- package/dist/client/{chunk-MHBEWDT7.mjs → chunk-Z62JYS5O.mjs} +122 -50
- package/dist/client/client.mjs +5979 -5198
- package/dist/client/{courseRegistration-H3AZBUEG.mjs → courseRegistration-2D3ACMJR.mjs} +20 -58
- package/dist/client/{eventCalendar-FPKJGLGS.mjs → eventCalendar-QY4UZUFF.mjs} +11 -11
- package/dist/client/{eventCombined-QCGIZBUY.mjs → eventCombined-RRCDKJC2.mjs} +11 -11
- package/dist/client/{eventDetails-HIT3BJWU.mjs → eventDetails-YO335BUT.mjs} +11 -11
- package/dist/client/{eventListing-R4HNWJDN.mjs → eventListing-PXA6GFQ3.mjs} +11 -11
- package/dist/client/{eventRegistration-Q7BYY5HF.mjs → eventRegistration-2ZHEDDXO.mjs} +11 -11
- package/dist/client/{form-NI6YOG6S.mjs → form-ZS6KX4U2.mjs} +7 -7
- package/dist/client/{headerSection-SDYGII36.mjs → headerSection-QK5SLIIB.mjs} +3 -3
- package/dist/client/hooks.mjs +1102 -1029
- package/dist/client/{locationMap-BDETEUQD.mjs → locationMap-GFNIUD2X.mjs} +3 -3
- package/dist/client/{newsletterForm-EKYIU67X.mjs → newsletterForm-PGLTTCUG.mjs} +61 -25
- package/dist/client/{productDetail-5UTGNN76.mjs → productDetail-OPBE5ZPI.mjs} +8 -8
- package/dist/client/{productList-7YA5KXZQ.mjs → productList-NI72Q62Z.mjs} +8 -8
- package/dist/client/rendering/client.mjs +4390 -4245
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3327 -3181
- package/dist/client/{shop-AIMUMZYC.mjs → shop-3ZQPEWYI.mjs} +8 -8
- package/dist/client/spam-protection.mjs +4 -5
- package/dist/preview-next/before-render.mjs +20 -2
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/middleware.mjs +18 -0
- package/dist/{sdk-runtime-NW472WNT.mjs → sdk-runtime-FSHXCWDS.mjs} +6 -6
- package/dist/server/components.mjs +2580 -2783
- package/dist/server/config-validation.mjs +1334 -1261
- package/dist/server/config.mjs +1334 -1261
- package/dist/server/data.mjs +1102 -1029
- package/dist/server/index.mjs +1097 -476
- package/dist/server/navigation.mjs +20 -30
- package/dist/server/next.mjs +3282 -2847
- package/dist/server/page-converter.mjs +1009 -946
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2580 -2783
- package/dist/server/rendering.mjs +2586 -2789
- package/dist/server/routing.mjs +1440 -1053
- package/dist/server/server.mjs +1886 -1153
- package/dist/server/theme-bridge.mjs +34 -5
- package/dist/styles/index.css +26 -0
- package/package.json +3 -2
- package/dist/SdkPreviewModeRuntime-ZALZDJEK.mjs +0 -8
- package/dist/client/chunk-H4MHEXYS.mjs +0 -184
- package/dist/client/chunk-ZFHRN6W2.mjs +0 -66
- /package/dist/client/{chunk-LI2C6M5O.mjs → chunk-25W2EQUN.mjs} +0 -0
package/dist/server/data.mjs
CHANGED
|
@@ -1810,6 +1810,24 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
1810
1810
|
auth: "user",
|
|
1811
1811
|
responseKind: "json"
|
|
1812
1812
|
},
|
|
1813
|
+
resendSiteInvitation: {
|
|
1814
|
+
path: "/sites/{siteId}/members/invitations/{invitationId}/resend",
|
|
1815
|
+
method: "POST",
|
|
1816
|
+
errors: [
|
|
1817
|
+
"auth:forbidden",
|
|
1818
|
+
"resource:not_found",
|
|
1819
|
+
"validation:invalid_input",
|
|
1820
|
+
"external:service_error",
|
|
1821
|
+
"server:internal_error"
|
|
1822
|
+
],
|
|
1823
|
+
tags: [
|
|
1824
|
+
"site-{siteId}",
|
|
1825
|
+
"site-members-{siteId}",
|
|
1826
|
+
"site-invite-{invitationId}"
|
|
1827
|
+
],
|
|
1828
|
+
auth: "user",
|
|
1829
|
+
responseKind: "json"
|
|
1830
|
+
},
|
|
1813
1831
|
transferSiteOwnership: {
|
|
1814
1832
|
path: "/sites/{siteId}/members/transfer-ownership",
|
|
1815
1833
|
method: "POST",
|
|
@@ -6752,7 +6770,7 @@ var navigationLinkInputSchema = z2.discriminatedUnion(
|
|
|
6752
6770
|
);
|
|
6753
6771
|
|
|
6754
6772
|
// ../api/src/sdkConfig/contracts.ts
|
|
6755
|
-
import { z as
|
|
6773
|
+
import { z as z63 } from "zod";
|
|
6756
6774
|
|
|
6757
6775
|
// ../blocks/src/system/manifest/augmentManifest.ts
|
|
6758
6776
|
function augmentManifest(manifest) {
|
|
@@ -7078,12 +7096,17 @@ var visibleWhenPredicateSchema = z4.object({
|
|
|
7078
7096
|
minItems: z4.number().int().nonnegative().optional(),
|
|
7079
7097
|
maxItems: z4.number().int().nonnegative().optional()
|
|
7080
7098
|
});
|
|
7081
|
-
var visibleWhenSchema = z4.
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7099
|
+
var visibleWhenSchema = z4.lazy(
|
|
7100
|
+
() => z4.union([
|
|
7101
|
+
visibleWhenPredicateSchema,
|
|
7102
|
+
z4.object({
|
|
7103
|
+
allOf: z4.array(visibleWhenSchema).min(1)
|
|
7104
|
+
}),
|
|
7105
|
+
z4.object({
|
|
7106
|
+
anyOf: z4.array(visibleWhenSchema).min(1)
|
|
7107
|
+
})
|
|
7108
|
+
])
|
|
7109
|
+
);
|
|
7087
7110
|
var uiSchema = z4.object({
|
|
7088
7111
|
widget: z4.string().optional(),
|
|
7089
7112
|
// Container/widget presets (used by Group/Repeater widgets themselves, not for widget selection)
|
|
@@ -20069,9 +20092,6 @@ var heroCopyFragment = defineFragment({
|
|
|
20069
20092
|
maxLength: 600
|
|
20070
20093
|
}
|
|
20071
20094
|
],
|
|
20072
|
-
// Layout order is [eyebrow, headline, subheadline]. The hero block's
|
|
20073
|
-
// `splitEditorial` variant reads these nodes by index; keep the order stable
|
|
20074
|
-
// (it fails fast at import if the count changes).
|
|
20075
20095
|
layout: [
|
|
20076
20096
|
text(
|
|
20077
20097
|
{
|
|
@@ -22309,32 +22329,6 @@ var splitReverseLayout = splitLayoutWith([
|
|
|
22309
22329
|
splitContentColumn,
|
|
22310
22330
|
splitImageColumn
|
|
22311
22331
|
]);
|
|
22312
|
-
var heroEyebrowNode = heroCopyFragment.layout[0];
|
|
22313
|
-
var heroHeadlineNode = heroCopyFragment.layout[1];
|
|
22314
|
-
var heroSubheadlineNode = heroCopyFragment.layout[2];
|
|
22315
|
-
var heroCtaRowNode = heroCtaRowFragment.layout[0];
|
|
22316
|
-
if (!heroEyebrowNode || !heroHeadlineNode || !heroSubheadlineNode || !heroCtaRowNode) {
|
|
22317
|
-
throw new Error("Hero copy/CTA fragments are missing their expected layout nodes.");
|
|
22318
|
-
}
|
|
22319
|
-
var heroEditorialBottomRow = inline(
|
|
22320
|
-
{
|
|
22321
|
-
gap: "lg",
|
|
22322
|
-
align: "end",
|
|
22323
|
-
justify: "start",
|
|
22324
|
-
wrap: true,
|
|
22325
|
-
className: "rb-w-full"
|
|
22326
|
-
},
|
|
22327
|
-
[heroSubheadlineNode, heroCtaRowNode]
|
|
22328
|
-
);
|
|
22329
|
-
var splitEditorialContentColumn = heroContentWrapper(
|
|
22330
|
-
[heroEyebrowNode, heroHeadlineNode, heroEditorialBottomRow],
|
|
22331
|
-
"md",
|
|
22332
|
-
"rb-w-full rb-text-left"
|
|
22333
|
-
);
|
|
22334
|
-
var splitEditorialLayout = splitLayoutWith([
|
|
22335
|
-
splitEditorialContentColumn,
|
|
22336
|
-
splitImageColumn
|
|
22337
|
-
]);
|
|
22338
22332
|
var heroConfig = {
|
|
22339
22333
|
id: "block.hero",
|
|
22340
22334
|
title: "Hero",
|
|
@@ -22358,7 +22352,8 @@ var heroConfig = {
|
|
|
22358
22352
|
id: "imageShape",
|
|
22359
22353
|
label: "Image shape",
|
|
22360
22354
|
defaultValue: "default",
|
|
22361
|
-
uiIntent: "display"
|
|
22355
|
+
uiIntent: "display",
|
|
22356
|
+
visibleWhen: { field: "variant", oneOf: ["split", "splitReverse"] }
|
|
22362
22357
|
})
|
|
22363
22358
|
],
|
|
22364
22359
|
layout: classicLayout,
|
|
@@ -22366,8 +22361,7 @@ var heroConfig = {
|
|
|
22366
22361
|
classic: classicLayout,
|
|
22367
22362
|
micro: microLayout,
|
|
22368
22363
|
split: splitLayout,
|
|
22369
|
-
splitReverse: splitReverseLayout
|
|
22370
|
-
splitEditorial: splitEditorialLayout
|
|
22364
|
+
splitReverse: splitReverseLayout
|
|
22371
22365
|
},
|
|
22372
22366
|
defaultVariant: "classic",
|
|
22373
22367
|
description: "Hero section with headline, subtitle, and repeatable CTAs.",
|
|
@@ -24243,8 +24237,10 @@ function resolveGeneratedHeroLayoutStyles(content) {
|
|
|
24243
24237
|
return isPlainObject(raw) ? raw : null;
|
|
24244
24238
|
}
|
|
24245
24239
|
function readHeroLayoutString(content, generatedKey, fallbackKey = generatedKey) {
|
|
24240
|
+
const explicitValue = readString(content, fallbackKey);
|
|
24241
|
+
if (explicitValue !== void 0) return explicitValue;
|
|
24246
24242
|
const generated = resolveGeneratedHeroLayoutStyles(content);
|
|
24247
|
-
return generated && typeof generated[generatedKey] === "string" ? generated[generatedKey] :
|
|
24243
|
+
return generated && typeof generated[generatedKey] === "string" ? generated[generatedKey] : void 0;
|
|
24248
24244
|
}
|
|
24249
24245
|
function resolveHeroVariant(content) {
|
|
24250
24246
|
const variant = readString(content, "variant");
|
|
@@ -24257,7 +24253,7 @@ function resolveHeroContentAlignment(content) {
|
|
|
24257
24253
|
const raw = readHeroLayoutString(content, "contentAlignment");
|
|
24258
24254
|
if (raw === "left" || raw === "center" || raw === "right") return raw;
|
|
24259
24255
|
const variant = resolveHeroVariant(content);
|
|
24260
|
-
if (variant === "split" || variant === "splitReverse"
|
|
24256
|
+
if (variant === "split" || variant === "splitReverse") return "left";
|
|
24261
24257
|
return "center";
|
|
24262
24258
|
}
|
|
24263
24259
|
function resolveHeroVerticalAlignment(content) {
|
|
@@ -24267,7 +24263,7 @@ function resolveHeroVerticalAlignment(content) {
|
|
|
24267
24263
|
const minHeight = sectionStyles?.minHeight;
|
|
24268
24264
|
if (minHeight === "banner" || minHeight === "hero" || minHeight === "immersive") return "center";
|
|
24269
24265
|
const variant = resolveHeroVariant(content);
|
|
24270
|
-
if (variant === "split" || variant === "splitReverse"
|
|
24266
|
+
if (variant === "split" || variant === "splitReverse") return "center";
|
|
24271
24267
|
return "top";
|
|
24272
24268
|
}
|
|
24273
24269
|
function resolveHeroContentMaxWidth(content) {
|
|
@@ -27836,9 +27832,6 @@ var appointmentBookingBlockDefinition = {
|
|
|
27836
27832
|
}
|
|
27837
27833
|
};
|
|
27838
27834
|
|
|
27839
|
-
// ../blocks/src/system/blocks/event-registration.ts
|
|
27840
|
-
import { z as z47 } from "zod";
|
|
27841
|
-
|
|
27842
27835
|
// ../blocks/src/system/blocks/events/shared/schemas.ts
|
|
27843
27836
|
import { z as z43 } from "zod";
|
|
27844
27837
|
|
|
@@ -28453,24 +28446,57 @@ function normalizeEventStaffMemberId(value) {
|
|
|
28453
28446
|
return trimmed ? trimmed : null;
|
|
28454
28447
|
}
|
|
28455
28448
|
|
|
28456
|
-
// ../blocks/src/system/blocks/
|
|
28449
|
+
// ../blocks/src/system/blocks/shop.shared.ts
|
|
28457
28450
|
import { z as z44 } from "zod";
|
|
28458
|
-
var
|
|
28451
|
+
var publicPassProductSchema = z44.object({
|
|
28459
28452
|
id: z44.string(),
|
|
28460
|
-
|
|
28461
|
-
|
|
28462
|
-
|
|
28463
|
-
|
|
28464
|
-
|
|
28465
|
-
|
|
28453
|
+
productUseCase: z44.enum(["event_pass", "appointment_package"]).default("event_pass"),
|
|
28454
|
+
name: z44.string(),
|
|
28455
|
+
description: z44.string().nullable(),
|
|
28456
|
+
price: z44.number(),
|
|
28457
|
+
currency: z44.string(),
|
|
28458
|
+
creditsTotal: z44.number(),
|
|
28459
|
+
pricePerCredit: z44.number(),
|
|
28460
|
+
validDays: z44.number().nullable(),
|
|
28461
|
+
eligibleCategoryIds: z44.array(z44.string()),
|
|
28462
|
+
eligibleCategoryNames: z44.array(z44.string())
|
|
28463
|
+
});
|
|
28464
|
+
var publicPassProductCollectionSchema = z44.object({
|
|
28465
|
+
passes: z44.array(publicPassProductSchema)
|
|
28466
|
+
});
|
|
28467
|
+
var publicMembershipProductSchema = z44.object({
|
|
28468
|
+
id: z44.string(),
|
|
28469
|
+
name: z44.string(),
|
|
28470
|
+
description: z44.string().nullable(),
|
|
28471
|
+
price: z44.number(),
|
|
28472
|
+
currency: z44.string(),
|
|
28473
|
+
billingInterval: z44.enum(["month", "year"]),
|
|
28474
|
+
eligibleCategoryIds: z44.array(z44.string()),
|
|
28475
|
+
eligibleCategoryNames: z44.array(z44.string())
|
|
28476
|
+
});
|
|
28477
|
+
var publicMembershipProductCollectionSchema = z44.object({
|
|
28478
|
+
memberships: z44.array(publicMembershipProductSchema)
|
|
28479
|
+
});
|
|
28480
|
+
|
|
28481
|
+
// ../blocks/src/system/blocks/event-registration.shared.ts
|
|
28482
|
+
import { z as z45 } from "zod";
|
|
28483
|
+
var occurrenceContextSchema = z45.object({
|
|
28484
|
+
id: z45.string(),
|
|
28485
|
+
seriesId: z45.string(),
|
|
28486
|
+
startsAt: z45.string(),
|
|
28487
|
+
endsAt: z45.string(),
|
|
28488
|
+
timeZone: z45.string(),
|
|
28489
|
+
capacityOverride: z45.number().nullable().optional(),
|
|
28490
|
+
overrides: z45.record(z45.string(), z45.unknown()).nullable().optional()
|
|
28466
28491
|
}).nullable();
|
|
28467
28492
|
|
|
28468
28493
|
// ../blocks/src/system/runtime/nodes/event-registration.interactive.ts
|
|
28469
|
-
import { z as
|
|
28494
|
+
import { z as z47 } from "zod";
|
|
28470
28495
|
|
|
28471
28496
|
// ../blocks/src/system/constants/events.ts
|
|
28472
28497
|
var EVENT_CONTENT_TYPE_SLUGS = ["event", "events"];
|
|
28473
|
-
var eventCalendarDisplayModeValues = ["combined", "
|
|
28498
|
+
var eventCalendarDisplayModeValues = ["combined", "calendar", "list", "timetable"];
|
|
28499
|
+
var eventCalendarDefaultViewValues = ["month", "week"];
|
|
28474
28500
|
var eventCalendarListLayoutValues = ["stack", "grid", "compact"];
|
|
28475
28501
|
var eventCalendarListLayoutOptions = [
|
|
28476
28502
|
{ id: "stack", label: "Stack" },
|
|
@@ -28480,6 +28506,9 @@ var eventCalendarListLayoutOptions = [
|
|
|
28480
28506
|
function isEventCalendarDisplayMode(value) {
|
|
28481
28507
|
return typeof value === "string" && eventCalendarDisplayModeValues.includes(value);
|
|
28482
28508
|
}
|
|
28509
|
+
function isEventCalendarDefaultView(value) {
|
|
28510
|
+
return typeof value === "string" && eventCalendarDefaultViewValues.includes(value);
|
|
28511
|
+
}
|
|
28483
28512
|
function isEventCalendarListLayout(value) {
|
|
28484
28513
|
return typeof value === "string" && eventCalendarListLayoutValues.includes(value);
|
|
28485
28514
|
}
|
|
@@ -28620,16 +28649,17 @@ function readAmount(value) {
|
|
|
28620
28649
|
}
|
|
28621
28650
|
|
|
28622
28651
|
// ../blocks/src/system/runtime/nodes/shared/contract-schemas.ts
|
|
28623
|
-
import { z as
|
|
28624
|
-
var previewStageSchema =
|
|
28625
|
-
var registrationButtonVariantSchema =
|
|
28626
|
-
var eventButtonVariantSchema =
|
|
28627
|
-
var eventLayoutSchema =
|
|
28628
|
-
var eventCalendarDisplayModeSchema =
|
|
28629
|
-
var
|
|
28630
|
-
var
|
|
28631
|
-
var
|
|
28632
|
-
var
|
|
28652
|
+
import { z as z46 } from "zod";
|
|
28653
|
+
var previewStageSchema = z46.enum(["preview", "published"]);
|
|
28654
|
+
var registrationButtonVariantSchema = z46.enum(["primary", "secondary", "outline"]);
|
|
28655
|
+
var eventButtonVariantSchema = z46.enum(["primary", "secondary", "outline", "link"]);
|
|
28656
|
+
var eventLayoutSchema = z46.enum(eventCalendarListLayoutValues);
|
|
28657
|
+
var eventCalendarDisplayModeSchema = z46.enum(eventCalendarDisplayModeValues);
|
|
28658
|
+
var eventCalendarDefaultViewSchema = z46.enum(eventCalendarDefaultViewValues);
|
|
28659
|
+
var columnOptionSchema = z46.enum(["2", "3", "4"]);
|
|
28660
|
+
var weekStartSchema = z46.enum(["sunday", "monday"]);
|
|
28661
|
+
var filterAutoShowSchema = z46.enum(["auto", "always", "never"]);
|
|
28662
|
+
var calendarTabViewsSchema = z46.enum(["both", "month", "week"]);
|
|
28633
28663
|
|
|
28634
28664
|
// ../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts
|
|
28635
28665
|
function getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep) {
|
|
@@ -28647,7 +28677,7 @@ function eventMatchesOccurrenceId(event, occurrenceId) {
|
|
|
28647
28677
|
function findPreSelectedEvent(input) {
|
|
28648
28678
|
const occurrenceContext = input.occurrenceContext;
|
|
28649
28679
|
if (!occurrenceContext) {
|
|
28650
|
-
return null;
|
|
28680
|
+
return input.scopedEvents.length === 1 ? input.scopedEvents[0] ?? null : null;
|
|
28651
28681
|
}
|
|
28652
28682
|
const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
28653
28683
|
startsAt: occurrenceContext.startsAt,
|
|
@@ -28689,68 +28719,72 @@ function toRegistrationEvents(events) {
|
|
|
28689
28719
|
// ../blocks/src/system/runtime/nodes/event-registration.interactive.ts
|
|
28690
28720
|
var EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS = ["Date", "Tickets", "Details"];
|
|
28691
28721
|
var EVENT_REGISTRATION_SHELL_STEP_LABELS = ["Event", "Date", "Tickets", "Details", "Payment"];
|
|
28692
|
-
var contentEntrySchema =
|
|
28693
|
-
id:
|
|
28694
|
-
slug:
|
|
28695
|
-
contentTypeSlug:
|
|
28722
|
+
var contentEntrySchema = z47.object({
|
|
28723
|
+
id: z47.string(),
|
|
28724
|
+
slug: z47.string(),
|
|
28725
|
+
contentTypeSlug: z47.string()
|
|
28696
28726
|
});
|
|
28697
|
-
var eventRegistrationPublicEventSchema =
|
|
28727
|
+
var eventRegistrationPublicEventSchema = z47.preprocess(
|
|
28698
28728
|
normalizeEventRegistrationEventInput,
|
|
28699
28729
|
publicEventSchema
|
|
28700
28730
|
);
|
|
28701
|
-
var eventRegistrationSourceSchema =
|
|
28702
|
-
siteId:
|
|
28703
|
-
apiBaseUrl:
|
|
28704
|
-
portalToken:
|
|
28705
|
-
previewToken:
|
|
28731
|
+
var eventRegistrationSourceSchema = z47.object({
|
|
28732
|
+
siteId: z47.string().optional(),
|
|
28733
|
+
apiBaseUrl: z47.string().optional(),
|
|
28734
|
+
portalToken: z47.string().nullable().optional(),
|
|
28735
|
+
previewToken: z47.string().nullable().optional(),
|
|
28706
28736
|
occurrenceContext: occurrenceContextSchema.optional(),
|
|
28707
28737
|
contentEntry: contentEntrySchema.nullable().optional(),
|
|
28708
|
-
events:
|
|
28709
|
-
className:
|
|
28710
|
-
buttonText:
|
|
28711
|
-
maxTickets:
|
|
28712
|
-
showVenue:
|
|
28713
|
-
showCapacity:
|
|
28714
|
-
successMessage:
|
|
28715
|
-
waitlistMessage:
|
|
28738
|
+
events: z47.array(eventRegistrationPublicEventSchema).nullable().optional(),
|
|
28739
|
+
className: z47.string().nullable().optional(),
|
|
28740
|
+
buttonText: z47.string().nullable().optional(),
|
|
28741
|
+
maxTickets: z47.string().nullable().optional(),
|
|
28742
|
+
showVenue: z47.boolean().optional(),
|
|
28743
|
+
showCapacity: z47.boolean().optional(),
|
|
28744
|
+
successMessage: z47.string().optional(),
|
|
28745
|
+
waitlistMessage: z47.string().optional(),
|
|
28716
28746
|
buttonVariant: registrationButtonVariantSchema.optional(),
|
|
28717
|
-
overlayEnabled:
|
|
28718
|
-
spamProtectionEnabled:
|
|
28747
|
+
overlayEnabled: z47.boolean().optional(),
|
|
28748
|
+
spamProtectionEnabled: z47.boolean().optional(),
|
|
28719
28749
|
stage: previewStageSchema.optional(),
|
|
28720
|
-
supportEmail:
|
|
28721
|
-
|
|
28722
|
-
|
|
28723
|
-
|
|
28724
|
-
|
|
28725
|
-
|
|
28726
|
-
|
|
28727
|
-
|
|
28728
|
-
|
|
28729
|
-
|
|
28730
|
-
|
|
28731
|
-
|
|
28750
|
+
supportEmail: z47.string().optional(),
|
|
28751
|
+
sitePasses: publicPassProductCollectionSchema.nullable().optional(),
|
|
28752
|
+
siteMemberships: publicMembershipProductCollectionSchema.nullable().optional()
|
|
28753
|
+
});
|
|
28754
|
+
var eventRegistrationDisplaySchema = z47.object({
|
|
28755
|
+
kind: z47.literal("event-registration"),
|
|
28756
|
+
state: z47.literal("generic-shell"),
|
|
28757
|
+
className: z47.string().nullable(),
|
|
28758
|
+
titleText: z47.string(),
|
|
28759
|
+
bodyText: z47.string(),
|
|
28760
|
+
stepLabels: z47.array(z47.enum(EVENT_REGISTRATION_SHELL_STEP_LABELS)).min(1),
|
|
28761
|
+
summaryButtonText: z47.string()
|
|
28762
|
+
});
|
|
28763
|
+
var eventRegistrationHydrationSchema = z47.object({
|
|
28732
28764
|
occurrenceContext: occurrenceContextSchema.optional(),
|
|
28733
28765
|
contentEntry: contentEntrySchema.nullable().optional(),
|
|
28734
|
-
events:
|
|
28735
|
-
maxTickets:
|
|
28736
|
-
showVenue:
|
|
28737
|
-
showCapacity:
|
|
28738
|
-
successMessage:
|
|
28739
|
-
waitlistMessage:
|
|
28766
|
+
events: z47.array(eventRegistrationPublicEventSchema).nullable().optional(),
|
|
28767
|
+
maxTickets: z47.string().optional(),
|
|
28768
|
+
showVenue: z47.boolean().optional(),
|
|
28769
|
+
showCapacity: z47.boolean().optional(),
|
|
28770
|
+
successMessage: z47.string().optional(),
|
|
28771
|
+
waitlistMessage: z47.string().optional(),
|
|
28740
28772
|
buttonVariant: registrationButtonVariantSchema.optional(),
|
|
28741
|
-
overlayEnabled:
|
|
28742
|
-
spamProtectionEnabled:
|
|
28743
|
-
supportEmail:
|
|
28773
|
+
overlayEnabled: z47.boolean().optional(),
|
|
28774
|
+
spamProtectionEnabled: z47.boolean().optional(),
|
|
28775
|
+
supportEmail: z47.string().optional(),
|
|
28776
|
+
sitePasses: publicPassProductCollectionSchema.nullable().optional(),
|
|
28777
|
+
siteMemberships: publicMembershipProductCollectionSchema.nullable().optional()
|
|
28744
28778
|
});
|
|
28745
|
-
var eventRegistrationRenderSchema =
|
|
28779
|
+
var eventRegistrationRenderSchema = z47.object({
|
|
28746
28780
|
display: eventRegistrationDisplaySchema,
|
|
28747
28781
|
hydration: eventRegistrationHydrationSchema
|
|
28748
28782
|
});
|
|
28749
|
-
var eventRegistrationIslandMetaCodec = createZodCodec(
|
|
28750
|
-
siteId:
|
|
28751
|
-
apiBaseUrl:
|
|
28752
|
-
portalToken:
|
|
28753
|
-
previewToken:
|
|
28783
|
+
var eventRegistrationIslandMetaCodec = createZodCodec(z47.object({
|
|
28784
|
+
siteId: z47.string().optional(),
|
|
28785
|
+
apiBaseUrl: z47.string().optional(),
|
|
28786
|
+
portalToken: z47.string().nullable().optional(),
|
|
28787
|
+
previewToken: z47.string().nullable().optional(),
|
|
28754
28788
|
stage: previewStageSchema.optional()
|
|
28755
28789
|
}));
|
|
28756
28790
|
var eventRegistrationIslandMetaKeys = defineInteractiveIslandMetaKeys(
|
|
@@ -28856,7 +28890,9 @@ var eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
28856
28890
|
buttonVariant: source.buttonVariant,
|
|
28857
28891
|
overlayEnabled: source.overlayEnabled,
|
|
28858
28892
|
spamProtectionEnabled: source.spamProtectionEnabled,
|
|
28859
|
-
supportEmail: source.supportEmail
|
|
28893
|
+
supportEmail: source.supportEmail,
|
|
28894
|
+
sitePasses: source.sitePasses ?? null,
|
|
28895
|
+
siteMemberships: source.siteMemberships ?? null
|
|
28860
28896
|
}
|
|
28861
28897
|
})
|
|
28862
28898
|
});
|
|
@@ -29038,6 +29074,8 @@ var eventRegistrationManifest = createBlockManifest({
|
|
|
29038
29074
|
},
|
|
29039
29075
|
// Event data from loader
|
|
29040
29076
|
events: { $bind: { from: "data.events" } },
|
|
29077
|
+
sitePasses: { $bind: { from: "data.sitePasses" } },
|
|
29078
|
+
siteMemberships: { $bind: { from: "data.siteMemberships" } },
|
|
29041
29079
|
// Stage for preview mode (allows registering for draft events)
|
|
29042
29080
|
stage: {
|
|
29043
29081
|
$bind: { from: "$root.previewStage", fallback: "published" }
|
|
@@ -29056,7 +29094,9 @@ var eventRegistrationBlockDefinition = {
|
|
|
29056
29094
|
manifest: eventRegistrationManifest,
|
|
29057
29095
|
runtime: eventRegistrationBlockRuntime,
|
|
29058
29096
|
dataSchemas: {
|
|
29059
|
-
events:
|
|
29097
|
+
events: publicEventsArraySchema.optional(),
|
|
29098
|
+
sitePasses: publicPassProductCollectionSchema.optional(),
|
|
29099
|
+
siteMemberships: publicMembershipProductCollectionSchema.optional(),
|
|
29060
29100
|
occurrenceContext: occurrenceContextSchema.optional()
|
|
29061
29101
|
},
|
|
29062
29102
|
dataLoaders: {
|
|
@@ -29075,6 +29115,20 @@ var eventRegistrationBlockDefinition = {
|
|
|
29075
29115
|
entryId: { $bind: { from: "$root.contentEntry._entryId", fallback: "" } }
|
|
29076
29116
|
},
|
|
29077
29117
|
mode: "server"
|
|
29118
|
+
},
|
|
29119
|
+
sitePasses: {
|
|
29120
|
+
endpoint: "listPublicPasses",
|
|
29121
|
+
params: {
|
|
29122
|
+
siteId: { $bind: { from: "$root.siteId" } }
|
|
29123
|
+
},
|
|
29124
|
+
mode: "server"
|
|
29125
|
+
},
|
|
29126
|
+
siteMemberships: {
|
|
29127
|
+
endpoint: "listPublicMemberships",
|
|
29128
|
+
params: {
|
|
29129
|
+
siteId: { $bind: { from: "$root.siteId" } }
|
|
29130
|
+
},
|
|
29131
|
+
mode: "server"
|
|
29078
29132
|
}
|
|
29079
29133
|
}
|
|
29080
29134
|
};
|
|
@@ -29406,35 +29460,7 @@ var courseRegistrationBlockDefinition = {
|
|
|
29406
29460
|
};
|
|
29407
29461
|
|
|
29408
29462
|
// ../blocks/src/system/blocks/event-details.ts
|
|
29409
|
-
import { z as z50 } from "zod";
|
|
29410
|
-
|
|
29411
|
-
// ../blocks/src/system/blocks/shop.shared.ts
|
|
29412
29463
|
import { z as z49 } from "zod";
|
|
29413
|
-
var publicPassProductSchema = z49.object({
|
|
29414
|
-
id: z49.string(),
|
|
29415
|
-
productUseCase: z49.enum(["event_pass", "appointment_package"]).default("event_pass"),
|
|
29416
|
-
name: z49.string(),
|
|
29417
|
-
description: z49.string().nullable(),
|
|
29418
|
-
price: z49.number(),
|
|
29419
|
-
currency: z49.string(),
|
|
29420
|
-
creditsTotal: z49.number(),
|
|
29421
|
-
pricePerCredit: z49.number(),
|
|
29422
|
-
validDays: z49.number().nullable(),
|
|
29423
|
-
eligibleCategoryIds: z49.array(z49.string()),
|
|
29424
|
-
eligibleCategoryNames: z49.array(z49.string())
|
|
29425
|
-
});
|
|
29426
|
-
var publicMembershipProductSchema = z49.object({
|
|
29427
|
-
id: z49.string(),
|
|
29428
|
-
name: z49.string(),
|
|
29429
|
-
description: z49.string().nullable(),
|
|
29430
|
-
price: z49.number(),
|
|
29431
|
-
currency: z49.string(),
|
|
29432
|
-
billingInterval: z49.enum(["month", "year"]),
|
|
29433
|
-
eligibleCategoryIds: z49.array(z49.string()),
|
|
29434
|
-
eligibleCategoryNames: z49.array(z49.string())
|
|
29435
|
-
});
|
|
29436
|
-
|
|
29437
|
-
// ../blocks/src/system/blocks/event-details.ts
|
|
29438
29464
|
var eventDetailsManifest = createBlockManifest({
|
|
29439
29465
|
id: "block.event-details",
|
|
29440
29466
|
version: "1.0.0",
|
|
@@ -29566,40 +29592,40 @@ var eventDetailsManifest = createBlockManifest({
|
|
|
29566
29592
|
})
|
|
29567
29593
|
]
|
|
29568
29594
|
});
|
|
29569
|
-
var occurrenceContextSchema2 =
|
|
29570
|
-
id:
|
|
29571
|
-
seriesId:
|
|
29572
|
-
startsAt:
|
|
29573
|
-
endsAt:
|
|
29574
|
-
timeZone:
|
|
29575
|
-
capacityOverride:
|
|
29576
|
-
overrides:
|
|
29595
|
+
var occurrenceContextSchema2 = z49.object({
|
|
29596
|
+
id: z49.string(),
|
|
29597
|
+
seriesId: z49.string(),
|
|
29598
|
+
startsAt: z49.string(),
|
|
29599
|
+
endsAt: z49.string(),
|
|
29600
|
+
timeZone: z49.string(),
|
|
29601
|
+
capacityOverride: z49.number().nullable().optional(),
|
|
29602
|
+
overrides: z49.record(z49.string(), z49.unknown()).nullable().optional()
|
|
29577
29603
|
}).nullable();
|
|
29578
|
-
var eventAutoApplyDiscountPreviewBaseSchema =
|
|
29579
|
-
id:
|
|
29580
|
-
publicLabel:
|
|
29581
|
-
description:
|
|
29582
|
-
minTicketsRequired:
|
|
29604
|
+
var eventAutoApplyDiscountPreviewBaseSchema = z49.object({
|
|
29605
|
+
id: z49.string(),
|
|
29606
|
+
publicLabel: z49.string(),
|
|
29607
|
+
description: z49.string().nullable(),
|
|
29608
|
+
minTicketsRequired: z49.number().nullable()
|
|
29583
29609
|
});
|
|
29584
|
-
var eventAutoApplyDiscountPreviewSchema =
|
|
29610
|
+
var eventAutoApplyDiscountPreviewSchema = z49.discriminatedUnion("discountType", [
|
|
29585
29611
|
eventAutoApplyDiscountPreviewBaseSchema.extend({
|
|
29586
|
-
discountType:
|
|
29587
|
-
discountPercent:
|
|
29588
|
-
discountAmountCents:
|
|
29612
|
+
discountType: z49.literal("percent"),
|
|
29613
|
+
discountPercent: z49.number(),
|
|
29614
|
+
discountAmountCents: z49.null()
|
|
29589
29615
|
}),
|
|
29590
29616
|
eventAutoApplyDiscountPreviewBaseSchema.extend({
|
|
29591
|
-
discountType:
|
|
29592
|
-
discountPercent:
|
|
29593
|
-
discountAmountCents:
|
|
29617
|
+
discountType: z49.literal("fixed"),
|
|
29618
|
+
discountPercent: z49.null(),
|
|
29619
|
+
discountAmountCents: z49.number()
|
|
29594
29620
|
})
|
|
29595
29621
|
]);
|
|
29596
29622
|
var eventDetailsBlockDefinition = {
|
|
29597
29623
|
manifest: eventDetailsManifest,
|
|
29598
29624
|
dataSchemas: {
|
|
29599
|
-
eventDetailsData:
|
|
29625
|
+
eventDetailsData: z49.object({
|
|
29600
29626
|
events: publicEventsArraySchema,
|
|
29601
|
-
sitePasses:
|
|
29602
|
-
siteMemberships:
|
|
29627
|
+
sitePasses: publicPassProductCollectionSchema,
|
|
29628
|
+
siteMemberships: publicMembershipProductCollectionSchema,
|
|
29603
29629
|
autoApplyDiscount: eventAutoApplyDiscountPreviewSchema.nullable().optional().default(null)
|
|
29604
29630
|
}).optional(),
|
|
29605
29631
|
occurrenceContext: occurrenceContextSchema2.optional()
|
|
@@ -29923,7 +29949,7 @@ var eventSpotlightBlockDefinition = {
|
|
|
29923
29949
|
};
|
|
29924
29950
|
|
|
29925
29951
|
// ../blocks/src/system/runtime/nodes/events/EventListing.interactive.ts
|
|
29926
|
-
import { z as
|
|
29952
|
+
import { z as z51 } from "zod";
|
|
29927
29953
|
|
|
29928
29954
|
// ../blocks/src/system/runtime/nodes/events/shared/utils.ts
|
|
29929
29955
|
var COLUMN_CLASSES = {
|
|
@@ -30031,16 +30057,16 @@ function computeMediaTransformStyle(value, style, targetAspectRatio, options) {
|
|
|
30031
30057
|
}
|
|
30032
30058
|
|
|
30033
30059
|
// ../blocks/src/system/runtime/nodes/events/shared/listOptions.ts
|
|
30034
|
-
import { z as
|
|
30060
|
+
import { z as z50 } from "zod";
|
|
30035
30061
|
var eventPageSizeValues = [3, 6, 10, 12, 20, 24, 30];
|
|
30036
|
-
var eventPageSizeSchema =
|
|
30037
|
-
|
|
30038
|
-
|
|
30039
|
-
|
|
30040
|
-
|
|
30041
|
-
|
|
30042
|
-
|
|
30043
|
-
|
|
30062
|
+
var eventPageSizeSchema = z50.union([
|
|
30063
|
+
z50.literal(3),
|
|
30064
|
+
z50.literal(6),
|
|
30065
|
+
z50.literal(10),
|
|
30066
|
+
z50.literal(12),
|
|
30067
|
+
z50.literal(20),
|
|
30068
|
+
z50.literal(24),
|
|
30069
|
+
z50.literal(30)
|
|
30044
30070
|
]);
|
|
30045
30071
|
var eventPageSizeSet = new Set(eventPageSizeValues);
|
|
30046
30072
|
function resolveEventPageSize(value, fallback = 12) {
|
|
@@ -30050,15 +30076,15 @@ function resolveEventPageSize(value, fallback = 12) {
|
|
|
30050
30076
|
function resolveEventCalendarListPageSize(input) {
|
|
30051
30077
|
return resolveEventPageSize(input.eventsPerPage);
|
|
30052
30078
|
}
|
|
30053
|
-
var eventListPaginationActionSchema =
|
|
30054
|
-
|
|
30055
|
-
kind:
|
|
30056
|
-
label:
|
|
30079
|
+
var eventListPaginationActionSchema = z50.discriminatedUnion("kind", [
|
|
30080
|
+
z50.object({
|
|
30081
|
+
kind: z50.literal("loadMore"),
|
|
30082
|
+
label: z50.string()
|
|
30057
30083
|
}),
|
|
30058
|
-
|
|
30059
|
-
kind:
|
|
30060
|
-
label:
|
|
30061
|
-
href:
|
|
30084
|
+
z50.object({
|
|
30085
|
+
kind: z50.literal("seeAllLink"),
|
|
30086
|
+
label: z50.string(),
|
|
30087
|
+
href: z50.string()
|
|
30062
30088
|
})
|
|
30063
30089
|
]);
|
|
30064
30090
|
function resolveEventListPaginationAction(input) {
|
|
@@ -30071,89 +30097,89 @@ function resolveEventListPaginationAction(input) {
|
|
|
30071
30097
|
}
|
|
30072
30098
|
|
|
30073
30099
|
// ../blocks/src/system/runtime/nodes/events/EventListing.interactive.ts
|
|
30074
|
-
var legacyEventCardVariantSchema =
|
|
30075
|
-
var eventCardVariantInputSchema =
|
|
30100
|
+
var legacyEventCardVariantSchema = z51.enum(["variant1", "variant2"]);
|
|
30101
|
+
var eventCardVariantInputSchema = z51.union([
|
|
30076
30102
|
cardVariantRoleSchema,
|
|
30077
30103
|
legacyEventCardVariantSchema
|
|
30078
30104
|
]);
|
|
30079
|
-
var cardOrientationSchema =
|
|
30080
|
-
var eventBlockKindSchema =
|
|
30081
|
-
var eventSurfaceScopeSchema =
|
|
30082
|
-
var eventScheduleScopeSchema2 =
|
|
30083
|
-
var eventListingSourceSchema =
|
|
30084
|
-
events:
|
|
30085
|
-
siteId:
|
|
30086
|
-
apiBaseUrl:
|
|
30105
|
+
var cardOrientationSchema = z51.enum(["vertical", "horizontal"]);
|
|
30106
|
+
var eventBlockKindSchema = z51.enum(eventBlockKindValues);
|
|
30107
|
+
var eventSurfaceScopeSchema = z51.enum(eventSurfaceScopeValues);
|
|
30108
|
+
var eventScheduleScopeSchema2 = z51.enum(eventScheduleScopeValues);
|
|
30109
|
+
var eventListingSourceSchema = z51.object({
|
|
30110
|
+
events: z51.array(publicEventSchema).nullable().optional(),
|
|
30111
|
+
siteId: z51.string(),
|
|
30112
|
+
apiBaseUrl: z51.string().optional(),
|
|
30087
30113
|
stage: previewStageSchema.optional(),
|
|
30088
30114
|
layout: eventLayoutSchema.optional(),
|
|
30089
30115
|
columns: columnOptionSchema.optional(),
|
|
30090
|
-
eventsPerPage:
|
|
30091
|
-
paginationMode:
|
|
30092
|
-
seeAllUrl:
|
|
30093
|
-
loadMoreText:
|
|
30116
|
+
eventsPerPage: z51.string().optional(),
|
|
30117
|
+
paginationMode: z51.enum(["loadMore", "seeAllLink"]).optional(),
|
|
30118
|
+
seeAllUrl: z51.string().optional(),
|
|
30119
|
+
loadMoreText: z51.string().optional(),
|
|
30094
30120
|
cardVariant: eventCardVariantInputSchema.optional(),
|
|
30095
30121
|
buttonVariant: eventButtonVariantSchema.optional(),
|
|
30096
|
-
buttonText:
|
|
30097
|
-
showVenue:
|
|
30098
|
-
showMap:
|
|
30099
|
-
showCapacity:
|
|
30100
|
-
emptyMessage:
|
|
30101
|
-
className:
|
|
30102
|
-
showFilters:
|
|
30122
|
+
buttonText: z51.string().optional(),
|
|
30123
|
+
showVenue: z51.boolean().optional(),
|
|
30124
|
+
showMap: z51.boolean().optional(),
|
|
30125
|
+
showCapacity: z51.boolean().optional(),
|
|
30126
|
+
emptyMessage: z51.string().optional(),
|
|
30127
|
+
className: z51.string().optional(),
|
|
30128
|
+
showFilters: z51.boolean().nullable().optional(),
|
|
30103
30129
|
showCategoryFilter: filterAutoShowSchema.optional(),
|
|
30104
|
-
showVenueFilter:
|
|
30105
|
-
showStaffFilter:
|
|
30130
|
+
showVenueFilter: z51.boolean().nullable().optional(),
|
|
30131
|
+
showStaffFilter: z51.boolean().nullable().optional(),
|
|
30106
30132
|
eventKind: eventBlockKindSchema.nullable().optional(),
|
|
30107
30133
|
eventSurface: eventSurfaceScopeSchema.nullable().optional(),
|
|
30108
|
-
filterEventPresets:
|
|
30134
|
+
filterEventPresets: z51.union([z51.string(), z51.array(z51.string())]).nullable().optional(),
|
|
30109
30135
|
scheduleScope: eventScheduleScopeSchema2.nullable().optional(),
|
|
30110
|
-
filterCategoryIds:
|
|
30111
|
-
filterStaffMemberId:
|
|
30112
|
-
filterVenueId:
|
|
30136
|
+
filterCategoryIds: z51.string().nullable().optional(),
|
|
30137
|
+
filterStaffMemberId: z51.string().nullable().optional(),
|
|
30138
|
+
filterVenueId: z51.string().nullable().optional()
|
|
30113
30139
|
});
|
|
30114
|
-
var eventListingDisplaySchema =
|
|
30115
|
-
kind:
|
|
30116
|
-
state:
|
|
30140
|
+
var eventListingDisplaySchema = z51.object({
|
|
30141
|
+
kind: z51.literal("event-listing"),
|
|
30142
|
+
state: z51.enum(["loading", "empty", "ready"]),
|
|
30117
30143
|
listLayout: eventLayoutSchema,
|
|
30118
|
-
className:
|
|
30119
|
-
emptyMessage:
|
|
30120
|
-
loadingMessage:
|
|
30121
|
-
containerClass:
|
|
30144
|
+
className: z51.string().nullable(),
|
|
30145
|
+
emptyMessage: z51.string(),
|
|
30146
|
+
loadingMessage: z51.string(),
|
|
30147
|
+
containerClass: z51.string(),
|
|
30122
30148
|
cardVariant: cardVariantRoleSchema,
|
|
30123
30149
|
buttonVariant: eventButtonVariantSchema,
|
|
30124
|
-
buttonText:
|
|
30125
|
-
showVenue:
|
|
30126
|
-
showMap:
|
|
30127
|
-
showCapacity:
|
|
30150
|
+
buttonText: z51.string(),
|
|
30151
|
+
showVenue: z51.boolean(),
|
|
30152
|
+
showMap: z51.boolean(),
|
|
30153
|
+
showCapacity: z51.boolean(),
|
|
30128
30154
|
orientation: cardOrientationSchema,
|
|
30129
|
-
events:
|
|
30155
|
+
events: z51.array(publicEventSchema)
|
|
30130
30156
|
});
|
|
30131
|
-
var eventListingHydrationSchema =
|
|
30132
|
-
siteId:
|
|
30157
|
+
var eventListingHydrationSchema = z51.object({
|
|
30158
|
+
siteId: z51.string(),
|
|
30133
30159
|
stage: previewStageSchema.optional(),
|
|
30134
30160
|
eventsPerPage: eventPageSizeSchema,
|
|
30135
30161
|
paginationAction: eventListPaginationActionSchema,
|
|
30136
|
-
showFilters:
|
|
30162
|
+
showFilters: z51.boolean(),
|
|
30137
30163
|
showCategoryFilter: filterAutoShowSchema,
|
|
30138
|
-
showVenueFilter:
|
|
30139
|
-
showStaffFilter:
|
|
30164
|
+
showVenueFilter: z51.boolean(),
|
|
30165
|
+
showStaffFilter: z51.boolean(),
|
|
30140
30166
|
eventKind: eventBlockKindSchema,
|
|
30141
30167
|
eventSurface: eventSurfaceScopeSchema,
|
|
30142
|
-
filterEventPresets:
|
|
30168
|
+
filterEventPresets: z51.string().nullable(),
|
|
30143
30169
|
scheduleScope: eventScheduleScopeSchema2,
|
|
30144
|
-
filterCategoryIds:
|
|
30145
|
-
filterStaffMemberId:
|
|
30146
|
-
filterVenueId:
|
|
30147
|
-
fetchInitialEventsOnMount:
|
|
30170
|
+
filterCategoryIds: z51.string().nullable().optional(),
|
|
30171
|
+
filterStaffMemberId: z51.string().nullable().optional(),
|
|
30172
|
+
filterVenueId: z51.string().nullable().optional(),
|
|
30173
|
+
fetchInitialEventsOnMount: z51.boolean()
|
|
30148
30174
|
});
|
|
30149
|
-
var eventListingRenderSchema =
|
|
30175
|
+
var eventListingRenderSchema = z51.object({
|
|
30150
30176
|
display: eventListingDisplaySchema,
|
|
30151
30177
|
hydration: eventListingHydrationSchema
|
|
30152
30178
|
});
|
|
30153
30179
|
var eventListingIslandMetaCodec = createZodCodec(
|
|
30154
|
-
|
|
30155
|
-
siteId:
|
|
30156
|
-
apiBaseUrl:
|
|
30180
|
+
z51.object({
|
|
30181
|
+
siteId: z51.string(),
|
|
30182
|
+
apiBaseUrl: z51.string().optional(),
|
|
30157
30183
|
stage: previewStageSchema.optional()
|
|
30158
30184
|
})
|
|
30159
30185
|
);
|
|
@@ -30520,15 +30546,15 @@ var eventListingBlockDefinition = {
|
|
|
30520
30546
|
};
|
|
30521
30547
|
|
|
30522
30548
|
// ../blocks/src/system/runtime/nodes/events/EventCalendar.interactive.ts
|
|
30523
|
-
import { z as
|
|
30524
|
-
var eventBlockKindSchema2 =
|
|
30525
|
-
var eventSurfaceScopeSchema2 =
|
|
30526
|
-
var eventScheduleScopeSchema3 =
|
|
30527
|
-
var eventCalendarSourceSchema =
|
|
30549
|
+
import { z as z52 } from "zod";
|
|
30550
|
+
var eventBlockKindSchema2 = z52.enum(eventBlockKindValues);
|
|
30551
|
+
var eventSurfaceScopeSchema2 = z52.enum(eventSurfaceScopeValues);
|
|
30552
|
+
var eventScheduleScopeSchema3 = z52.enum(eventScheduleScopeValues);
|
|
30553
|
+
var eventCalendarSourceSchema = z52.object(
|
|
30528
30554
|
{
|
|
30529
|
-
events:
|
|
30530
|
-
siteId:
|
|
30531
|
-
apiBaseUrl:
|
|
30555
|
+
events: z52.array(publicEventSchema).nullable().optional(),
|
|
30556
|
+
siteId: z52.string(),
|
|
30557
|
+
apiBaseUrl: z52.string().optional(),
|
|
30532
30558
|
stage: previewStageSchema.optional(),
|
|
30533
30559
|
variant: eventCalendarDisplayModeSchema.nullable().optional(),
|
|
30534
30560
|
displayMode: eventCalendarDisplayModeSchema.nullable().optional(),
|
|
@@ -30536,78 +30562,80 @@ var eventCalendarSourceSchema = z53.object(
|
|
|
30536
30562
|
listColumns: columnOptionSchema.optional(),
|
|
30537
30563
|
layout: eventLayoutSchema.optional(),
|
|
30538
30564
|
columns: columnOptionSchema.optional(),
|
|
30539
|
-
eventsPerPage:
|
|
30540
|
-
paginationMode:
|
|
30541
|
-
seeAllUrl:
|
|
30542
|
-
loadMoreText:
|
|
30565
|
+
eventsPerPage: z52.string().optional(),
|
|
30566
|
+
paginationMode: z52.enum(["loadMore", "seeAllLink"]).optional(),
|
|
30567
|
+
seeAllUrl: z52.string().optional(),
|
|
30568
|
+
loadMoreText: z52.string().optional(),
|
|
30543
30569
|
startOfWeek: weekStartSchema.optional(),
|
|
30544
30570
|
calendarTabViews: calendarTabViewsSchema.optional(),
|
|
30545
|
-
|
|
30571
|
+
defaultCalendarView: eventCalendarDefaultViewSchema.optional(),
|
|
30572
|
+
showFilters: z52.boolean().nullable().optional(),
|
|
30546
30573
|
showCategoryFilter: filterAutoShowSchema.optional(),
|
|
30547
|
-
showVenueFilter:
|
|
30548
|
-
showStaffFilter:
|
|
30574
|
+
showVenueFilter: z52.boolean().nullable().optional(),
|
|
30575
|
+
showStaffFilter: z52.boolean().nullable().optional(),
|
|
30549
30576
|
kind: eventBlockKindSchema2.nullable().optional(),
|
|
30550
30577
|
eventSurface: eventSurfaceScopeSchema2.nullable().optional(),
|
|
30551
|
-
filterEventPresets:
|
|
30578
|
+
filterEventPresets: z52.union([z52.string(), z52.array(z52.string())]).nullable().optional(),
|
|
30552
30579
|
scheduleScope: eventScheduleScopeSchema3.nullable().optional(),
|
|
30553
|
-
filterCategoryIds:
|
|
30554
|
-
filterStaffMemberId:
|
|
30555
|
-
filterVenueId:
|
|
30580
|
+
filterCategoryIds: z52.union([z52.string(), z52.array(z52.string())]).nullable().optional(),
|
|
30581
|
+
filterStaffMemberId: z52.string().nullable().optional(),
|
|
30582
|
+
filterVenueId: z52.string().nullable().optional(),
|
|
30556
30583
|
buttonVariant: eventButtonVariantSchema.optional(),
|
|
30557
|
-
buttonText:
|
|
30558
|
-
showVenue:
|
|
30559
|
-
showMap:
|
|
30560
|
-
showCapacity:
|
|
30561
|
-
emptyMessage:
|
|
30562
|
-
className:
|
|
30584
|
+
buttonText: z52.string().optional(),
|
|
30585
|
+
showVenue: z52.boolean().nullable().optional(),
|
|
30586
|
+
showMap: z52.boolean().nullable().optional(),
|
|
30587
|
+
showCapacity: z52.boolean().nullable().optional(),
|
|
30588
|
+
emptyMessage: z52.string().optional(),
|
|
30589
|
+
className: z52.string().optional()
|
|
30563
30590
|
}
|
|
30564
30591
|
);
|
|
30565
|
-
var eventCalendarDisplaySchema =
|
|
30566
|
-
kind:
|
|
30592
|
+
var eventCalendarDisplaySchema = z52.object({
|
|
30593
|
+
kind: z52.literal("event-calendar"),
|
|
30567
30594
|
displayMode: eventCalendarDisplayModeSchema,
|
|
30568
|
-
className:
|
|
30569
|
-
events:
|
|
30595
|
+
className: z52.string().nullable(),
|
|
30596
|
+
events: z52.array(publicEventSchema),
|
|
30570
30597
|
listLayout: eventLayoutSchema,
|
|
30571
30598
|
listColumns: columnOptionSchema,
|
|
30572
30599
|
eventsPerPage: eventPageSizeSchema,
|
|
30573
30600
|
paginationAction: eventListPaginationActionSchema,
|
|
30574
30601
|
startOfWeek: weekStartSchema,
|
|
30575
30602
|
calendarTabViews: calendarTabViewsSchema,
|
|
30576
|
-
|
|
30603
|
+
defaultCalendarView: eventCalendarDefaultViewSchema,
|
|
30604
|
+
showFilters: z52.boolean(),
|
|
30577
30605
|
showCategoryFilter: filterAutoShowSchema,
|
|
30578
|
-
showVenueFilter:
|
|
30579
|
-
showStaffFilter:
|
|
30606
|
+
showVenueFilter: z52.boolean(),
|
|
30607
|
+
showStaffFilter: z52.boolean(),
|
|
30580
30608
|
eventKind: eventBlockKindSchema2,
|
|
30581
30609
|
eventSurface: eventSurfaceScopeSchema2,
|
|
30582
|
-
filterEventPresets:
|
|
30610
|
+
filterEventPresets: z52.string().nullable(),
|
|
30583
30611
|
scheduleScope: eventScheduleScopeSchema3,
|
|
30584
|
-
filterCategoryIds:
|
|
30585
|
-
filterStaffMemberId:
|
|
30586
|
-
filterVenueId:
|
|
30612
|
+
filterCategoryIds: z52.string().nullable(),
|
|
30613
|
+
filterStaffMemberId: z52.string().nullable(),
|
|
30614
|
+
filterVenueId: z52.string().nullable(),
|
|
30587
30615
|
buttonVariant: eventButtonVariantSchema,
|
|
30588
|
-
buttonText:
|
|
30589
|
-
showVenue:
|
|
30590
|
-
showMap:
|
|
30591
|
-
showCapacity:
|
|
30592
|
-
emptyMessage:
|
|
30593
|
-
});
|
|
30594
|
-
var eventCalendarHydrationSchema =
|
|
30595
|
-
siteId:
|
|
30616
|
+
buttonText: z52.string(),
|
|
30617
|
+
showVenue: z52.boolean(),
|
|
30618
|
+
showMap: z52.boolean(),
|
|
30619
|
+
showCapacity: z52.boolean(),
|
|
30620
|
+
emptyMessage: z52.string()
|
|
30621
|
+
});
|
|
30622
|
+
var eventCalendarHydrationSchema = z52.object({
|
|
30623
|
+
siteId: z52.string(),
|
|
30596
30624
|
stage: previewStageSchema.optional(),
|
|
30597
|
-
prefetchedEvents:
|
|
30625
|
+
prefetchedEvents: z52.boolean(),
|
|
30598
30626
|
eventKind: eventBlockKindSchema2,
|
|
30599
30627
|
eventSurface: eventSurfaceScopeSchema2,
|
|
30600
|
-
filterEventPresets:
|
|
30628
|
+
filterEventPresets: z52.string().nullable(),
|
|
30601
30629
|
scheduleScope: eventScheduleScopeSchema3
|
|
30602
30630
|
});
|
|
30603
|
-
var eventCalendarRenderSchema =
|
|
30631
|
+
var eventCalendarRenderSchema = z52.object({
|
|
30604
30632
|
display: eventCalendarDisplaySchema,
|
|
30605
30633
|
hydration: eventCalendarHydrationSchema
|
|
30606
30634
|
});
|
|
30607
30635
|
var eventCalendarIslandMetaCodec = createZodCodec(
|
|
30608
|
-
|
|
30609
|
-
siteId:
|
|
30610
|
-
apiBaseUrl:
|
|
30636
|
+
z52.object({
|
|
30637
|
+
siteId: z52.string(),
|
|
30638
|
+
apiBaseUrl: z52.string().optional(),
|
|
30611
30639
|
stage: previewStageSchema.optional()
|
|
30612
30640
|
})
|
|
30613
30641
|
);
|
|
@@ -30637,6 +30665,7 @@ function buildEventCalendarDisplay(source) {
|
|
|
30637
30665
|
}),
|
|
30638
30666
|
startOfWeek: source.startOfWeek ?? "monday",
|
|
30639
30667
|
calendarTabViews: source.calendarTabViews ?? "both",
|
|
30668
|
+
defaultCalendarView: source.defaultCalendarView ?? "month",
|
|
30640
30669
|
showFilters: source.showFilters ?? true,
|
|
30641
30670
|
showCategoryFilter: source.showCategoryFilter ?? "auto",
|
|
30642
30671
|
showVenueFilter: source.showVenueFilter ?? false,
|
|
@@ -30699,6 +30728,9 @@ function normalizeEventCalendarContent(content) {
|
|
|
30699
30728
|
...variant ? { variant } : {},
|
|
30700
30729
|
displayMode: normalizeEventCalendarDisplayMode(record.displayMode),
|
|
30701
30730
|
listLayout: normalizeEventCalendarListLayout(record.listLayout),
|
|
30731
|
+
defaultCalendarView: normalizeEventCalendarDefaultView(
|
|
30732
|
+
record.defaultCalendarView
|
|
30733
|
+
),
|
|
30702
30734
|
kind,
|
|
30703
30735
|
eventSurface: normalizeEventSurfaceScope(record.eventSurface),
|
|
30704
30736
|
filterEventPresets: normalizeEventSurfacePresets(record.filterEventPresets),
|
|
@@ -30716,6 +30748,9 @@ function normalizeEventCalendarDisplayMode(value) {
|
|
|
30716
30748
|
function normalizeEventCalendarListLayout(value) {
|
|
30717
30749
|
return isEventCalendarListLayout(value) ? value : void 0;
|
|
30718
30750
|
}
|
|
30751
|
+
function normalizeEventCalendarDefaultView(value) {
|
|
30752
|
+
return isEventCalendarDefaultView(value) ? value : void 0;
|
|
30753
|
+
}
|
|
30719
30754
|
var eventCalendarLayout = [
|
|
30720
30755
|
styledSection({
|
|
30721
30756
|
children: sectionContainer(
|
|
@@ -30775,6 +30810,9 @@ var eventCalendarLayout = [
|
|
|
30775
30810
|
calendarTabViews: {
|
|
30776
30811
|
$bind: { from: "content.calendarTabViews", fallback: "both" }
|
|
30777
30812
|
},
|
|
30813
|
+
defaultCalendarView: {
|
|
30814
|
+
$bind: { from: "content.defaultCalendarView", fallback: "month" }
|
|
30815
|
+
},
|
|
30778
30816
|
// Filtering options
|
|
30779
30817
|
showFilters: {
|
|
30780
30818
|
$bind: { from: "content.showFilters", fallback: true }
|
|
@@ -30841,8 +30879,7 @@ var eventCalendarAdditionalFields = [
|
|
|
30841
30879
|
defaultValue: "combined",
|
|
30842
30880
|
options: [
|
|
30843
30881
|
{ value: "combined", label: "Combined (List + Calendar tabs)" },
|
|
30844
|
-
{ value: "
|
|
30845
|
-
{ value: "week", label: "Week agenda" },
|
|
30882
|
+
{ value: "calendar", label: "Calendar" },
|
|
30846
30883
|
{ value: "timetable", label: "Timetable" },
|
|
30847
30884
|
{ value: "list", label: "List" }
|
|
30848
30885
|
],
|
|
@@ -30881,7 +30918,12 @@ var eventCalendarAdditionalFields = [
|
|
|
30881
30918
|
],
|
|
30882
30919
|
ui: {
|
|
30883
30920
|
intent: "display",
|
|
30884
|
-
visibleWhen: {
|
|
30921
|
+
visibleWhen: {
|
|
30922
|
+
allOf: [
|
|
30923
|
+
{ field: "variant", oneOf: ["combined", "list"] },
|
|
30924
|
+
{ field: "listLayout", equals: "grid" }
|
|
30925
|
+
]
|
|
30926
|
+
}
|
|
30885
30927
|
}
|
|
30886
30928
|
},
|
|
30887
30929
|
{
|
|
@@ -30929,7 +30971,12 @@ var eventCalendarAdditionalFields = [
|
|
|
30929
30971
|
required: false,
|
|
30930
30972
|
ui: {
|
|
30931
30973
|
intent: "display",
|
|
30932
|
-
visibleWhen: {
|
|
30974
|
+
visibleWhen: {
|
|
30975
|
+
allOf: [
|
|
30976
|
+
{ field: "variant", oneOf: ["combined", "list"] },
|
|
30977
|
+
{ field: "paginationMode", equals: "seeAllLink" }
|
|
30978
|
+
]
|
|
30979
|
+
}
|
|
30933
30980
|
}
|
|
30934
30981
|
},
|
|
30935
30982
|
{
|
|
@@ -30962,7 +31009,7 @@ var eventCalendarAdditionalFields = [
|
|
|
30962
31009
|
intent: "display",
|
|
30963
31010
|
visibleWhen: {
|
|
30964
31011
|
field: "variant",
|
|
30965
|
-
oneOf: ["combined", "
|
|
31012
|
+
oneOf: ["combined", "calendar", "timetable"]
|
|
30966
31013
|
}
|
|
30967
31014
|
}
|
|
30968
31015
|
},
|
|
@@ -30985,6 +31032,33 @@ var eventCalendarAdditionalFields = [
|
|
|
30985
31032
|
visibleWhen: { field: "variant", equals: "combined" }
|
|
30986
31033
|
}
|
|
30987
31034
|
},
|
|
31035
|
+
{
|
|
31036
|
+
id: "defaultCalendarView",
|
|
31037
|
+
type: "select",
|
|
31038
|
+
label: "Calendar view",
|
|
31039
|
+
description: "Choose the standalone calendar view, or the first view in combined mode",
|
|
31040
|
+
required: false,
|
|
31041
|
+
multiple: false,
|
|
31042
|
+
defaultValue: "month",
|
|
31043
|
+
options: [
|
|
31044
|
+
{ value: "month", label: "Month" },
|
|
31045
|
+
{ value: "week", label: "Week" }
|
|
31046
|
+
],
|
|
31047
|
+
ui: {
|
|
31048
|
+
intent: "display",
|
|
31049
|
+
visibleWhen: {
|
|
31050
|
+
anyOf: [
|
|
31051
|
+
{ field: "variant", equals: "calendar" },
|
|
31052
|
+
{
|
|
31053
|
+
allOf: [
|
|
31054
|
+
{ field: "variant", equals: "combined" },
|
|
31055
|
+
{ field: "calendarTabViews", equals: "both" }
|
|
31056
|
+
]
|
|
31057
|
+
}
|
|
31058
|
+
]
|
|
31059
|
+
}
|
|
31060
|
+
}
|
|
31061
|
+
},
|
|
30988
31062
|
// Filtering options
|
|
30989
31063
|
{
|
|
30990
31064
|
id: "kind",
|
|
@@ -31012,7 +31086,7 @@ var eventCalendarAdditionalFields = [
|
|
|
31012
31086
|
intent: "display",
|
|
31013
31087
|
visibleWhen: {
|
|
31014
31088
|
field: "variant",
|
|
31015
|
-
oneOf: ["combined", "list", "timetable"]
|
|
31089
|
+
oneOf: ["combined", "calendar", "list", "timetable"]
|
|
31016
31090
|
}
|
|
31017
31091
|
}
|
|
31018
31092
|
},
|
|
@@ -31032,8 +31106,10 @@ var eventCalendarAdditionalFields = [
|
|
|
31032
31106
|
ui: {
|
|
31033
31107
|
intent: "display",
|
|
31034
31108
|
visibleWhen: {
|
|
31035
|
-
|
|
31036
|
-
|
|
31109
|
+
allOf: [
|
|
31110
|
+
{ field: "variant", oneOf: ["combined", "calendar", "list", "timetable"] },
|
|
31111
|
+
{ field: "showFilters", equals: true }
|
|
31112
|
+
]
|
|
31037
31113
|
}
|
|
31038
31114
|
}
|
|
31039
31115
|
},
|
|
@@ -31047,8 +31123,10 @@ var eventCalendarAdditionalFields = [
|
|
|
31047
31123
|
ui: {
|
|
31048
31124
|
intent: "display",
|
|
31049
31125
|
visibleWhen: {
|
|
31050
|
-
|
|
31051
|
-
|
|
31126
|
+
allOf: [
|
|
31127
|
+
{ field: "variant", oneOf: ["combined", "calendar", "list", "timetable"] },
|
|
31128
|
+
{ field: "showFilters", equals: true }
|
|
31129
|
+
]
|
|
31052
31130
|
}
|
|
31053
31131
|
}
|
|
31054
31132
|
},
|
|
@@ -31062,8 +31140,10 @@ var eventCalendarAdditionalFields = [
|
|
|
31062
31140
|
ui: {
|
|
31063
31141
|
intent: "display",
|
|
31064
31142
|
visibleWhen: {
|
|
31065
|
-
|
|
31066
|
-
|
|
31143
|
+
allOf: [
|
|
31144
|
+
{ field: "variant", oneOf: ["combined", "calendar", "list", "timetable"] },
|
|
31145
|
+
{ field: "showFilters", equals: true }
|
|
31146
|
+
]
|
|
31067
31147
|
}
|
|
31068
31148
|
}
|
|
31069
31149
|
},
|
|
@@ -31077,8 +31157,15 @@ var eventCalendarAdditionalFields = [
|
|
|
31077
31157
|
ui: {
|
|
31078
31158
|
intent: "display",
|
|
31079
31159
|
visibleWhen: {
|
|
31080
|
-
|
|
31081
|
-
|
|
31160
|
+
anyOf: [
|
|
31161
|
+
{ field: "variant", oneOf: ["combined", "list", "timetable"] },
|
|
31162
|
+
{
|
|
31163
|
+
allOf: [
|
|
31164
|
+
{ field: "variant", equals: "calendar" },
|
|
31165
|
+
{ field: "defaultCalendarView", equals: "week" }
|
|
31166
|
+
]
|
|
31167
|
+
}
|
|
31168
|
+
]
|
|
31082
31169
|
}
|
|
31083
31170
|
}
|
|
31084
31171
|
},
|
|
@@ -31194,8 +31281,7 @@ var eventCalendarAdditionalFields = [
|
|
|
31194
31281
|
];
|
|
31195
31282
|
var eventCalendarVariants = {
|
|
31196
31283
|
combined: eventCalendarLayout[0],
|
|
31197
|
-
|
|
31198
|
-
week: eventCalendarLayout[0],
|
|
31284
|
+
calendar: eventCalendarLayout[0],
|
|
31199
31285
|
timetable: eventCalendarLayout[0],
|
|
31200
31286
|
list: eventCalendarLayout[0]
|
|
31201
31287
|
};
|
|
@@ -31207,8 +31293,7 @@ var eventCalendarDerivedFields = [
|
|
|
31207
31293
|
multiple: false,
|
|
31208
31294
|
options: [
|
|
31209
31295
|
{ value: "combined" },
|
|
31210
|
-
{ value: "
|
|
31211
|
-
{ value: "week" },
|
|
31296
|
+
{ value: "calendar" },
|
|
31212
31297
|
{ value: "timetable" },
|
|
31213
31298
|
{ value: "list" }
|
|
31214
31299
|
]
|
|
@@ -31221,6 +31306,13 @@ var eventCalendarDerivedFields = [
|
|
|
31221
31306
|
options: eventCalendarListLayoutOptions.map((option) => ({
|
|
31222
31307
|
value: option.id
|
|
31223
31308
|
}))
|
|
31309
|
+
},
|
|
31310
|
+
{
|
|
31311
|
+
id: "defaultCalendarView",
|
|
31312
|
+
type: "select",
|
|
31313
|
+
required: false,
|
|
31314
|
+
multiple: false,
|
|
31315
|
+
options: [{ value: "month" }, { value: "week" }]
|
|
31224
31316
|
}
|
|
31225
31317
|
];
|
|
31226
31318
|
var eventCalendarContentShape = {
|
|
@@ -31269,8 +31361,7 @@ var eventCalendarConfig = {
|
|
|
31269
31361
|
defaultVariant: "combined",
|
|
31270
31362
|
variantOptions: {
|
|
31271
31363
|
combined: { label: "Combined" },
|
|
31272
|
-
|
|
31273
|
-
week: { label: "Week" },
|
|
31364
|
+
calendar: { label: "Calendar" },
|
|
31274
31365
|
timetable: { label: "Timetable" },
|
|
31275
31366
|
list: { label: "List" }
|
|
31276
31367
|
}
|
|
@@ -31316,7 +31407,7 @@ var eventCalendarBlockDefinition = {
|
|
|
31316
31407
|
};
|
|
31317
31408
|
|
|
31318
31409
|
// ../blocks/src/system/blocks/offerings-preview/index.ts
|
|
31319
|
-
import { z as
|
|
31410
|
+
import { z as z53 } from "zod";
|
|
31320
31411
|
|
|
31321
31412
|
// ../blocks/src/system/blocks/offerings-preview/model.ts
|
|
31322
31413
|
var OFFERINGS_PREVIEW_DEFAULT_ITEM_LIMIT = "3";
|
|
@@ -31408,13 +31499,13 @@ function isRecord5(value) {
|
|
|
31408
31499
|
}
|
|
31409
31500
|
|
|
31410
31501
|
// ../blocks/src/system/blocks/offerings-preview/index.ts
|
|
31411
|
-
var publicRouteCandidatesSchema =
|
|
31412
|
-
routes:
|
|
31413
|
-
entityId:
|
|
31414
|
-
path:
|
|
31415
|
-
title:
|
|
31416
|
-
kind:
|
|
31417
|
-
contentTypeKey:
|
|
31502
|
+
var publicRouteCandidatesSchema = z53.object({
|
|
31503
|
+
routes: z53.array(z53.object({
|
|
31504
|
+
entityId: z53.string(),
|
|
31505
|
+
path: z53.string(),
|
|
31506
|
+
title: z53.string(),
|
|
31507
|
+
kind: z53.enum(["page", "content"]),
|
|
31508
|
+
contentTypeKey: z53.string().nullable().optional()
|
|
31418
31509
|
}))
|
|
31419
31510
|
});
|
|
31420
31511
|
var groupOverrideFields = [
|
|
@@ -31812,7 +31903,7 @@ function isRecord6(value) {
|
|
|
31812
31903
|
}
|
|
31813
31904
|
|
|
31814
31905
|
// ../blocks/src/system/blocks/embed.ts
|
|
31815
|
-
import { z as
|
|
31906
|
+
import { z as z54 } from "zod";
|
|
31816
31907
|
var embedFields = [
|
|
31817
31908
|
// Section heading
|
|
31818
31909
|
parseFieldDefinition({
|
|
@@ -32043,18 +32134,18 @@ var embedManifest = createBlockManifest({
|
|
|
32043
32134
|
spacing: "lg"
|
|
32044
32135
|
}
|
|
32045
32136
|
});
|
|
32046
|
-
var embedEntrySchema =
|
|
32047
|
-
id:
|
|
32048
|
-
identifier:
|
|
32049
|
-
title:
|
|
32050
|
-
slug:
|
|
32051
|
-
content:
|
|
32052
|
-
publishedAt:
|
|
32137
|
+
var embedEntrySchema = z54.object({
|
|
32138
|
+
id: z54.string(),
|
|
32139
|
+
identifier: z54.string(),
|
|
32140
|
+
title: z54.string(),
|
|
32141
|
+
slug: z54.string().nullable().optional(),
|
|
32142
|
+
content: z54.record(z54.string(), z54.unknown()).optional(),
|
|
32143
|
+
publishedAt: z54.string().nullable().optional()
|
|
32053
32144
|
});
|
|
32054
32145
|
var embedBlockDefinition = {
|
|
32055
32146
|
manifest: embedManifest,
|
|
32056
32147
|
dataSchemas: {
|
|
32057
|
-
entries:
|
|
32148
|
+
entries: z54.array(embedEntrySchema).optional()
|
|
32058
32149
|
},
|
|
32059
32150
|
dataLoaders: {
|
|
32060
32151
|
entries: {
|
|
@@ -33237,53 +33328,50 @@ var fileDownloadBlockDefinition = {
|
|
|
33237
33328
|
manifest: fileDownloadManifest
|
|
33238
33329
|
};
|
|
33239
33330
|
|
|
33240
|
-
// ../blocks/src/system/blocks/shop.ts
|
|
33241
|
-
import { z as z59 } from "zod";
|
|
33242
|
-
|
|
33243
33331
|
// ../blocks/src/system/runtime/nodes/shop.interactive.ts
|
|
33244
|
-
import { z as
|
|
33332
|
+
import { z as z57 } from "zod";
|
|
33245
33333
|
|
|
33246
33334
|
// ../blocks/src/system/blocks/products/shared.ts
|
|
33247
|
-
import { z as
|
|
33248
|
-
var publicProductVariantSchema =
|
|
33249
|
-
id:
|
|
33250
|
-
title:
|
|
33251
|
-
sku:
|
|
33252
|
-
priceCents:
|
|
33253
|
-
stockQuantity:
|
|
33254
|
-
soldOut:
|
|
33255
|
-
});
|
|
33256
|
-
var publicProductSchema =
|
|
33257
|
-
id:
|
|
33258
|
-
contentEntryId:
|
|
33259
|
-
title:
|
|
33260
|
-
slug:
|
|
33261
|
-
path:
|
|
33262
|
-
status:
|
|
33263
|
-
priceCents:
|
|
33264
|
-
currency:
|
|
33265
|
-
productType:
|
|
33266
|
-
requiresShipping:
|
|
33267
|
-
hasVariants:
|
|
33268
|
-
trackInventory:
|
|
33269
|
-
soldOut:
|
|
33270
|
-
category:
|
|
33271
|
-
id:
|
|
33272
|
-
name:
|
|
33273
|
-
slug:
|
|
33335
|
+
import { z as z55 } from "zod";
|
|
33336
|
+
var publicProductVariantSchema = z55.object({
|
|
33337
|
+
id: z55.string(),
|
|
33338
|
+
title: z55.string(),
|
|
33339
|
+
sku: z55.string().nullable(),
|
|
33340
|
+
priceCents: z55.number(),
|
|
33341
|
+
stockQuantity: z55.number().nullable(),
|
|
33342
|
+
soldOut: z55.boolean()
|
|
33343
|
+
});
|
|
33344
|
+
var publicProductSchema = z55.object({
|
|
33345
|
+
id: z55.string(),
|
|
33346
|
+
contentEntryId: z55.string().nullable(),
|
|
33347
|
+
title: z55.string(),
|
|
33348
|
+
slug: z55.string(),
|
|
33349
|
+
path: z55.string().nullable(),
|
|
33350
|
+
status: z55.enum(["draft", "active"]),
|
|
33351
|
+
priceCents: z55.number(),
|
|
33352
|
+
currency: z55.string(),
|
|
33353
|
+
productType: z55.enum(["physical", "digital"]),
|
|
33354
|
+
requiresShipping: z55.boolean(),
|
|
33355
|
+
hasVariants: z55.boolean(),
|
|
33356
|
+
trackInventory: z55.boolean(),
|
|
33357
|
+
soldOut: z55.boolean(),
|
|
33358
|
+
category: z55.object({
|
|
33359
|
+
id: z55.string(),
|
|
33360
|
+
name: z55.string(),
|
|
33361
|
+
slug: z55.string()
|
|
33274
33362
|
}).nullable(),
|
|
33275
|
-
summary:
|
|
33276
|
-
body:
|
|
33277
|
-
gallery:
|
|
33278
|
-
|
|
33279
|
-
url:
|
|
33280
|
-
alt:
|
|
33363
|
+
summary: z55.string().nullable(),
|
|
33364
|
+
body: z55.unknown().nullable(),
|
|
33365
|
+
gallery: z55.array(
|
|
33366
|
+
z55.object({
|
|
33367
|
+
url: z55.string(),
|
|
33368
|
+
alt: z55.string().nullable()
|
|
33281
33369
|
})
|
|
33282
33370
|
),
|
|
33283
|
-
variants:
|
|
33371
|
+
variants: z55.array(publicProductVariantSchema)
|
|
33284
33372
|
});
|
|
33285
|
-
var publicProductsResponseSchema =
|
|
33286
|
-
products:
|
|
33373
|
+
var publicProductsResponseSchema = z55.object({
|
|
33374
|
+
products: z55.array(publicProductSchema)
|
|
33287
33375
|
});
|
|
33288
33376
|
|
|
33289
33377
|
// ../blocks/src/system/runtime/api/creditProducts.ts
|
|
@@ -33347,27 +33435,27 @@ function deriveCreditProductLabels(products, options = {}) {
|
|
|
33347
33435
|
}
|
|
33348
33436
|
|
|
33349
33437
|
// ../blocks/src/system/runtime/nodes/shop-commerce.shared.ts
|
|
33350
|
-
import { z as
|
|
33351
|
-
var storedProductCartItemSchema =
|
|
33352
|
-
kind:
|
|
33353
|
-
productId:
|
|
33354
|
-
productCategoryId:
|
|
33355
|
-
variantId:
|
|
33356
|
-
title:
|
|
33357
|
-
variantTitle:
|
|
33358
|
-
quantity:
|
|
33359
|
-
unitPriceCents:
|
|
33360
|
-
currency:
|
|
33361
|
-
imageUrl:
|
|
33362
|
-
soldOut:
|
|
33363
|
-
});
|
|
33364
|
-
var storedPassCartItemSchema =
|
|
33365
|
-
kind:
|
|
33366
|
-
passId:
|
|
33367
|
-
title:
|
|
33368
|
-
quantity:
|
|
33369
|
-
unitPriceCents:
|
|
33370
|
-
currency:
|
|
33438
|
+
import { z as z56 } from "zod";
|
|
33439
|
+
var storedProductCartItemSchema = z56.object({
|
|
33440
|
+
kind: z56.literal("product"),
|
|
33441
|
+
productId: z56.string().min(1),
|
|
33442
|
+
productCategoryId: z56.string().min(1).optional().nullable(),
|
|
33443
|
+
variantId: z56.string().min(1).optional().nullable(),
|
|
33444
|
+
title: z56.string().min(1),
|
|
33445
|
+
variantTitle: z56.string().optional().nullable(),
|
|
33446
|
+
quantity: z56.number().finite(),
|
|
33447
|
+
unitPriceCents: z56.number().finite(),
|
|
33448
|
+
currency: z56.string().min(1),
|
|
33449
|
+
imageUrl: z56.string().optional().nullable(),
|
|
33450
|
+
soldOut: z56.boolean().optional()
|
|
33451
|
+
});
|
|
33452
|
+
var storedPassCartItemSchema = z56.object({
|
|
33453
|
+
kind: z56.literal("pass"),
|
|
33454
|
+
passId: z56.string().min(1),
|
|
33455
|
+
title: z56.string().min(1),
|
|
33456
|
+
quantity: z56.number().finite().optional(),
|
|
33457
|
+
unitPriceCents: z56.number().finite(),
|
|
33458
|
+
currency: z56.string().min(1)
|
|
33371
33459
|
});
|
|
33372
33460
|
function deriveCommerceCheckoutState(state) {
|
|
33373
33461
|
if (state.items.length === 0) {
|
|
@@ -33601,214 +33689,214 @@ function formatValidity(days) {
|
|
|
33601
33689
|
}
|
|
33602
33690
|
|
|
33603
33691
|
// ../blocks/src/system/runtime/nodes/shop.interactive.ts
|
|
33604
|
-
var shopModeSchema =
|
|
33605
|
-
var contentEntrySchema3 =
|
|
33606
|
-
id:
|
|
33607
|
-
slug:
|
|
33692
|
+
var shopModeSchema = z57.enum(["passes-memberships", "product-list", "product-detail", "cart", "checkout"]);
|
|
33693
|
+
var contentEntrySchema3 = z57.object({
|
|
33694
|
+
id: z57.string().nullable().optional(),
|
|
33695
|
+
slug: z57.string().nullable().optional()
|
|
33608
33696
|
}).nullable();
|
|
33609
|
-
var shopSourceSchema =
|
|
33610
|
-
className:
|
|
33697
|
+
var shopSourceSchema = z57.object({
|
|
33698
|
+
className: z57.string().nullable().optional(),
|
|
33611
33699
|
mode: shopModeSchema.optional(),
|
|
33612
|
-
heading:
|
|
33613
|
-
productSlug:
|
|
33614
|
-
showPasses:
|
|
33615
|
-
showMemberships:
|
|
33616
|
-
layout:
|
|
33617
|
-
columns:
|
|
33618
|
-
showDescriptions:
|
|
33619
|
-
showSummary:
|
|
33620
|
-
showBody:
|
|
33621
|
-
showPrices:
|
|
33622
|
-
showValidityPeriod:
|
|
33623
|
-
showPricePerCredit:
|
|
33624
|
-
passesHeading:
|
|
33625
|
-
membershipsHeading:
|
|
33626
|
-
buyButtonText:
|
|
33627
|
-
addButtonText:
|
|
33628
|
-
passPurchaseMode:
|
|
33629
|
-
subscribeButtonText:
|
|
33630
|
-
emptyStateText:
|
|
33631
|
-
checkoutButtonText:
|
|
33632
|
-
clearButtonText:
|
|
33633
|
-
submitButtonText:
|
|
33700
|
+
heading: z57.string().nullable().optional(),
|
|
33701
|
+
productSlug: z57.string().nullable().optional(),
|
|
33702
|
+
showPasses: z57.boolean().optional(),
|
|
33703
|
+
showMemberships: z57.boolean().optional(),
|
|
33704
|
+
layout: z57.enum(["grid", "list"]).optional(),
|
|
33705
|
+
columns: z57.string().optional(),
|
|
33706
|
+
showDescriptions: z57.boolean().optional(),
|
|
33707
|
+
showSummary: z57.boolean().optional(),
|
|
33708
|
+
showBody: z57.boolean().optional(),
|
|
33709
|
+
showPrices: z57.boolean().optional(),
|
|
33710
|
+
showValidityPeriod: z57.boolean().optional(),
|
|
33711
|
+
showPricePerCredit: z57.boolean().nullable().optional(),
|
|
33712
|
+
passesHeading: z57.string().optional(),
|
|
33713
|
+
membershipsHeading: z57.string().optional(),
|
|
33714
|
+
buyButtonText: z57.string().optional(),
|
|
33715
|
+
addButtonText: z57.string().optional(),
|
|
33716
|
+
passPurchaseMode: z57.enum(["add_to_cart", "buy_now"]).optional(),
|
|
33717
|
+
subscribeButtonText: z57.string().optional(),
|
|
33718
|
+
emptyStateText: z57.string().optional(),
|
|
33719
|
+
checkoutButtonText: z57.string().optional(),
|
|
33720
|
+
clearButtonText: z57.string().optional(),
|
|
33721
|
+
submitButtonText: z57.string().optional(),
|
|
33634
33722
|
contentEntry: contentEntrySchema3.optional(),
|
|
33635
|
-
passes:
|
|
33636
|
-
memberships:
|
|
33637
|
-
products:
|
|
33638
|
-
siteId:
|
|
33639
|
-
apiBaseUrl:
|
|
33723
|
+
passes: z57.array(publicPassProductSchema).nullable().optional(),
|
|
33724
|
+
memberships: z57.array(publicMembershipProductSchema).nullable().optional(),
|
|
33725
|
+
products: z57.array(publicProductSchema).nullable().optional(),
|
|
33726
|
+
siteId: z57.string().optional(),
|
|
33727
|
+
apiBaseUrl: z57.string().optional(),
|
|
33640
33728
|
stage: previewStageSchema.optional()
|
|
33641
33729
|
});
|
|
33642
|
-
var productVariantOptionDisplaySchema =
|
|
33643
|
-
id:
|
|
33644
|
-
label:
|
|
33645
|
-
soldOut:
|
|
33646
|
-
});
|
|
33647
|
-
var productCardDisplaySchema =
|
|
33648
|
-
productId:
|
|
33649
|
-
title:
|
|
33650
|
-
path:
|
|
33651
|
-
summary:
|
|
33652
|
-
priceLabel:
|
|
33653
|
-
image:
|
|
33654
|
-
url:
|
|
33655
|
-
alt:
|
|
33730
|
+
var productVariantOptionDisplaySchema = z57.object({
|
|
33731
|
+
id: z57.string(),
|
|
33732
|
+
label: z57.string(),
|
|
33733
|
+
soldOut: z57.boolean()
|
|
33734
|
+
});
|
|
33735
|
+
var productCardDisplaySchema = z57.object({
|
|
33736
|
+
productId: z57.string(),
|
|
33737
|
+
title: z57.string(),
|
|
33738
|
+
path: z57.string().nullable(),
|
|
33739
|
+
summary: z57.string().nullable(),
|
|
33740
|
+
priceLabel: z57.string().nullable(),
|
|
33741
|
+
image: z57.object({
|
|
33742
|
+
url: z57.string(),
|
|
33743
|
+
alt: z57.string().nullable()
|
|
33656
33744
|
}).nullable(),
|
|
33657
|
-
variantOptions:
|
|
33658
|
-
selectedVariantId:
|
|
33659
|
-
selectionLabel:
|
|
33660
|
-
actionLabel:
|
|
33661
|
-
soldOut:
|
|
33662
|
-
});
|
|
33663
|
-
var productListDisplaySchema =
|
|
33664
|
-
kind:
|
|
33665
|
-
state:
|
|
33666
|
-
heading:
|
|
33667
|
-
className:
|
|
33668
|
-
layout:
|
|
33669
|
-
columns:
|
|
33670
|
-
emptyMessage:
|
|
33671
|
-
cards:
|
|
33672
|
-
});
|
|
33673
|
-
var productDetailDisplaySchema =
|
|
33674
|
-
|
|
33675
|
-
kind:
|
|
33676
|
-
state:
|
|
33677
|
-
heading:
|
|
33678
|
-
className:
|
|
33679
|
-
emptyMessage:
|
|
33745
|
+
variantOptions: z57.array(productVariantOptionDisplaySchema),
|
|
33746
|
+
selectedVariantId: z57.string().nullable(),
|
|
33747
|
+
selectionLabel: z57.string(),
|
|
33748
|
+
actionLabel: z57.string(),
|
|
33749
|
+
soldOut: z57.boolean()
|
|
33750
|
+
});
|
|
33751
|
+
var productListDisplaySchema = z57.object({
|
|
33752
|
+
kind: z57.literal("product-list"),
|
|
33753
|
+
state: z57.enum(["empty", "ready"]),
|
|
33754
|
+
heading: z57.string().nullable(),
|
|
33755
|
+
className: z57.string().nullable(),
|
|
33756
|
+
layout: z57.enum(["grid", "list"]),
|
|
33757
|
+
columns: z57.string(),
|
|
33758
|
+
emptyMessage: z57.string(),
|
|
33759
|
+
cards: z57.array(productCardDisplaySchema)
|
|
33760
|
+
});
|
|
33761
|
+
var productDetailDisplaySchema = z57.discriminatedUnion("state", [
|
|
33762
|
+
z57.object({
|
|
33763
|
+
kind: z57.literal("product-detail"),
|
|
33764
|
+
state: z57.literal("empty"),
|
|
33765
|
+
heading: z57.string().nullable(),
|
|
33766
|
+
className: z57.string().nullable(),
|
|
33767
|
+
emptyMessage: z57.string()
|
|
33680
33768
|
}),
|
|
33681
|
-
|
|
33682
|
-
kind:
|
|
33683
|
-
state:
|
|
33684
|
-
heading:
|
|
33685
|
-
className:
|
|
33686
|
-
title:
|
|
33687
|
-
priceLabel:
|
|
33688
|
-
summary:
|
|
33689
|
-
categoryLabel:
|
|
33690
|
-
gallery:
|
|
33691
|
-
url:
|
|
33692
|
-
alt:
|
|
33769
|
+
z57.object({
|
|
33770
|
+
kind: z57.literal("product-detail"),
|
|
33771
|
+
state: z57.literal("ready"),
|
|
33772
|
+
heading: z57.string().nullable(),
|
|
33773
|
+
className: z57.string().nullable(),
|
|
33774
|
+
title: z57.string(),
|
|
33775
|
+
priceLabel: z57.string(),
|
|
33776
|
+
summary: z57.string().nullable(),
|
|
33777
|
+
categoryLabel: z57.string().nullable(),
|
|
33778
|
+
gallery: z57.array(z57.object({
|
|
33779
|
+
url: z57.string(),
|
|
33780
|
+
alt: z57.string().nullable()
|
|
33693
33781
|
})),
|
|
33694
|
-
variantOptions:
|
|
33695
|
-
selectedVariantId:
|
|
33696
|
-
selectionLabel:
|
|
33697
|
-
actionLabel:
|
|
33698
|
-
soldOut:
|
|
33699
|
-
body:
|
|
33782
|
+
variantOptions: z57.array(productVariantOptionDisplaySchema),
|
|
33783
|
+
selectedVariantId: z57.string().nullable(),
|
|
33784
|
+
selectionLabel: z57.string(),
|
|
33785
|
+
actionLabel: z57.string(),
|
|
33786
|
+
soldOut: z57.boolean(),
|
|
33787
|
+
body: z57.unknown().nullable()
|
|
33700
33788
|
})
|
|
33701
33789
|
]);
|
|
33702
|
-
var passCardDisplaySchema =
|
|
33703
|
-
id:
|
|
33704
|
-
title:
|
|
33705
|
-
description:
|
|
33706
|
-
priceLabel:
|
|
33707
|
-
creditsLabel:
|
|
33708
|
-
perCreditLabel:
|
|
33709
|
-
validityLabel:
|
|
33710
|
-
actionLabel:
|
|
33711
|
-
});
|
|
33712
|
-
var membershipCardDisplaySchema =
|
|
33713
|
-
id:
|
|
33714
|
-
title:
|
|
33715
|
-
description:
|
|
33716
|
-
priceLabel:
|
|
33717
|
-
intervalLabel:
|
|
33718
|
-
actionLabel:
|
|
33719
|
-
});
|
|
33720
|
-
var passesMembershipsDisplaySchema =
|
|
33721
|
-
kind:
|
|
33722
|
-
state:
|
|
33723
|
-
className:
|
|
33724
|
-
layout:
|
|
33725
|
-
columns:
|
|
33726
|
-
emptyMessage:
|
|
33727
|
-
passesHeading:
|
|
33728
|
-
membershipsHeading:
|
|
33729
|
-
passes:
|
|
33730
|
-
memberships:
|
|
33731
|
-
});
|
|
33732
|
-
var cartLineDisplaySchema =
|
|
33733
|
-
key:
|
|
33734
|
-
title:
|
|
33735
|
-
priceLabel:
|
|
33736
|
-
quantity:
|
|
33737
|
-
quantityEditable:
|
|
33738
|
-
});
|
|
33739
|
-
var cartDisplaySchema =
|
|
33740
|
-
kind:
|
|
33741
|
-
state:
|
|
33742
|
-
heading:
|
|
33743
|
-
className:
|
|
33744
|
-
emptyMessage:
|
|
33745
|
-
supportText:
|
|
33746
|
-
items:
|
|
33747
|
-
subtotalLabel:
|
|
33748
|
-
checkoutButtonText:
|
|
33749
|
-
clearButtonText:
|
|
33750
|
-
});
|
|
33751
|
-
var checkoutDisplaySchema =
|
|
33752
|
-
kind:
|
|
33753
|
-
state:
|
|
33754
|
-
heading:
|
|
33755
|
-
className:
|
|
33756
|
-
message:
|
|
33757
|
-
submitButtonText:
|
|
33758
|
-
});
|
|
33759
|
-
var passesMembershipsHydrationSchema =
|
|
33760
|
-
passes:
|
|
33761
|
-
memberships:
|
|
33762
|
-
passPurchaseMode:
|
|
33763
|
-
});
|
|
33764
|
-
var productListHydrationSchema =
|
|
33765
|
-
products:
|
|
33766
|
-
showSummary:
|
|
33767
|
-
showPrices:
|
|
33768
|
-
addButtonText:
|
|
33769
|
-
});
|
|
33770
|
-
var productDetailHydrationSchema =
|
|
33771
|
-
products:
|
|
33772
|
-
productId:
|
|
33773
|
-
showSummary:
|
|
33774
|
-
showBody:
|
|
33775
|
-
addButtonText:
|
|
33776
|
-
});
|
|
33777
|
-
var cartHydrationSchema =
|
|
33778
|
-
emptyStateText:
|
|
33779
|
-
checkoutButtonText:
|
|
33780
|
-
clearButtonText:
|
|
33781
|
-
});
|
|
33782
|
-
var checkoutHydrationSchema =
|
|
33783
|
-
emptyStateText:
|
|
33784
|
-
submitButtonText:
|
|
33785
|
-
});
|
|
33786
|
-
var passesMembershipsRenderSchema =
|
|
33790
|
+
var passCardDisplaySchema = z57.object({
|
|
33791
|
+
id: z57.string(),
|
|
33792
|
+
title: z57.string(),
|
|
33793
|
+
description: z57.string().nullable(),
|
|
33794
|
+
priceLabel: z57.string(),
|
|
33795
|
+
creditsLabel: z57.string(),
|
|
33796
|
+
perCreditLabel: z57.string().nullable(),
|
|
33797
|
+
validityLabel: z57.string().nullable(),
|
|
33798
|
+
actionLabel: z57.string()
|
|
33799
|
+
});
|
|
33800
|
+
var membershipCardDisplaySchema = z57.object({
|
|
33801
|
+
id: z57.string(),
|
|
33802
|
+
title: z57.string(),
|
|
33803
|
+
description: z57.string().nullable(),
|
|
33804
|
+
priceLabel: z57.string(),
|
|
33805
|
+
intervalLabel: z57.string(),
|
|
33806
|
+
actionLabel: z57.string()
|
|
33807
|
+
});
|
|
33808
|
+
var passesMembershipsDisplaySchema = z57.object({
|
|
33809
|
+
kind: z57.literal("passes-memberships"),
|
|
33810
|
+
state: z57.enum(["empty", "ready"]),
|
|
33811
|
+
className: z57.string().nullable(),
|
|
33812
|
+
layout: z57.enum(["grid", "list"]),
|
|
33813
|
+
columns: z57.string(),
|
|
33814
|
+
emptyMessage: z57.string(),
|
|
33815
|
+
passesHeading: z57.string(),
|
|
33816
|
+
membershipsHeading: z57.string(),
|
|
33817
|
+
passes: z57.array(passCardDisplaySchema),
|
|
33818
|
+
memberships: z57.array(membershipCardDisplaySchema)
|
|
33819
|
+
});
|
|
33820
|
+
var cartLineDisplaySchema = z57.object({
|
|
33821
|
+
key: z57.string(),
|
|
33822
|
+
title: z57.string(),
|
|
33823
|
+
priceLabel: z57.string(),
|
|
33824
|
+
quantity: z57.number(),
|
|
33825
|
+
quantityEditable: z57.boolean()
|
|
33826
|
+
});
|
|
33827
|
+
var cartDisplaySchema = z57.object({
|
|
33828
|
+
kind: z57.literal("cart"),
|
|
33829
|
+
state: z57.enum(["empty", "ready"]),
|
|
33830
|
+
heading: z57.string().nullable(),
|
|
33831
|
+
className: z57.string().nullable(),
|
|
33832
|
+
emptyMessage: z57.string(),
|
|
33833
|
+
supportText: z57.string().nullable(),
|
|
33834
|
+
items: z57.array(cartLineDisplaySchema),
|
|
33835
|
+
subtotalLabel: z57.string().nullable(),
|
|
33836
|
+
checkoutButtonText: z57.string(),
|
|
33837
|
+
clearButtonText: z57.string()
|
|
33838
|
+
});
|
|
33839
|
+
var checkoutDisplaySchema = z57.object({
|
|
33840
|
+
kind: z57.literal("checkout"),
|
|
33841
|
+
state: z57.enum(["empty", "blocked", "ready"]),
|
|
33842
|
+
heading: z57.string().nullable(),
|
|
33843
|
+
className: z57.string().nullable(),
|
|
33844
|
+
message: z57.string().nullable(),
|
|
33845
|
+
submitButtonText: z57.string()
|
|
33846
|
+
});
|
|
33847
|
+
var passesMembershipsHydrationSchema = z57.object({
|
|
33848
|
+
passes: z57.array(publicPassProductSchema),
|
|
33849
|
+
memberships: z57.array(publicMembershipProductSchema),
|
|
33850
|
+
passPurchaseMode: z57.enum(["add_to_cart", "buy_now"])
|
|
33851
|
+
});
|
|
33852
|
+
var productListHydrationSchema = z57.object({
|
|
33853
|
+
products: z57.array(publicProductSchema),
|
|
33854
|
+
showSummary: z57.boolean(),
|
|
33855
|
+
showPrices: z57.boolean(),
|
|
33856
|
+
addButtonText: z57.string()
|
|
33857
|
+
});
|
|
33858
|
+
var productDetailHydrationSchema = z57.object({
|
|
33859
|
+
products: z57.array(publicProductSchema),
|
|
33860
|
+
productId: z57.string().nullable(),
|
|
33861
|
+
showSummary: z57.boolean(),
|
|
33862
|
+
showBody: z57.boolean(),
|
|
33863
|
+
addButtonText: z57.string()
|
|
33864
|
+
});
|
|
33865
|
+
var cartHydrationSchema = z57.object({
|
|
33866
|
+
emptyStateText: z57.string(),
|
|
33867
|
+
checkoutButtonText: z57.string(),
|
|
33868
|
+
clearButtonText: z57.string()
|
|
33869
|
+
});
|
|
33870
|
+
var checkoutHydrationSchema = z57.object({
|
|
33871
|
+
emptyStateText: z57.string(),
|
|
33872
|
+
submitButtonText: z57.string()
|
|
33873
|
+
});
|
|
33874
|
+
var passesMembershipsRenderSchema = z57.object({
|
|
33787
33875
|
display: passesMembershipsDisplaySchema,
|
|
33788
33876
|
hydration: passesMembershipsHydrationSchema
|
|
33789
33877
|
});
|
|
33790
|
-
var productListRenderSchema =
|
|
33878
|
+
var productListRenderSchema = z57.object({
|
|
33791
33879
|
display: productListDisplaySchema,
|
|
33792
33880
|
hydration: productListHydrationSchema
|
|
33793
33881
|
});
|
|
33794
|
-
var productDetailRenderSchema =
|
|
33882
|
+
var productDetailRenderSchema = z57.object({
|
|
33795
33883
|
display: productDetailDisplaySchema,
|
|
33796
33884
|
hydration: productDetailHydrationSchema
|
|
33797
33885
|
});
|
|
33798
|
-
var cartRenderSchema =
|
|
33886
|
+
var cartRenderSchema = z57.object({
|
|
33799
33887
|
display: cartDisplaySchema,
|
|
33800
33888
|
hydration: cartHydrationSchema
|
|
33801
33889
|
});
|
|
33802
|
-
var checkoutRenderSchema =
|
|
33890
|
+
var checkoutRenderSchema = z57.object({
|
|
33803
33891
|
display: checkoutDisplaySchema,
|
|
33804
33892
|
hydration: checkoutHydrationSchema
|
|
33805
33893
|
});
|
|
33806
33894
|
function resolveShowPricePerCredit(source) {
|
|
33807
33895
|
return source.showPricePerCredit ?? true;
|
|
33808
33896
|
}
|
|
33809
|
-
var shopIslandMetaCodec = createZodCodec(
|
|
33810
|
-
siteId:
|
|
33811
|
-
apiBaseUrl:
|
|
33897
|
+
var shopIslandMetaCodec = createZodCodec(z57.object({
|
|
33898
|
+
siteId: z57.string().optional(),
|
|
33899
|
+
apiBaseUrl: z57.string().optional(),
|
|
33812
33900
|
stage: previewStageSchema.optional()
|
|
33813
33901
|
}));
|
|
33814
33902
|
var shopIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl", "stage");
|
|
@@ -34186,9 +34274,9 @@ var shopBlockDefinition = {
|
|
|
34186
34274
|
runtime: shopBlockRuntime,
|
|
34187
34275
|
dataSchemas: {
|
|
34188
34276
|
// listPublicPasses returns { passes: [...] }
|
|
34189
|
-
passes:
|
|
34277
|
+
passes: publicPassProductCollectionSchema.optional(),
|
|
34190
34278
|
// listPublicMemberships returns { memberships: [...] }
|
|
34191
|
-
memberships:
|
|
34279
|
+
memberships: publicMembershipProductCollectionSchema.optional()
|
|
34192
34280
|
},
|
|
34193
34281
|
dataLoaders: {
|
|
34194
34282
|
// Load passes for display
|
|
@@ -34211,7 +34299,7 @@ var shopBlockDefinition = {
|
|
|
34211
34299
|
};
|
|
34212
34300
|
|
|
34213
34301
|
// ../blocks/src/system/blocks/product-list.ts
|
|
34214
|
-
import { z as
|
|
34302
|
+
import { z as z58 } from "zod";
|
|
34215
34303
|
var productListManifest = createBlockManifest({
|
|
34216
34304
|
id: "block.product-list",
|
|
34217
34305
|
version: "1.0.0",
|
|
@@ -34344,7 +34432,7 @@ var productListBlockDefinition = {
|
|
|
34344
34432
|
}
|
|
34345
34433
|
}
|
|
34346
34434
|
};
|
|
34347
|
-
var productListDataSchema =
|
|
34435
|
+
var productListDataSchema = z58.object({
|
|
34348
34436
|
products: publicProductsResponseSchema.optional()
|
|
34349
34437
|
});
|
|
34350
34438
|
|
|
@@ -34605,72 +34693,72 @@ var checkoutBlockDefinition = {
|
|
|
34605
34693
|
};
|
|
34606
34694
|
|
|
34607
34695
|
// ../blocks/src/system/runtime/nodes/gifting.interactive.ts
|
|
34608
|
-
import { z as
|
|
34609
|
-
var publicGiftCardOfferSchema =
|
|
34610
|
-
id:
|
|
34611
|
-
kind:
|
|
34612
|
-
title:
|
|
34613
|
-
description:
|
|
34614
|
-
sortOrder:
|
|
34615
|
-
giftCard:
|
|
34616
|
-
fixedDenominations:
|
|
34617
|
-
customAmountEnabled:
|
|
34618
|
-
customAmountMinCents:
|
|
34619
|
-
customAmountMaxCents:
|
|
34696
|
+
import { z as z59 } from "zod";
|
|
34697
|
+
var publicGiftCardOfferSchema = z59.object({
|
|
34698
|
+
id: z59.string(),
|
|
34699
|
+
kind: z59.literal("gift_card"),
|
|
34700
|
+
title: z59.string(),
|
|
34701
|
+
description: z59.string().nullable(),
|
|
34702
|
+
sortOrder: z59.number().int(),
|
|
34703
|
+
giftCard: z59.object({
|
|
34704
|
+
fixedDenominations: z59.array(z59.number().int().positive()),
|
|
34705
|
+
customAmountEnabled: z59.boolean(),
|
|
34706
|
+
customAmountMinCents: z59.number().int().positive(),
|
|
34707
|
+
customAmountMaxCents: z59.number().int().positive()
|
|
34620
34708
|
}),
|
|
34621
|
-
voucher:
|
|
34622
|
-
});
|
|
34623
|
-
var publicVoucherOfferSchema =
|
|
34624
|
-
id:
|
|
34625
|
-
kind:
|
|
34626
|
-
title:
|
|
34627
|
-
description:
|
|
34628
|
-
sortOrder:
|
|
34629
|
-
giftCard:
|
|
34630
|
-
voucher:
|
|
34631
|
-
purchaseAmountCents:
|
|
34709
|
+
voucher: z59.null()
|
|
34710
|
+
});
|
|
34711
|
+
var publicVoucherOfferSchema = z59.object({
|
|
34712
|
+
id: z59.string(),
|
|
34713
|
+
kind: z59.literal("voucher"),
|
|
34714
|
+
title: z59.string(),
|
|
34715
|
+
description: z59.string().nullable(),
|
|
34716
|
+
sortOrder: z59.number().int(),
|
|
34717
|
+
giftCard: z59.null(),
|
|
34718
|
+
voucher: z59.object({
|
|
34719
|
+
purchaseAmountCents: z59.number().int().positive()
|
|
34632
34720
|
})
|
|
34633
34721
|
});
|
|
34634
|
-
var publicGiftingOffersResponseSchema =
|
|
34635
|
-
currency:
|
|
34636
|
-
giftCards:
|
|
34637
|
-
vouchers:
|
|
34722
|
+
var publicGiftingOffersResponseSchema = z59.object({
|
|
34723
|
+
currency: z59.string(),
|
|
34724
|
+
giftCards: z59.array(publicGiftCardOfferSchema),
|
|
34725
|
+
vouchers: z59.array(publicVoucherOfferSchema)
|
|
34638
34726
|
});
|
|
34639
|
-
var giftingSourceSchema =
|
|
34640
|
-
siteId:
|
|
34641
|
-
apiBaseUrl:
|
|
34727
|
+
var giftingSourceSchema = z59.object({
|
|
34728
|
+
siteId: z59.string().optional(),
|
|
34729
|
+
apiBaseUrl: z59.string().optional(),
|
|
34642
34730
|
offers: publicGiftingOffersResponseSchema.nullable().optional(),
|
|
34643
|
-
className:
|
|
34644
|
-
heading:
|
|
34645
|
-
intro:
|
|
34646
|
-
giftCardsHeading:
|
|
34647
|
-
vouchersHeading:
|
|
34648
|
-
emptyStateText:
|
|
34649
|
-
checkoutButtonText:
|
|
34650
|
-
successMessage:
|
|
34651
|
-
});
|
|
34652
|
-
var giftingDisplaySchema =
|
|
34653
|
-
kind:
|
|
34654
|
-
state:
|
|
34655
|
-
className:
|
|
34656
|
-
heading:
|
|
34657
|
-
intro:
|
|
34658
|
-
giftCardsHeading:
|
|
34659
|
-
vouchersHeading:
|
|
34660
|
-
emptyStateText:
|
|
34661
|
-
});
|
|
34662
|
-
var giftingHydrationSchema =
|
|
34731
|
+
className: z59.string().nullable().optional(),
|
|
34732
|
+
heading: z59.string().nullable().optional(),
|
|
34733
|
+
intro: z59.string().nullable().optional(),
|
|
34734
|
+
giftCardsHeading: z59.string().nullable().optional(),
|
|
34735
|
+
vouchersHeading: z59.string().nullable().optional(),
|
|
34736
|
+
emptyStateText: z59.string().nullable().optional(),
|
|
34737
|
+
checkoutButtonText: z59.string().nullable().optional(),
|
|
34738
|
+
successMessage: z59.string().nullable().optional()
|
|
34739
|
+
});
|
|
34740
|
+
var giftingDisplaySchema = z59.object({
|
|
34741
|
+
kind: z59.literal("gifting"),
|
|
34742
|
+
state: z59.literal("ready"),
|
|
34743
|
+
className: z59.string().nullable(),
|
|
34744
|
+
heading: z59.string(),
|
|
34745
|
+
intro: z59.string().nullable(),
|
|
34746
|
+
giftCardsHeading: z59.string(),
|
|
34747
|
+
vouchersHeading: z59.string(),
|
|
34748
|
+
emptyStateText: z59.string()
|
|
34749
|
+
});
|
|
34750
|
+
var giftingHydrationSchema = z59.object({
|
|
34663
34751
|
offers: publicGiftingOffersResponseSchema.nullable(),
|
|
34664
|
-
checkoutButtonText:
|
|
34665
|
-
successMessage:
|
|
34752
|
+
checkoutButtonText: z59.string(),
|
|
34753
|
+
successMessage: z59.string()
|
|
34666
34754
|
});
|
|
34667
|
-
var giftingRenderSchema =
|
|
34755
|
+
var giftingRenderSchema = z59.object({
|
|
34668
34756
|
display: giftingDisplaySchema,
|
|
34669
34757
|
hydration: giftingHydrationSchema
|
|
34670
34758
|
});
|
|
34671
|
-
var giftingIslandMetaCodec = createZodCodec(
|
|
34672
|
-
siteId:
|
|
34673
|
-
apiBaseUrl:
|
|
34759
|
+
var giftingIslandMetaCodec = createZodCodec(z59.object({
|
|
34760
|
+
siteId: z59.string().optional(),
|
|
34761
|
+
apiBaseUrl: z59.string().optional()
|
|
34674
34762
|
}));
|
|
34675
34763
|
var giftingIslandMetaKeys = defineInteractiveIslandMetaKeys(
|
|
34676
34764
|
"siteId",
|
|
@@ -34841,7 +34929,7 @@ var giftingBlockDefinition = {
|
|
|
34841
34929
|
};
|
|
34842
34930
|
|
|
34843
34931
|
// ../blocks/src/system/runtime/nodes/newsletter-form.interactive.ts
|
|
34844
|
-
import { z as
|
|
34932
|
+
import { z as z60 } from "zod";
|
|
34845
34933
|
|
|
34846
34934
|
// ../blocks/src/system/blocks/newsletter-signup-destination.ts
|
|
34847
34935
|
function parseNewsletterSignupBlockId(value) {
|
|
@@ -34948,65 +35036,65 @@ function withOptionalPhone(fields3, includePhone) {
|
|
|
34948
35036
|
}
|
|
34949
35037
|
|
|
34950
35038
|
// ../blocks/src/system/runtime/nodes/newsletter-form.interactive.ts
|
|
34951
|
-
var newsletterPresetSchema =
|
|
34952
|
-
var newsletterDestinationProviderSchema =
|
|
34953
|
-
var newsletterFieldSchema =
|
|
34954
|
-
id:
|
|
34955
|
-
type:
|
|
34956
|
-
label:
|
|
34957
|
-
required:
|
|
34958
|
-
placeholder:
|
|
34959
|
-
});
|
|
34960
|
-
var newsletterSignupBlockIdSchema =
|
|
34961
|
-
var signedNewsletterDestinationRefSchema =
|
|
34962
|
-
var newsletterPublicDestinationRefSchema =
|
|
34963
|
-
|
|
34964
|
-
tag:
|
|
35039
|
+
var newsletterPresetSchema = z60.enum(["emailOnly", "emailName", "emailFirstLast", "emailNameCompany"]);
|
|
35040
|
+
var newsletterDestinationProviderSchema = z60.enum(["riverbank", "mailchimp"]);
|
|
35041
|
+
var newsletterFieldSchema = z60.object({
|
|
35042
|
+
id: z60.string(),
|
|
35043
|
+
type: z60.enum(["email", "text"]),
|
|
35044
|
+
label: z60.string(),
|
|
35045
|
+
required: z60.boolean(),
|
|
35046
|
+
placeholder: z60.string().optional()
|
|
35047
|
+
});
|
|
35048
|
+
var newsletterSignupBlockIdSchema = z60.string().trim().min(1).transform(parseRequiredNewsletterSignupBlockId);
|
|
35049
|
+
var signedNewsletterDestinationRefSchema = z60.string().trim().min(1).transform(parseRequiredSignedNewsletterDestinationRef);
|
|
35050
|
+
var newsletterPublicDestinationRefSchema = z60.discriminatedUnion("tag", [
|
|
35051
|
+
z60.object({
|
|
35052
|
+
tag: z60.literal("block_ref"),
|
|
34965
35053
|
blockId: newsletterSignupBlockIdSchema
|
|
34966
35054
|
}),
|
|
34967
|
-
|
|
34968
|
-
tag:
|
|
35055
|
+
z60.object({
|
|
35056
|
+
tag: z60.literal("signed_destination_ref"),
|
|
34969
35057
|
token: signedNewsletterDestinationRefSchema
|
|
34970
35058
|
})
|
|
34971
35059
|
]);
|
|
34972
|
-
var newsletterSourceSchema =
|
|
34973
|
-
blockId:
|
|
34974
|
-
siteId:
|
|
34975
|
-
apiBaseUrl:
|
|
34976
|
-
listId:
|
|
35060
|
+
var newsletterSourceSchema = z60.object({
|
|
35061
|
+
blockId: z60.string().nullable().optional(),
|
|
35062
|
+
siteId: z60.string().optional(),
|
|
35063
|
+
apiBaseUrl: z60.string().optional(),
|
|
35064
|
+
listId: z60.string().nullable().optional(),
|
|
34977
35065
|
destinationProvider: newsletterDestinationProviderSchema.nullable().optional(),
|
|
34978
35066
|
preset: newsletterPresetSchema.optional(),
|
|
34979
|
-
includePhone:
|
|
34980
|
-
buttonLabel:
|
|
34981
|
-
successMessage:
|
|
34982
|
-
privacyNote:
|
|
34983
|
-
tags:
|
|
34984
|
-
spamProtectionEnabled:
|
|
34985
|
-
className:
|
|
34986
|
-
});
|
|
34987
|
-
var newsletterDisplaySchema =
|
|
34988
|
-
kind:
|
|
34989
|
-
className:
|
|
34990
|
-
buttonLabel:
|
|
34991
|
-
successMessage:
|
|
34992
|
-
privacyNote:
|
|
34993
|
-
fields:
|
|
34994
|
-
});
|
|
34995
|
-
var newsletterHydrationSchema =
|
|
35067
|
+
includePhone: z60.boolean().optional(),
|
|
35068
|
+
buttonLabel: z60.string().nullable().optional(),
|
|
35069
|
+
successMessage: z60.string().nullable().optional(),
|
|
35070
|
+
privacyNote: z60.string().nullable().optional(),
|
|
35071
|
+
tags: z60.string().nullable().optional(),
|
|
35072
|
+
spamProtectionEnabled: z60.boolean().optional(),
|
|
35073
|
+
className: z60.string().nullable().optional()
|
|
35074
|
+
});
|
|
35075
|
+
var newsletterDisplaySchema = z60.object({
|
|
35076
|
+
kind: z60.literal("newsletter-form"),
|
|
35077
|
+
className: z60.string().nullable(),
|
|
35078
|
+
buttonLabel: z60.string(),
|
|
35079
|
+
successMessage: z60.string().nullable(),
|
|
35080
|
+
privacyNote: z60.string().nullable(),
|
|
35081
|
+
fields: z60.array(newsletterFieldSchema)
|
|
35082
|
+
});
|
|
35083
|
+
var newsletterHydrationSchema = z60.object({
|
|
34996
35084
|
destinationRef: newsletterPublicDestinationRefSchema.nullable().optional(),
|
|
34997
|
-
listId:
|
|
35085
|
+
listId: z60.string().nullable().optional(),
|
|
34998
35086
|
preset: newsletterPresetSchema,
|
|
34999
|
-
includePhone:
|
|
35000
|
-
tags:
|
|
35001
|
-
spamProtectionEnabled:
|
|
35087
|
+
includePhone: z60.boolean(),
|
|
35088
|
+
tags: z60.string().nullable().optional(),
|
|
35089
|
+
spamProtectionEnabled: z60.boolean().optional()
|
|
35002
35090
|
});
|
|
35003
|
-
var newsletterRenderSchema =
|
|
35091
|
+
var newsletterRenderSchema = z60.object({
|
|
35004
35092
|
display: newsletterDisplaySchema,
|
|
35005
35093
|
hydration: newsletterHydrationSchema
|
|
35006
35094
|
});
|
|
35007
|
-
var newsletterIslandMetaCodec = createZodCodec(
|
|
35008
|
-
siteId:
|
|
35009
|
-
apiBaseUrl:
|
|
35095
|
+
var newsletterIslandMetaCodec = createZodCodec(z60.object({
|
|
35096
|
+
siteId: z60.string().optional(),
|
|
35097
|
+
apiBaseUrl: z60.string().optional()
|
|
35010
35098
|
}));
|
|
35011
35099
|
var newsletterIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl");
|
|
35012
35100
|
function buildNewsletterDisplay(source) {
|
|
@@ -35145,23 +35233,23 @@ var newsletterSignupBlockDefinition = {
|
|
|
35145
35233
|
};
|
|
35146
35234
|
|
|
35147
35235
|
// ../blocks/src/system/blocks/team-members.ts
|
|
35148
|
-
import { z as
|
|
35236
|
+
import { z as z61 } from "zod";
|
|
35149
35237
|
var ITEM_NAME2 = "member";
|
|
35150
35238
|
var teamMemberPhotoSchema = mediaSchema2.refine((media2) => media2.type === "image", {
|
|
35151
35239
|
message: "Team member photos must be image media"
|
|
35152
35240
|
}).nullable();
|
|
35153
|
-
var teamMemberDataSchema =
|
|
35154
|
-
_type:
|
|
35155
|
-
id:
|
|
35156
|
-
name:
|
|
35157
|
-
role:
|
|
35158
|
-
roleLabel:
|
|
35159
|
-
bio:
|
|
35160
|
-
summary:
|
|
35241
|
+
var teamMemberDataSchema = z61.object({
|
|
35242
|
+
_type: z61.literal("teamMember"),
|
|
35243
|
+
id: z61.string(),
|
|
35244
|
+
name: z61.string(),
|
|
35245
|
+
role: z61.string().nullable(),
|
|
35246
|
+
roleLabel: z61.string().nullable(),
|
|
35247
|
+
bio: z61.string().nullable(),
|
|
35248
|
+
summary: z61.string().nullable(),
|
|
35161
35249
|
photo: teamMemberPhotoSchema,
|
|
35162
|
-
profilePath:
|
|
35250
|
+
profilePath: z61.string().nullable()
|
|
35163
35251
|
});
|
|
35164
|
-
var teamMembersDataSchema =
|
|
35252
|
+
var teamMembersDataSchema = z61.array(teamMemberDataSchema);
|
|
35165
35253
|
var dynamicSourceWhen = { equals: "site_staff" };
|
|
35166
35254
|
var manualSourceWhen = { equals: "site_staff", not: true };
|
|
35167
35255
|
var headingNode = text(
|
|
@@ -36053,13 +36141,6 @@ var systemBlockDefinitionsRaw = [
|
|
|
36053
36141
|
weight: "featured",
|
|
36054
36142
|
bias: "clear",
|
|
36055
36143
|
surfaces: heroSectionSurfaces
|
|
36056
|
-
}),
|
|
36057
|
-
layoutProfile({
|
|
36058
|
-
variantKey: "splitEditorial",
|
|
36059
|
-
family: "split",
|
|
36060
|
-
weight: "featured",
|
|
36061
|
-
bias: "clear",
|
|
36062
|
-
surfaces: heroSectionSurfaces
|
|
36063
36144
|
})
|
|
36064
36145
|
]
|
|
36065
36146
|
})),
|
|
@@ -36303,9 +36384,8 @@ var systemBlockDefinitionsRaw = [
|
|
|
36303
36384
|
flow: offeringsFlow,
|
|
36304
36385
|
layoutProfiles: [
|
|
36305
36386
|
layoutProfile({ variantKey: "combined", family: "grid", weight: "standard" }),
|
|
36387
|
+
layoutProfile({ variantKey: "calendar", family: "stack", weight: "standard" }),
|
|
36306
36388
|
layoutProfile({ variantKey: "list", family: "stack", weight: "standard" }),
|
|
36307
|
-
layoutProfile({ variantKey: "month", family: "grid", weight: "standard" }),
|
|
36308
|
-
layoutProfile({ variantKey: "week", family: "stack", weight: "standard" }),
|
|
36309
36389
|
layoutProfile({ variantKey: "timetable", family: "stack", weight: "standard" })
|
|
36310
36390
|
]
|
|
36311
36391
|
})),
|
|
@@ -36868,10 +36948,7 @@ function normalizeRenderStage(stage) {
|
|
|
36868
36948
|
return stage === "preview" ? "preview" : "published";
|
|
36869
36949
|
}
|
|
36870
36950
|
function isRouteVisibleInStage(routeEntry, stageInput) {
|
|
36871
|
-
|
|
36872
|
-
if (stage === "preview" || !isRouteRecord(routeEntry)) {
|
|
36873
|
-
return true;
|
|
36874
|
-
}
|
|
36951
|
+
if (normalizeRenderStage(stageInput) === "preview" || !isRouteRecord(routeEntry)) return true;
|
|
36875
36952
|
const status = routeEntry.status;
|
|
36876
36953
|
return !(typeof status === "string" && status !== "published");
|
|
36877
36954
|
}
|
|
@@ -36880,52 +36957,45 @@ function extractRouteHref(candidate, stageInput = "published") {
|
|
|
36880
36957
|
const trimmed = candidate.trim();
|
|
36881
36958
|
return trimmed.length > 0 ? trimmed : null;
|
|
36882
36959
|
}
|
|
36883
|
-
if (!isRouteRecord(candidate))
|
|
36884
|
-
|
|
36885
|
-
|
|
36886
|
-
|
|
36887
|
-
|
|
36960
|
+
if (!isRouteRecord(candidate)) return null;
|
|
36961
|
+
const fields3 = normalizeRenderStage(stageInput) === "preview" ? [
|
|
36962
|
+
"draftPath",
|
|
36963
|
+
"path",
|
|
36964
|
+
"href",
|
|
36965
|
+
"url"
|
|
36966
|
+
] : [
|
|
36967
|
+
"path",
|
|
36968
|
+
"href",
|
|
36969
|
+
"url"
|
|
36970
|
+
];
|
|
36888
36971
|
for (const field of fields3) {
|
|
36889
36972
|
const value = candidate[field];
|
|
36890
|
-
if (typeof value === "string" && value.trim().length > 0)
|
|
36891
|
-
return value.trim();
|
|
36892
|
-
}
|
|
36973
|
+
if (typeof value === "string" && value.trim().length > 0) return value.trim();
|
|
36893
36974
|
}
|
|
36894
36975
|
return null;
|
|
36895
36976
|
}
|
|
36896
36977
|
function extractRouteUpdatedAt(candidate) {
|
|
36897
|
-
if (!isRouteRecord(candidate))
|
|
36898
|
-
|
|
36899
|
-
}
|
|
36900
|
-
const fields3 = [
|
|
36978
|
+
if (!isRouteRecord(candidate)) return null;
|
|
36979
|
+
for (const field of [
|
|
36901
36980
|
"updatedAt",
|
|
36902
36981
|
"updated_at",
|
|
36903
36982
|
"publishedAt",
|
|
36904
36983
|
"published_at",
|
|
36905
36984
|
"modifiedAt",
|
|
36906
36985
|
"modified_at"
|
|
36907
|
-
]
|
|
36908
|
-
for (const field of fields3) {
|
|
36986
|
+
]) {
|
|
36909
36987
|
const value = candidate[field];
|
|
36910
|
-
if (typeof value === "string" && value.length > 0)
|
|
36911
|
-
return value;
|
|
36912
|
-
}
|
|
36988
|
+
if (typeof value === "string" && value.length > 0) return value;
|
|
36913
36989
|
}
|
|
36914
36990
|
return null;
|
|
36915
36991
|
}
|
|
36916
36992
|
function resolveRouteTargetForStage(routeIdValue, routes, stageInput) {
|
|
36917
36993
|
const routeId = typeof routeIdValue === "string" ? routeIdValue : null;
|
|
36918
|
-
if (!routeId || !routes)
|
|
36919
|
-
return null;
|
|
36920
|
-
}
|
|
36994
|
+
if (!routeId || !routes) return null;
|
|
36921
36995
|
const routeEntry = routes[routeId];
|
|
36922
|
-
if (!isRouteVisibleInStage(routeEntry, stageInput))
|
|
36923
|
-
return null;
|
|
36924
|
-
}
|
|
36996
|
+
if (!isRouteVisibleInStage(routeEntry, stageInput)) return null;
|
|
36925
36997
|
const href = extractRouteHref(routeEntry, stageInput);
|
|
36926
|
-
if (!href)
|
|
36927
|
-
return null;
|
|
36928
|
-
}
|
|
36998
|
+
if (!href) return null;
|
|
36929
36999
|
return {
|
|
36930
37000
|
routeId,
|
|
36931
37001
|
href,
|
|
@@ -37961,42 +38031,45 @@ import { jsx as jsx5 } from "react/jsx-runtime";
|
|
|
37961
38031
|
import * as React from "react";
|
|
37962
38032
|
import { Fragment, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
37963
38033
|
|
|
38034
|
+
// ../theme-core/src/ResponsiveScope.tsx
|
|
38035
|
+
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
38036
|
+
|
|
37964
38037
|
// ../theme-core/src/fonts/uploadFormat.ts
|
|
37965
38038
|
var MAX_FONT_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
37966
38039
|
|
|
37967
38040
|
// ../theme-core/src/runtime/buildThemeRuntimeFromBridge.ts
|
|
37968
|
-
import { z as
|
|
37969
|
-
var themeBridgeConfigSchema =
|
|
37970
|
-
tokens:
|
|
37971
|
-
typography:
|
|
37972
|
-
headingFamily:
|
|
37973
|
-
bodyFamily:
|
|
37974
|
-
headingWeight:
|
|
37975
|
-
bodyWeight:
|
|
38041
|
+
import { z as z62 } from "zod";
|
|
38042
|
+
var themeBridgeConfigSchema = z62.object({
|
|
38043
|
+
tokens: z62.record(z62.string(), z62.string()),
|
|
38044
|
+
typography: z62.object({
|
|
38045
|
+
headingFamily: z62.string().optional(),
|
|
38046
|
+
bodyFamily: z62.string().optional(),
|
|
38047
|
+
headingWeight: z62.number().optional(),
|
|
38048
|
+
bodyWeight: z62.number().optional()
|
|
37976
38049
|
}).optional(),
|
|
37977
|
-
spacing:
|
|
37978
|
-
corners:
|
|
37979
|
-
shadows:
|
|
37980
|
-
components:
|
|
37981
|
-
buttons:
|
|
37982
|
-
|
|
37983
|
-
|
|
37984
|
-
variants:
|
|
38050
|
+
spacing: z62.enum(["comfortable", "standard", "dense"]).optional(),
|
|
38051
|
+
corners: z62.enum(["square", "soft", "rounded", "pill"]).optional(),
|
|
38052
|
+
shadows: z62.enum(["none", "low", "medium", "high"]).optional(),
|
|
38053
|
+
components: z62.object({
|
|
38054
|
+
buttons: z62.union([
|
|
38055
|
+
z62.boolean(),
|
|
38056
|
+
z62.object({
|
|
38057
|
+
variants: z62.array(z62.enum(["primary", "secondary", "outline", "ghost"])).optional()
|
|
37985
38058
|
})
|
|
37986
38059
|
]).optional(),
|
|
37987
|
-
cards:
|
|
37988
|
-
|
|
37989
|
-
|
|
37990
|
-
variants:
|
|
38060
|
+
cards: z62.union([
|
|
38061
|
+
z62.boolean(),
|
|
38062
|
+
z62.object({
|
|
38063
|
+
variants: z62.array(z62.enum(["default", "elevated", "outlined"])).optional()
|
|
37991
38064
|
})
|
|
37992
38065
|
]).optional(),
|
|
37993
|
-
inputs:
|
|
38066
|
+
inputs: z62.boolean().optional()
|
|
37994
38067
|
}).optional(),
|
|
37995
|
-
overrides:
|
|
38068
|
+
overrides: z62.record(z62.string(), z62.string()).optional()
|
|
37996
38069
|
}).passthrough();
|
|
37997
38070
|
|
|
37998
38071
|
// ../theme-core/src/siteChrome.tsx
|
|
37999
|
-
import { Fragment as Fragment2, jsx as
|
|
38072
|
+
import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
38000
38073
|
|
|
38001
38074
|
// ../blocks/src/system/runtime/bindings.ts
|
|
38002
38075
|
var shouldLogWarnings = isNonProductionEnv();
|
|
@@ -38361,17 +38434,17 @@ function normalizeLoaderParams(endpoint, params, context) {
|
|
|
38361
38434
|
function unsafeRetypeZodSchema(schema) {
|
|
38362
38435
|
return schema;
|
|
38363
38436
|
}
|
|
38364
|
-
var navIdListSchema =
|
|
38437
|
+
var navIdListSchema = z63.preprocess((value) => {
|
|
38365
38438
|
if (!Array.isArray(value)) return void 0;
|
|
38366
38439
|
const filtered = value.filter((v) => typeof v === "string" && v.trim().length > 0);
|
|
38367
38440
|
return filtered.length > 0 ? filtered : void 0;
|
|
38368
|
-
},
|
|
38369
|
-
var dashboardNavVisibilityBaseSchema =
|
|
38370
|
-
mode:
|
|
38441
|
+
}, z63.array(z63.string()).max(200).optional());
|
|
38442
|
+
var dashboardNavVisibilityBaseSchema = z63.object({
|
|
38443
|
+
mode: z63.enum(["augment", "restrict"]).optional(),
|
|
38371
38444
|
allowIds: navIdListSchema,
|
|
38372
38445
|
denyIds: navIdListSchema
|
|
38373
38446
|
}).strip();
|
|
38374
|
-
var dashboardNavVisibilityRolesSchema =
|
|
38447
|
+
var dashboardNavVisibilityRolesSchema = z63.object({
|
|
38375
38448
|
administrator: dashboardNavVisibilityBaseSchema.optional(),
|
|
38376
38449
|
editor: dashboardNavVisibilityBaseSchema.optional(),
|
|
38377
38450
|
team_member: dashboardNavVisibilityBaseSchema.optional()
|
|
@@ -38379,63 +38452,63 @@ var dashboardNavVisibilityRolesSchema = z65.object({
|
|
|
38379
38452
|
var dashboardNavVisibilitySchema = dashboardNavVisibilityBaseSchema.extend({
|
|
38380
38453
|
roles: dashboardNavVisibilityRolesSchema
|
|
38381
38454
|
}).strip();
|
|
38382
|
-
var dashboardNavigationConfigSchema =
|
|
38455
|
+
var dashboardNavigationConfigSchema = z63.object({
|
|
38383
38456
|
siteNav: dashboardNavVisibilitySchema.optional(),
|
|
38384
38457
|
settingsNav: dashboardNavVisibilitySchema.optional()
|
|
38385
38458
|
}).strip();
|
|
38386
|
-
var dashboardConfigSchema =
|
|
38387
|
-
previewEditingEnabled:
|
|
38459
|
+
var dashboardConfigSchema = z63.object({
|
|
38460
|
+
previewEditingEnabled: z63.boolean().optional(),
|
|
38388
38461
|
navigation: dashboardNavigationConfigSchema.optional()
|
|
38389
38462
|
}).strip();
|
|
38390
38463
|
var fieldDefinitionInputSchema = unsafeRetypeZodSchema(fieldSchema);
|
|
38391
38464
|
var nodeDefinitionSchema = unsafeRetypeZodSchema(NodeSchema);
|
|
38392
|
-
var sdkLoaderEndpointSchema =
|
|
38393
|
-
var loaderFallbackScalarSchema =
|
|
38394
|
-
|
|
38395
|
-
|
|
38396
|
-
|
|
38397
|
-
|
|
38465
|
+
var sdkLoaderEndpointSchema = z63.enum(SUPPORTED_LOADER_ENDPOINTS);
|
|
38466
|
+
var loaderFallbackScalarSchema = z63.union([
|
|
38467
|
+
z63.string(),
|
|
38468
|
+
z63.number(),
|
|
38469
|
+
z63.boolean(),
|
|
38470
|
+
z63.null()
|
|
38398
38471
|
]);
|
|
38399
|
-
var loaderParamBindingSchema =
|
|
38400
|
-
$bind:
|
|
38401
|
-
from:
|
|
38472
|
+
var loaderParamBindingSchema = z63.object({
|
|
38473
|
+
$bind: z63.object({
|
|
38474
|
+
from: z63.string().min(1, "Binding path is required"),
|
|
38402
38475
|
fallback: loaderFallbackScalarSchema.optional()
|
|
38403
38476
|
})
|
|
38404
38477
|
});
|
|
38405
|
-
var loaderParamValueSchema =
|
|
38406
|
-
|
|
38407
|
-
|
|
38408
|
-
|
|
38478
|
+
var loaderParamValueSchema = z63.union([
|
|
38479
|
+
z63.string(),
|
|
38480
|
+
z63.number(),
|
|
38481
|
+
z63.boolean(),
|
|
38409
38482
|
loaderParamBindingSchema
|
|
38410
38483
|
]);
|
|
38411
|
-
var sdkConfigLoaderSchema =
|
|
38484
|
+
var sdkConfigLoaderSchema = z63.object({
|
|
38412
38485
|
endpoint: sdkLoaderEndpointSchema,
|
|
38413
|
-
params:
|
|
38414
|
-
mode:
|
|
38486
|
+
params: z63.record(z63.string(), loaderParamValueSchema),
|
|
38487
|
+
mode: z63.enum(["server", "client"]).default("server")
|
|
38415
38488
|
});
|
|
38416
|
-
var sdkDataLoadersSchema =
|
|
38417
|
-
var sdkCustomBlockIdSchema =
|
|
38489
|
+
var sdkDataLoadersSchema = z63.record(z63.string(), sdkConfigLoaderSchema).refine((loaders) => Object.keys(loaders).length <= 5, { message: "Maximum 5 data loaders per block" }).optional();
|
|
38490
|
+
var sdkCustomBlockIdSchema = z63.string().min(8).regex(/^custom\.[a-z][a-z0-9-]*$/, {
|
|
38418
38491
|
message: "Block ID must start with 'custom.' followed by lowercase letters, numbers, or hyphens"
|
|
38419
38492
|
}).transform((value) => value);
|
|
38420
|
-
var sdkCustomBlockInputSchema =
|
|
38493
|
+
var sdkCustomBlockInputSchema = z63.object({
|
|
38421
38494
|
id: sdkCustomBlockIdSchema,
|
|
38422
|
-
title:
|
|
38423
|
-
titleSource:
|
|
38424
|
-
description:
|
|
38495
|
+
title: z63.string().min(1),
|
|
38496
|
+
titleSource: z63.union([z63.string().min(1), z63.array(z63.string().min(1)).min(1)]).optional(),
|
|
38497
|
+
description: z63.string().optional(),
|
|
38425
38498
|
category: blockCategoryEnum,
|
|
38426
|
-
icon:
|
|
38427
|
-
tags:
|
|
38499
|
+
icon: z63.string().optional(),
|
|
38500
|
+
tags: z63.array(z63.string()).optional(),
|
|
38428
38501
|
fields: fieldDefinitionInputSchema.array().min(1),
|
|
38429
38502
|
dataLoaders: sdkDataLoadersSchema,
|
|
38430
38503
|
layout: NodeSchema.optional(),
|
|
38431
|
-
variants:
|
|
38432
|
-
defaultVariant:
|
|
38433
|
-
variantOptions:
|
|
38434
|
-
|
|
38435
|
-
|
|
38436
|
-
label:
|
|
38437
|
-
description:
|
|
38438
|
-
icon:
|
|
38504
|
+
variants: z63.record(z63.string().min(1), NodeSchema).optional(),
|
|
38505
|
+
defaultVariant: z63.string().min(1).optional(),
|
|
38506
|
+
variantOptions: z63.record(
|
|
38507
|
+
z63.string().min(1),
|
|
38508
|
+
z63.object({
|
|
38509
|
+
label: z63.string().min(1).optional(),
|
|
38510
|
+
description: z63.string().min(1).optional(),
|
|
38511
|
+
icon: z63.string().min(1).optional()
|
|
38439
38512
|
})
|
|
38440
38513
|
).optional(),
|
|
38441
38514
|
previewCustomize: previewCustomizeManifestCurationSchema.optional()
|
|
@@ -38446,7 +38519,7 @@ var sdkCustomBlockInputSchema = z65.object({
|
|
|
38446
38519
|
const exists = data.fields.some((field) => field.id === source);
|
|
38447
38520
|
if (!exists) {
|
|
38448
38521
|
ctx.addIssue({
|
|
38449
|
-
code:
|
|
38522
|
+
code: z63.ZodIssueCode.custom,
|
|
38450
38523
|
message: `titleSource must reference a valid field ID (got "${source}")`,
|
|
38451
38524
|
path: Array.isArray(data.titleSource) ? ["titleSource", index] : ["titleSource"]
|
|
38452
38525
|
});
|
|
@@ -38455,7 +38528,7 @@ var sdkCustomBlockInputSchema = z65.object({
|
|
|
38455
38528
|
}
|
|
38456
38529
|
if (data.layout && data.variants) {
|
|
38457
38530
|
ctx.addIssue({
|
|
38458
|
-
code:
|
|
38531
|
+
code: z63.ZodIssueCode.custom,
|
|
38459
38532
|
message: "Custom block must define either `layout` or `variants`, not both",
|
|
38460
38533
|
path: ["variants"]
|
|
38461
38534
|
});
|
|
@@ -38464,14 +38537,14 @@ var sdkCustomBlockInputSchema = z65.object({
|
|
|
38464
38537
|
const keys = Object.keys(data.variants);
|
|
38465
38538
|
if (keys.length === 0) {
|
|
38466
38539
|
ctx.addIssue({
|
|
38467
|
-
code:
|
|
38540
|
+
code: z63.ZodIssueCode.custom,
|
|
38468
38541
|
message: "`variants` must contain at least one variant key",
|
|
38469
38542
|
path: ["variants"]
|
|
38470
38543
|
});
|
|
38471
38544
|
}
|
|
38472
38545
|
if (data.defaultVariant && !Object.prototype.hasOwnProperty.call(data.variants, data.defaultVariant)) {
|
|
38473
38546
|
ctx.addIssue({
|
|
38474
|
-
code:
|
|
38547
|
+
code: z63.ZodIssueCode.custom,
|
|
38475
38548
|
message: "`defaultVariant` must be a key present in `variants`",
|
|
38476
38549
|
path: ["defaultVariant"]
|
|
38477
38550
|
});
|
|
@@ -38480,7 +38553,7 @@ var sdkCustomBlockInputSchema = z65.object({
|
|
|
38480
38553
|
for (const key of Object.keys(data.variantOptions)) {
|
|
38481
38554
|
if (!Object.prototype.hasOwnProperty.call(data.variants, key)) {
|
|
38482
38555
|
ctx.addIssue({
|
|
38483
|
-
code:
|
|
38556
|
+
code: z63.ZodIssueCode.custom,
|
|
38484
38557
|
message: "`variantOptions` key must exist in `variants`",
|
|
38485
38558
|
path: ["variantOptions", key]
|
|
38486
38559
|
});
|
|
@@ -38489,78 +38562,78 @@ var sdkCustomBlockInputSchema = z65.object({
|
|
|
38489
38562
|
}
|
|
38490
38563
|
}
|
|
38491
38564
|
});
|
|
38492
|
-
var sdkBlockFieldExtensionInputSchema =
|
|
38565
|
+
var sdkBlockFieldExtensionInputSchema = z63.object({
|
|
38493
38566
|
fields: fieldDefinitionInputSchema.array().min(1)
|
|
38494
38567
|
});
|
|
38495
|
-
var sdkBlockFieldExtensionsInputSchema =
|
|
38496
|
-
|
|
38568
|
+
var sdkBlockFieldExtensionsInputSchema = z63.record(
|
|
38569
|
+
z63.string().min(1),
|
|
38497
38570
|
sdkBlockFieldExtensionInputSchema
|
|
38498
38571
|
);
|
|
38499
|
-
var sdkThemePaletteSchema =
|
|
38500
|
-
var sdkThemeConfigSchema =
|
|
38572
|
+
var sdkThemePaletteSchema = z63.record(z63.string(), z63.string());
|
|
38573
|
+
var sdkThemeConfigSchema = z63.object({
|
|
38501
38574
|
palette: sdkThemePaletteSchema
|
|
38502
38575
|
});
|
|
38503
|
-
var sdkSectionBackgroundSchema =
|
|
38504
|
-
id:
|
|
38505
|
-
label:
|
|
38506
|
-
token:
|
|
38576
|
+
var sdkSectionBackgroundSchema = z63.object({
|
|
38577
|
+
id: z63.string().min(1),
|
|
38578
|
+
label: z63.string().min(1),
|
|
38579
|
+
token: z63.string().min(1)
|
|
38507
38580
|
});
|
|
38508
|
-
var sdkSectionOptionsConfigSchema =
|
|
38509
|
-
backgroundColor:
|
|
38510
|
-
backgroundImage:
|
|
38511
|
-
backgroundGradient:
|
|
38512
|
-
spacing:
|
|
38513
|
-
textColor:
|
|
38581
|
+
var sdkSectionOptionsConfigSchema = z63.object({
|
|
38582
|
+
backgroundColor: z63.boolean().optional(),
|
|
38583
|
+
backgroundImage: z63.boolean().optional(),
|
|
38584
|
+
backgroundGradient: z63.boolean().optional(),
|
|
38585
|
+
spacing: z63.union([z63.array(z63.enum(["compact", "default", "spacious"])), z63.boolean()]).optional(),
|
|
38586
|
+
textColor: z63.boolean().optional()
|
|
38514
38587
|
});
|
|
38515
|
-
var sdkContainerOptionsConfigSchema =
|
|
38516
|
-
maxWidth:
|
|
38517
|
-
alignment:
|
|
38588
|
+
var sdkContainerOptionsConfigSchema = z63.object({
|
|
38589
|
+
maxWidth: z63.union([z63.array(z63.enum(["narrow", "default", "wide", "full"])), z63.boolean()]).optional(),
|
|
38590
|
+
alignment: z63.union([z63.array(z63.enum(["left", "center", "right"])), z63.boolean()]).optional()
|
|
38518
38591
|
});
|
|
38519
|
-
var sdkSiteStyleConfigSchema =
|
|
38520
|
-
sectionBackgrounds:
|
|
38592
|
+
var sdkSiteStyleConfigSchema = z63.object({
|
|
38593
|
+
sectionBackgrounds: z63.array(sdkSectionBackgroundSchema).optional(),
|
|
38521
38594
|
sectionOptions: sdkSectionOptionsConfigSchema.optional(),
|
|
38522
38595
|
containerOptions: sdkContainerOptionsConfigSchema.optional()
|
|
38523
38596
|
});
|
|
38524
|
-
var sdkSiteLayoutConfigSchema =
|
|
38525
|
-
footerBlocks:
|
|
38526
|
-
|
|
38527
|
-
id:
|
|
38528
|
-
kind:
|
|
38529
|
-
content:
|
|
38597
|
+
var sdkSiteLayoutConfigSchema = z63.object({
|
|
38598
|
+
footerBlocks: z63.array(
|
|
38599
|
+
z63.object({
|
|
38600
|
+
id: z63.string().min(1).optional(),
|
|
38601
|
+
kind: z63.string().min(1),
|
|
38602
|
+
content: z63.record(z63.string(), z63.unknown()).optional()
|
|
38530
38603
|
})
|
|
38531
38604
|
).optional()
|
|
38532
38605
|
});
|
|
38533
|
-
var sdkFieldSelectOptionSchema =
|
|
38534
|
-
value:
|
|
38535
|
-
label:
|
|
38606
|
+
var sdkFieldSelectOptionSchema = z63.object({
|
|
38607
|
+
value: z63.string(),
|
|
38608
|
+
label: z63.string()
|
|
38536
38609
|
});
|
|
38537
|
-
var sdkBlockFieldConfigSchema =
|
|
38538
|
-
options:
|
|
38610
|
+
var sdkBlockFieldConfigSchema = z63.object({
|
|
38611
|
+
options: z63.array(sdkFieldSelectOptionSchema).optional()
|
|
38539
38612
|
});
|
|
38540
|
-
var sdkBlockFieldOptionsMapSchema =
|
|
38541
|
-
|
|
38613
|
+
var sdkBlockFieldOptionsMapSchema = z63.record(
|
|
38614
|
+
z63.string().regex(/^(block\.|custom\.)[a-z][a-z0-9-]*$/, {
|
|
38542
38615
|
message: "Block ID must be 'block.*' or 'custom.*' format"
|
|
38543
38616
|
}),
|
|
38544
|
-
|
|
38617
|
+
z63.record(z63.string().min(1), sdkBlockFieldConfigSchema)
|
|
38545
38618
|
).optional();
|
|
38546
|
-
var sdkContentTypeTemplateConfigSchema =
|
|
38547
|
-
blocks:
|
|
38619
|
+
var sdkContentTypeTemplateConfigSchema = z63.object({
|
|
38620
|
+
blocks: z63.array(z63.unknown())
|
|
38548
38621
|
}).passthrough();
|
|
38549
|
-
var sdkContentTypeOrderingConfigSchema =
|
|
38550
|
-
mode:
|
|
38622
|
+
var sdkContentTypeOrderingConfigSchema = z63.object({
|
|
38623
|
+
mode: z63.enum(["default", "manual"]).optional()
|
|
38551
38624
|
}).optional();
|
|
38552
|
-
var sdkContentTypeConfigSchema =
|
|
38553
|
-
key:
|
|
38554
|
-
fields:
|
|
38625
|
+
var sdkContentTypeConfigSchema = z63.object({
|
|
38626
|
+
key: z63.string().min(1),
|
|
38627
|
+
fields: z63.array(z63.unknown()),
|
|
38555
38628
|
ordering: sdkContentTypeOrderingConfigSchema,
|
|
38556
38629
|
template: sdkContentTypeTemplateConfigSchema.nullable().optional()
|
|
38557
38630
|
}).passthrough();
|
|
38558
|
-
var sdkContentConfigSchema =
|
|
38559
|
-
contentTypes:
|
|
38560
|
-
pages:
|
|
38561
|
-
entries:
|
|
38562
|
-
navigationMenus:
|
|
38563
|
-
settings:
|
|
38631
|
+
var sdkContentConfigSchema = z63.object({
|
|
38632
|
+
contentTypes: z63.array(sdkContentTypeConfigSchema).optional(),
|
|
38633
|
+
pages: z63.array(z63.unknown()).optional(),
|
|
38634
|
+
entries: z63.array(z63.unknown()).optional(),
|
|
38635
|
+
navigationMenus: z63.array(z63.unknown()).optional(),
|
|
38636
|
+
settings: z63.unknown().optional()
|
|
38564
38637
|
}).passthrough();
|
|
38565
38638
|
var SDK_WORKFLOW_ID_MAX_LENGTH = 120;
|
|
38566
38639
|
var SDK_WORKFLOW_TITLE_MAX_LENGTH = 120;
|
|
@@ -38575,62 +38648,62 @@ var SDK_WORKFLOW_CONFIRMATION_TITLE_MAX_LENGTH = 120;
|
|
|
38575
38648
|
var SDK_WORKFLOW_CONFIRMATION_BODY_MAX_LENGTH = 500;
|
|
38576
38649
|
var SDK_WORKFLOW_ID_PATTERN = /^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/;
|
|
38577
38650
|
var SDK_WORKFLOW_ENDPOINT_PATTERN = /^\//;
|
|
38578
|
-
var sdkWorkflowIdSchema =
|
|
38651
|
+
var sdkWorkflowIdSchema = z63.string().min(1).max(SDK_WORKFLOW_ID_MAX_LENGTH).regex(SDK_WORKFLOW_ID_PATTERN, {
|
|
38579
38652
|
message: "Workflow ID must start with a lowercase letter and use lowercase letters, numbers, dots, underscores, or hyphens"
|
|
38580
38653
|
});
|
|
38581
|
-
var sdkWorkflowEndpointSchema =
|
|
38582
|
-
var sdkWorkflowManualTriggerSchema =
|
|
38583
|
-
type:
|
|
38654
|
+
var sdkWorkflowEndpointSchema = z63.string().min(1).max(SDK_WORKFLOW_ENDPOINT_MAX_LENGTH).regex(SDK_WORKFLOW_ENDPOINT_PATTERN, { message: 'Workflow endpoint must be a site-relative path starting with "/"' });
|
|
38655
|
+
var sdkWorkflowManualTriggerSchema = z63.object({
|
|
38656
|
+
type: z63.literal("manual")
|
|
38584
38657
|
}).strict();
|
|
38585
|
-
var sdkWorkflowTriggerFieldSchema =
|
|
38658
|
+
var sdkWorkflowTriggerFieldSchema = z63.string().trim().min(1).max(SDK_WORKFLOW_TRIGGER_FIELD_MAX_LENGTH).refine((field) => !field.includes("."), {
|
|
38586
38659
|
message: "Workflow trigger fields must be top-level content field IDs, not paths"
|
|
38587
38660
|
});
|
|
38588
|
-
var sdkWorkflowFieldChangedConditionSchema =
|
|
38661
|
+
var sdkWorkflowFieldChangedConditionSchema = z63.object({
|
|
38589
38662
|
field: sdkWorkflowTriggerFieldSchema,
|
|
38590
|
-
changed:
|
|
38663
|
+
changed: z63.literal(true)
|
|
38591
38664
|
}).strict();
|
|
38592
|
-
var sdkWorkflowFieldEmptyConditionSchema =
|
|
38665
|
+
var sdkWorkflowFieldEmptyConditionSchema = z63.object({
|
|
38593
38666
|
field: sdkWorkflowTriggerFieldSchema,
|
|
38594
|
-
isEmpty:
|
|
38667
|
+
isEmpty: z63.boolean()
|
|
38595
38668
|
}).strict();
|
|
38596
|
-
var sdkWorkflowEntryDraftUpdatedTriggerSchema =
|
|
38597
|
-
type:
|
|
38598
|
-
when:
|
|
38599
|
-
|
|
38669
|
+
var sdkWorkflowEntryDraftUpdatedTriggerSchema = z63.object({
|
|
38670
|
+
type: z63.literal("entry.draft.updated"),
|
|
38671
|
+
when: z63.array(
|
|
38672
|
+
z63.union([
|
|
38600
38673
|
sdkWorkflowFieldChangedConditionSchema,
|
|
38601
38674
|
sdkWorkflowFieldEmptyConditionSchema
|
|
38602
38675
|
])
|
|
38603
38676
|
).min(1).max(SDK_WORKFLOW_TRIGGER_CONDITION_MAX_COUNT)
|
|
38604
38677
|
}).strict();
|
|
38605
|
-
var sdkWorkflowTriggerSchema =
|
|
38678
|
+
var sdkWorkflowTriggerSchema = z63.discriminatedUnion("type", [
|
|
38606
38679
|
sdkWorkflowManualTriggerSchema,
|
|
38607
38680
|
sdkWorkflowEntryDraftUpdatedTriggerSchema
|
|
38608
38681
|
]);
|
|
38609
|
-
var sdkWorkflowConfirmationSchema =
|
|
38610
|
-
title:
|
|
38611
|
-
body:
|
|
38682
|
+
var sdkWorkflowConfirmationSchema = z63.object({
|
|
38683
|
+
title: z63.string().trim().min(1).max(SDK_WORKFLOW_CONFIRMATION_TITLE_MAX_LENGTH),
|
|
38684
|
+
body: z63.string().trim().min(1).max(SDK_WORKFLOW_CONFIRMATION_BODY_MAX_LENGTH).optional()
|
|
38612
38685
|
}).strict();
|
|
38613
|
-
var sdkWorkflowConfigSchema =
|
|
38686
|
+
var sdkWorkflowConfigSchema = z63.object({
|
|
38614
38687
|
id: sdkWorkflowIdSchema,
|
|
38615
|
-
title:
|
|
38616
|
-
description:
|
|
38617
|
-
contentType:
|
|
38688
|
+
title: z63.string().trim().min(1).max(SDK_WORKFLOW_TITLE_MAX_LENGTH),
|
|
38689
|
+
description: z63.string().trim().min(1).max(SDK_WORKFLOW_DESCRIPTION_MAX_LENGTH).optional(),
|
|
38690
|
+
contentType: z63.string().trim().min(1).max(SDK_WORKFLOW_CONTENT_TYPE_MAX_LENGTH),
|
|
38618
38691
|
endpoint: sdkWorkflowEndpointSchema,
|
|
38619
|
-
triggers:
|
|
38692
|
+
triggers: z63.array(sdkWorkflowTriggerSchema).min(1).max(SDK_WORKFLOW_TRIGGER_MAX_COUNT),
|
|
38620
38693
|
confirmation: sdkWorkflowConfirmationSchema.optional()
|
|
38621
38694
|
}).strict();
|
|
38622
|
-
var sdkWorkflowsSchema =
|
|
38695
|
+
var sdkWorkflowsSchema = z63.array(sdkWorkflowConfigSchema).max(SDK_WORKFLOW_MAX_COUNT, "Maximum 50 workflows per site").refine((workflows) => {
|
|
38623
38696
|
const ids = workflows.map((workflow) => workflow.id);
|
|
38624
38697
|
return ids.length === new Set(ids).size;
|
|
38625
38698
|
}, { message: "Workflow IDs must be unique" }).optional();
|
|
38626
|
-
var riverbankSiteConfigInputSchema =
|
|
38627
|
-
siteId:
|
|
38628
|
-
previewUrl:
|
|
38629
|
-
liveUrl:
|
|
38699
|
+
var riverbankSiteConfigInputSchema = z63.object({
|
|
38700
|
+
siteId: z63.string().uuid(),
|
|
38701
|
+
previewUrl: z63.string().url().optional(),
|
|
38702
|
+
liveUrl: z63.string().url().optional(),
|
|
38630
38703
|
theme: sdkThemeConfigSchema.optional(),
|
|
38631
38704
|
styles: sdkSiteStyleConfigSchema.optional(),
|
|
38632
38705
|
layout: sdkSiteLayoutConfigSchema.optional(),
|
|
38633
|
-
customBlocks:
|
|
38706
|
+
customBlocks: z63.array(sdkCustomBlockInputSchema).max(100, "Maximum 100 custom blocks per site").refine((blocks) => {
|
|
38634
38707
|
const ids = blocks.map((b) => b.id);
|
|
38635
38708
|
return ids.length === new Set(ids).size;
|
|
38636
38709
|
}, { message: "Block IDs must be unique" }).optional(),
|
|
@@ -38638,50 +38711,50 @@ var riverbankSiteConfigInputSchema = z65.object({
|
|
|
38638
38711
|
blockFieldExtensions: sdkBlockFieldExtensionsInputSchema.optional(),
|
|
38639
38712
|
workflows: sdkWorkflowsSchema,
|
|
38640
38713
|
content: sdkContentConfigSchema.optional(),
|
|
38641
|
-
contentDir:
|
|
38642
|
-
sync:
|
|
38643
|
-
existingEntries:
|
|
38714
|
+
contentDir: z63.string().optional(),
|
|
38715
|
+
sync: z63.object({
|
|
38716
|
+
existingEntries: z63.enum(["skip", "update"]).optional()
|
|
38644
38717
|
}).optional(),
|
|
38645
|
-
deploy:
|
|
38646
|
-
verifyCommand:
|
|
38647
|
-
prebuildOutput:
|
|
38718
|
+
deploy: z63.object({
|
|
38719
|
+
verifyCommand: z63.string().optional(),
|
|
38720
|
+
prebuildOutput: z63.string().optional()
|
|
38648
38721
|
}).optional(),
|
|
38649
|
-
themeSource:
|
|
38650
|
-
activeTheme:
|
|
38651
|
-
enablePortal:
|
|
38722
|
+
themeSource: z63.enum(["local", "cms"]).optional(),
|
|
38723
|
+
activeTheme: z63.string().optional(),
|
|
38724
|
+
enablePortal: z63.boolean().optional(),
|
|
38652
38725
|
dashboard: dashboardConfigSchema.optional()
|
|
38653
38726
|
}).strict();
|
|
38654
|
-
var pushSdkConfigBodySchema =
|
|
38727
|
+
var pushSdkConfigBodySchema = z63.object({
|
|
38655
38728
|
config: riverbankSiteConfigInputSchema,
|
|
38656
|
-
forceContentTypes:
|
|
38729
|
+
forceContentTypes: z63.boolean().optional()
|
|
38657
38730
|
}).strict();
|
|
38658
38731
|
|
|
38659
38732
|
// ../api/src/siteOnboarding.ts
|
|
38660
|
-
import { z as
|
|
38733
|
+
import { z as z64 } from "zod";
|
|
38661
38734
|
var LAUNCH_REQUIREMENT_OVERRIDE_DEFINITIONS = {
|
|
38662
38735
|
configure_appointments: {
|
|
38663
38736
|
requirementId: "configure_appointments",
|
|
38664
38737
|
reason: "launch_anyway"
|
|
38665
38738
|
}
|
|
38666
38739
|
};
|
|
38667
|
-
var acknowledgeLaunchRequirementRequestSchema =
|
|
38740
|
+
var acknowledgeLaunchRequirementRequestSchema = z64.discriminatedUnion(
|
|
38668
38741
|
"requirementId",
|
|
38669
38742
|
[
|
|
38670
|
-
|
|
38671
|
-
requirementId:
|
|
38743
|
+
z64.object({
|
|
38744
|
+
requirementId: z64.literal("review_generated_site")
|
|
38672
38745
|
}),
|
|
38673
|
-
|
|
38674
|
-
requirementId:
|
|
38746
|
+
z64.object({
|
|
38747
|
+
requirementId: z64.literal(
|
|
38675
38748
|
LAUNCH_REQUIREMENT_OVERRIDE_DEFINITIONS.configure_appointments.requirementId
|
|
38676
38749
|
),
|
|
38677
|
-
overrideReason:
|
|
38750
|
+
overrideReason: z64.literal(
|
|
38678
38751
|
LAUNCH_REQUIREMENT_OVERRIDE_DEFINITIONS.configure_appointments.reason
|
|
38679
38752
|
)
|
|
38680
38753
|
})
|
|
38681
38754
|
]
|
|
38682
38755
|
);
|
|
38683
|
-
var goLiveSiteRequestSchema =
|
|
38684
|
-
acceptExtraSiteCharge:
|
|
38756
|
+
var goLiveSiteRequestSchema = z64.object({
|
|
38757
|
+
acceptExtraSiteCharge: z64.boolean().optional()
|
|
38685
38758
|
});
|
|
38686
38759
|
|
|
38687
38760
|
// ../surfaces/src/index.ts
|
|
@@ -38765,7 +38838,7 @@ var COURSE_ENROLLMENT_REFUND_FAILED_CODES = [
|
|
|
38765
38838
|
];
|
|
38766
38839
|
|
|
38767
38840
|
// ../api/src/bookingVerticals.ts
|
|
38768
|
-
import { z as
|
|
38841
|
+
import { z as z65 } from "zod";
|
|
38769
38842
|
var VERTICAL_IDS = [
|
|
38770
38843
|
"yoga_wellness",
|
|
38771
38844
|
"fitness_pt",
|
|
@@ -38930,39 +39003,39 @@ function getSiteVerticalConfigIssues(rawConfig, config) {
|
|
|
38930
39003
|
}
|
|
38931
39004
|
return [...issues];
|
|
38932
39005
|
}
|
|
38933
|
-
var VerticalIdSchema =
|
|
39006
|
+
var VerticalIdSchema = z65.string().trim().transform((value, ctx) => {
|
|
38934
39007
|
const parsed = parseVerticalId(value);
|
|
38935
39008
|
if (!parsed) {
|
|
38936
39009
|
ctx.addIssue({
|
|
38937
|
-
code:
|
|
39010
|
+
code: z65.ZodIssueCode.custom,
|
|
38938
39011
|
message: "Unknown booking vertical"
|
|
38939
39012
|
});
|
|
38940
|
-
return
|
|
39013
|
+
return z65.NEVER;
|
|
38941
39014
|
}
|
|
38942
39015
|
return parsed;
|
|
38943
39016
|
});
|
|
38944
|
-
var VerticalPresetIdSchema =
|
|
39017
|
+
var VerticalPresetIdSchema = z65.string().trim().transform((value, ctx) => {
|
|
38945
39018
|
const parsed = parseVerticalPresetId(value);
|
|
38946
39019
|
if (!parsed) {
|
|
38947
39020
|
ctx.addIssue({
|
|
38948
|
-
code:
|
|
39021
|
+
code: z65.ZodIssueCode.custom,
|
|
38949
39022
|
message: "Unknown booking preset"
|
|
38950
39023
|
});
|
|
38951
|
-
return
|
|
39024
|
+
return z65.NEVER;
|
|
38952
39025
|
}
|
|
38953
39026
|
return parsed;
|
|
38954
39027
|
});
|
|
38955
|
-
var BookingVerticalConfigSchema =
|
|
39028
|
+
var BookingVerticalConfigSchema = z65.object({
|
|
38956
39029
|
verticalId: VerticalIdSchema.nullable(),
|
|
38957
|
-
selectedPresetIds:
|
|
39030
|
+
selectedPresetIds: z65.array(VerticalPresetIdSchema).max(20)
|
|
38958
39031
|
}).transform((value, ctx) => {
|
|
38959
39032
|
const resolved = resolveSiteVerticalBookingConfig(value);
|
|
38960
39033
|
if (resolved.kind === "invalid") {
|
|
38961
39034
|
ctx.addIssue({
|
|
38962
|
-
code:
|
|
39035
|
+
code: z65.ZodIssueCode.custom,
|
|
38963
39036
|
message: `Invalid booking vertical config: ${resolved.issues.join(", ")}`
|
|
38964
39037
|
});
|
|
38965
|
-
return
|
|
39038
|
+
return z65.NEVER;
|
|
38966
39039
|
}
|
|
38967
39040
|
return resolved.config;
|
|
38968
39041
|
});
|
|
@@ -38989,51 +39062,51 @@ function isRecord8(value) {
|
|
|
38989
39062
|
}
|
|
38990
39063
|
|
|
38991
39064
|
// ../api/src/appointmentSetup.ts
|
|
38992
|
-
import { z as
|
|
39065
|
+
import { z as z66 } from "zod";
|
|
38993
39066
|
var APPOINTMENT_SETUP_MAX_MINUTES = 1440;
|
|
38994
|
-
var appointmentSetupRefSchema =
|
|
38995
|
-
|
|
38996
|
-
|
|
39067
|
+
var appointmentSetupRefSchema = z66.discriminatedUnion("kind", [
|
|
39068
|
+
z66.object({ kind: z66.literal("existing"), id: z66.string().min(1) }),
|
|
39069
|
+
z66.object({ kind: z66.literal("new"), draftId: z66.string().min(1) })
|
|
38997
39070
|
]);
|
|
38998
|
-
var appointmentSetupVenueChoiceSchema =
|
|
38999
|
-
|
|
39000
|
-
|
|
39001
|
-
|
|
39002
|
-
kind:
|
|
39003
|
-
draftId:
|
|
39004
|
-
title:
|
|
39005
|
-
description:
|
|
39006
|
-
timezone:
|
|
39007
|
-
addressJson:
|
|
39008
|
-
locationJson:
|
|
39071
|
+
var appointmentSetupVenueChoiceSchema = z66.discriminatedUnion("kind", [
|
|
39072
|
+
z66.object({ kind: z66.literal("none") }),
|
|
39073
|
+
z66.object({ kind: z66.literal("existing"), venueId: z66.string().min(1) }),
|
|
39074
|
+
z66.object({
|
|
39075
|
+
kind: z66.literal("create"),
|
|
39076
|
+
draftId: z66.string().min(1),
|
|
39077
|
+
title: z66.string().trim().min(1),
|
|
39078
|
+
description: z66.string().nullable(),
|
|
39079
|
+
timezone: z66.string().trim().min(1).nullable(),
|
|
39080
|
+
addressJson: z66.record(z66.string(), z66.unknown()),
|
|
39081
|
+
locationJson: z66.object({ lat: z66.number(), lng: z66.number() }).nullable()
|
|
39009
39082
|
})
|
|
39010
39083
|
]);
|
|
39011
|
-
var appointmentSetupPaymentDraftSchema =
|
|
39012
|
-
priceType:
|
|
39013
|
-
});
|
|
39014
|
-
var appointmentSetupServiceAssignmentDraftSchema =
|
|
39015
|
-
|
|
39016
|
-
|
|
39017
|
-
kind:
|
|
39018
|
-
resourceRefs:
|
|
39084
|
+
var appointmentSetupPaymentDraftSchema = z66.object({
|
|
39085
|
+
priceType: z66.union([z66.literal("free"), z66.literal("paid")])
|
|
39086
|
+
});
|
|
39087
|
+
var appointmentSetupServiceAssignmentDraftSchema = z66.discriminatedUnion("kind", [
|
|
39088
|
+
z66.object({ kind: z66.literal("all_practitioners") }),
|
|
39089
|
+
z66.object({
|
|
39090
|
+
kind: z66.literal("selected_practitioners"),
|
|
39091
|
+
resourceRefs: z66.array(appointmentSetupRefSchema)
|
|
39019
39092
|
})
|
|
39020
39093
|
]);
|
|
39021
|
-
var appointmentSetupServiceDraftSchema =
|
|
39094
|
+
var appointmentSetupServiceDraftSchema = z66.object({
|
|
39022
39095
|
ref: appointmentSetupRefSchema,
|
|
39023
|
-
title:
|
|
39024
|
-
description:
|
|
39025
|
-
durationMinutes:
|
|
39026
|
-
prepMinutes:
|
|
39027
|
-
cleanupMinutes:
|
|
39028
|
-
priceAmount:
|
|
39029
|
-
isActive:
|
|
39030
|
-
locationType:
|
|
39031
|
-
|
|
39032
|
-
|
|
39033
|
-
|
|
39096
|
+
title: z66.string().trim().min(1),
|
|
39097
|
+
description: z66.string().nullable(),
|
|
39098
|
+
durationMinutes: z66.number().int().positive().max(APPOINTMENT_SETUP_MAX_MINUTES),
|
|
39099
|
+
prepMinutes: z66.number().int().nonnegative().max(APPOINTMENT_SETUP_MAX_MINUTES).default(0),
|
|
39100
|
+
cleanupMinutes: z66.number().int().nonnegative().max(APPOINTMENT_SETUP_MAX_MINUTES).default(0),
|
|
39101
|
+
priceAmount: z66.number().int().nonnegative().nullable(),
|
|
39102
|
+
isActive: z66.boolean(),
|
|
39103
|
+
locationType: z66.union([
|
|
39104
|
+
z66.literal("virtual"),
|
|
39105
|
+
z66.literal("in_person"),
|
|
39106
|
+
z66.literal("hybrid")
|
|
39034
39107
|
]),
|
|
39035
39108
|
venue: appointmentSetupVenueChoiceSchema,
|
|
39036
|
-
timezone:
|
|
39109
|
+
timezone: z66.string().trim().min(1).nullable(),
|
|
39037
39110
|
payment: appointmentSetupPaymentDraftSchema,
|
|
39038
39111
|
assignment: appointmentSetupServiceAssignmentDraftSchema
|
|
39039
39112
|
}).superRefine((service, ctx) => {
|
|
@@ -39052,49 +39125,49 @@ var appointmentSetupServiceDraftSchema = z68.object({
|
|
|
39052
39125
|
});
|
|
39053
39126
|
}
|
|
39054
39127
|
});
|
|
39055
|
-
var appointmentSetupPractitionerDraftSchema =
|
|
39128
|
+
var appointmentSetupPractitionerDraftSchema = z66.object({
|
|
39056
39129
|
ref: appointmentSetupRefSchema,
|
|
39057
|
-
displayName:
|
|
39058
|
-
bio:
|
|
39059
|
-
timezone:
|
|
39060
|
-
colorHex:
|
|
39061
|
-
});
|
|
39062
|
-
var appointmentSetupWeeklyWindowDraftSchema =
|
|
39063
|
-
weekday:
|
|
39064
|
-
startTime:
|
|
39065
|
-
endTime:
|
|
39066
|
-
});
|
|
39067
|
-
var appointmentSetupStartTimePolicyDraftSchema =
|
|
39068
|
-
|
|
39069
|
-
|
|
39070
|
-
kind:
|
|
39071
|
-
intervalMinutes:
|
|
39072
|
-
|
|
39073
|
-
|
|
39074
|
-
|
|
39075
|
-
|
|
39076
|
-
|
|
39077
|
-
|
|
39130
|
+
displayName: z66.string().trim().min(1),
|
|
39131
|
+
bio: z66.string().nullable(),
|
|
39132
|
+
timezone: z66.string().trim().min(1),
|
|
39133
|
+
colorHex: z66.string().nullable()
|
|
39134
|
+
});
|
|
39135
|
+
var appointmentSetupWeeklyWindowDraftSchema = z66.object({
|
|
39136
|
+
weekday: z66.number().int().min(0).max(6),
|
|
39137
|
+
startTime: z66.string(),
|
|
39138
|
+
endTime: z66.string()
|
|
39139
|
+
});
|
|
39140
|
+
var appointmentSetupStartTimePolicyDraftSchema = z66.discriminatedUnion("kind", [
|
|
39141
|
+
z66.object({ kind: z66.literal("automatic_spacing") }),
|
|
39142
|
+
z66.object({
|
|
39143
|
+
kind: z66.literal("regular_interval"),
|
|
39144
|
+
intervalMinutes: z66.union([
|
|
39145
|
+
z66.literal(10),
|
|
39146
|
+
z66.literal(15),
|
|
39147
|
+
z66.literal(20),
|
|
39148
|
+
z66.literal(30),
|
|
39149
|
+
z66.literal(45),
|
|
39150
|
+
z66.literal(60)
|
|
39078
39151
|
])
|
|
39079
39152
|
})
|
|
39080
39153
|
]);
|
|
39081
|
-
var appointmentSetupAvailabilityDraftSchema =
|
|
39082
|
-
kind:
|
|
39154
|
+
var appointmentSetupAvailabilityDraftSchema = z66.object({
|
|
39155
|
+
kind: z66.literal("weekly_windows"),
|
|
39083
39156
|
resourceRef: appointmentSetupRefSchema,
|
|
39084
39157
|
serviceRef: appointmentSetupRefSchema.nullable(),
|
|
39085
|
-
windows:
|
|
39158
|
+
windows: z66.array(appointmentSetupWeeklyWindowDraftSchema),
|
|
39086
39159
|
startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
|
|
39087
39160
|
});
|
|
39088
39161
|
var APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
|
|
39089
39162
|
var APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;
|
|
39090
|
-
var appointmentSetupBookingNoticeSchema =
|
|
39091
|
-
minLeadMinutes:
|
|
39092
|
-
maxBookingNoticeMinutes:
|
|
39093
|
-
});
|
|
39094
|
-
var applyAppointmentSetupRequestSchema =
|
|
39095
|
-
services:
|
|
39096
|
-
practitioners:
|
|
39097
|
-
availability:
|
|
39163
|
+
var appointmentSetupBookingNoticeSchema = z66.object({
|
|
39164
|
+
minLeadMinutes: z66.number().int().nonnegative().max(APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX),
|
|
39165
|
+
maxBookingNoticeMinutes: z66.number().int().nonnegative().max(APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX)
|
|
39166
|
+
});
|
|
39167
|
+
var applyAppointmentSetupRequestSchema = z66.object({
|
|
39168
|
+
services: z66.array(appointmentSetupServiceDraftSchema),
|
|
39169
|
+
practitioners: z66.array(appointmentSetupPractitionerDraftSchema),
|
|
39170
|
+
availability: z66.array(appointmentSetupAvailabilityDraftSchema),
|
|
39098
39171
|
bookingNotice: appointmentSetupBookingNoticeSchema
|
|
39099
39172
|
});
|
|
39100
39173
|
|
|
@@ -39127,24 +39200,24 @@ var STAFF_CANCELLATION_CONTEXT_CATEGORIES = [
|
|
|
39127
39200
|
];
|
|
39128
39201
|
|
|
39129
39202
|
// ../api/src/siteBanner.ts
|
|
39130
|
-
import { z as
|
|
39203
|
+
import { z as z67 } from "zod";
|
|
39131
39204
|
var SITE_BANNER_SCOPE_VALUES = ["homepage", "all-pages"];
|
|
39132
39205
|
var SITE_BANNER_TONE_VALUES = ["announcement", "promotion", "notice", "warning"];
|
|
39133
39206
|
var SITE_BANNER_MAX_TEXT_LENGTH = 320;
|
|
39134
39207
|
var SITE_BANNER_MAX_PARAGRAPHS = 2;
|
|
39135
|
-
var siteBannerScopeSchema =
|
|
39136
|
-
var siteBannerToneSchema =
|
|
39137
|
-
var siteBannerBodySchema =
|
|
39138
|
-
var siteBannerCtaSchema =
|
|
39139
|
-
label:
|
|
39208
|
+
var siteBannerScopeSchema = z67.enum(SITE_BANNER_SCOPE_VALUES);
|
|
39209
|
+
var siteBannerToneSchema = z67.enum(SITE_BANNER_TONE_VALUES);
|
|
39210
|
+
var siteBannerBodySchema = z67.unknown().transform(unwrapRichTextValue);
|
|
39211
|
+
var siteBannerCtaSchema = z67.object({
|
|
39212
|
+
label: z67.string().trim().min(1),
|
|
39140
39213
|
link: linkPayloadSchema
|
|
39141
39214
|
});
|
|
39142
|
-
var siteBannerSettingsSchema =
|
|
39143
|
-
|
|
39144
|
-
enabled:
|
|
39215
|
+
var siteBannerSettingsSchema = z67.discriminatedUnion("enabled", [
|
|
39216
|
+
z67.object({
|
|
39217
|
+
enabled: z67.literal(false)
|
|
39145
39218
|
}),
|
|
39146
|
-
|
|
39147
|
-
enabled:
|
|
39219
|
+
z67.object({
|
|
39220
|
+
enabled: z67.literal(true),
|
|
39148
39221
|
scope: siteBannerScopeSchema,
|
|
39149
39222
|
tone: siteBannerToneSchema,
|
|
39150
39223
|
body: siteBannerBodySchema,
|
|
@@ -39158,7 +39231,7 @@ var siteBannerSettingsInputSchema = siteBannerSettingsSchema.superRefine((value,
|
|
|
39158
39231
|
const analysis = analyzeSiteBannerBody(value.body);
|
|
39159
39232
|
for (const issue of analysis.issues) {
|
|
39160
39233
|
ctx.addIssue({
|
|
39161
|
-
code:
|
|
39234
|
+
code: z67.ZodIssueCode.custom,
|
|
39162
39235
|
path: ["body"],
|
|
39163
39236
|
message: siteBannerBodyIssueMessage(issue)
|
|
39164
39237
|
});
|
|
@@ -39420,71 +39493,71 @@ function unsafeAsNavigationMenuIdentifier(identifier) {
|
|
|
39420
39493
|
var MAIN_NAVIGATION_MENU_IDENTIFIER = unsafeAsNavigationMenuIdentifier("main");
|
|
39421
39494
|
|
|
39422
39495
|
// ../api/src/aiPlayground.ts
|
|
39423
|
-
import { z as
|
|
39424
|
-
var Rfc6902PatchOp =
|
|
39496
|
+
import { z as z68 } from "zod";
|
|
39497
|
+
var Rfc6902PatchOp = z68.discriminatedUnion("op", [
|
|
39425
39498
|
// Standard RFC-6902 operations
|
|
39426
|
-
|
|
39427
|
-
op:
|
|
39428
|
-
path:
|
|
39429
|
-
value:
|
|
39499
|
+
z68.object({
|
|
39500
|
+
op: z68.literal("add"),
|
|
39501
|
+
path: z68.string(),
|
|
39502
|
+
value: z68.unknown()
|
|
39430
39503
|
}),
|
|
39431
|
-
|
|
39432
|
-
op:
|
|
39433
|
-
path:
|
|
39504
|
+
z68.object({
|
|
39505
|
+
op: z68.literal("remove"),
|
|
39506
|
+
path: z68.string()
|
|
39434
39507
|
}),
|
|
39435
|
-
|
|
39436
|
-
op:
|
|
39437
|
-
path:
|
|
39438
|
-
value:
|
|
39508
|
+
z68.object({
|
|
39509
|
+
op: z68.literal("replace"),
|
|
39510
|
+
path: z68.string(),
|
|
39511
|
+
value: z68.unknown()
|
|
39439
39512
|
}),
|
|
39440
|
-
|
|
39441
|
-
op:
|
|
39442
|
-
from:
|
|
39443
|
-
path:
|
|
39513
|
+
z68.object({
|
|
39514
|
+
op: z68.literal("move"),
|
|
39515
|
+
from: z68.string(),
|
|
39516
|
+
path: z68.string()
|
|
39444
39517
|
}),
|
|
39445
|
-
|
|
39446
|
-
op:
|
|
39447
|
-
from:
|
|
39448
|
-
path:
|
|
39518
|
+
z68.object({
|
|
39519
|
+
op: z68.literal("copy"),
|
|
39520
|
+
from: z68.string(),
|
|
39521
|
+
path: z68.string()
|
|
39449
39522
|
}),
|
|
39450
39523
|
// Block-level operations (Phase 2)
|
|
39451
|
-
|
|
39452
|
-
op:
|
|
39453
|
-
blockKind:
|
|
39454
|
-
afterBlockId:
|
|
39455
|
-
content:
|
|
39456
|
-
rationale:
|
|
39524
|
+
z68.object({
|
|
39525
|
+
op: z68.literal("add_block"),
|
|
39526
|
+
blockKind: z68.string(),
|
|
39527
|
+
afterBlockId: z68.string().nullable(),
|
|
39528
|
+
content: z68.record(z68.string(), z68.unknown()),
|
|
39529
|
+
rationale: z68.string()
|
|
39457
39530
|
}),
|
|
39458
|
-
|
|
39459
|
-
op:
|
|
39460
|
-
blockId:
|
|
39461
|
-
rationale:
|
|
39531
|
+
z68.object({
|
|
39532
|
+
op: z68.literal("delete_block"),
|
|
39533
|
+
blockId: z68.string(),
|
|
39534
|
+
rationale: z68.string()
|
|
39462
39535
|
}),
|
|
39463
|
-
|
|
39464
|
-
op:
|
|
39465
|
-
blockId:
|
|
39466
|
-
afterBlockId:
|
|
39467
|
-
rationale:
|
|
39536
|
+
z68.object({
|
|
39537
|
+
op: z68.literal("reorder_block"),
|
|
39538
|
+
blockId: z68.string(),
|
|
39539
|
+
afterBlockId: z68.string().nullable(),
|
|
39540
|
+
rationale: z68.string()
|
|
39468
39541
|
})
|
|
39469
39542
|
]);
|
|
39470
|
-
var PlaygroundProposeRequest =
|
|
39471
|
-
request:
|
|
39543
|
+
var PlaygroundProposeRequest = z68.object({
|
|
39544
|
+
request: z68.string().min(1).max(2e3)
|
|
39472
39545
|
});
|
|
39473
|
-
var MultiPagePatchEnvelope =
|
|
39474
|
-
pageId:
|
|
39475
|
-
blockId:
|
|
39546
|
+
var MultiPagePatchEnvelope = z68.object({
|
|
39547
|
+
pageId: z68.string(),
|
|
39548
|
+
blockId: z68.string().optional(),
|
|
39476
39549
|
// Not present for page-level ops
|
|
39477
|
-
blockKind:
|
|
39478
|
-
blockPurpose:
|
|
39479
|
-
ops:
|
|
39480
|
-
rationale:
|
|
39481
|
-
currentContent:
|
|
39482
|
-
});
|
|
39483
|
-
var MultiPageUpdateResponse =
|
|
39484
|
-
patches:
|
|
39485
|
-
assistantMessage:
|
|
39486
|
-
pagesModified:
|
|
39487
|
-
toolCallsUsed:
|
|
39550
|
+
blockKind: z68.string().optional(),
|
|
39551
|
+
blockPurpose: z68.string().optional().nullable(),
|
|
39552
|
+
ops: z68.array(Rfc6902PatchOp),
|
|
39553
|
+
rationale: z68.string(),
|
|
39554
|
+
currentContent: z68.record(z68.string(), z68.unknown()).optional()
|
|
39555
|
+
});
|
|
39556
|
+
var MultiPageUpdateResponse = z68.object({
|
|
39557
|
+
patches: z68.array(MultiPagePatchEnvelope),
|
|
39558
|
+
assistantMessage: z68.string(),
|
|
39559
|
+
pagesModified: z68.number(),
|
|
39560
|
+
toolCallsUsed: z68.number()
|
|
39488
39561
|
});
|
|
39489
39562
|
|
|
39490
39563
|
// src/data/prefetchBlockData.ts
|