@riverbankcms/sdk 0.158.0 → 0.160.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 +25 -6
- package/dist/_dts/{BlocksIslandsHydrator-BgNBtEai.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
- package/dist/_dts/{Page-DpCo8zXD.d.ts → Page-C0ENVLCF.d.ts} +13 -6
- package/dist/_dts/{SdkPreviewMode-Bv2TMscG.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
- package/dist/_dts/{client-B960v2gW.d.ts → client-uMMuPq9V.d.ts} +23 -1
- package/dist/_dts/{content-types-CN0Wy8V6.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
- package/dist/_dts/{contracts-BFUrby76.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
- package/dist/_dts/{footerPageOutline-CmoqleLS.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Dkvivc3R.d.ts → generatePageMetadata-nyU8q02J.d.ts} +5 -2
- package/dist/_dts/{index-DPfI2t5A.d.ts → index-BaaGBY1v.d.ts} +2 -2
- package/dist/_dts/{index-DCNu_8it.d.ts → index-Bg64CkV-.d.ts} +4 -4
- package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
- package/dist/_dts/{index-DaS_z6ir.d.ts → index-C5xslEBn.d.ts} +2 -2
- package/dist/_dts/{index-DpgkhY-a.d.ts → index-CEaKil7G.d.ts} +2 -2
- package/dist/_dts/{index-Ba6RmuxX.d.ts → index-DahMwisK.d.ts} +3 -3
- package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
- package/dist/_dts/{index-DfkFWUxt.d.ts → index-nVoi_74l.d.ts} +2 -2
- package/dist/_dts/{loadContent-DvvKF4nB.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
- package/dist/_dts/{resolvePageContent-D0lGwVD6.d.ts → resolvePageContent-DqnxChOs.d.ts} +2 -2
- package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
- package/dist/_dts/{hosted-booking-appearance-BIbit60h.d.ts → schema-D0bNcPWK.d.ts} +6921 -6768
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +12 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +6 -6
- package/dist/_dts/sdk/src/metadata/index.d.ts +8 -2
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +10 -28
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BJrRUaY7.d.ts → types-CFrYuXYP.d.ts} +2 -2
- package/dist/_dts/{navigation-n-eTVTIQ.d.ts → types-D8czmbQF.d.ts} +15430 -16836
- package/dist/_dts/{types-BY7PgnDi.d.ts → types-DSgmJ15W.d.ts} +7 -7
- package/dist/_dts/{types-maEnXL6Z.d.ts → types-Dm-KW7nj.d.ts} +10 -13
- package/dist/_dts/{validation-BjuVrMrs.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-WRLS96Ev.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-eovghMPa.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-CIcMQRc1.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CdnFgDyQ.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
- package/dist/client/{EventCalendar.client-Dc-ZLxKo.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
- package/dist/client/{EventCombined.client-C93XqRIv.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
- package/dist/client/{EventItem-DnCTygqk.mjs → EventItem-CXhnT9pF.mjs} +11 -6
- package/dist/client/{EventListWeekNavigation-9h97heuQ.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
- package/dist/client/{EventListing.client-DFKlQvvs.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
- package/dist/client/{EventListing.view-pAuTDyrP.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-rgKlBvhP.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +189 -176
- package/dist/client/{LeafletStaticMap-3XiWSgy0.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
- package/dist/client/{Page-BmpeAwID.mjs → Page-7PkzO04N.mjs} +1949 -2074
- package/dist/client/{StepIndicator-qEq6X5zP.mjs → StepIndicator-DiD6euZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-BHd8GN8y.mjs} +1 -1
- package/dist/client/{ThemedButton-DVBC_pS9.mjs → ThemedButton-C22C9cCF.mjs} +174 -93
- package/dist/client/{accordion-DeObOasQ.mjs → accordion-2m27DsIk.mjs} +1 -1
- package/dist/client/{booking-form.client-DfWeF0lj.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
- package/dist/client/{bookingForm-TnzIBHx2.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-kkFnbr5Z.mjs → carousel-D7nj9I0y.mjs} +2 -2
- package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
- package/dist/client/{cart-BAXNbFux.mjs → cart-PN6yCw1H.mjs} +3 -3
- package/dist/client/{cart.client-BczxUF70.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
- package/dist/client/{checkout-C5NRhPeP.mjs → checkout-CsTwXVSb.mjs} +3 -3
- package/dist/client/{checkout.client-BuDk3Td9.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
- package/dist/client/client.mjs +25 -13
- package/dist/client/{context-CVsgML69.mjs → context-BLAvalAa.mjs} +1 -1
- package/dist/client/{cta-BWnUuJce.mjs → cta-CUXhX_D7.mjs} +2 -1
- package/dist/client/dateFormatting-BHIHxNuo.mjs +61 -0
- package/dist/client/{demoPortalMagicLink-CUlwvmxf.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Cw8nnFj-.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
- package/dist/client/{event-details.client-Bl0E_6Vi.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
- package/dist/client/{event-registration.client-DmfLg_LC.mjs → event-registration.client-BXndwsET.mjs} +35 -21
- package/dist/client/{eventCalendar-D1Dwb9VA.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
- package/dist/client/{eventCombined-DfsqY1qR.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
- package/dist/client/{eventDetails-BmugDVoa.mjs → eventDetails-FFAknE4w.mjs} +2 -2
- package/dist/client/{eventListing-BPAGJi3C.mjs → eventListing-CGK6urk3.mjs} +4 -4
- package/dist/client/{eventRegistration-DBlz_x6u.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
- package/dist/client/{form-DVu3ZMjx.mjs → form-C-B5O_ko.mjs} +3 -3
- package/dist/client/{form.client-QZUyABIY.mjs → form.client-DoZVcl8d.mjs} +5 -5
- package/dist/client/{form.parts-Bs0F3v08.mjs → form.parts-mttKpgif.mjs} +3 -3
- package/dist/client/{formatDate-BD9D3dgo.mjs → formatDate-xUSCknEO.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BQwWW4Yy.mjs → headerSection-BHUEXsaI.mjs} +2 -2
- package/dist/client/{location-map.client-upKuwABk.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
- package/dist/client/{location-map.view-RuBCD10O.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
- package/dist/client/{locationMap-1sCbsk0V.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DBTU3oNv.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
- package/dist/client/{newsletter-form.parts-C9I9JBhe.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
- package/dist/client/{newsletterForm-DTPtTxxG.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
- package/dist/client/{noop-DMFt3KdC.mjs → noop-B610YKEx.mjs} +12 -5
- package/dist/client/portal/client.mjs +4562 -174
- package/dist/client/{product-detail.client-BX7M5o6p.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
- package/dist/client/{product-list.client-i32QNY4c.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
- package/dist/client/{productDetail-DWjE9zm7.mjs → productDetail-B8bBiogP.mjs} +3 -3
- package/dist/client/{productList-DZH9_brv.mjs → productList-BKN4D-1z.mjs} +3 -3
- package/dist/client/{propsDecoder-CTzHkEkh.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
- package/dist/client/{registry.server-vJ5FlscU.mjs → registry.server-BAm4RPNJ.mjs} +856 -872
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +47 -28
- package/dist/client/{richText-coerce-DXAmC72p.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CmC7ygin.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
- package/dist/client/{shop-C7eL3B37.mjs → shop-DZNC0VKk.mjs} +3 -3
- package/dist/client/{shop-commerce-D8oRN0QJ.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
- package/dist/client/{shop-commerce-store-CRnQ4M18.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
- package/dist/client/{shop.client-X6d6KVmA.mjs → shop.client-DmDd-igg.mjs} +16 -15
- package/dist/client/{shop.interactive-DBMeM8VD.mjs → shop.interactive-5SnnDHz3.mjs} +402 -35
- package/dist/client/{shopShared-Y182kN_s.mjs → shopShared-CPqUlAh9.mjs} +2 -2
- package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
- package/dist/client/timetableModel-C19rcHEw.mjs +960 -0
- package/dist/client/{useAvailableSlots-BDV6MHgJ.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
- package/dist/client/{useBookingNowIso-DgJEv3ZY.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
- package/dist/client/{useDiscountApply-BTu9EeT7.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BfZxdxI-.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
- package/dist/client/{useEventPagination-pnvdHGeQ.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
- package/dist/client/uuid-BETKW8rS.mjs +12 -0
- package/dist/client/{view-hJr_L4QC2.mjs → view-CkUn3Y0Y.mjs} +4 -4
- package/dist/client/{view-BPEa6Okm.mjs → view-CseyBW07.mjs} +15 -70
- package/dist/client/{wizardSteps-HdyGoIG3.mjs → wizardSteps-zgq10lN1.mjs} +262 -65
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-lUHBrzHv.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-CXRUbqMp.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1217 -107
- package/dist/preview-next/client/{PreviewEditorUI-CxjEV0Fm.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
- package/dist/preview-next/client/{SdkPreviewModeRuntime-XdQSGGj_.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BxI12BBS.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +720 -2035
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CfRQRwpH.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +14365 -8155
- package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
- package/dist/preview-next/client/{previewChromeSurface-CH7hd5n7.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C6xEU1LI.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
- package/dist/preview-next/client/{spinner-BTf1CZmy.mjs → spinner-C4If5Y-O.mjs} +1 -1
- package/dist/preview-next/editor-base.css +62 -0
- package/dist/preview-next/editor-chrome.css +85 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-8csADeIT.mjs} +149 -112
- package/dist/server/{Block.shared-DLoilC2J.mjs → Block.shared-D1_gonwM.mjs} +6 -6
- package/dist/server/{bindings-C7DKLVx_.mjs → bindings-CFmJg5lm.mjs} +2 -2
- package/dist/server/{client-CU4wlMLE.mjs → client-DPsi0Dai.mjs} +9 -7
- package/dist/server/config-template-validation.mjs +50 -10
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{generatePageMetadata-CPvssVOp.mjs → generatePageMetadata-DB_lbrZ7.mjs} +28 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-DmQ4BiiQ.mjs → loadContent-RMCcuVU_.mjs} +33 -20
- package/dist/server/loadPage-DUPP51C-.mjs +2 -0
- package/dist/server/{loadPage-BBkDQA57.mjs → loadPage-DhDGzj7t.mjs} +8 -5
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/metadata.mjs +2 -2
- package/dist/server/next.mjs +13 -12
- package/dist/server/{overrideResolution-ByeAbLSO.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
- package/dist/server/{overrides-BcA6ZPWf.mjs → overrides-Bz_A6sB9.mjs} +586 -518
- package/dist/server/page-converter.mjs +8 -10
- package/dist/server/{prebuild-8T-m7XjB.mjs → prebuild-B_1vrSru.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bjya-X9t.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
- package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
- package/dist/server/{blocks-jlIm0PWc.mjs → registry-eFjKtEhF.mjs} +2349 -1716
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-D0ow8PRJ.mjs → resolveBlockData-DYvEa9c5.mjs} +6 -3
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-Bs735S27.mjs → schema-C3dJ5UkL.mjs} +148 -88
- package/dist/server/server.mjs +3 -3
- package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → siteChromeOverlayClearance-DALIAMwo.mjs} +108 -11
- package/dist/server/{src-B935_bzN.mjs → src-C5Mu-z0F.mjs} +268 -189
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-D2-BnmDO.mjs → themeAdmission-ruoyXb_0.mjs} +9 -7
- package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
- package/dist/server/{validation-Cm41pDUB.mjs → validation-B-Xar8QS.mjs} +22 -63
- package/dist/server/{version-Bo9C3McI.mjs → version-Bg7VHK3i.mjs} +1 -1
- package/dist/styles/index.css +78 -0
- package/package.json +8 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-cnymEAZY.d.ts +0 -1
- package/dist/client/timetableModel-D7PwpaBY.mjs +0 -480
- package/dist/preview-next/client/siteStyleAccess-CRXaC2oL.mjs +0 -1326
- package/dist/server/loadPage-ZrcfjG3X.mjs +0 -2
package/README.md
CHANGED
|
@@ -427,6 +427,16 @@ export default async function DynamicRoute({ params }) {
|
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
+
// Give dates an explicit locale and time zone. Without them the server and the
|
|
431
|
+
// browser can render different text, and React throws away the server HTML.
|
|
432
|
+
const postDate = new Intl.DateTimeFormat('en-GB', {
|
|
433
|
+
day: 'numeric',
|
|
434
|
+
month: 'long',
|
|
435
|
+
year: 'numeric',
|
|
436
|
+
timeZone: 'Europe/London',
|
|
437
|
+
});
|
|
438
|
+
const formatPostDate = (iso: string) => postDate.format(new Date(iso));
|
|
439
|
+
|
|
430
440
|
function BlogPost({ entry, theme }) {
|
|
431
441
|
const { title, content, metaDescription } = entry;
|
|
432
442
|
return (
|
|
@@ -434,7 +444,7 @@ function BlogPost({ entry, theme }) {
|
|
|
434
444
|
<h1>{title}</h1>
|
|
435
445
|
<p className="lead">{metaDescription}</p>
|
|
436
446
|
<div className="prose">{content.body}</div>
|
|
437
|
-
<p>By {content.author} on {
|
|
447
|
+
<p>By {content.author} on {formatPostDate(entry.createdAt)}</p>
|
|
438
448
|
</article>
|
|
439
449
|
);
|
|
440
450
|
}
|
|
@@ -558,6 +568,15 @@ const client = createRiverbankClient({
|
|
|
558
568
|
baseUrl: process.env.NEXT_PUBLIC_DASHBOARD_URL + '/api',
|
|
559
569
|
});
|
|
560
570
|
|
|
571
|
+
// An explicit locale and time zone keep server and browser output identical.
|
|
572
|
+
const postDate = new Intl.DateTimeFormat('en-GB', {
|
|
573
|
+
day: 'numeric',
|
|
574
|
+
month: 'short',
|
|
575
|
+
year: 'numeric',
|
|
576
|
+
timeZone: 'Europe/London',
|
|
577
|
+
});
|
|
578
|
+
const formatPostDate = (iso: string) => postDate.format(new Date(iso));
|
|
579
|
+
|
|
561
580
|
export default async function BlogPage() {
|
|
562
581
|
const site = await client.getSite({ slug: 'my-site' });
|
|
563
582
|
|
|
@@ -578,7 +597,7 @@ export default async function BlogPage() {
|
|
|
578
597
|
<h2>{post.title}</h2>
|
|
579
598
|
</Link>
|
|
580
599
|
<p>{post.metaDescription}</p>
|
|
581
|
-
<time>{post.publishedAt ?
|
|
600
|
+
<time>{post.publishedAt ? formatPostDate(post.publishedAt) : 'Draft'}</time>
|
|
582
601
|
</article>
|
|
583
602
|
))}
|
|
584
603
|
</div>
|
|
@@ -2100,9 +2119,7 @@ export default defineConfig({
|
|
|
2100
2119
|
category: 'content',
|
|
2101
2120
|
icon: 'User',
|
|
2102
2121
|
tags: ['team', 'about'],
|
|
2103
|
-
|
|
2104
|
-
quickFieldPriority: ['name', 'role'],
|
|
2105
|
-
},
|
|
2122
|
+
promotedFields: ['name', 'role'],
|
|
2106
2123
|
fields: [
|
|
2107
2124
|
{ id: 'name', type: 'text', label: 'Name', required: true, multiline: false },
|
|
2108
2125
|
{ id: 'role', type: 'text', label: 'Role', required: false, multiline: false },
|
|
@@ -2114,7 +2131,9 @@ export default defineConfig({
|
|
|
2114
2131
|
});
|
|
2115
2132
|
```
|
|
2116
2133
|
|
|
2117
|
-
`
|
|
2134
|
+
`promotedFields` is optional. Promoted behaviour/data fields appear in “What it shows”, promoted appearance fields in “Look”, and content fields stay in “Text”. Remaining fields appear in “More settings”; there is no quick-field cap.
|
|
2135
|
+
|
|
2136
|
+
A custom block or built-in block extension can also declare `lookField` with the ID of one of its own existing single-select fields. Its options become labelled Look tiles. This remains an ordinary content field on every editing surface, including the dashboard; it does not use built-in Default or pin behaviour.
|
|
2118
2137
|
|
|
2119
2138
|
2. **Create your component** to render the block:
|
|
2120
2139
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { g as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { $i as WeeklyOpeningHours, A as BlockLoaderFailures, Ai as MailingListRuntimeContext, Ba as EventPageSurfaceSubjectWire, E as ThemeResponsiveMode, G as DateRuntimeContext, M as PrefetchedBlockData, Vn as BlockSiteTerms, W as LinkResolverContext, Z as RenderablePageOutline$1, ir as BrowserReadAuthority, j as BlockLoaderSnapshot, q as PageTemplate, s as RenderableMediaAsset, t as Theme, wa as UtcIsoDateTimeString } from "./schema-D0bNcPWK.js";
|
|
2
|
+
import { z as BlockKind } from "./content-types-D6nXGqdQ.js";
|
|
3
|
+
import { It as LinkValue, St as SystemBlockShortKind, _ as PageOutline, a as ResolveImageUrlContext, bt as SystemBlockContentByKind, g as OccurrenceContextData, h as EntrySubrouteContextData, l as BindingDateContext, o as ResolveImageUrlContextInput, p as ThemeTokens, r as MediaAssetIndexItem, v as PageRuntimeJoin, y as RouteMap } from "./index-nVoi_74l.js";
|
|
4
|
+
import { t as ThemeRuntime } from "./index-Blwl7yl6.js";
|
|
5
|
+
import { d as SdkCustomBlock } from "./types-Dm-KW7nj.js";
|
|
6
|
+
import { I as SiteResponse, N as SdkRuntimePageSurfaceSubject, P as SiteBookingOfferingPresetSummary } from "./contracts-Bnmj1nxu.js";
|
|
7
|
+
import { _ as RiverbankClient } from "./types-CFrYuXYP.js";
|
|
7
8
|
import * as React$2 from "react";
|
|
8
9
|
import React$1, { ReactElement } from "react";
|
|
9
10
|
|
|
@@ -296,6 +297,8 @@ type PageRendererDataContext = {
|
|
|
296
297
|
pathname?: string;
|
|
297
298
|
resolvedData?: Record<string, Record<string, unknown>>;
|
|
298
299
|
loaderFailures?: BlockLoaderFailures;
|
|
300
|
+
prefetchedBlockData?: PrefetchedBlockData;
|
|
301
|
+
loaderSnapshot?: BlockLoaderSnapshot;
|
|
299
302
|
bookingOfferingPresets?: readonly SiteBookingOfferingPresetSummary[];
|
|
300
303
|
siteTerms?: BlockSiteTerms;
|
|
301
304
|
mailingList?: MailingListRuntimeContext;
|
|
@@ -308,6 +311,7 @@ type PageRendererDataContext = {
|
|
|
308
311
|
entriesByIdentifier?: Record<string, Record<string, string>>;
|
|
309
312
|
occurrenceContext?: OccurrenceContextData | null;
|
|
310
313
|
entrySubrouteContext?: EntrySubrouteContextData | null;
|
|
314
|
+
template?: PageTemplate;
|
|
311
315
|
contentEntry?: Record<string, unknown> | null;
|
|
312
316
|
pageSurface?: Record<string, unknown> | null;
|
|
313
317
|
subject?: EventPageSurfaceSubjectWire | null;
|
|
@@ -445,6 +449,9 @@ type PageCommonProps = {
|
|
|
445
449
|
pageSurface?: Record<string, unknown> | null; /** Subject descriptor for native page-surface templates */
|
|
446
450
|
subject?: EventPageSurfaceSubjectWire | null; /** Editable route metadata keys for template-page inline editing */
|
|
447
451
|
editableRouteMetadataFieldIds?: ReadonlyArray<string> | null; /** Preview stage: 'preview' for draft content, 'published' for live content */
|
|
452
|
+
prefetchedBlockData?: PageRendererDataContext['prefetchedBlockData'];
|
|
453
|
+
loaderSnapshot?: PageRendererDataContext['loaderSnapshot'];
|
|
454
|
+
loaderFailures?: PageRendererDataContext['loaderFailures'];
|
|
448
455
|
previewStage: 'preview' | 'published'; /** Canonical request pathname used by blocks when resolving same-site destinations. */
|
|
449
456
|
pathname?: string;
|
|
450
457
|
};
|
|
@@ -1,54 +1,11 @@
|
|
|
1
|
-
import { S as SurfaceId, _ as SdkEditorRevision,
|
|
2
|
-
import {
|
|
1
|
+
import { S as SurfaceId, _ as SdkEditorRevision, o as ContentTypeSchema, s as SdkSiteLayoutConfig, x as ApiClient } from "./types-D8czmbQF.js";
|
|
2
|
+
import { E as ThemeResponsiveMode, Er as HeaderPreferences, Ft as BlockApiProvider, Hr as ButtonStyleSelectionRepair, Ir as HeaderLayoutStyleSelection, K as MediaAssetIndexItem, Lr as HeaderLogoContext, Nt as BookingOfferingPresetSummary, O as SdkConfigForBlockPicker, Or as FooterPreferences, Ta as BookingTimeZone, Ur as FooterLookId, Vr as ButtonStyleSelection, Y as EditorRenderablePageOutline, k as EntrySubrouteContextData, oa as EditorBlockVersions, ra as EditLeaseScope, t as Theme } from "./schema-D0bNcPWK.js";
|
|
3
|
+
import { t as ThemeRuntime } from "./index-Blwl7yl6.js";
|
|
3
4
|
import { t as PreviewRuntimeSession } from "./auth-contract-FPg0-2MC.js";
|
|
4
5
|
import { ZodTypeAny, z as z$1 } from "zod";
|
|
5
6
|
import React$1, { CSSProperties, ComponentProps, ComponentType, ReactElement, ReactNode } from "react";
|
|
6
7
|
import { QueryClient } from "@tanstack/react-query";
|
|
7
8
|
|
|
8
|
-
//#region .cache/declarations/blocks/src/client/site-chrome.d.ts
|
|
9
|
-
type SiteChromeThemeConfigOverride = Readonly<{
|
|
10
|
-
header?: Partial<NonNullable<Theme['header']>>;
|
|
11
|
-
footer?: Partial<NonNullable<Theme['footer']>>;
|
|
12
|
-
}>;
|
|
13
|
-
type SiteChromeBlockRenderSpec = Readonly<{
|
|
14
|
-
content: Record<string, unknown>;
|
|
15
|
-
viewModelOverrides: Record<string, unknown>;
|
|
16
|
-
themeConfigOverride?: SiteChromeThemeConfigOverride;
|
|
17
|
-
canRenderReactively?: boolean;
|
|
18
|
-
}>;
|
|
19
|
-
type SiteChromeRenderModel = Readonly<{
|
|
20
|
-
header: SiteChromeBlockRenderSpec | null;
|
|
21
|
-
footer: SiteChromeBlockRenderSpec;
|
|
22
|
-
}>;
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region .cache/declarations/preview-next/src/client/layout/PreviewLayoutContext.d.ts
|
|
25
|
-
type PreviewLayoutContextValue = Readonly<{
|
|
26
|
-
headerNode: ReactNode;
|
|
27
|
-
bannerNode?: ReactNode;
|
|
28
|
-
footerNode: ReactNode;
|
|
29
|
-
siteChromeRenderModel?: SiteChromeRenderModel | null;
|
|
30
|
-
}> | null;
|
|
31
|
-
declare function PreviewLayoutProvider({
|
|
32
|
-
headerNode,
|
|
33
|
-
bannerNode,
|
|
34
|
-
footerNode,
|
|
35
|
-
siteChromeRenderModel,
|
|
36
|
-
children
|
|
37
|
-
}: {
|
|
38
|
-
headerNode: ReactNode;
|
|
39
|
-
bannerNode?: ReactNode;
|
|
40
|
-
footerNode: ReactNode;
|
|
41
|
-
siteChromeRenderModel?: SiteChromeRenderModel | null;
|
|
42
|
-
children: ReactNode;
|
|
43
|
-
}): import("react").JSX.Element;
|
|
44
|
-
declare function usePreviewLayout(): Readonly<{
|
|
45
|
-
headerNode: ReactNode;
|
|
46
|
-
bannerNode?: ReactNode;
|
|
47
|
-
footerNode: ReactNode;
|
|
48
|
-
siteChromeRenderModel?: SiteChromeRenderModel | null;
|
|
49
|
-
}>;
|
|
50
|
-
declare function useOptionalPreviewLayout(): PreviewLayoutContextValue;
|
|
51
|
-
//#endregion
|
|
52
9
|
//#region .cache/declarations/editor-blocks/src/block-editor/types.d.ts
|
|
53
10
|
type BlockItemFields = {
|
|
54
11
|
id?: string | null;
|
|
@@ -87,9 +44,6 @@ type BlockFieldExtensions = Readonly<Record<string, {
|
|
|
87
44
|
}>;
|
|
88
45
|
}>>;
|
|
89
46
|
//#endregion
|
|
90
|
-
//#region .cache/declarations/content-editor/src/ui/stores/types.d.ts
|
|
91
|
-
type ZoomLevel = 33 | 50 | 75 | 100 | 'fit';
|
|
92
|
-
//#endregion
|
|
93
47
|
//#region .cache/declarations/content-editor/src/hooks/useEditLease.d.ts
|
|
94
48
|
type LeaseParams = Readonly<{
|
|
95
49
|
siteId: string;
|
|
@@ -141,9 +95,56 @@ type DraftSendResult = 'ok' | 'timed out' | 'error';
|
|
|
141
95
|
/** The structural slice of a Supabase client the drafts channel needs. */
|
|
142
96
|
type LiveDraftsClient = DraftRealtimeClient;
|
|
143
97
|
//#endregion
|
|
144
|
-
//#region .cache/declarations/
|
|
145
|
-
type
|
|
146
|
-
|
|
98
|
+
//#region .cache/declarations/blocks/src/client/site-chrome.d.ts
|
|
99
|
+
type SiteChromeThemeConfigOverride = Readonly<{
|
|
100
|
+
header?: Partial<NonNullable<Theme['header']>>;
|
|
101
|
+
footer?: Partial<NonNullable<Theme['footer']>>;
|
|
102
|
+
}>;
|
|
103
|
+
type SiteChromeBlockRenderSpec = Readonly<{
|
|
104
|
+
content: Record<string, unknown>;
|
|
105
|
+
viewModelOverrides: Record<string, unknown>;
|
|
106
|
+
themeConfigOverride?: SiteChromeThemeConfigOverride;
|
|
107
|
+
canRenderReactively?: boolean;
|
|
108
|
+
}>;
|
|
109
|
+
type SiteChromeRenderModel = Readonly<{
|
|
110
|
+
header: SiteChromeBlockRenderSpec | null;
|
|
111
|
+
footer: SiteChromeBlockRenderSpec;
|
|
112
|
+
}>;
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region .cache/declarations/preview-next/src/client/preview/siteStyleAccess.d.ts
|
|
115
|
+
type SiteStyleAccess = Readonly<{
|
|
116
|
+
kind: "hidden";
|
|
117
|
+
}> | Readonly<{
|
|
118
|
+
kind: "apply-allowed";
|
|
119
|
+
}>;
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region .cache/declarations/preview-next/src/client/layout/PreviewLayoutContext.d.ts
|
|
122
|
+
type PreviewLayoutContextValue = Readonly<{
|
|
123
|
+
headerNode: ReactNode;
|
|
124
|
+
bannerNode?: ReactNode;
|
|
125
|
+
footerNode: ReactNode;
|
|
126
|
+
siteChromeRenderModel?: SiteChromeRenderModel | null;
|
|
127
|
+
}> | null;
|
|
128
|
+
declare function PreviewLayoutProvider({
|
|
129
|
+
headerNode,
|
|
130
|
+
bannerNode,
|
|
131
|
+
footerNode,
|
|
132
|
+
siteChromeRenderModel,
|
|
133
|
+
children
|
|
134
|
+
}: {
|
|
135
|
+
headerNode: ReactNode;
|
|
136
|
+
bannerNode?: ReactNode;
|
|
137
|
+
footerNode: ReactNode;
|
|
138
|
+
siteChromeRenderModel?: SiteChromeRenderModel | null;
|
|
139
|
+
children: ReactNode;
|
|
140
|
+
}): import("react").JSX.Element;
|
|
141
|
+
declare function usePreviewLayout(): Readonly<{
|
|
142
|
+
headerNode: ReactNode;
|
|
143
|
+
bannerNode?: ReactNode;
|
|
144
|
+
footerNode: ReactNode;
|
|
145
|
+
siteChromeRenderModel?: SiteChromeRenderModel | null;
|
|
146
|
+
}>;
|
|
147
|
+
declare function useOptionalPreviewLayout(): PreviewLayoutContextValue;
|
|
147
148
|
//#endregion
|
|
148
149
|
//#region .cache/declarations/preview-next/src/client/preview/themeRuntime.d.ts
|
|
149
150
|
type PreviewThemeResponsiveMode = ThemeResponsiveMode;
|
|
@@ -209,39 +210,7 @@ type SdkConfigForPreview = SdkConfigForBlockPicker & {
|
|
|
209
210
|
layout?: Pick<SdkSiteLayoutConfig, 'footerMode'>;
|
|
210
211
|
};
|
|
211
212
|
//#endregion
|
|
212
|
-
//#region .cache/declarations/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts
|
|
213
|
-
type StyleConfiguratorInitialSelections = Readonly<{
|
|
214
|
-
selectionVersion?: number | null;
|
|
215
|
-
selectionUpdatedAt?: string | null;
|
|
216
|
-
buttonStyleSelection: ButtonStyleSelection | null;
|
|
217
|
-
headerSelection?: HeaderLayoutStyleSelection | null;
|
|
218
|
-
footerLookId?: FooterLookId | null;
|
|
219
|
-
}>;
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region .cache/declarations/preview-next/src/client/preview/StyleConfigurator.d.ts
|
|
222
|
-
type StyleConfiguratorProps = Readonly<{
|
|
223
|
-
siteId: string;
|
|
224
|
-
apiClient: ApiClient;
|
|
225
|
-
theme?: Theme | null;
|
|
226
|
-
themeId?: string | null;
|
|
227
|
-
selectionId?: string | null;
|
|
228
|
-
selectionVersion?: number | null;
|
|
229
|
-
selectionUpdatedAt?: string | null; /** Server-persisted design selections. */
|
|
230
|
-
initialSelections: StyleConfiguratorInitialSelections & Readonly<Record<string, unknown>>;
|
|
231
|
-
buttonStyleRepairs?: readonly ButtonStyleSelectionRepair[];
|
|
232
|
-
headerLogoContext?: HeaderLogoContext;
|
|
233
|
-
onFocusedSurfaceChange?: (focused: boolean) => void;
|
|
234
|
-
}>;
|
|
235
|
-
//#endregion
|
|
236
|
-
//#region .cache/declarations/preview-next/src/client/preview/siteStyleAccess.d.ts
|
|
237
|
-
type SiteStyleAccess = Readonly<{
|
|
238
|
-
kind: "hidden";
|
|
239
|
-
}> | Readonly<{
|
|
240
|
-
kind: "apply-allowed";
|
|
241
|
-
}>;
|
|
242
|
-
//#endregion
|
|
243
213
|
//#region .cache/declarations/preview-next/src/client/preview/PreviewEditorSidebar.d.ts
|
|
244
|
-
type PreviewEditorSidebarTab = 'editor' | 'assistant';
|
|
245
214
|
type PreviewTemplateData = {
|
|
246
215
|
name: string;
|
|
247
216
|
description?: string | null;
|
|
@@ -250,45 +219,6 @@ type PreviewEntryData = {
|
|
|
250
219
|
id: string;
|
|
251
220
|
type?: string | null;
|
|
252
221
|
};
|
|
253
|
-
type PreviewEditorSidebarProps = {
|
|
254
|
-
surfaceId: SurfaceId;
|
|
255
|
-
siteId: string;
|
|
256
|
-
dashboardBaseUrl?: string | null;
|
|
257
|
-
pageId: string | null;
|
|
258
|
-
pageNodeType?: 'page' | 'page_surface';
|
|
259
|
-
entryData?: PreviewEntryData | null;
|
|
260
|
-
contentTypeSchema?: ContentTypeSchema | null;
|
|
261
|
-
referenceContentTypeKeys?: readonly string[];
|
|
262
|
-
draftContent?: Record<string, unknown> | null;
|
|
263
|
-
currentTemplate?: PreviewTemplateData | null;
|
|
264
|
-
theme?: Theme | null;
|
|
265
|
-
themeId?: string | null;
|
|
266
|
-
themeSelectionId?: string | null;
|
|
267
|
-
themeSelectionVersion?: number | null;
|
|
268
|
-
themeSelectionUpdatedAt?: string | null; /** Persisted Style configurator selections (Phase C / E). */
|
|
269
|
-
themeSelectionButtonStyleSelection?: ButtonStyleSelection | null;
|
|
270
|
-
themeSelectionButtonStyleRepairs?: StyleConfiguratorProps['buttonStyleRepairs'];
|
|
271
|
-
themeSelectionHeaderSelection?: HeaderLayoutStyleSelection | null;
|
|
272
|
-
themeSelectionFooterLookId?: FooterLookId | null;
|
|
273
|
-
themeSelectionHeaderLogo?: HeaderLogoContext;
|
|
274
|
-
apiClient: ApiClient;
|
|
275
|
-
bearerToken?: string | null;
|
|
276
|
-
entrySubrouteContext?: EntrySubrouteContextData | null;
|
|
277
|
-
assistantPanel?: ReactNode;
|
|
278
|
-
sdkConfig?: SdkConfigForPreview | null;
|
|
279
|
-
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[] | null;
|
|
280
|
-
siteStyleAccess?: SiteStyleAccess;
|
|
281
|
-
activeTab: PreviewEditorSidebarTab;
|
|
282
|
-
onTabChange: (tab: PreviewEditorSidebarTab) => void;
|
|
283
|
-
onClose: () => void;
|
|
284
|
-
onFooterSaved?: () => void;
|
|
285
|
-
viewportMode: ViewportMode;
|
|
286
|
-
viewportWidth: ViewportWidth;
|
|
287
|
-
zoom: ZoomLevel;
|
|
288
|
-
onViewportModeChange: (mode: ViewportMode) => void;
|
|
289
|
-
onViewportWidthChange: (width: ViewportWidth) => void;
|
|
290
|
-
onZoomChange: (zoom: ZoomLevel) => void;
|
|
291
|
-
};
|
|
292
222
|
//#endregion
|
|
293
223
|
//#region .cache/declarations/preview-next/src/client/preview/PreviewQueryProvider.d.ts
|
|
294
224
|
declare function createPreviewQueryClient(): QueryClient;
|
|
@@ -319,6 +249,7 @@ type PreviewShellCommonProps = {
|
|
|
319
249
|
editableId: string | null;
|
|
320
250
|
pageNodeType?: 'page' | 'page_surface';
|
|
321
251
|
subscribeToLeaseChanges?: EditLeaseChangeSubscription;
|
|
252
|
+
subscribeToAdmissionChanges?: (listener: () => void) => () => void;
|
|
322
253
|
onLeaseGranted?: () => void; /** Live drafts between tabs; the host supplies a Supabase client dedicated to the preview token. */
|
|
323
254
|
liveDrafts?: PreviewLiveDrafts | null;
|
|
324
255
|
previewSession: PreviewRuntimeSession | null;
|
|
@@ -364,7 +295,6 @@ type PreviewShellCommonProps = {
|
|
|
364
295
|
isSiteLaunched: boolean;
|
|
365
296
|
maintenanceModeEnabled: boolean;
|
|
366
297
|
entrySubrouteContext?: EntrySubrouteContextData | null;
|
|
367
|
-
assistantPanel?: PreviewEditorSidebarProps['assistantPanel'];
|
|
368
298
|
sdkConfig?: SdkConfigForPreview | null;
|
|
369
299
|
mediaAssets?: readonly MediaAssetIndexItem[];
|
|
370
300
|
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[] | null;
|
|
@@ -405,7 +335,6 @@ type PreviewShellLayoutCommonProps = {
|
|
|
405
335
|
draftContent?: Record<string, unknown> | null;
|
|
406
336
|
currentTemplate?: PreviewTemplateData | null;
|
|
407
337
|
apiClient: ApiClient;
|
|
408
|
-
bearerToken?: string | null;
|
|
409
338
|
themeId?: string | null;
|
|
410
339
|
themeSelectionId?: string | null;
|
|
411
340
|
themeSelectionVersion?: number | null;
|
|
@@ -420,7 +349,6 @@ type PreviewShellLayoutCommonProps = {
|
|
|
420
349
|
isSiteLaunched: boolean;
|
|
421
350
|
maintenanceModeEnabled: boolean;
|
|
422
351
|
entrySubrouteContext?: EntrySubrouteContextData | null;
|
|
423
|
-
assistantPanel?: ReactNode;
|
|
424
352
|
sdkConfig?: SdkConfigForPreview | null;
|
|
425
353
|
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[] | null;
|
|
426
354
|
siteStyleAccess?: SiteStyleAccess;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as SelectableEventTicketType, Ai as MailingListRuntimeContext, Bn as EligibleAppointmentPackage, Bt as BookingFormService, Ca as ZoneLabel, Ct as PortalCreditState, Di as BookingMailingListNote, Ea as AppointmentBookingReview, Et as ExistingRegistrationLookupState, Fn as DiscountContext, Ga as PositiveCents, Gn as EventBookingOutcome, Gt as BookingFormServicesSource, Hn as EventRegistrationPageSurfaceSubject, Ht as BookingSelectedCollectionOptionKind, In as ResolveWaitlistClaimResponse, J as BookingFormInteractiveIslandProps, Ja as AppointmentServiceId, Jn as EventCheckoutReturnRequest, Kt as BookingFormField$1, Lt as BoundBlockApiClient, Ot as BookingPaymentSelectionViewModel, Pn as AutoAppliedDiscountPreview, Pt as EventSourceRecovery, Rt as BookingFormConfig$1, Sa as DisplayContext, Sr as BlockButtonRole, St as PortalAuthState, Tt as EligibilityLookupState, Ut as getBookingServiceSlidingScale, Vn as BlockSiteTerms, Vt as BookingPaymentStepResolution, Wa as NonNegativeCents, Wt as BookingFormServiceCategory, Xa as Brand, Xn as EventEmbeddedCheckout, Za as CustomerPassId, _t as RegistrationTicketContinuation, ao as PassId, ar as DirectCheckoutCollectionOptionKind, at as GuestErrors, bt as EventRegistrationDirectPaymentSelectionState, cr as EventRegistrationPricingOption, ct as PaymentStepState, dt as RegistrationResult, et as EligibilityData, ft as RegistrationStep, gt as RegistrationAdmission, ht as RegistrationPresentation, ir as BrowserReadAuthority, it as Guest, kt as OccurrenceContext, lr as EventRegistrationErrorAction, lt as RegistrationAttendanceMode, mt as FormData, no as FormId, nr as PaymentMethod, nt as EventRegistrationClientProps, ot as PaymentSelection, pt as RegistrationSubject, qa as AppointmentResourceId, rr as BlockApiConfig, rt as EventTicketSelectionLine, so as SiteId, st as PaymentStatusRecoveryState, tr as EventRegistrationPaymentSubject, tt as EventPaymentState, ur as CurrencyCode, ut as RegistrationEvent, vt as TicketSelectionPurpose, wa as UtcIsoDateTimeString, wn as CustomerEventRegistration, wt as PortalProfile, xt as EventRegistrationSiteCreditPreview, yr as PublicEvent, yt as EventRegistrationDirectPaymentOption, zn as BookingPaymentChoices, zt as BookingFormData$1 } from "./schema-D0bNcPWK.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import React, { ReactNode } from "react";
|
|
4
4
|
|
|
@@ -910,6 +910,12 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
910
910
|
}[];
|
|
911
911
|
ticketSelectionSubtotalCents: number | null;
|
|
912
912
|
visibleTicketTypes: EventRegistrationPricingOption[];
|
|
913
|
+
overallRemainingPlaces: number | null;
|
|
914
|
+
heldPlacesBySelection: readonly Readonly<{
|
|
915
|
+
pricingOptionId: string | null;
|
|
916
|
+
quantity: number;
|
|
917
|
+
}>[];
|
|
918
|
+
ticketSelectionPurpose: TicketSelectionPurpose;
|
|
913
919
|
ticketTypeSelectionRequired: boolean;
|
|
914
920
|
hasValidTicketSelection: boolean;
|
|
915
921
|
eventRequiresPayment: boolean;
|
|
@@ -1289,6 +1295,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1289
1295
|
retryReturn: () => void;
|
|
1290
1296
|
};
|
|
1291
1297
|
state: EventPaymentState;
|
|
1298
|
+
heldTicketSelection: Readonly<{
|
|
1299
|
+
selectionId: string | null;
|
|
1300
|
+
attendanceMode: RegistrationAttendanceMode | null;
|
|
1301
|
+
lines: readonly EventTicketSelectionLine[];
|
|
1302
|
+
}> | null;
|
|
1292
1303
|
recovery: PaymentStatusRecoveryState | null;
|
|
1293
1304
|
showRecovery: (next: PaymentStatusRecoveryState | null) => void;
|
|
1294
1305
|
restoreMailingListNote: (value: PaymentStatusRecoveryState['mailingListSignupNote']) => void;
|
|
@@ -1391,6 +1402,12 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1391
1402
|
}[];
|
|
1392
1403
|
ticketSelectionSubtotalCents: number | null;
|
|
1393
1404
|
visibleTicketTypes: EventRegistrationPricingOption[];
|
|
1405
|
+
overallRemainingPlaces: number | null;
|
|
1406
|
+
heldPlacesBySelection: readonly Readonly<{
|
|
1407
|
+
pricingOptionId: string | null;
|
|
1408
|
+
quantity: number;
|
|
1409
|
+
}>[];
|
|
1410
|
+
ticketSelectionPurpose: TicketSelectionPurpose;
|
|
1394
1411
|
ticketTypeSelectionRequired: boolean;
|
|
1395
1412
|
hasValidTicketSelection: boolean;
|
|
1396
1413
|
eventRequiresPayment: boolean;
|
|
@@ -1770,6 +1787,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1770
1787
|
retryReturn: () => void;
|
|
1771
1788
|
};
|
|
1772
1789
|
state: EventPaymentState;
|
|
1790
|
+
heldTicketSelection: Readonly<{
|
|
1791
|
+
selectionId: string | null;
|
|
1792
|
+
attendanceMode: RegistrationAttendanceMode | null;
|
|
1793
|
+
lines: readonly EventTicketSelectionLine[];
|
|
1794
|
+
}> | null;
|
|
1773
1795
|
recovery: PaymentStatusRecoveryState | null;
|
|
1774
1796
|
showRecovery: (next: PaymentStatusRecoveryState | null) => void;
|
|
1775
1797
|
restoreMailingListNote: (value: PaymentStatusRecoveryState['mailingListSignupNote']) => void;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as BindingTransformName } from "./index-
|
|
1
|
+
import { f as NavigationAuthoringLinkInput, p as NavigationConfigItemInput } from "./types-D8czmbQF.js";
|
|
2
|
+
import { u as BindingTransformName } from "./index-nVoi_74l.js";
|
|
3
3
|
|
|
4
|
+
//#region .cache/declarations/sdk/src/types/block-kinds.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* System block kind identifiers.
|
|
7
|
+
*
|
|
8
|
+
* SDK-owned copy of the system block kind list.
|
|
9
|
+
*
|
|
10
|
+
* Rationale: SDK consumers must be able to typecheck without installing
|
|
11
|
+
* `@riverbankcms/blocks` (which is not a public dependency). This list is a
|
|
12
|
+
* stable public contract; keep it in sync with the internal blocks runtime.
|
|
13
|
+
*/
|
|
14
|
+
declare const SYSTEM_BLOCK_KINDS: readonly ['block.hero', 'block.intro', 'block.columns', 'block.collection', 'block.feature-cards', 'block.media-text', 'block.cta-full', 'block.single-button', 'block.body-text', 'block.location-map', 'block.faq', 'block.testimonials', 'block.team-members', 'block.embed', 'block.blog-post', 'block.blog-listing', 'block.site-header', 'block.site-footer', 'block.form', 'block.contact-newsletter', 'block.appointment-booking', 'block.appointment-services', 'block.weekly-slot-availability', 'block.event-registration', 'block.event-details', 'block.event-spotlight', 'block.event-listing', 'block.event-calendar', 'block.recurring-schedule', 'block.offerings-preview', 'block.shop', 'block.product-list', 'block.product-detail', 'block.cart', 'block.checkout', 'block.gifting', 'block.newsletter-signup', 'block.image-gallery', 'block.video-grid', 'block.audio-player', 'block.file-download'];
|
|
15
|
+
type SystemBlockKind = (typeof SYSTEM_BLOCK_KINDS)[number];
|
|
16
|
+
type CustomBlockKind = `custom.${string}`;
|
|
17
|
+
type BlockKind = SystemBlockKind | CustomBlockKind;
|
|
18
|
+
//#endregion
|
|
4
19
|
//#region .cache/declarations/sdk/src/config/field-definitions.d.ts
|
|
5
20
|
type VisibilityLevel = 'admin' | 'designer' | 'author';
|
|
6
21
|
type ReferenceValueFrom = 'id' | 'identifier' | 'slug';
|
|
@@ -260,21 +275,6 @@ type EntryPickerFieldDefinition = FieldBase & {
|
|
|
260
275
|
};
|
|
261
276
|
type FieldDefinition = TextFieldDefinition | RichTextFieldDefinition | InlineTextFieldDefinition | MediaFieldDefinition | FileFieldDefinition | BooleanFieldDefinition | NumberFieldDefinition | DateFieldDefinition | TimeFieldDefinition | DateTimeFieldDefinition | SlugFieldDefinition | UrlFieldDefinition | LinkFieldDefinition | SelectFieldDefinition | ReferenceFieldDefinition | RepeaterFieldDefinition | GroupFieldDefinition | ModalFieldDefinition | TabGroupFieldDefinition | PresetOrCustomFieldDefinition | ContentTypeSelectFieldDefinition | EntryPickerFieldDefinition;
|
|
262
277
|
//#endregion
|
|
263
|
-
//#region .cache/declarations/sdk/src/types/block-kinds.d.ts
|
|
264
|
-
/**
|
|
265
|
-
* System block kind identifiers.
|
|
266
|
-
*
|
|
267
|
-
* SDK-owned copy of the system block kind list.
|
|
268
|
-
*
|
|
269
|
-
* Rationale: SDK consumers must be able to typecheck without installing
|
|
270
|
-
* `@riverbankcms/blocks` (which is not a public dependency). This list is a
|
|
271
|
-
* stable public contract; keep it in sync with the internal blocks runtime.
|
|
272
|
-
*/
|
|
273
|
-
declare const SYSTEM_BLOCK_KINDS: readonly ['block.hero', 'block.intro', 'block.columns', 'block.collection', 'block.feature-cards', 'block.media-text', 'block.cta-full', 'block.single-button', 'block.body-text', 'block.location-map', 'block.faq', 'block.testimonials', 'block.team-members', 'block.embed', 'block.blog-post', 'block.blog-listing', 'block.site-header', 'block.site-footer', 'block.form', 'block.contact-newsletter', 'block.appointment-booking', 'block.appointment-services', 'block.weekly-slot-availability', 'block.event-registration', 'block.event-details', 'block.event-spotlight', 'block.event-listing', 'block.event-calendar', 'block.recurring-schedule', 'block.offerings-preview', 'block.shop', 'block.product-list', 'block.product-detail', 'block.cart', 'block.checkout', 'block.gifting', 'block.newsletter-signup', 'block.image-gallery', 'block.video-grid', 'block.audio-player', 'block.file-download'];
|
|
274
|
-
type SystemBlockKind = (typeof SYSTEM_BLOCK_KINDS)[number];
|
|
275
|
-
type CustomBlockKind = `custom.${string}`;
|
|
276
|
-
type BlockKind = SystemBlockKind | CustomBlockKind;
|
|
277
|
-
//#endregion
|
|
278
278
|
//#region .cache/declarations/sdk/src/config/content-types.d.ts
|
|
279
279
|
declare const TEMPLATE_BINDING_META_PATHS: readonly ['title', 'slug', 'publishedAt', 'createdAt', 'updatedAt'];
|
|
280
280
|
type TemplateBindingMetaPath = typeof TEMPLATE_BINDING_META_PATHS[number];
|
|
@@ -604,4 +604,4 @@ interface ContentConfig {
|
|
|
604
604
|
settings?: SiteSettingsConfig;
|
|
605
605
|
}
|
|
606
606
|
//#endregion
|
|
607
|
-
export {
|
|
607
|
+
export { ReferenceFieldDefinition as A, CustomBlockKind as B, GroupFieldDefinition as C, ModalFieldDefinition as D, MediaFieldDefinition as E, TabGroupFieldDefinition as F, SystemBlockKind as H, TextFieldDefinition as I, TimeFieldDefinition as L, RichTextFieldDefinition as M, SelectFieldDefinition as N, NumberFieldDefinition as O, SlugFieldDefinition as P, UrlFieldDefinition as R, FileFieldDefinition as S, LinkFieldDefinition as T, SYSTEM_BLOCK_KINDS as V, ContentTypeSelectFieldDefinition as _, EntryConfig as a, EntryPickerFieldDefinition as b, NavigationMenuConfig as c, TEMPLATE_BINDING_META_PATHS as d, TemplateBindingMetaPath as f, BooleanFieldDefinition as g, describeInvalidTemplateBindingMetaPath as h, ContentTypeConfig as i, RepeaterFieldDefinition as j, PresetOrCustomFieldDefinition as k, PageConfig as l, TemplateConfig as m, BlockConfig as n, NavigationItemConfig as o, TemplateBlockConfig as p, ContentConfig as r, NavigationLinkType as s, BindingSource as t, SiteSettingsConfig as u, DateFieldDefinition as v, InlineTextFieldDefinition as w, FieldDefinition as x, DateTimeFieldDefinition as y, BlockKind as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as ApiErrorCode$1, a as
|
|
2
|
-
import {
|
|
3
|
-
import { gt as SiteHeaderContent, ht as SiteFooterContent, r as MediaAssetIndexItem } from "./index-
|
|
4
|
-
import { d as SdkCustomBlock, f as SdkThemeConfig } from "./types-
|
|
1
|
+
import { C as ApiErrorCode$1, a as SiteRuntimeSelectionPayload, b as RoutableContentItem$1, c as SdkBlockContentAdmission, d as PublicPassesResponse$1, g as PublicServiceCategorySummary$1, h as PublicBookingServicesResponse$1, i as SiteRuntimeIdentity, l as ResolveEventSubrouteQuery, m as PublicBookingServiceCatalogueItem$1, n as SdkRuntimePageSurfaceSubject$1, r as SiteBookingOfferingPresetSummary$1, t as SdkRuntimePageSurface$1, u as ResolveEventSubrouteResponse$1, v as SdkRuntimeEntry$1, y as SiteRuntimeSiteTerms } from "./types-D8czmbQF.js";
|
|
2
|
+
import { $i as WeeklyOpeningHours, Ai as MailingListRuntimeContext, D as FooterMode, Ta as BookingTimeZone, ca as AddressedLocationValue, f as Media, kr as PageRuntimeJoin, ri as ResolvedInternalLinkEntityType, sa as BusinessAddress, yr as PublicEvent } from "./schema-D0bNcPWK.js";
|
|
3
|
+
import { gt as SiteHeaderContent, ht as SiteFooterContent, r as MediaAssetIndexItem } from "./index-nVoi_74l.js";
|
|
4
|
+
import { d as SdkCustomBlock, f as SdkThemeConfig, u as RiverbankSiteConfig } from "./types-Dm-KW7nj.js";
|
|
5
5
|
|
|
6
6
|
//#region .cache/declarations/sdk/src/public-api/teamMemberContracts.d.ts
|
|
7
7
|
type PublicTeamMemberSummary = {
|
|
@@ -36,6 +36,7 @@ type ResolveEventRunResponse = Readonly<{
|
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region .cache/declarations/sdk/src/public-api/contracts.d.ts
|
|
38
38
|
type RuntimeSiteSdkConfig = {
|
|
39
|
+
builtInBlocks?: RiverbankSiteConfig['builtInBlocks'];
|
|
39
40
|
layout?: {
|
|
40
41
|
footerMode?: FooterMode;
|
|
41
42
|
};
|
|
@@ -527,7 +528,7 @@ interface FormRecord {
|
|
|
527
528
|
updatedAt: string | null;
|
|
528
529
|
}
|
|
529
530
|
type PublicFormResponse = {
|
|
530
|
-
form: FormRecord;
|
|
531
|
+
form: FormRecord | null;
|
|
531
532
|
};
|
|
532
533
|
type PublicFormsResponse = {
|
|
533
534
|
forms: FormRecord[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { F as SiteFooterBlock, I as SiteResponse } from "./contracts-
|
|
5
|
-
import { _ as RiverbankClient } from "./types-
|
|
6
|
-
import { C as BlockOverrideComponent, g as RenderablePageOutline, r as SdkOverrideOnlyRendering, s as SdkThemeRuntime } from "./Page-
|
|
1
|
+
import { ir as BrowserReadAuthority, t as Theme } from "./schema-D0bNcPWK.js";
|
|
2
|
+
import { z as BlockKind } from "./content-types-D6nXGqdQ.js";
|
|
3
|
+
import { r as MediaAssetIndexItem, y as RouteMap } from "./index-nVoi_74l.js";
|
|
4
|
+
import { F as SiteFooterBlock, I as SiteResponse } from "./contracts-Bnmj1nxu.js";
|
|
5
|
+
import { _ as RiverbankClient } from "./types-CFrYuXYP.js";
|
|
6
|
+
import { C as BlockOverrideComponent, g as RenderablePageOutline, r as SdkOverrideOnlyRendering, s as SdkThemeRuntime } from "./Page-C0ENVLCF.js";
|
|
7
7
|
import { buildFooterMenu, buildFooterMenuForRole, buildLogo, buildLogoVariants, buildMenu } from "./sdk/src/navigation/index.js";
|
|
8
8
|
//#region .cache/declarations/sdk/src/rendering/components/Layout.d.ts
|
|
9
9
|
type CustomHeaderData = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as SiteResponse } from "./contracts-
|
|
2
|
-
import { H as LoadPageResult } from "./Page-
|
|
1
|
+
import { I as SiteResponse } from "./contracts-Bnmj1nxu.js";
|
|
2
|
+
import { H as LoadPageResult } from "./Page-C0ENVLCF.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/metadata/generatePageMetadata.d.ts
|
|
5
5
|
/**
|
|
@@ -39,6 +39,9 @@ type Metadata = {
|
|
|
39
39
|
};
|
|
40
40
|
type PageTitleMode = 'append-site-title' | 'exact';
|
|
41
41
|
type PageMetadataInput = {
|
|
42
|
+
/** The loaded page surface's indexing decision, enforced after robots overrides. */surfaceIndexing?: Readonly<{
|
|
43
|
+
noindex?: true;
|
|
44
|
+
}> | null;
|
|
42
45
|
/**
|
|
43
46
|
* Page data from loadPage() or custom page object
|
|
44
47
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as FieldError, n as ApiErrorCode, t as ApiError } from "./contracts-
|
|
2
|
-
import { _ as RiverbankClient, m as ResilienceStatus, v as RiverbankClientConfig } from "./types-
|
|
1
|
+
import { c as FieldError, n as ApiErrorCode, t as ApiError } from "./contracts-Bnmj1nxu.js";
|
|
2
|
+
import { _ as RiverbankClient, m as ResilienceStatus, v as RiverbankClientConfig } from "./types-CFrYuXYP.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/client/error.d.ts
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { u as RiverbankSiteConfig } from "./types-
|
|
1
|
+
import { f as Media, xa as TipTapNode, ya as RichTextDoc } from "./schema-D0bNcPWK.js";
|
|
2
|
+
import { A as ReferenceFieldDefinition, C as GroupFieldDefinition, D as ModalFieldDefinition, E as MediaFieldDefinition, F as TabGroupFieldDefinition, I as TextFieldDefinition, L as TimeFieldDefinition, M as RichTextFieldDefinition, N as SelectFieldDefinition, O as NumberFieldDefinition, P as SlugFieldDefinition, R as UrlFieldDefinition, S as FileFieldDefinition, T as LinkFieldDefinition, _ as ContentTypeSelectFieldDefinition, a as EntryConfig, b as EntryPickerFieldDefinition, f as TemplateBindingMetaPath, g as BooleanFieldDefinition, i as ContentTypeConfig, j as RepeaterFieldDefinition, k as PresetOrCustomFieldDefinition, r as ContentConfig, t as BindingSource, v as DateFieldDefinition, w as InlineTextFieldDefinition, x as FieldDefinition, y as DateTimeFieldDefinition } from "./content-types-D6nXGqdQ.js";
|
|
3
|
+
import { It as LinkValue, Pt as InlineText, c as NodeDefinition, u as BindingTransformName } from "./index-nVoi_74l.js";
|
|
4
|
+
import { u as RiverbankSiteConfig } from "./types-Dm-KW7nj.js";
|
|
5
5
|
import { z as z$1 } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region .cache/declarations/sdk/src/config/bindings.d.ts
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { E as ThemeResponsiveMode } from "./schema-D0bNcPWK.js";
|
|
2
|
+
//#region .cache/declarations/theme-core/src/themeRuntime.d.ts
|
|
3
|
+
type ThemeRuntime = {
|
|
4
|
+
kind: "cms-theme";
|
|
5
|
+
responsiveMode?: ThemeResponsiveMode;
|
|
6
|
+
} | {
|
|
7
|
+
kind: "responsive-only";
|
|
8
|
+
responsiveMode?: ThemeResponsiveMode;
|
|
9
|
+
} | {
|
|
10
|
+
kind: "none";
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ThemeRuntime as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as PreviewShellProps, i as PreviewShellLayoutProps, n as SdkPreviewModeProps } from "./SdkPreviewMode-
|
|
2
|
-
import React, { ComponentProps, ReactNode } from "react";
|
|
1
|
+
import { a as PreviewShellProps, i as PreviewShellLayoutProps, n as SdkPreviewModeProps } from "./SdkPreviewMode-jZK0A49V.js";
|
|
2
|
+
import React, { ComponentProps, ReactElement, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/preview-next/client/index.d.ts
|
|
5
5
|
type PreviewQueryProviderProps = Readonly<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as SiteResponse, d as NavigationItemRecord, o as EntriesResponse, p as PageResponse } from "./contracts-
|
|
2
|
-
import { _ as RiverbankClient } from "./types-
|
|
1
|
+
import { I as SiteResponse, d as NavigationItemRecord, o as EntriesResponse, p as PageResponse } from "./contracts-Bnmj1nxu.js";
|
|
2
|
+
import { _ as RiverbankClient } from "./types-CFrYuXYP.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/prebuild/types.d.ts
|
|
5
5
|
/**
|