@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.
Files changed (57) hide show
  1. package/dist/{PreviewEditorSidebar-roNY0GVy.mjs → PreviewEditorSidebar-D4p_5TdY.mjs} +3 -3
  2. package/dist/{PreviewEditorUI-KboDbEh_.mjs → PreviewEditorUI-D0cRoTX1.mjs} +2 -2
  3. package/dist/{SdkPreviewModeRuntime-DBrF7Caa.mjs → SdkPreviewModeRuntime-BKLtM3Nz.mjs} +3 -3
  4. package/dist/{SiteChromeCustomizeContext-DrIEpJKn.mjs → SiteChromeCustomizeContext-61X2m7QV.mjs} +35 -24
  5. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +25 -0
  6. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +10 -0
  7. package/dist/_dts/sdk/src/version.d.ts +1 -1
  8. package/dist/client/{BookingConsentAgreement-BQqwi8Oa.mjs → BookingConsentAgreement-Bz9znbpn.mjs} +2 -2
  9. package/dist/client/{DiscountCodeDisclosure-B97aMo0V.mjs → DiscountCodeDisclosure-35Ru8yB9.mjs} +1 -1
  10. package/dist/client/{EventCombined.client-Bs2Iw9Q6.mjs → EventCombined.client-BKB0ZxRR.mjs} +2 -2
  11. package/dist/client/{EventListing.client-C4QUQdmg.mjs → EventListing.client-Dx8I21ok.mjs} +2 -2
  12. package/dist/client/{LeafletStaticMap-CwWRk69M.mjs → LeafletStaticMap-CEWx-Bhe.mjs} +1 -1
  13. package/dist/client/{accordion-BA0j8Mpw.mjs → accordion-KIDsKTwS.mjs} +1 -1
  14. package/dist/client/{bookingForm-Br2e41H0.mjs → bookingForm-D96Rmp-5.mjs} +4 -4
  15. package/dist/client/bookings.mjs +1 -0
  16. package/dist/client/{carousel-B4dmwnpD.mjs → carousel-YwUgyL66.mjs} +1 -1
  17. package/dist/client/{cart-B_ckGW4b.mjs → cart-BbwuNrUT.mjs} +3 -3
  18. package/dist/client/{checkout-DAyspHdf.mjs → checkout-hp1ucmEY.mjs} +3 -3
  19. package/dist/client/client.mjs +36 -25
  20. package/dist/client/{eventCalendar-pJu3FUod.mjs → eventCalendar-DU4iNLpo.mjs} +4 -4
  21. package/dist/client/{eventCombined-B6Kacm9F.mjs → eventCombined-CZuupW8m.mjs} +2 -2
  22. package/dist/client/{eventDetails-CaX9z1pv.mjs → eventDetails-DPQWwCIi.mjs} +2 -2
  23. package/dist/client/{eventListing-B9aXPO-I.mjs → eventListing-C7oMidwS.mjs} +2 -2
  24. package/dist/client/{eventRegistration-CBSovBkg.mjs → eventRegistration-zEiunlUs.mjs} +4 -4
  25. package/dist/client/{form-Cm0tu_7o.mjs → form-D2KIyCVJ.mjs} +1 -1
  26. package/dist/client/{headerSection-OgRtHeKS.mjs → headerSection-CK5uChUK.mjs} +2 -2
  27. package/dist/client/hooks.mjs +29 -22
  28. package/dist/client/{locationMap-DmjcYqNM.mjs → locationMap-DLQNH1ln.mjs} +2 -2
  29. package/dist/client/{newsletterForm-D08OZQAC.mjs → newsletterForm-ZuhIG7fZ.mjs} +1 -1
  30. package/dist/client/{productDetail-BqZeu2P4.mjs → productDetail-7hIcGeae.mjs} +3 -3
  31. package/dist/client/{productList-mNyIF9FG.mjs → productList-T4Cii1ot.mjs} +3 -3
  32. package/dist/client/{propsDecoder-DwHXRm9X.mjs → propsDecoder-mB0aC_Fi.mjs} +29 -22
  33. package/dist/client/rendering/client.mjs +35 -24
  34. package/dist/client/rendering/islands.mjs +17 -17
  35. package/dist/client/rendering.mjs +35 -24
  36. package/dist/client/{scrollToBlock-DtmdM3v-.mjs → scrollToBlock-Du5mHgvL.mjs} +1 -1
  37. package/dist/client/{shop-CNjZK16F.mjs → shop-B5zAcKZn.mjs} +5 -5
  38. package/dist/client/{shop-commerce-DkNNao1J.mjs → shop-commerce-BKBZB6l5.mjs} +4 -4
  39. package/dist/client/{shop-commerce-store-9WA--zuW.mjs → shop-commerce-store-Cq4qlNtQ.mjs} +1 -1
  40. package/dist/client/{shopShared-CHCVfccY.mjs → shopShared-DYGzEs9D.mjs} +2 -2
  41. package/dist/client/{useEventFilters-DvuaB4ZN.mjs → useEventFilters-Bphkda8m.mjs} +2 -2
  42. package/dist/preview-next/client/runtime.mjs +3 -3
  43. package/dist/{sdk-runtime-3GhW4knb.mjs → sdk-runtime-BbIC8G4J.mjs} +1 -1
  44. package/dist/{separator-D3bCWYYb.mjs → separator-CadhAtI7.mjs} +1 -1
  45. package/dist/server/components.mjs +35 -24
  46. package/dist/server/config-validation.mjs +29 -22
  47. package/dist/server/config.mjs +29 -22
  48. package/dist/server/data.mjs +29 -22
  49. package/dist/server/index.mjs +1 -1
  50. package/dist/server/next.mjs +36 -25
  51. package/dist/server/page-converter.mjs +29 -22
  52. package/dist/server/prebuild.mjs +1 -1
  53. package/dist/server/rendering/server.mjs +35 -24
  54. package/dist/server/rendering.mjs +35 -24
  55. package/dist/server/routing.mjs +29 -22
  56. package/dist/server/server.mjs +30 -23
  57. 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: toRegistrationEvents(source.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
- display: buildEventRegistrationDisplay(source),
33209
- hydration: {
33210
- occurrenceContext: source.occurrenceContext ?? null,
33211
- subject: source.subject ?? null,
33212
- events: source.events ?? null,
33213
- wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
33214
- wholeSeriesOffering: resolveWholeSeriesOffering(source),
33215
- maxTickets: source.maxTickets ?? void 0,
33216
- showVenue: source.showVenue,
33217
- showCapacity: source.showCapacity,
33218
- successMessage: source.successMessage,
33219
- buttonVariant: source.buttonVariant,
33220
- overlayEnabled: source.overlayEnabled,
33221
- spamProtectionEnabled: source.spamProtectionEnabled,
33222
- supportEmail: source.supportEmail,
33223
- sitePasses: source.sitePasses ?? null,
33224
- siteMemberships: source.siteMemberships ?? null
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;
@@ -47168,9 +47175,13 @@ function EventDetailsSSR(props) {
47168
47175
  const { blockId, occurrenceContext = null, subject, events = null, className, children } = props;
47169
47176
  const nowIso = (/* @__PURE__ */ new Date()).toISOString();
47170
47177
  const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
47178
+ const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
47179
+ occurrenceContext,
47180
+ subject: normalizedSubject
47181
+ });
47171
47182
  const presentation = resolveEventDetailsPresentation({
47172
47183
  ...props,
47173
- events,
47184
+ events: scopedEvents,
47174
47185
  occurrenceContext,
47175
47186
  subject: normalizedSubject,
47176
47187
  nowIso
@@ -47183,7 +47194,7 @@ function EventDetailsSSR(props) {
47183
47194
  /* @__PURE__ */ jsx(IslandPropsScript, { value: {
47184
47195
  occurrenceContext,
47185
47196
  subject: normalizedSubject,
47186
- events,
47197
+ events: scopedEvents,
47187
47198
  showVenue: presentation.showVenue,
47188
47199
  showMap: presentation.showMap,
47189
47200
  showOtherDates: presentation.showOtherDates,
@@ -26801,6 +26801,7 @@ const publicWholeSeriesPriceDisplaySchema = z.discriminatedUnion("kind", [
26801
26801
  freePriceDisplaySchema,
26802
26802
  exactPriceDisplaySchema,
26803
26803
  fromPriceDisplaySchema,
26804
+ rangePriceDisplaySchema,
26804
26805
  unavailablePriceDisplaySchema
26805
26806
  ]);
26806
26807
  z.discriminatedUnion("kind", [
@@ -27904,13 +27905,16 @@ function buildEventRegistrationShellStepLabels(source) {
27904
27905
  }) : false).map((step) => shellLabelForRegistrationStep(step, scopedEvents));
27905
27906
  }
27906
27907
  function scopeEventRegistrationEvents(source) {
27908
+ return toRegistrationEvents(scopeEventRegistrationSourceEvents(source));
27909
+ }
27910
+ function scopeEventRegistrationSourceEvents(source) {
27907
27911
  const scope = planEventRegistrationScope({
27908
- events: toRegistrationEvents(source.events ?? []),
27912
+ events: source.events ?? [],
27909
27913
  wholeSeriesOffering: source.wholeSeriesOffering,
27910
27914
  occurrenceContext: source.occurrenceContext,
27911
27915
  subject: source.subject
27912
27916
  });
27913
- return scope.kind === "invalidSelectedRun" ? [] : scope.events;
27917
+ return scope.kind === "invalidSelectedRun" ? [] : [...scope.events];
27914
27918
  }
27915
27919
  function shellLabelForRegistrationStep(step, events) {
27916
27920
  switch (step) {
@@ -27942,26 +27946,29 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
27942
27946
  source: createZodCodec(eventRegistrationSourceSchema),
27943
27947
  render: createZodCodec(eventRegistrationRenderSchema)
27944
27948
  },
27945
- buildRender: (source) => ({
27946
- display: buildEventRegistrationDisplay(source),
27947
- hydration: {
27948
- occurrenceContext: source.occurrenceContext ?? null,
27949
- subject: source.subject ?? null,
27950
- events: source.events ?? null,
27951
- wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
27952
- wholeSeriesOffering: resolveWholeSeriesOffering(source),
27953
- maxTickets: source.maxTickets ?? void 0,
27954
- showVenue: source.showVenue,
27955
- showCapacity: source.showCapacity,
27956
- successMessage: source.successMessage,
27957
- buttonVariant: source.buttonVariant,
27958
- overlayEnabled: source.overlayEnabled,
27959
- spamProtectionEnabled: source.spamProtectionEnabled,
27960
- supportEmail: source.supportEmail,
27961
- sitePasses: source.sitePasses ?? null,
27962
- siteMemberships: source.siteMemberships ?? null
27963
- }
27964
- })
27949
+ buildRender: (source) => {
27950
+ const events = source.events == null ? null : scopeEventRegistrationSourceEvents(source);
27951
+ return {
27952
+ display: buildEventRegistrationDisplay(source),
27953
+ hydration: {
27954
+ occurrenceContext: source.occurrenceContext ?? null,
27955
+ subject: source.subject ?? null,
27956
+ events,
27957
+ wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
27958
+ wholeSeriesOffering: resolveWholeSeriesOffering(source),
27959
+ maxTickets: source.maxTickets ?? void 0,
27960
+ showVenue: source.showVenue,
27961
+ showCapacity: source.showCapacity,
27962
+ successMessage: source.successMessage,
27963
+ buttonVariant: source.buttonVariant,
27964
+ overlayEnabled: source.overlayEnabled,
27965
+ spamProtectionEnabled: source.spamProtectionEnabled,
27966
+ supportEmail: source.supportEmail,
27967
+ sitePasses: source.sitePasses ?? null,
27968
+ siteMemberships: source.siteMemberships ?? null
27969
+ }
27970
+ };
27971
+ }
27965
27972
  });
27966
27973
  function normalizeEventRegistrationEventInput(value) {
27967
27974
  if (!isRecord$3(value)) return value;
@@ -26877,6 +26877,7 @@ const publicWholeSeriesPriceDisplaySchema = z.discriminatedUnion("kind", [
26877
26877
  freePriceDisplaySchema,
26878
26878
  exactPriceDisplaySchema,
26879
26879
  fromPriceDisplaySchema,
26880
+ rangePriceDisplaySchema,
26880
26881
  unavailablePriceDisplaySchema
26881
26882
  ]);
26882
26883
  z.discriminatedUnion("kind", [
@@ -27980,13 +27981,16 @@ function buildEventRegistrationShellStepLabels(source) {
27980
27981
  }) : false).map((step) => shellLabelForRegistrationStep(step, scopedEvents));
27981
27982
  }
27982
27983
  function scopeEventRegistrationEvents(source) {
27984
+ return toRegistrationEvents(scopeEventRegistrationSourceEvents(source));
27985
+ }
27986
+ function scopeEventRegistrationSourceEvents(source) {
27983
27987
  const scope = planEventRegistrationScope({
27984
- events: toRegistrationEvents(source.events ?? []),
27988
+ events: source.events ?? [],
27985
27989
  wholeSeriesOffering: source.wholeSeriesOffering,
27986
27990
  occurrenceContext: source.occurrenceContext,
27987
27991
  subject: source.subject
27988
27992
  });
27989
- return scope.kind === "invalidSelectedRun" ? [] : scope.events;
27993
+ return scope.kind === "invalidSelectedRun" ? [] : [...scope.events];
27990
27994
  }
27991
27995
  function shellLabelForRegistrationStep(step, events) {
27992
27996
  switch (step) {
@@ -28018,26 +28022,29 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
28018
28022
  source: createZodCodec(eventRegistrationSourceSchema),
28019
28023
  render: createZodCodec(eventRegistrationRenderSchema)
28020
28024
  },
28021
- buildRender: (source) => ({
28022
- display: buildEventRegistrationDisplay(source),
28023
- hydration: {
28024
- occurrenceContext: source.occurrenceContext ?? null,
28025
- subject: source.subject ?? null,
28026
- events: source.events ?? null,
28027
- wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
28028
- wholeSeriesOffering: resolveWholeSeriesOffering(source),
28029
- maxTickets: source.maxTickets ?? void 0,
28030
- showVenue: source.showVenue,
28031
- showCapacity: source.showCapacity,
28032
- successMessage: source.successMessage,
28033
- buttonVariant: source.buttonVariant,
28034
- overlayEnabled: source.overlayEnabled,
28035
- spamProtectionEnabled: source.spamProtectionEnabled,
28036
- supportEmail: source.supportEmail,
28037
- sitePasses: source.sitePasses ?? null,
28038
- siteMemberships: source.siteMemberships ?? null
28039
- }
28040
- })
28025
+ buildRender: (source) => {
28026
+ const events = source.events == null ? null : scopeEventRegistrationSourceEvents(source);
28027
+ return {
28028
+ display: buildEventRegistrationDisplay(source),
28029
+ hydration: {
28030
+ occurrenceContext: source.occurrenceContext ?? null,
28031
+ subject: source.subject ?? null,
28032
+ events,
28033
+ wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
28034
+ wholeSeriesOffering: resolveWholeSeriesOffering(source),
28035
+ maxTickets: source.maxTickets ?? void 0,
28036
+ showVenue: source.showVenue,
28037
+ showCapacity: source.showCapacity,
28038
+ successMessage: source.successMessage,
28039
+ buttonVariant: source.buttonVariant,
28040
+ overlayEnabled: source.overlayEnabled,
28041
+ spamProtectionEnabled: source.spamProtectionEnabled,
28042
+ supportEmail: source.supportEmail,
28043
+ sitePasses: source.sitePasses ?? null,
28044
+ siteMemberships: source.siteMemberships ?? null
28045
+ }
28046
+ };
28047
+ }
28041
28048
  });
28042
28049
  function normalizeEventRegistrationEventInput(value) {
28043
28050
  if (!isRecord$3(value)) return value;
@@ -26803,6 +26803,7 @@ const publicWholeSeriesPriceDisplaySchema = z.discriminatedUnion("kind", [
26803
26803
  freePriceDisplaySchema,
26804
26804
  exactPriceDisplaySchema,
26805
26805
  fromPriceDisplaySchema,
26806
+ rangePriceDisplaySchema,
26806
26807
  unavailablePriceDisplaySchema
26807
26808
  ]);
26808
26809
  z.discriminatedUnion("kind", [
@@ -27906,13 +27907,16 @@ function buildEventRegistrationShellStepLabels(source) {
27906
27907
  }) : false).map((step) => shellLabelForRegistrationStep(step, scopedEvents));
27907
27908
  }
27908
27909
  function scopeEventRegistrationEvents(source) {
27910
+ return toRegistrationEvents(scopeEventRegistrationSourceEvents(source));
27911
+ }
27912
+ function scopeEventRegistrationSourceEvents(source) {
27909
27913
  const scope = planEventRegistrationScope({
27910
- events: toRegistrationEvents(source.events ?? []),
27914
+ events: source.events ?? [],
27911
27915
  wholeSeriesOffering: source.wholeSeriesOffering,
27912
27916
  occurrenceContext: source.occurrenceContext,
27913
27917
  subject: source.subject
27914
27918
  });
27915
- return scope.kind === "invalidSelectedRun" ? [] : scope.events;
27919
+ return scope.kind === "invalidSelectedRun" ? [] : [...scope.events];
27916
27920
  }
27917
27921
  function shellLabelForRegistrationStep(step, events) {
27918
27922
  switch (step) {
@@ -27944,26 +27948,29 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
27944
27948
  source: createZodCodec(eventRegistrationSourceSchema),
27945
27949
  render: createZodCodec(eventRegistrationRenderSchema)
27946
27950
  },
27947
- buildRender: (source) => ({
27948
- display: buildEventRegistrationDisplay(source),
27949
- hydration: {
27950
- occurrenceContext: source.occurrenceContext ?? null,
27951
- subject: source.subject ?? null,
27952
- events: source.events ?? null,
27953
- wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
27954
- wholeSeriesOffering: resolveWholeSeriesOffering(source),
27955
- maxTickets: source.maxTickets ?? void 0,
27956
- showVenue: source.showVenue,
27957
- showCapacity: source.showCapacity,
27958
- successMessage: source.successMessage,
27959
- buttonVariant: source.buttonVariant,
27960
- overlayEnabled: source.overlayEnabled,
27961
- spamProtectionEnabled: source.spamProtectionEnabled,
27962
- supportEmail: source.supportEmail,
27963
- sitePasses: source.sitePasses ?? null,
27964
- siteMemberships: source.siteMemberships ?? null
27965
- }
27966
- })
27951
+ buildRender: (source) => {
27952
+ const events = source.events == null ? null : scopeEventRegistrationSourceEvents(source);
27953
+ return {
27954
+ display: buildEventRegistrationDisplay(source),
27955
+ hydration: {
27956
+ occurrenceContext: source.occurrenceContext ?? null,
27957
+ subject: source.subject ?? null,
27958
+ events,
27959
+ wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
27960
+ wholeSeriesOffering: resolveWholeSeriesOffering(source),
27961
+ maxTickets: source.maxTickets ?? void 0,
27962
+ showVenue: source.showVenue,
27963
+ showCapacity: source.showCapacity,
27964
+ successMessage: source.successMessage,
27965
+ buttonVariant: source.buttonVariant,
27966
+ overlayEnabled: source.overlayEnabled,
27967
+ spamProtectionEnabled: source.spamProtectionEnabled,
27968
+ supportEmail: source.supportEmail,
27969
+ sitePasses: source.sitePasses ?? null,
27970
+ siteMemberships: source.siteMemberships ?? null
27971
+ }
27972
+ };
27973
+ }
27967
27974
  });
27968
27975
  function normalizeEventRegistrationEventInput(value) {
27969
27976
  if (!isRecord$5(value)) return value;
@@ -8050,7 +8050,7 @@ var SimpleCache = class {
8050
8050
  * 1. This constant
8051
8051
  * 2. The "version" field in package.json
8052
8052
  */
8053
- const SDK_VERSION = "0.135.0";
8053
+ const SDK_VERSION = "0.135.1";
8054
8054
  //#endregion
8055
8055
  //#region src/client/error.ts
8056
8056
  let _Symbol$for;
@@ -40431,6 +40431,7 @@ const publicWholeSeriesPriceDisplaySchema = z$1.discriminatedUnion("kind", [
40431
40431
  freePriceDisplaySchema,
40432
40432
  exactPriceDisplaySchema,
40433
40433
  fromPriceDisplaySchema,
40434
+ rangePriceDisplaySchema,
40434
40435
  unavailablePriceDisplaySchema
40435
40436
  ]);
40436
40437
  z$1.discriminatedUnion("kind", [
@@ -41557,13 +41558,16 @@ function buildEventRegistrationShellStepLabels(source) {
41557
41558
  }) : false).map((step) => shellLabelForRegistrationStep(step, scopedEvents));
41558
41559
  }
41559
41560
  function scopeEventRegistrationEvents(source) {
41561
+ return toRegistrationEvents(scopeEventRegistrationSourceEvents(source));
41562
+ }
41563
+ function scopeEventRegistrationSourceEvents(source) {
41560
41564
  const scope = planEventRegistrationScope({
41561
- events: toRegistrationEvents(source.events ?? []),
41565
+ events: source.events ?? [],
41562
41566
  wholeSeriesOffering: source.wholeSeriesOffering,
41563
41567
  occurrenceContext: source.occurrenceContext,
41564
41568
  subject: source.subject
41565
41569
  });
41566
- return scope.kind === "invalidSelectedRun" ? [] : scope.events;
41570
+ return scope.kind === "invalidSelectedRun" ? [] : [...scope.events];
41567
41571
  }
41568
41572
  function shellLabelForRegistrationStep(step, events) {
41569
41573
  switch (step) {
@@ -41595,26 +41599,29 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
41595
41599
  source: createZodCodec(eventRegistrationSourceSchema),
41596
41600
  render: createZodCodec(eventRegistrationRenderSchema)
41597
41601
  },
41598
- buildRender: (source) => ({
41599
- display: buildEventRegistrationDisplay(source),
41600
- hydration: {
41601
- occurrenceContext: source.occurrenceContext ?? null,
41602
- subject: source.subject ?? null,
41603
- events: source.events ?? null,
41604
- wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
41605
- wholeSeriesOffering: resolveWholeSeriesOffering(source),
41606
- maxTickets: source.maxTickets ?? void 0,
41607
- showVenue: source.showVenue,
41608
- showCapacity: source.showCapacity,
41609
- successMessage: source.successMessage,
41610
- buttonVariant: source.buttonVariant,
41611
- overlayEnabled: source.overlayEnabled,
41612
- spamProtectionEnabled: source.spamProtectionEnabled,
41613
- supportEmail: source.supportEmail,
41614
- sitePasses: source.sitePasses ?? null,
41615
- siteMemberships: source.siteMemberships ?? null
41616
- }
41617
- })
41602
+ buildRender: (source) => {
41603
+ const events = source.events == null ? null : scopeEventRegistrationSourceEvents(source);
41604
+ return {
41605
+ display: buildEventRegistrationDisplay(source),
41606
+ hydration: {
41607
+ occurrenceContext: source.occurrenceContext ?? null,
41608
+ subject: source.subject ?? null,
41609
+ events,
41610
+ wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
41611
+ wholeSeriesOffering: resolveWholeSeriesOffering(source),
41612
+ maxTickets: source.maxTickets ?? void 0,
41613
+ showVenue: source.showVenue,
41614
+ showCapacity: source.showCapacity,
41615
+ successMessage: source.successMessage,
41616
+ buttonVariant: source.buttonVariant,
41617
+ overlayEnabled: source.overlayEnabled,
41618
+ spamProtectionEnabled: source.spamProtectionEnabled,
41619
+ supportEmail: source.supportEmail,
41620
+ sitePasses: source.sitePasses ?? null,
41621
+ siteMemberships: source.siteMemberships ?? null
41622
+ }
41623
+ };
41624
+ }
41618
41625
  });
41619
41626
  function normalizeEventRegistrationEventInput(value) {
41620
41627
  if (!isRecord$21(value)) return value;
@@ -55841,9 +55848,13 @@ function EventDetailsSSR(props) {
55841
55848
  const { blockId, occurrenceContext = null, subject, events = null, className, children } = props;
55842
55849
  const nowIso = (/* @__PURE__ */ new Date()).toISOString();
55843
55850
  const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
55851
+ const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
55852
+ occurrenceContext,
55853
+ subject: normalizedSubject
55854
+ });
55844
55855
  const presentation = resolveEventDetailsPresentation({
55845
55856
  ...props,
55846
- events,
55857
+ events: scopedEvents,
55847
55858
  occurrenceContext,
55848
55859
  subject: normalizedSubject,
55849
55860
  nowIso
@@ -55856,7 +55867,7 @@ function EventDetailsSSR(props) {
55856
55867
  /* @__PURE__ */ jsx(IslandPropsScript, { value: {
55857
55868
  occurrenceContext,
55858
55869
  subject: normalizedSubject,
55859
- events,
55870
+ events: scopedEvents,
55860
55871
  showVenue: presentation.showVenue,
55861
55872
  showMap: presentation.showMap,
55862
55873
  showOtherDates: presentation.showOtherDates,
@@ -85065,7 +85076,7 @@ var CircuitOpenError = class extends Error {
85065
85076
  * 1. This constant
85066
85077
  * 2. The "version" field in package.json
85067
85078
  */
85068
- const SDK_VERSION = "0.135.0";
85079
+ const SDK_VERSION = "0.135.1";
85069
85080
  //#endregion
85070
85081
  //#region src/next/content-load-failure.ts
85071
85082
  const SdkContentLoadError = RiverbankContentLoadError;
@@ -21450,6 +21450,7 @@ const publicWholeSeriesPriceDisplaySchema = z.discriminatedUnion("kind", [
21450
21450
  freePriceDisplaySchema,
21451
21451
  exactPriceDisplaySchema,
21452
21452
  fromPriceDisplaySchema,
21453
+ rangePriceDisplaySchema,
21453
21454
  unavailablePriceDisplaySchema
21454
21455
  ]);
21455
21456
  z.discriminatedUnion("kind", [
@@ -22553,13 +22554,16 @@ function buildEventRegistrationShellStepLabels(source) {
22553
22554
  }) : false).map((step) => shellLabelForRegistrationStep(step, scopedEvents));
22554
22555
  }
22555
22556
  function scopeEventRegistrationEvents(source) {
22557
+ return toRegistrationEvents(scopeEventRegistrationSourceEvents(source));
22558
+ }
22559
+ function scopeEventRegistrationSourceEvents(source) {
22556
22560
  const scope = planEventRegistrationScope({
22557
- events: toRegistrationEvents(source.events ?? []),
22561
+ events: source.events ?? [],
22558
22562
  wholeSeriesOffering: source.wholeSeriesOffering,
22559
22563
  occurrenceContext: source.occurrenceContext,
22560
22564
  subject: source.subject
22561
22565
  });
22562
- return scope.kind === "invalidSelectedRun" ? [] : scope.events;
22566
+ return scope.kind === "invalidSelectedRun" ? [] : [...scope.events];
22563
22567
  }
22564
22568
  function shellLabelForRegistrationStep(step, events) {
22565
22569
  switch (step) {
@@ -22591,26 +22595,29 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
22591
22595
  source: createZodCodec(eventRegistrationSourceSchema),
22592
22596
  render: createZodCodec(eventRegistrationRenderSchema)
22593
22597
  },
22594
- buildRender: (source) => ({
22595
- display: buildEventRegistrationDisplay(source),
22596
- hydration: {
22597
- occurrenceContext: source.occurrenceContext ?? null,
22598
- subject: source.subject ?? null,
22599
- events: source.events ?? null,
22600
- wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
22601
- wholeSeriesOffering: resolveWholeSeriesOffering(source),
22602
- maxTickets: source.maxTickets ?? void 0,
22603
- showVenue: source.showVenue,
22604
- showCapacity: source.showCapacity,
22605
- successMessage: source.successMessage,
22606
- buttonVariant: source.buttonVariant,
22607
- overlayEnabled: source.overlayEnabled,
22608
- spamProtectionEnabled: source.spamProtectionEnabled,
22609
- supportEmail: source.supportEmail,
22610
- sitePasses: source.sitePasses ?? null,
22611
- siteMemberships: source.siteMemberships ?? null
22612
- }
22613
- })
22598
+ buildRender: (source) => {
22599
+ const events = source.events == null ? null : scopeEventRegistrationSourceEvents(source);
22600
+ return {
22601
+ display: buildEventRegistrationDisplay(source),
22602
+ hydration: {
22603
+ occurrenceContext: source.occurrenceContext ?? null,
22604
+ subject: source.subject ?? null,
22605
+ events,
22606
+ wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
22607
+ wholeSeriesOffering: resolveWholeSeriesOffering(source),
22608
+ maxTickets: source.maxTickets ?? void 0,
22609
+ showVenue: source.showVenue,
22610
+ showCapacity: source.showCapacity,
22611
+ successMessage: source.successMessage,
22612
+ buttonVariant: source.buttonVariant,
22613
+ overlayEnabled: source.overlayEnabled,
22614
+ spamProtectionEnabled: source.spamProtectionEnabled,
22615
+ supportEmail: source.supportEmail,
22616
+ sitePasses: source.sitePasses ?? null,
22617
+ siteMemberships: source.siteMemberships ?? null
22618
+ }
22619
+ };
22620
+ }
22614
22621
  });
22615
22622
  function normalizeEventRegistrationEventInput(value) {
22616
22623
  if (!isRecord$3(value)) return value;
@@ -12,7 +12,7 @@ import * as crypto from "crypto";
12
12
  * 1. This constant
13
13
  * 2. The "version" field in package.json
14
14
  */
15
- const SDK_VERSION = "0.135.0";
15
+ const SDK_VERSION = "0.135.1";
16
16
  //#endregion
17
17
  //#region src/constants.ts
18
18
  /**
@@ -31121,6 +31121,7 @@ const publicWholeSeriesPriceDisplaySchema = z.discriminatedUnion("kind", [
31121
31121
  freePriceDisplaySchema,
31122
31122
  exactPriceDisplaySchema,
31123
31123
  fromPriceDisplaySchema,
31124
+ rangePriceDisplaySchema,
31124
31125
  unavailablePriceDisplaySchema
31125
31126
  ]);
31126
31127
  z.discriminatedUnion("kind", [
@@ -32250,13 +32251,16 @@ function buildEventRegistrationShellStepLabels(source) {
32250
32251
  }) : false).map((step) => shellLabelForRegistrationStep(step, scopedEvents));
32251
32252
  }
32252
32253
  function scopeEventRegistrationEvents(source) {
32254
+ return toRegistrationEvents(scopeEventRegistrationSourceEvents(source));
32255
+ }
32256
+ function scopeEventRegistrationSourceEvents(source) {
32253
32257
  const scope = planEventRegistrationScope({
32254
- events: toRegistrationEvents(source.events ?? []),
32258
+ events: source.events ?? [],
32255
32259
  wholeSeriesOffering: source.wholeSeriesOffering,
32256
32260
  occurrenceContext: source.occurrenceContext,
32257
32261
  subject: source.subject
32258
32262
  });
32259
- return scope.kind === "invalidSelectedRun" ? [] : scope.events;
32263
+ return scope.kind === "invalidSelectedRun" ? [] : [...scope.events];
32260
32264
  }
32261
32265
  function shellLabelForRegistrationStep(step, events) {
32262
32266
  switch (step) {
@@ -32288,26 +32292,29 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
32288
32292
  source: createZodCodec(eventRegistrationSourceSchema),
32289
32293
  render: createZodCodec(eventRegistrationRenderSchema)
32290
32294
  },
32291
- buildRender: (source) => ({
32292
- display: buildEventRegistrationDisplay(source),
32293
- hydration: {
32294
- occurrenceContext: source.occurrenceContext ?? null,
32295
- subject: source.subject ?? null,
32296
- events: source.events ?? null,
32297
- wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
32298
- wholeSeriesOffering: resolveWholeSeriesOffering(source),
32299
- maxTickets: source.maxTickets ?? void 0,
32300
- showVenue: source.showVenue,
32301
- showCapacity: source.showCapacity,
32302
- successMessage: source.successMessage,
32303
- buttonVariant: source.buttonVariant,
32304
- overlayEnabled: source.overlayEnabled,
32305
- spamProtectionEnabled: source.spamProtectionEnabled,
32306
- supportEmail: source.supportEmail,
32307
- sitePasses: source.sitePasses ?? null,
32308
- siteMemberships: source.siteMemberships ?? null
32309
- }
32310
- })
32295
+ buildRender: (source) => {
32296
+ const events = source.events == null ? null : scopeEventRegistrationSourceEvents(source);
32297
+ return {
32298
+ display: buildEventRegistrationDisplay(source),
32299
+ hydration: {
32300
+ occurrenceContext: source.occurrenceContext ?? null,
32301
+ subject: source.subject ?? null,
32302
+ events,
32303
+ wholeSeriesOfferings: source.wholeSeriesOfferings ?? null,
32304
+ wholeSeriesOffering: resolveWholeSeriesOffering(source),
32305
+ maxTickets: source.maxTickets ?? void 0,
32306
+ showVenue: source.showVenue,
32307
+ showCapacity: source.showCapacity,
32308
+ successMessage: source.successMessage,
32309
+ buttonVariant: source.buttonVariant,
32310
+ overlayEnabled: source.overlayEnabled,
32311
+ spamProtectionEnabled: source.spamProtectionEnabled,
32312
+ supportEmail: source.supportEmail,
32313
+ sitePasses: source.sitePasses ?? null,
32314
+ siteMemberships: source.siteMemberships ?? null
32315
+ }
32316
+ };
32317
+ }
32311
32318
  });
32312
32319
  function normalizeEventRegistrationEventInput(value) {
32313
32320
  if (!isRecord$10(value)) return value;
@@ -46568,9 +46575,13 @@ function EventDetailsSSR(props) {
46568
46575
  const { blockId, occurrenceContext = null, subject, events = null, className, children } = props;
46569
46576
  const nowIso = (/* @__PURE__ */ new Date()).toISOString();
46570
46577
  const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
46578
+ const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
46579
+ occurrenceContext,
46580
+ subject: normalizedSubject
46581
+ });
46571
46582
  const presentation = resolveEventDetailsPresentation({
46572
46583
  ...props,
46573
- events,
46584
+ events: scopedEvents,
46574
46585
  occurrenceContext,
46575
46586
  subject: normalizedSubject,
46576
46587
  nowIso
@@ -46583,7 +46594,7 @@ function EventDetailsSSR(props) {
46583
46594
  /* @__PURE__ */ jsx(IslandPropsScript, { value: {
46584
46595
  occurrenceContext,
46585
46596
  subject: normalizedSubject,
46586
- events,
46597
+ events: scopedEvents,
46587
46598
  showVenue: presentation.showVenue,
46588
46599
  showMap: presentation.showMap,
46589
46600
  showOtherDates: presentation.showOtherDates,