@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as SDK_WORKFLOW_ENDPOINT_PATTERN, c as navigationLinkInputSchemaOptions, i as collectPortalLinkStats, l as footerModeSchema, o as SDK_WORKFLOW_ID_PATTERN, r as collectCartLinkStats, s as loaderFallbackScalarSchema, t as SUPPORTED_LOADER_ENDPOINTS, y as builtinTransformDefinitions } from "./prefetchBlockData-
|
|
1
|
+
import { Di as validateSdkBlockDeclaration, Ei as sdkBlockPresentationShape, Oi as NodeSchema, Ti as validateManifestLookField, bi as builtInBlockKindsSchema, t as getBlockDefinition, vi as blockCategoryEnum, xi as fieldSchema, yi as blockSectionDeclarationShape } from "./registry-eFjKtEhF.mjs";
|
|
2
|
+
import { a as SDK_WORKFLOW_ENDPOINT_PATTERN, c as navigationLinkInputSchemaOptions, i as collectPortalLinkStats, l as footerModeSchema, o as SDK_WORKFLOW_ID_PATTERN, r as collectCartLinkStats, s as loaderFallbackScalarSchema, t as SUPPORTED_LOADER_ENDPOINTS, y as builtinTransformDefinitions } from "./prefetchBlockData-B7ukYXXR.mjs";
|
|
3
3
|
import { a as ALLOWED_TRANSFORM_IDS_SET, r as ALLOWED_NODE_TYPES_SET, t as titleSourceValueSchema } from "./titleSourceSchema-DwKJfMYb.mjs";
|
|
4
4
|
import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-BWRF7509.mjs";
|
|
5
5
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-CdI7NvAW.mjs";
|
|
@@ -634,7 +634,10 @@ const blockFieldOptionsSchema = z.record(z.string().regex(/^(block\.|custom\.)[a
|
|
|
634
634
|
*
|
|
635
635
|
* Note: Explicit type annotation required due to recursive fieldSchema complexity.
|
|
636
636
|
*/
|
|
637
|
-
const blockFieldExtensionSchema = z.object({
|
|
637
|
+
const blockFieldExtensionSchema = z.object({
|
|
638
|
+
fields: fieldSchema.array().min(1, "At least one field is required"),
|
|
639
|
+
...blockSectionDeclarationShape
|
|
640
|
+
}).superRefine(validateManifestLookField).refine((data) => {
|
|
638
641
|
return data.fields.every((field) => {
|
|
639
642
|
if (!field.required) return true;
|
|
640
643
|
return field.defaultValue !== void 0;
|
|
@@ -748,66 +751,9 @@ const sdkCustomBlockSchema = z.object({
|
|
|
748
751
|
fields: fieldSchema.array().min(1, "Custom blocks must have at least one field"),
|
|
749
752
|
dataLoaders: sdkDataLoadersSchema,
|
|
750
753
|
layout: NodeSchema.optional(),
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
label: z.string().min(1).optional(),
|
|
755
|
-
description: z.string().min(1).optional(),
|
|
756
|
-
icon: z.string().min(1).optional()
|
|
757
|
-
})).optional(),
|
|
758
|
-
previewCustomize: previewCustomizeManifestCurationSchema.optional()
|
|
759
|
-
}).superRefine((data, ctx) => {
|
|
760
|
-
if (data.titleSource) {
|
|
761
|
-
const fields = data.fields;
|
|
762
|
-
(Array.isArray(data.titleSource) ? data.titleSource : [data.titleSource]).forEach((source, index) => {
|
|
763
|
-
if (!fields.some((field) => field.id === source)) ctx.addIssue({
|
|
764
|
-
code: z.ZodIssueCode.custom,
|
|
765
|
-
message: `titleSource must reference a valid field ID (got "${source}")`,
|
|
766
|
-
path: Array.isArray(data.titleSource) ? ["titleSource", index] : ["titleSource"]
|
|
767
|
-
});
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
if (data.layout && data.variants) ctx.addIssue({
|
|
771
|
-
code: z.ZodIssueCode.custom,
|
|
772
|
-
message: "Custom block must define either `layout` or `variants`, not both",
|
|
773
|
-
path: ["variants"]
|
|
774
|
-
});
|
|
775
|
-
if (data.layout) {
|
|
776
|
-
const result = validateLayout(data.layout);
|
|
777
|
-
if (!result.valid) for (const error of result.errors) ctx.addIssue({
|
|
778
|
-
code: z.ZodIssueCode.custom,
|
|
779
|
-
message: error.message,
|
|
780
|
-
path: ["layout"]
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
if (data.variants) {
|
|
784
|
-
if (Object.keys(data.variants).length === 0) ctx.addIssue({
|
|
785
|
-
code: z.ZodIssueCode.custom,
|
|
786
|
-
message: "`variants` must contain at least one variant key",
|
|
787
|
-
path: ["variants"]
|
|
788
|
-
});
|
|
789
|
-
if (data.defaultVariant && !Object.prototype.hasOwnProperty.call(data.variants, data.defaultVariant)) ctx.addIssue({
|
|
790
|
-
code: z.ZodIssueCode.custom,
|
|
791
|
-
message: "`defaultVariant` must be a key present in `variants`",
|
|
792
|
-
path: ["defaultVariant"]
|
|
793
|
-
});
|
|
794
|
-
for (const [key, node] of Object.entries(data.variants)) {
|
|
795
|
-
const result = validateLayout(node);
|
|
796
|
-
if (!result.valid) for (const error of result.errors) ctx.addIssue({
|
|
797
|
-
code: z.ZodIssueCode.custom,
|
|
798
|
-
message: `${key}: ${error.message}`,
|
|
799
|
-
path: ["variants", key]
|
|
800
|
-
});
|
|
801
|
-
}
|
|
802
|
-
if (data.variantOptions) {
|
|
803
|
-
for (const key of Object.keys(data.variantOptions)) if (!Object.prototype.hasOwnProperty.call(data.variants, key)) ctx.addIssue({
|
|
804
|
-
code: z.ZodIssueCode.custom,
|
|
805
|
-
message: "`variantOptions` key must exist in `variants`",
|
|
806
|
-
path: ["variantOptions", key]
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
});
|
|
754
|
+
...sdkBlockPresentationShape,
|
|
755
|
+
...blockSectionDeclarationShape
|
|
756
|
+
}).superRefine(validateManifestLookField).superRefine(validateSdkBlockDeclaration).superRefine(validateCustomBlockPresentation);
|
|
811
757
|
/**
|
|
812
758
|
* Schema for the complete SDK site configuration.
|
|
813
759
|
*
|
|
@@ -868,6 +814,7 @@ const sdkWorkflowsSchema = z.array(sdkWorkflowConfigSchema).max(50, "Maximum 50
|
|
|
868
814
|
}, { message: "Workflow IDs must be unique" }).optional();
|
|
869
815
|
const riverbankSiteConfigSchema = z.object({
|
|
870
816
|
siteId: z.string().uuid(),
|
|
817
|
+
builtInBlocks: builtInBlockKindsSchema.optional(),
|
|
871
818
|
previewUrl: sdkSiteUrlSchema.optional(),
|
|
872
819
|
liveUrl: sdkSiteUrlSchema.optional(),
|
|
873
820
|
theme: sdkThemeConfigSchema.optional(),
|
|
@@ -888,5 +835,17 @@ const riverbankSiteConfigSchema = z.object({
|
|
|
888
835
|
activeTheme: activeThemeSchema,
|
|
889
836
|
dashboard: dashboardConfigSchema.optional()
|
|
890
837
|
}).strict();
|
|
838
|
+
function validateCustomBlockPresentation(data, ctx) {
|
|
839
|
+
if (data.layout) addLayoutIssues(data.layout, ["layout"], "", ctx);
|
|
840
|
+
if (!data.variants) return;
|
|
841
|
+
Object.entries(data.variants).forEach(([key, node]) => addLayoutIssues(node, ["variants", key], `${key}: `, ctx));
|
|
842
|
+
}
|
|
843
|
+
function addLayoutIssues(node, path, prefix, ctx) {
|
|
844
|
+
validateLayout(node).errors.forEach((error) => ctx.addIssue({
|
|
845
|
+
code: z.ZodIssueCode.custom,
|
|
846
|
+
message: `${prefix}${error.message}`,
|
|
847
|
+
path
|
|
848
|
+
}));
|
|
849
|
+
}
|
|
891
850
|
//#endregion
|
|
892
851
|
export { templateBlockConfigSchema as $, sectionOptionsSchema as A, dashboardNavigationConfigSchema as B, sdkWorkflowConfigSchema as C, sdkWorkflowTriggerSchema as D, sdkWorkflowIdSchema as E, validateFieldIdConflicts as F, blockConfigSchema as G, validateLayoutNodeTypes as H, dashboardConfigSchema as I, entryConfigSchema as J, contentConfigSchema as K, dashboardNavVisibilityBaseSchema as L, siteStyleConfigSchema as M, syncConfigSchema as N, sdkWorkflowsSchema as O, themeSourceSchema as P, siteSettingsConfigSchema as Q, dashboardNavVisibilityRolesSchema as R, sdkThemePaletteSchema as S, sdkWorkflowEndpointSchema as T, validateTransformIds as U, validateLayout as V, bindingSourceSchema as W, navigationMenuConfigSchema as X, navigationItemConfigSchema as Y, pageConfigSchema as Z, sdkCustomBlockSchema as _, blockFieldOptionsSchema as a, sdkSiteUrlSchema as b, containerOptionsSchema as c, layoutConfigSchema as d, templateConfigSchema as et, loaderParamBindingSchema as f, sdkConfigLoaderSchema as g, riverbankSiteConfigSchema as h, blockFieldExtensionsSchema as i, sectionSpacingSchema as j, sectionBackgroundSchema as k, deployConfigSchema as l, loaderWhenValueSchema as m, blockFieldConfigSchema as n, describeInvalidTemplateBindingMetaPath as nt, containerAlignmentSchema as o, loaderParamValueSchema as p, contentTypeConfigSchema as q, blockFieldExtensionSchema as r, containerMaxWidthSchema as s, activeThemeSchema as t, TEMPLATE_BINDING_META_PATHS as tt, fieldSelectOptionSchema as u, sdkDataLoadersSchema as v, sdkWorkflowConfirmationSchema as w, sdkThemeConfigSchema as x, sdkLoaderEndpointSchema as y, dashboardNavVisibilitySchema as z };
|
package/dist/styles/index.css
CHANGED
|
@@ -1806,6 +1806,26 @@
|
|
|
1806
1806
|
}
|
|
1807
1807
|
|
|
1808
1808
|
|
|
1809
|
+
/* Shared upload structure: included in both public theme CSS and editor CSS.
|
|
1810
|
+
* Palette, row framing and animation belong to each surface. No Tailwind required. */
|
|
1811
|
+
@layer components {
|
|
1812
|
+
.rb-upload-progress { position: relative; width: 100%; height: 8px; overflow: hidden; border-radius: 9999px; }
|
|
1813
|
+
.rb-upload-progress[data-size="thin"] { height: 4px; }
|
|
1814
|
+
.rb-upload-progress-fill { height: 100%; border-radius: inherit; }
|
|
1815
|
+
.rb-upload-progress[data-indeterminate] .rb-upload-progress-fill { position: absolute; }
|
|
1816
|
+
.rb-upload-content { min-width: 0; }
|
|
1817
|
+
.rb-upload-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; line-height: 1.3; font-weight: 500; }
|
|
1818
|
+
.rb-upload-content > .rb-upload-progress { margin-top: 6px; }
|
|
1819
|
+
.rb-upload-error { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--foreground); }
|
|
1820
|
+
.rb-upload-status { white-space: nowrap; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
|
|
1821
|
+
.rb-upload-row:is([data-failed], [data-done], [data-sending]) > .rb-upload-status { font-weight: 500; color: var(--foreground); }
|
|
1822
|
+
.rb-upload-row[data-failed] > .rb-upload-status { color: var(--upload-attention); }
|
|
1823
|
+
.rb-upload-done-icon { display: inline; margin-right: 6px; }
|
|
1824
|
+
.rb-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
|
|
1825
|
+
.rb-upload-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
|
|
1809
1829
|
@layer rb-theme {
|
|
1810
1830
|
/* Fallback defaults so preview doesn't look broken before ThemeScope injects vars */
|
|
1811
1831
|
:root {
|
|
@@ -11015,6 +11035,55 @@
|
|
|
11015
11035
|
/* Styles for SSR placeholder */
|
|
11016
11036
|
}
|
|
11017
11037
|
|
|
11038
|
+
/* Document uploads: the shared upload row (uploads-react UploadRow), drawn in the
|
|
11039
|
+
* site's palette and type rather than editor chrome. The tokens below are the
|
|
11040
|
+
* ones that row reads; the editor defines the same set in editor-base.css. */
|
|
11041
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field {
|
|
11042
|
+
--foreground: var(--cp-text);
|
|
11043
|
+
--muted-foreground: var(--cp-muted);
|
|
11044
|
+
--card: var(--cp-card-bg);
|
|
11045
|
+
--primary: var(--cp-primary);
|
|
11046
|
+
--muted: color-mix(in srgb, var(--cp-primary) 9%, var(--cp-card-bg));
|
|
11047
|
+
--upload-track: color-mix(in srgb, var(--cp-primary) 14%, var(--cp-card-bg));
|
|
11048
|
+
--upload-row-hover: color-mix(in srgb, var(--cp-text) 3%, var(--cp-card-bg));
|
|
11049
|
+
--upload-attention: var(--cp-error);
|
|
11050
|
+
--upload-attention-wash: color-mix(in srgb, var(--cp-error) 7%, var(--cp-card-bg));
|
|
11051
|
+
--upload-attention-soft: color-mix(in srgb, var(--cp-error) 14%, var(--cp-card-bg));
|
|
11052
|
+
display: flex;
|
|
11053
|
+
flex-direction: column;
|
|
11054
|
+
align-items: flex-start;
|
|
11055
|
+
gap: 10px;
|
|
11056
|
+
}
|
|
11057
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-list { display: contents; }
|
|
11058
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-scroll, :where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-scroll[data-overflow] { align-self: stretch; padding: 0; max-height: none; overflow: visible; mask-image: none; }
|
|
11059
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-trigger { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
|
|
11060
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-trigger:has(input:focus-visible) { outline: 2px solid var(--cp-primary); outline-offset: 2px; }
|
|
11061
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 28px; gap: 12px; align-items: center; padding: 8px 8px 8px 10px; border: 1px solid var(--cp-border); border-radius: var(--cp-control-radius); background: var(--cp-card-bg); color: var(--cp-text); transition: background-color .15s; }
|
|
11062
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row:hover, :where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row:focus-within { background: var(--upload-row-hover); }
|
|
11063
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row[data-failed] { align-items: start; border-color: color-mix(in srgb, var(--cp-error) 22%, var(--cp-card-bg)); background: var(--upload-attention-wash); }
|
|
11064
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row[data-failed] > .rb-upload-status { color: var(--upload-attention); }
|
|
11065
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-status svg { color: var(--cp-primary); }
|
|
11066
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-thumb { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; overflow: hidden; border-radius: 4px; background: var(--muted); color: var(--cp-muted); }
|
|
11067
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-thumb[data-failed] { background: var(--upload-attention-soft); color: var(--upload-attention); }
|
|
11068
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: var(--cp-muted); }
|
|
11069
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-icon:hover { background: color-mix(in srgb, var(--cp-text) 8%, transparent); color: var(--cp-text); }
|
|
11070
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-icon:focus-visible { outline: 2px solid var(--cp-primary); outline-offset: 2px; }
|
|
11071
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-link { color: var(--cp-primary); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
|
|
11072
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-progress { background: var(--upload-track); }
|
|
11073
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-progress-fill { background: var(--cp-primary); transition: width 250ms ease; }
|
|
11074
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-progress[data-waiting] .rb-upload-progress-fill { opacity: .35; }
|
|
11075
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-progress[data-indeterminate] .rb-upload-progress-fill { position: absolute; width: 38%; animation: cp-upload-comet 1.5s ease-in-out infinite; }
|
|
11076
|
+
@keyframes cp-upload-comet { from { transform: translateX(-100%); } to { transform: translateX(365%); } }
|
|
11077
|
+
@media (max-width: 639px) {
|
|
11078
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row { gap: 8px; }
|
|
11079
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row[data-failed] > .rb-upload-status { display: none; }
|
|
11080
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row[data-failed] > .rb-upload-icon { grid-column: 4; }
|
|
11081
|
+
}
|
|
11082
|
+
@media (prefers-reduced-motion: reduce) {
|
|
11083
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-progress-fill { transition: none; }
|
|
11084
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-progress[data-indeterminate] .rb-upload-progress-fill { animation: none; width: 100%; opacity: .35; }
|
|
11085
|
+
}
|
|
11086
|
+
|
|
11018
11087
|
/* Reserved portal ticket and digital-product pages.
|
|
11019
11088
|
* These render without site chrome, so the page itself sits on the site
|
|
11020
11089
|
* background (from the surrounding theme scope) and the card mirrors .cp-login. */
|
|
@@ -14459,6 +14528,15 @@
|
|
|
14459
14528
|
.theme-scope [data-arrangement] [data-slot="item-text"] { margin-block: 0.5rem 0; }
|
|
14460
14529
|
.theme-scope [data-arrangement="grid"] [data-slot="item-body"] { padding: 1.5rem; }
|
|
14461
14530
|
.theme-scope [data-arrangement="grid"] [data-slot="item-actions"] { margin-top: 1rem; }
|
|
14531
|
+
/* Event spotlight (issue 1612): the date heads the card on one line, inside the card's padding,
|
|
14532
|
+
* so every skin gets a deliberate date without its own treatment rules. */
|
|
14533
|
+
.theme-scope [data-arrangement="grid"][data-treat="calendar-spotlight"] [data-slot="item"] > [data-slot="date"] { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; padding: 1rem 1.5rem 0.875rem; }
|
|
14534
|
+
.theme-scope [data-arrangement="grid"][data-treat="calendar-spotlight"] [data-slot="item"] > [data-slot="date"] > :is([data-slot="weekday"], [data-slot="month"]) { width: auto; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rb-surface-supporting-color); }
|
|
14535
|
+
.theme-scope [data-arrangement="grid"][data-treat="calendar-spotlight"] [data-slot="item"] > [data-slot="date"] > [data-slot="day"] { width: auto; font-family: var(--font-heading); font-size: 2.25rem; font-weight: 500; line-height: 1; color: var(--rb-surface-heading-color); }
|
|
14536
|
+
.theme-scope [data-arrangement="grid"][data-treat="calendar-spotlight"] [data-slot="item"] > [data-slot="date"] + [data-slot="item-body"] { padding-top: 0.75rem; }
|
|
14537
|
+
/* Calendar grid photos (spotlight and session cards) share one crop, so cards in a row line up
|
|
14538
|
+
* whatever shape each event's photo is. */
|
|
14539
|
+
.theme-scope [data-block="event-calendar"][data-arrangement="grid"] [data-slot="item"] > [data-slot="item-media"] [data-slot="photo"] { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
|
|
14462
14540
|
|
|
14463
14541
|
/* Item bodies fill the card so their actions share a bottom baseline. */
|
|
14464
14542
|
.theme-scope [data-arrangement="grid"] [data-slot="item"] { display: flex; flex-direction: column; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riverbankcms/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.160.0",
|
|
4
4
|
"description": "Riverbank CMS SDK for headless content consumption",
|
|
5
5
|
"main": "./dist/server/index.mjs",
|
|
6
6
|
"module": "./dist/server/index.mjs",
|
|
@@ -227,11 +227,15 @@
|
|
|
227
227
|
"next": ">=14.0.0",
|
|
228
228
|
"react": "^19.2.1",
|
|
229
229
|
"react-dom": "^19.2.1",
|
|
230
|
-
"tailwindcss": ">=4.0.0"
|
|
230
|
+
"tailwindcss": ">=4.0.0",
|
|
231
|
+
"ai": ">=6.0.0"
|
|
231
232
|
},
|
|
232
233
|
"peerDependenciesMeta": {
|
|
233
234
|
"next": {
|
|
234
235
|
"optional": true
|
|
236
|
+
},
|
|
237
|
+
"ai": {
|
|
238
|
+
"optional": true
|
|
235
239
|
}
|
|
236
240
|
},
|
|
237
241
|
"devDependencies": {
|
|
@@ -257,7 +261,8 @@
|
|
|
257
261
|
"happy-dom": "^20.10.6",
|
|
258
262
|
"lucide-react": "^1.21.0",
|
|
259
263
|
"next": "^16.3.3",
|
|
260
|
-
"typescript": "^6.0.3"
|
|
264
|
+
"typescript": "^6.0.3",
|
|
265
|
+
"ai": "^6.0.208"
|
|
261
266
|
},
|
|
262
267
|
"repository": {
|
|
263
268
|
"type": "git",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region .cache/declarations/field-primitives/src/bindings/index.d.ts
|
|
2
|
-
declare const BINDING_TRANSFORMS: {
|
|
3
|
-
readonly RICHTEXT_FIRST_PARAGRAPH: 'richtext.firstParagraph';
|
|
4
|
-
readonly DATE_FORMAT_SHORT: 'date.formatShort';
|
|
5
|
-
readonly DATE_FORMAT_LONG: 'date.formatLong';
|
|
6
|
-
readonly TEXT_INLINE_TEXT: 'text.inlineText';
|
|
7
|
-
};
|
|
8
|
-
type BindingTransformName = (typeof BINDING_TRANSFORMS)[keyof typeof BINDING_TRANSFORMS];
|
|
9
|
-
//#endregion
|
|
10
|
-
export { BindingTransformName as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { z as z$1 } from "zod";
|