@riverbankcms/sdk 0.135.0 → 0.135.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PreviewEditorSidebar-roNY0GVy.mjs → PreviewEditorSidebar-D4p_5TdY.mjs} +3 -3
- package/dist/{PreviewEditorUI-KboDbEh_.mjs → PreviewEditorUI-D0cRoTX1.mjs} +2 -2
- package/dist/{SdkPreviewModeRuntime-DBrF7Caa.mjs → SdkPreviewModeRuntime-BKLtM3Nz.mjs} +3 -3
- package/dist/{SiteChromeCustomizeContext-DrIEpJKn.mjs → SiteChromeCustomizeContext-61X2m7QV.mjs} +35 -24
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +25 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +10 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/client/{BookingConsentAgreement-BQqwi8Oa.mjs → BookingConsentAgreement-Bz9znbpn.mjs} +2 -2
- package/dist/client/{DiscountCodeDisclosure-B97aMo0V.mjs → DiscountCodeDisclosure-35Ru8yB9.mjs} +1 -1
- package/dist/client/{EventCombined.client-Bs2Iw9Q6.mjs → EventCombined.client-BKB0ZxRR.mjs} +2 -2
- package/dist/client/{EventListing.client-C4QUQdmg.mjs → EventListing.client-Dx8I21ok.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CwWRk69M.mjs → LeafletStaticMap-CEWx-Bhe.mjs} +1 -1
- package/dist/client/{accordion-BA0j8Mpw.mjs → accordion-KIDsKTwS.mjs} +1 -1
- package/dist/client/{bookingForm-Br2e41H0.mjs → bookingForm-D96Rmp-5.mjs} +4 -4
- package/dist/client/bookings.mjs +1 -0
- package/dist/client/{carousel-B4dmwnpD.mjs → carousel-YwUgyL66.mjs} +1 -1
- package/dist/client/{cart-B_ckGW4b.mjs → cart-BbwuNrUT.mjs} +3 -3
- package/dist/client/{checkout-DAyspHdf.mjs → checkout-hp1ucmEY.mjs} +3 -3
- package/dist/client/client.mjs +36 -25
- package/dist/client/{eventCalendar-pJu3FUod.mjs → eventCalendar-DU4iNLpo.mjs} +4 -4
- package/dist/client/{eventCombined-B6Kacm9F.mjs → eventCombined-CZuupW8m.mjs} +2 -2
- package/dist/client/{eventDetails-CaX9z1pv.mjs → eventDetails-DPQWwCIi.mjs} +2 -2
- package/dist/client/{eventListing-B9aXPO-I.mjs → eventListing-C7oMidwS.mjs} +2 -2
- package/dist/client/{eventRegistration-CBSovBkg.mjs → eventRegistration-zEiunlUs.mjs} +4 -4
- package/dist/client/{form-Cm0tu_7o.mjs → form-D2KIyCVJ.mjs} +1 -1
- package/dist/client/{headerSection-OgRtHeKS.mjs → headerSection-CK5uChUK.mjs} +2 -2
- package/dist/client/hooks.mjs +29 -22
- package/dist/client/{locationMap-DmjcYqNM.mjs → locationMap-DLQNH1ln.mjs} +2 -2
- package/dist/client/{newsletterForm-D08OZQAC.mjs → newsletterForm-ZuhIG7fZ.mjs} +1 -1
- package/dist/client/{productDetail-BqZeu2P4.mjs → productDetail-7hIcGeae.mjs} +3 -3
- package/dist/client/{productList-mNyIF9FG.mjs → productList-T4Cii1ot.mjs} +3 -3
- package/dist/client/{propsDecoder-DwHXRm9X.mjs → propsDecoder-mB0aC_Fi.mjs} +29 -22
- package/dist/client/rendering/client.mjs +35 -24
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +35 -24
- package/dist/client/{scrollToBlock-DtmdM3v-.mjs → scrollToBlock-Du5mHgvL.mjs} +1 -1
- package/dist/client/{shop-CNjZK16F.mjs → shop-B5zAcKZn.mjs} +5 -5
- package/dist/client/{shop-commerce-DkNNao1J.mjs → shop-commerce-BKBZB6l5.mjs} +4 -4
- package/dist/client/{shop-commerce-store-9WA--zuW.mjs → shop-commerce-store-Cq4qlNtQ.mjs} +1 -1
- package/dist/client/{shopShared-CHCVfccY.mjs → shopShared-DYGzEs9D.mjs} +2 -2
- package/dist/client/{useEventFilters-DvuaB4ZN.mjs → useEventFilters-Bphkda8m.mjs} +2 -2
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-3GhW4knb.mjs → sdk-runtime-BbIC8G4J.mjs} +1 -1
- package/dist/{separator-D3bCWYYb.mjs → separator-CadhAtI7.mjs} +1 -1
- package/dist/server/components.mjs +35 -24
- package/dist/server/config-validation.mjs +29 -22
- package/dist/server/config.mjs +29 -22
- package/dist/server/data.mjs +29 -22
- package/dist/server/index.mjs +1 -1
- package/dist/server/next.mjs +36 -25
- package/dist/server/page-converter.mjs +29 -22
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +35 -24
- package/dist/server/rendering.mjs +35 -24
- package/dist/server/routing.mjs +29 -22
- package/dist/server/server.mjs +30 -23
- package/package.json +1 -1
|
@@ -32040,6 +32040,7 @@ const publicWholeSeriesPriceDisplaySchema = z$1.discriminatedUnion("kind", [
|
|
|
32040
32040
|
freePriceDisplaySchema,
|
|
32041
32041
|
exactPriceDisplaySchema,
|
|
32042
32042
|
fromPriceDisplaySchema,
|
|
32043
|
+
rangePriceDisplaySchema,
|
|
32043
32044
|
unavailablePriceDisplaySchema
|
|
32044
32045
|
]);
|
|
32045
32046
|
z$1.discriminatedUnion("kind", [
|
|
@@ -33166,13 +33167,16 @@ function buildEventRegistrationShellStepLabels(source) {
|
|
|
33166
33167
|
}) : false).map((step) => shellLabelForRegistrationStep(step, scopedEvents));
|
|
33167
33168
|
}
|
|
33168
33169
|
function scopeEventRegistrationEvents(source) {
|
|
33170
|
+
return toRegistrationEvents(scopeEventRegistrationSourceEvents(source));
|
|
33171
|
+
}
|
|
33172
|
+
function scopeEventRegistrationSourceEvents(source) {
|
|
33169
33173
|
const scope = planEventRegistrationScope({
|
|
33170
|
-
events:
|
|
33174
|
+
events: source.events ?? [],
|
|
33171
33175
|
wholeSeriesOffering: source.wholeSeriesOffering,
|
|
33172
33176
|
occurrenceContext: source.occurrenceContext,
|
|
33173
33177
|
subject: source.subject
|
|
33174
33178
|
});
|
|
33175
|
-
return scope.kind === "invalidSelectedRun" ? [] : scope.events;
|
|
33179
|
+
return scope.kind === "invalidSelectedRun" ? [] : [...scope.events];
|
|
33176
33180
|
}
|
|
33177
33181
|
function shellLabelForRegistrationStep(step, events) {
|
|
33178
33182
|
switch (step) {
|
|
@@ -33204,26 +33208,29 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
33204
33208
|
source: createZodCodec(eventRegistrationSourceSchema),
|
|
33205
33209
|
render: createZodCodec(eventRegistrationRenderSchema)
|
|
33206
33210
|
},
|
|
33207
|
-
buildRender: (source) =>
|
|
33208
|
-
|
|
33209
|
-
|
|
33210
|
-
|
|
33211
|
-
|
|
33212
|
-
|
|
33213
|
-
|
|
33214
|
-
|
|
33215
|
-
|
|
33216
|
-
|
|
33217
|
-
|
|
33218
|
-
|
|
33219
|
-
|
|
33220
|
-
|
|
33221
|
-
|
|
33222
|
-
|
|
33223
|
-
|
|
33224
|
-
|
|
33225
|
-
|
|
33226
|
-
|
|
33211
|
+
buildRender: (source) => {
|
|
33212
|
+
const events = source.events == null ? null : scopeEventRegistrationSourceEvents(source);
|
|
33213
|
+
return {
|
|
33214
|
+
display: buildEventRegistrationDisplay(source),
|
|
33215
|
+
hydration: {
|
|
33216
|
+
occurrenceContext: source.occurrenceContext ?? null,
|
|
33217
|
+
subject: source.subject ?? null,
|
|
33218
|
+
events,
|
|
33219
|
+
wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
|
|
33220
|
+
wholeSeriesOffering: resolveWholeSeriesOffering(source),
|
|
33221
|
+
maxTickets: source.maxTickets ?? void 0,
|
|
33222
|
+
showVenue: source.showVenue,
|
|
33223
|
+
showCapacity: source.showCapacity,
|
|
33224
|
+
successMessage: source.successMessage,
|
|
33225
|
+
buttonVariant: source.buttonVariant,
|
|
33226
|
+
overlayEnabled: source.overlayEnabled,
|
|
33227
|
+
spamProtectionEnabled: source.spamProtectionEnabled,
|
|
33228
|
+
supportEmail: source.supportEmail,
|
|
33229
|
+
sitePasses: source.sitePasses ?? null,
|
|
33230
|
+
siteMemberships: source.siteMemberships ?? null
|
|
33231
|
+
}
|
|
33232
|
+
};
|
|
33233
|
+
}
|
|
33227
33234
|
});
|
|
33228
33235
|
function normalizeEventRegistrationEventInput(value) {
|
|
33229
33236
|
if (!isRecord$22(value)) return value;
|
|
@@ -47548,9 +47555,13 @@ function EventDetailsSSR(props) {
|
|
|
47548
47555
|
const { blockId, occurrenceContext = null, subject, events = null, className, children } = props;
|
|
47549
47556
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
47550
47557
|
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
47558
|
+
const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
|
|
47559
|
+
occurrenceContext,
|
|
47560
|
+
subject: normalizedSubject
|
|
47561
|
+
});
|
|
47551
47562
|
const presentation = resolveEventDetailsPresentation({
|
|
47552
47563
|
...props,
|
|
47553
|
-
events,
|
|
47564
|
+
events: scopedEvents,
|
|
47554
47565
|
occurrenceContext,
|
|
47555
47566
|
subject: normalizedSubject,
|
|
47556
47567
|
nowIso
|
|
@@ -47563,7 +47574,7 @@ function EventDetailsSSR(props) {
|
|
|
47563
47574
|
/* @__PURE__ */ jsx(IslandPropsScript, { value: {
|
|
47564
47575
|
occurrenceContext,
|
|
47565
47576
|
subject: normalizedSubject,
|
|
47566
|
-
events,
|
|
47577
|
+
events: scopedEvents,
|
|
47567
47578
|
showVenue: presentation.showVenue,
|
|
47568
47579
|
showMap: presentation.showMap,
|
|
47569
47580
|
showOtherDates: presentation.showOtherDates,
|
package/dist/server/routing.mjs
CHANGED
|
@@ -32080,6 +32080,7 @@ var init_schemas = __esmMin((() => {
|
|
|
32080
32080
|
freePriceDisplaySchema,
|
|
32081
32081
|
exactPriceDisplaySchema,
|
|
32082
32082
|
fromPriceDisplaySchema,
|
|
32083
|
+
rangePriceDisplaySchema,
|
|
32083
32084
|
unavailablePriceDisplaySchema
|
|
32084
32085
|
]);
|
|
32085
32086
|
z.discriminatedUnion("kind", [
|
|
@@ -33142,13 +33143,16 @@ function buildEventRegistrationShellStepLabels(source) {
|
|
|
33142
33143
|
}) : false).map((step) => shellLabelForRegistrationStep(step, scopedEvents));
|
|
33143
33144
|
}
|
|
33144
33145
|
function scopeEventRegistrationEvents(source) {
|
|
33146
|
+
return toRegistrationEvents(scopeEventRegistrationSourceEvents(source));
|
|
33147
|
+
}
|
|
33148
|
+
function scopeEventRegistrationSourceEvents(source) {
|
|
33145
33149
|
const scope = planEventRegistrationScope({
|
|
33146
|
-
events:
|
|
33150
|
+
events: source.events ?? [],
|
|
33147
33151
|
wholeSeriesOffering: source.wholeSeriesOffering,
|
|
33148
33152
|
occurrenceContext: source.occurrenceContext,
|
|
33149
33153
|
subject: source.subject
|
|
33150
33154
|
});
|
|
33151
|
-
return scope.kind === "invalidSelectedRun" ? [] : scope.events;
|
|
33155
|
+
return scope.kind === "invalidSelectedRun" ? [] : [...scope.events];
|
|
33152
33156
|
}
|
|
33153
33157
|
function shellLabelForRegistrationStep(step, events) {
|
|
33154
33158
|
switch (step) {
|
|
@@ -33276,26 +33280,29 @@ var init_event_registration_interactive = __esmMin((() => {
|
|
|
33276
33280
|
source: createZodCodec(eventRegistrationSourceSchema),
|
|
33277
33281
|
render: createZodCodec(eventRegistrationRenderSchema)
|
|
33278
33282
|
},
|
|
33279
|
-
buildRender: (source) =>
|
|
33280
|
-
|
|
33281
|
-
|
|
33282
|
-
|
|
33283
|
-
|
|
33284
|
-
|
|
33285
|
-
|
|
33286
|
-
|
|
33287
|
-
|
|
33288
|
-
|
|
33289
|
-
|
|
33290
|
-
|
|
33291
|
-
|
|
33292
|
-
|
|
33293
|
-
|
|
33294
|
-
|
|
33295
|
-
|
|
33296
|
-
|
|
33297
|
-
|
|
33298
|
-
|
|
33283
|
+
buildRender: (source) => {
|
|
33284
|
+
const events = source.events == null ? null : scopeEventRegistrationSourceEvents(source);
|
|
33285
|
+
return {
|
|
33286
|
+
display: buildEventRegistrationDisplay(source),
|
|
33287
|
+
hydration: {
|
|
33288
|
+
occurrenceContext: source.occurrenceContext ?? null,
|
|
33289
|
+
subject: source.subject ?? null,
|
|
33290
|
+
events,
|
|
33291
|
+
wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
|
|
33292
|
+
wholeSeriesOffering: resolveWholeSeriesOffering(source),
|
|
33293
|
+
maxTickets: source.maxTickets ?? void 0,
|
|
33294
|
+
showVenue: source.showVenue,
|
|
33295
|
+
showCapacity: source.showCapacity,
|
|
33296
|
+
successMessage: source.successMessage,
|
|
33297
|
+
buttonVariant: source.buttonVariant,
|
|
33298
|
+
overlayEnabled: source.overlayEnabled,
|
|
33299
|
+
spamProtectionEnabled: source.spamProtectionEnabled,
|
|
33300
|
+
supportEmail: source.supportEmail,
|
|
33301
|
+
sitePasses: source.sitePasses ?? null,
|
|
33302
|
+
siteMemberships: source.siteMemberships ?? null
|
|
33303
|
+
}
|
|
33304
|
+
};
|
|
33305
|
+
}
|
|
33299
33306
|
});
|
|
33300
33307
|
}));
|
|
33301
33308
|
//#endregion
|
package/dist/server/server.mjs
CHANGED
|
@@ -8075,7 +8075,7 @@ var SimpleCache = class {
|
|
|
8075
8075
|
* 1. This constant
|
|
8076
8076
|
* 2. The "version" field in package.json
|
|
8077
8077
|
*/
|
|
8078
|
-
const SDK_VERSION = "0.135.
|
|
8078
|
+
const SDK_VERSION = "0.135.1";
|
|
8079
8079
|
//#endregion
|
|
8080
8080
|
//#region src/client/error.ts
|
|
8081
8081
|
let _Symbol$for;
|
|
@@ -35721,6 +35721,7 @@ const publicWholeSeriesPriceDisplaySchema = z.discriminatedUnion("kind", [
|
|
|
35721
35721
|
freePriceDisplaySchema,
|
|
35722
35722
|
exactPriceDisplaySchema,
|
|
35723
35723
|
fromPriceDisplaySchema,
|
|
35724
|
+
rangePriceDisplaySchema,
|
|
35724
35725
|
unavailablePriceDisplaySchema
|
|
35725
35726
|
]);
|
|
35726
35727
|
z.discriminatedUnion("kind", [
|
|
@@ -36824,13 +36825,16 @@ function buildEventRegistrationShellStepLabels(source) {
|
|
|
36824
36825
|
}) : false).map((step) => shellLabelForRegistrationStep(step, scopedEvents));
|
|
36825
36826
|
}
|
|
36826
36827
|
function scopeEventRegistrationEvents(source) {
|
|
36828
|
+
return toRegistrationEvents(scopeEventRegistrationSourceEvents(source));
|
|
36829
|
+
}
|
|
36830
|
+
function scopeEventRegistrationSourceEvents(source) {
|
|
36827
36831
|
const scope = planEventRegistrationScope({
|
|
36828
|
-
events:
|
|
36832
|
+
events: source.events ?? [],
|
|
36829
36833
|
wholeSeriesOffering: source.wholeSeriesOffering,
|
|
36830
36834
|
occurrenceContext: source.occurrenceContext,
|
|
36831
36835
|
subject: source.subject
|
|
36832
36836
|
});
|
|
36833
|
-
return scope.kind === "invalidSelectedRun" ? [] : scope.events;
|
|
36837
|
+
return scope.kind === "invalidSelectedRun" ? [] : [...scope.events];
|
|
36834
36838
|
}
|
|
36835
36839
|
function shellLabelForRegistrationStep(step, events) {
|
|
36836
36840
|
switch (step) {
|
|
@@ -36862,26 +36866,29 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
36862
36866
|
source: createZodCodec(eventRegistrationSourceSchema),
|
|
36863
36867
|
render: createZodCodec(eventRegistrationRenderSchema)
|
|
36864
36868
|
},
|
|
36865
|
-
buildRender: (source) =>
|
|
36866
|
-
|
|
36867
|
-
|
|
36868
|
-
|
|
36869
|
-
|
|
36870
|
-
|
|
36871
|
-
|
|
36872
|
-
|
|
36873
|
-
|
|
36874
|
-
|
|
36875
|
-
|
|
36876
|
-
|
|
36877
|
-
|
|
36878
|
-
|
|
36879
|
-
|
|
36880
|
-
|
|
36881
|
-
|
|
36882
|
-
|
|
36883
|
-
|
|
36884
|
-
|
|
36869
|
+
buildRender: (source) => {
|
|
36870
|
+
const events = source.events == null ? null : scopeEventRegistrationSourceEvents(source);
|
|
36871
|
+
return {
|
|
36872
|
+
display: buildEventRegistrationDisplay(source),
|
|
36873
|
+
hydration: {
|
|
36874
|
+
occurrenceContext: source.occurrenceContext ?? null,
|
|
36875
|
+
subject: source.subject ?? null,
|
|
36876
|
+
events,
|
|
36877
|
+
wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
|
|
36878
|
+
wholeSeriesOffering: resolveWholeSeriesOffering(source),
|
|
36879
|
+
maxTickets: source.maxTickets ?? void 0,
|
|
36880
|
+
showVenue: source.showVenue,
|
|
36881
|
+
showCapacity: source.showCapacity,
|
|
36882
|
+
successMessage: source.successMessage,
|
|
36883
|
+
buttonVariant: source.buttonVariant,
|
|
36884
|
+
overlayEnabled: source.overlayEnabled,
|
|
36885
|
+
spamProtectionEnabled: source.spamProtectionEnabled,
|
|
36886
|
+
supportEmail: source.supportEmail,
|
|
36887
|
+
sitePasses: source.sitePasses ?? null,
|
|
36888
|
+
siteMemberships: source.siteMemberships ?? null
|
|
36889
|
+
}
|
|
36890
|
+
};
|
|
36891
|
+
}
|
|
36885
36892
|
});
|
|
36886
36893
|
function normalizeEventRegistrationEventInput(value) {
|
|
36887
36894
|
if (!isRecord$8(value)) return value;
|