@riverbankcms/sdk 0.163.0 → 0.165.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 +12 -1
- package/dist/_dts/{BlocksIslandsHydrator-DYPGA_qh.d.ts → BlocksIslandsHydrator-CdsSMQEv.d.ts} +1 -1
- package/dist/_dts/{Page-zwnvFBPu.d.ts → Page-D6gp2Ipb.d.ts} +15 -12
- package/dist/_dts/{SdkPreviewMode-DukuJzGr.d.ts → SdkPreviewMode-DNXAvnet.d.ts} +83 -72
- package/dist/_dts/{client-Chh3bnXC.d.ts → client-BkkExozE.d.ts} +13 -41
- package/dist/_dts/{content-types-Bbzqw9J2.d.ts → content-types-CXNAD7ef.d.ts} +2 -2
- package/dist/_dts/{contracts-GJ1kGBsi.d.ts → contracts-XRXhbLWP.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-BNMKhyvo.d.ts → footerPageOutline-BP2bJYdY.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Ce0m1P3B.d.ts → generatePageMetadata-DcMtbztV.d.ts} +2 -2
- package/dist/_dts/{index-CyQhZuhM.d.ts → index-B4ozSzFP.d.ts} +48377 -47862
- package/dist/_dts/{index-DRxgeK8L.d.ts → index-BdkHhyf8.d.ts} +2 -2
- package/dist/_dts/{index-CdSNXLOx.d.ts → index-CQfJhOEA.d.ts} +2 -2
- package/dist/_dts/{index-C3mJvn27.d.ts → index-CRRiddNp.d.ts} +4 -4
- package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
- package/dist/_dts/{index-rhMSu0oY.d.ts → index-C_3kdrUb.d.ts} +2 -2
- package/dist/_dts/{index-CaL0nKkl.d.ts → index-DAPTSmBM.d.ts} +31097 -31047
- package/dist/_dts/{index-FstkyqQB.d.ts → index-DKNEgSOS.d.ts} +2 -2
- package/dist/_dts/{index-G2p-HOrK.d.ts → index-RXkE3a7M.d.ts} +3 -3
- package/dist/_dts/{loadContent-DiLZoInK.d.ts → loadContent-B9vJMq3s.d.ts} +15 -30
- package/dist/_dts/{resolvePageContent-CWUnipv8.d.ts → resolvePageContent-DIQyYUi-.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +6 -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 +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- 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 +3 -3
- 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 +7 -7
- 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/spam-protection/index.d.ts +32 -52
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BmtrA45p.d.ts → types-BDF73NzM.d.ts} +3 -2
- package/dist/_dts/{types-DFOqkClJ.d.ts → types-Cl0nP6al.d.ts} +3 -3
- package/dist/_dts/{types-CalL7aKP.d.ts → types-mstFvhK4.d.ts} +7 -7
- package/dist/_dts/{validation-G8MRoIhq.d.ts → validation-DVWqSvjK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DLCXwe30.mjs → BlocksIslandsHydrator-CzKpH9Pm.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-BV5-50F0.mjs → BookingMailingListNote-rUqsBN7L.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CVLAHdZG.mjs → CalendarNavigationChevron-YGzw2IPB.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Dtgp3OU8.mjs → CheckboxChoice-DlTC4J2a.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-B3caCnTT.mjs → DemoBookingPortalAccess-D2LyS_Bi.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-Ct8JMKW0.mjs → DemoPortalSignInLink-BaFg2Uit.mjs} +1 -1
- package/dist/client/{EventCalendar.client-ffa6920T.mjs → EventCalendar.client-tRrhPscX.mjs} +17 -10
- package/dist/client/{EventCombined.client-zm0W2G79.mjs → EventCombined.client-6cfAVtnZ.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CPPE2rWS.mjs → EventEmbeddedCheckoutStep-CDNUpI0S.mjs} +2 -1
- package/dist/client/{EventItem-CND3mfra.mjs → EventItem-dILw2PN_.mjs} +27 -17
- package/dist/client/{EventListWeekNavigation-D8QdxL_f.mjs → EventListWeekNavigation-ClgLtjNY.mjs} +1 -1
- package/dist/client/{EventListing.client-CaoRZUI9.mjs → EventListing.client-BNueAHmU.mjs} +3 -3
- package/dist/client/{EventListing.view-BfnOmxYD.mjs → EventListing.view-DtVbKVkt.mjs} +56 -12
- package/dist/client/{EventRegistrationPayment-Dfu3RSL2.mjs → EventRegistrationPayment-CzkG0NSJ.mjs} +18 -22
- package/dist/client/{LocationMapActions-wlyxASdT.mjs → LocationMapActions-zWQsJhE5.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-B9oKSitp.mjs → MapDrawingSvg-D1AO_o4h.mjs} +1 -1
- package/dist/client/{Page-BEF9HrAy.mjs → Page-DUr2YhFR.mjs} +1949 -418
- package/dist/client/ProtectedSubmitButton-2fJqT_NR.mjs +14 -0
- package/dist/client/SpamProtectionWidget-CCF6YLUX.mjs +141 -0
- package/dist/client/{StepIndicator-Bjx4faaw.mjs → StepIndicator-udNHcpOT.mjs} +2 -2
- package/dist/client/{TabBarFragment-Cu7k_VSl.mjs → TabBarFragment-C_kt-PXh.mjs} +1 -1
- package/dist/client/{ThemedButton-DclwabI7.mjs → ThemedButton-Cfbo1bfh.mjs} +2 -898
- package/dist/client/{accordion-lzM2nSZB.mjs → accordion-3CYNWzTS.mjs} +1 -1
- package/dist/client/altchaProtection-DjIV9A5n.mjs +12 -0
- package/dist/client/{booking-form.client-Bll4QwBi.mjs → booking-form.client-BSbWgLyx.mjs} +23 -56
- package/dist/client/{bookingForm-Cq5fQ-vo.mjs → bookingForm-2MoFBWSt.mjs} +4 -4
- package/dist/client/bookings.mjs +23 -32
- package/dist/client/{carousel-CxerQwIx.mjs → carousel-Cu5mcpO-.mjs} +2 -2
- package/dist/client/{carousel.client-CVUXq8Mb.mjs → carousel.client-CQLV8_Al.mjs} +1 -1
- package/dist/client/{cart-X-m0isoI.mjs → cart-CDc6x9cR.mjs} +3 -3
- package/dist/client/{cart.client-CJbzWIl0.mjs → cart.client-BWS2r5Ef.mjs} +1 -1
- package/dist/client/{checkout-Gd0O_fGH.mjs → checkout-CkxPqSwD.mjs} +3 -3
- package/dist/client/{checkout.client-Baee6Jsm.mjs → checkout.client-DJfomKQc.mjs} +1 -1
- package/dist/client/client.mjs +216 -109
- package/dist/client/{context-Bg0SFWcM.mjs → context-CBV21-9L.mjs} +17 -3
- package/dist/client/{cta-HffyM4MA.mjs → cta-Bw-al3cs.mjs} +26 -2
- package/dist/client/{dateFormatting-CV45BH5M.mjs → dateFormatting-CFIUJ4Uf.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CDWheSjI.mjs → demoPortalMagicLink-D0veHJyi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BqVDXL0D.mjs → enhanceHeaderSection-CEqqq92r.mjs} +3 -3
- package/dist/client/{event-details.client-SFtS9OkF.mjs → event-details.client-Bk2kQ7ax.mjs} +1 -1
- package/dist/client/{event-registration.client-CguNVIFY.mjs → event-registration.client-QMqtIywj.mjs} +47 -56
- package/dist/client/{eventCalendar-DSGG35jd.mjs → eventCalendar-BTDTMosr.mjs} +4 -4
- package/dist/client/{eventCombined-Oe-PiChx.mjs → eventCombined-BC7a709c.mjs} +4 -4
- package/dist/client/{eventDetails-BhcTT6P3.mjs → eventDetails-DL08GpUc.mjs} +2 -2
- package/dist/client/{eventListing-BS0kBEgI.mjs → eventListing-BfzuEQp_.mjs} +4 -4
- package/dist/client/{eventRegistration-B82SHv7j.mjs → eventRegistration-Lfyzh1Ab.mjs} +4 -4
- package/dist/client/{form-DAIUrVXb.mjs → form-L-xZOBUS.mjs} +3 -3
- package/dist/client/{form.client-BoAkhoh_.mjs → form.client-BtpK3TZW.mjs} +33 -24
- package/dist/client/{form.parts-1VnasOK8.mjs → form.parts-Djos5Un4.mjs} +6 -5
- package/dist/client/{formatDate-BKil_Psb.mjs → formatDate-DGmrm7YB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -4
- package/dist/client/{headerSection-CyuHk8Ei.mjs → headerSection-f16OGkz-.mjs} +2 -2
- package/dist/client/{mediaAssets-CGJE1Omu.mjs → mediaAssets-DHAmrVIi.mjs} +1 -1
- package/dist/client/{mediaContext-DIkX2S-X.mjs → mediaContext-CwT6ZOm7.mjs} +1 -1
- package/dist/client/{newsletter-form.client-CCdyHx0B.mjs → newsletter-form.client-DpHNZc7k.mjs} +100 -85
- package/dist/client/{newsletter-form.parts-Dl8AjsXW.mjs → newsletter-form.parts-CLGH20PL.mjs} +11 -7
- package/dist/client/{newsletterForm-qFWLZJui.mjs → newsletterForm-BEU0Ocu9.mjs} +3 -3
- package/dist/client/{noop-4XFGzJpT.mjs → noop-CQU7tiMg.mjs} +8 -4
- package/dist/client/portal/client.mjs +13 -12
- package/dist/client/{product-detail.client-Tq4S99ce.mjs → product-detail.client-Be-om1BT.mjs} +1 -1
- package/dist/client/{product-list.client-CuL5jB1w.mjs → product-list.client-DR7hD5Vs.mjs} +1 -1
- package/dist/client/{productDetail-BRqgcotZ.mjs → productDetail-BD42UOmG.mjs} +3 -3
- package/dist/client/{productList-EK9Um-oh.mjs → productList-CSk8sXCl.mjs} +3 -3
- package/dist/client/{propsDecoder-VD4arFq1.mjs → propsDecoder-C_Y6VYnF.mjs} +3 -3
- package/dist/client/protection-C0PoH1lT.mjs +104 -0
- package/dist/client/purchase-BV5xfaZH.mjs +894 -0
- package/dist/client/{registry.server-qYbsatxH.mjs → registry.server-CIKtTsCl.mjs} +197 -167
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +11 -7
- package/dist/client/{richText-coerce-CW8CFk8v.mjs → richText-coerce-spWtx86G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CnZ_1ol2.mjs → routeIslandApiConfig-CROHPlYS.mjs} +1 -1
- package/dist/client/{schema-BFwQDvJL.mjs → schema-BdSglH2X.mjs} +2690 -2500
- package/dist/client/{shop-CTUaT57E.mjs → shop-DscvMz86.mjs} +3 -3
- package/dist/client/{shop-commerce-BWwbsm_-.mjs → shop-commerce-CDUohm_2.mjs} +11 -11
- package/dist/client/{shop-commerce-store-15UII0y3.mjs → shop-commerce-store-B9nw4lRP.mjs} +1 -1
- package/dist/client/{shop.client-UWgdmJBm.mjs → shop.client-M3kNsVPi.mjs} +12 -12
- package/dist/client/{shop.interactive-Cf_kASpd.mjs → shop.interactive-BGmkdIAZ.mjs} +268 -31
- package/dist/client/{shopShared-Bi8d584P.mjs → shopShared-BdWp6LHa.mjs} +2 -2
- package/dist/client/{site-styles-dy54AUdz.mjs → site-styles-CWHmlVT5.mjs} +2630 -461
- package/dist/client/spam-protection.mjs +4 -69
- package/dist/client/{timetableModel-Bi8ruFgB.mjs → timetableModel-Dynh5-j4.mjs} +10 -10
- package/dist/client/{useAvailableSlots-DiLbDqM3.mjs → useAvailableSlots-Cw9paRPY.mjs} +3 -3
- package/dist/client/{useBookingNowIso-CWIiqPd0.mjs → useBookingNowIso-C9SF2rC6.mjs} +1 -1
- package/dist/client/{useDiscountApply-ChtszhF9.mjs → useDiscountApply-B-QJfBg0.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-B0Z7n2tZ.mjs → useDiscountCodeUi-Uvum8q9d.mjs} +1 -1
- package/dist/client/{useEventPagination-DRrATQHQ.mjs → useEventPagination-BfM3xk6j.mjs} +9 -156
- package/dist/client/{view-yUIfWX3S.mjs → view-DXOuduIr.mjs} +4 -4
- package/dist/client/{view-OvsxzgxP.mjs → view-DlkCDfuN.mjs} +45 -32
- package/dist/client/{wizardSteps-kbONzKUv.mjs → wizardSteps-DManVJpc.mjs} +57 -47
- package/dist/preview-next/before-render.mjs +2 -2
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DzoFjIqB.mjs → EventEmbeddedCheckoutStep-Die6Y25O.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-Bp4BHLCL.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-Cb0JhM9p.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-BhgPyyUW.mjs → PreviewEditorSidebar-DEP3xD9K.mjs} +3478 -3109
- package/dist/preview-next/client/{PreviewEditorUI-lndKKBtB.mjs → PreviewEditorUI-CxwlLBGw.mjs} +577 -172
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DCDDXDlt.mjs → SdkPreviewModeRuntime-Cpe-XP8e.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bk7On_EM.mjs → SdkPreviewModeRuntime-QDkMPASV.mjs} +3761 -4769
- package/dist/preview-next/client/{siteStyleAccess-Chq5KKKh.mjs → SiteChromeCustomizeButton-1JaoGOKX.mjs} +3862 -8657
- package/dist/preview-next/client/{ThemedButton-nUnE3iMv.mjs → ThemedButton-Dc6aJ34Z.mjs} +274 -68
- package/dist/preview-next/client/editorStatusDecision-DR4BBKhy.mjs +101 -0
- package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CqxuVAyz.mjs} +1 -1
- package/dist/preview-next/client/{previewChromeSurface-CxQ6dZ8D.mjs → previewChromeSurface-yuwnDP3B.mjs} +49 -6
- package/dist/preview-next/client/{previewAuthStore-DHtSQIBE.mjs → previewSidebarNavigation-AXUj9-qQ.mjs} +186449 -173608
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DSZv7Vfm.mjs → sdk-runtime-O-eA9-rV.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +3 -3
- package/dist/preview-next/middleware.mjs +2 -2
- package/dist/preview-next/{route-contract-CxCstfkP.mjs → route-contract-BBAJjFIz.mjs} +42 -50
- package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-Dz9k8vCX.mjs → Block.shared-ClFI3qpX.mjs} +5 -4
- package/dist/server/{bindings-S-gCHhj5.mjs → bindings-Bi8EoRZD.mjs} +2 -2
- package/dist/server/{client-C2Q56xqV.mjs → client-DfMDbZ41.mjs} +215 -109
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-DLzJPcDL.mjs → effectiveNavLinkStyle-BHIYPVG1.mjs} +2362 -217
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-D7ItMsEl.mjs → loadContent-dEEhQxL7.mjs} +6 -4
- package/dist/server/loadPage-CnVB-aeL.mjs +2 -0
- package/dist/server/{loadPage-DaPiPYUL.mjs → loadPage-DBFBad8A.mjs} +3 -2
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next/revalidate.mjs +1 -1
- package/dist/server/next.mjs +11 -11
- package/dist/server/{overrideResolution-anoB3Kbn.mjs → overrideResolution-BIJbiXYc.mjs} +1 -1
- package/dist/server/{overrides-W1Cc6srh.mjs → overrides-DhF87Vsd.mjs} +352 -141
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-BF9yNfCS.mjs → prebuild-DaemmWQL.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Cn9k3DW6.mjs → prefetchBlockData-FwcsT5H2.mjs} +334 -110
- package/dist/server/{publicProducts-BVcJ6TG7.mjs → publicProducts-Bz8loTRn.mjs} +87 -78
- package/dist/server/{registry-4ZF3bUuJ.mjs → registry-Cdvz1OtL.mjs} +539 -401
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BKQ1Fc0M.mjs → resolveBlockData-CLpAJWWf.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-DgrigZq9.mjs → schema-uSA_x1Zh.mjs} +247 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-CxE9F3hj.mjs → site-styles-CntHn2KI.mjs} +61 -37
- package/dist/server/{siteChromeOverlayClearance-OhS6f830.mjs → siteChromeOverlayClearance-DqP40Ka0.mjs} +32 -36
- package/dist/server/{src-C44_fMy5.mjs → src-DsYPhTbs.mjs} +1289 -90
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-CVc04B9m.mjs → themeAdmission-CSknYpxk.mjs} +3 -2
- package/dist/server/{validation-BrbY0nxR.mjs → validation-DYxhLzqQ.mjs} +2 -2
- package/dist/server/{version-BBSk8uM6.mjs → version-Beu4q-Gv.mjs} +1 -1
- package/dist/styles/index.css +1173 -72
- package/package.json +2 -3
- package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
- package/dist/_dts/index-D2y4Iy-d.d.ts +0 -77
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
- package/dist/client/src-BNZzXgWu.mjs +0 -102
- package/dist/preview-next/client/spinner-CjxE3uws.mjs +0 -67
- package/dist/server/loadPage-D2qvYV5g.mjs +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riverbankcms/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.165.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",
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"build": "node scripts/build.mjs",
|
|
196
196
|
"build:runtime": "node scripts/build.mjs --runtime-only",
|
|
197
197
|
"dev": "node scripts/build.mjs --watch",
|
|
198
|
-
"typecheck": "
|
|
198
|
+
"typecheck": "node ../../scripts/run-native-typecheck.mjs",
|
|
199
199
|
"check:declaration-hygiene": "node scripts/check-declaration-hygiene.mjs",
|
|
200
200
|
"check:packed-exports": "node scripts/check-packed-exports.mjs",
|
|
201
201
|
"check:authority": "node scripts/check-no-cli-authority.mjs",
|
|
@@ -257,7 +257,6 @@
|
|
|
257
257
|
"@types/prompts": "^2.4.9",
|
|
258
258
|
"@types/react": "^19.2.17",
|
|
259
259
|
"@types/react-dom": "^19.2.3",
|
|
260
|
-
"eslint": "^9.39.2",
|
|
261
260
|
"happy-dom": "^20.10.6",
|
|
262
261
|
"lucide-react": "^1.21.0",
|
|
263
262
|
"next": "^16.3.3",
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//#region .cache/declarations/altcha/src/AltchaWidget.d.ts
|
|
2
|
-
interface AltchaWidgetProps {
|
|
3
|
-
/** URL to fetch the challenge from (required) */
|
|
4
|
-
challengeUrl: string;
|
|
5
|
-
/** Callback when solution changes (null = not solved/expired) */
|
|
6
|
-
onSolutionChange?: (solution: string | null) => void;
|
|
7
|
-
/** Auto-start solving when widget loads (default: true) */
|
|
8
|
-
auto?: boolean;
|
|
9
|
-
/** Hide the ALTCHA logo (default: false) */
|
|
10
|
-
hidelogo?: boolean;
|
|
11
|
-
/** Additional CSS class */
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* React wrapper for the ALTCHA widget web component.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```tsx
|
|
19
|
-
* <AltchaWidget
|
|
20
|
-
* challengeUrl={getChallengeUrl()}
|
|
21
|
-
* onSolutionChange={(solution) => setSolution(solution)}
|
|
22
|
-
* />
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
declare function AltchaWidget({
|
|
26
|
-
challengeUrl,
|
|
27
|
-
onSolutionChange,
|
|
28
|
-
auto,
|
|
29
|
-
hidelogo,
|
|
30
|
-
className
|
|
31
|
-
}: AltchaWidgetProps): import("react").DetailedReactHTMLElement<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
32
|
-
//#endregion
|
|
33
|
-
export { AltchaWidgetProps as n, AltchaWidget as t };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { E as ThemeResponsiveMode, pi as HexColor } from "./index-CaL0nKkl.js";
|
|
2
|
-
import { z as z$1 } from "zod";
|
|
3
|
-
|
|
4
|
-
//#region .cache/declarations/theme-core/src/hosted-booking-appearance.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* The complete appearance contract accepted by the hosted-booking renderer.
|
|
7
|
-
* It deliberately contains only the simplified theme choices: semantic
|
|
8
|
-
* palette, palette mode, two font roles, and the canonical corner shape.
|
|
9
|
-
*/
|
|
10
|
-
declare const hostedBookingAppearanceSchema: z$1.ZodObject<{
|
|
11
|
-
palette: z$1.ZodPipe<z$1.ZodObject<{
|
|
12
|
-
primary: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
13
|
-
primaryForeground: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
14
|
-
secondary: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
15
|
-
accent: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
16
|
-
success: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
17
|
-
warning: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
18
|
-
destructive: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
19
|
-
background: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
20
|
-
surface: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
21
|
-
surfaceAlt: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
22
|
-
muted: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
23
|
-
text: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
24
|
-
border: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<HexColor, string>>;
|
|
25
|
-
}, z$1.core.$strict>, z$1.ZodTransform<Readonly<Record<"accent" | "background" | "border" | "destructive" | "muted" | "primary" | "primaryForeground" | "secondary" | "success" | "surface" | "surfaceAlt" | "text" | "warning", HexColor>>, {
|
|
26
|
-
primary: HexColor;
|
|
27
|
-
primaryForeground: HexColor;
|
|
28
|
-
secondary: HexColor;
|
|
29
|
-
accent: HexColor;
|
|
30
|
-
success: HexColor;
|
|
31
|
-
warning: HexColor;
|
|
32
|
-
destructive: HexColor;
|
|
33
|
-
background: HexColor;
|
|
34
|
-
surface: HexColor;
|
|
35
|
-
surfaceAlt: HexColor;
|
|
36
|
-
muted: HexColor;
|
|
37
|
-
text: HexColor;
|
|
38
|
-
border: HexColor;
|
|
39
|
-
}>>;
|
|
40
|
-
paletteMode: z$1.ZodEnum<{
|
|
41
|
-
dark: "dark";
|
|
42
|
-
light: "light";
|
|
43
|
-
}>;
|
|
44
|
-
typography: z$1.ZodObject<{
|
|
45
|
-
headingFamily: z$1.ZodString;
|
|
46
|
-
bodyFamily: z$1.ZodString;
|
|
47
|
-
}, z$1.core.$strict>;
|
|
48
|
-
corners: z$1.ZodEnum<{
|
|
49
|
-
pill: "pill";
|
|
50
|
-
rounded: "rounded";
|
|
51
|
-
soft: "soft";
|
|
52
|
-
square: "square";
|
|
53
|
-
}>;
|
|
54
|
-
}, z$1.core.$strict>;
|
|
55
|
-
type HostedBookingAppearance = Readonly<z$1.infer<typeof hostedBookingAppearanceSchema>>;
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region .cache/declarations/field-primitives/src/bindings/index.d.ts
|
|
58
|
-
declare const BINDING_TRANSFORMS: {
|
|
59
|
-
readonly RICHTEXT_FIRST_PARAGRAPH: 'richtext.firstParagraph';
|
|
60
|
-
readonly DATE_FORMAT_SHORT: 'date.formatShort';
|
|
61
|
-
readonly DATE_FORMAT_LONG: 'date.formatLong';
|
|
62
|
-
readonly TEXT_INLINE_TEXT: 'text.inlineText';
|
|
63
|
-
};
|
|
64
|
-
type BindingTransformName = (typeof BINDING_TRANSFORMS)[keyof typeof BINDING_TRANSFORMS];
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region .cache/declarations/theme-core/src/themeRuntime.d.ts
|
|
67
|
-
type ThemeRuntime = {
|
|
68
|
-
kind: "cms-theme";
|
|
69
|
-
responsiveMode?: ThemeResponsiveMode;
|
|
70
|
-
} | {
|
|
71
|
-
kind: "responsive-only";
|
|
72
|
-
responsiveMode?: ThemeResponsiveMode;
|
|
73
|
-
} | {
|
|
74
|
-
kind: "none";
|
|
75
|
-
};
|
|
76
|
-
//#endregion
|
|
77
|
-
export { BindingTransformName as n, HostedBookingAppearance as r, ThemeRuntime as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { createElement, useEffect, useRef } from "react";
|
|
3
|
-
//#region ../altcha/src/AltchaWidget.tsx
|
|
4
|
-
/**
|
|
5
|
-
* React wrapper for the ALTCHA widget web component.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <AltchaWidget
|
|
10
|
-
* challengeUrl={getChallengeUrl()}
|
|
11
|
-
* onSolutionChange={(solution) => setSolution(solution)}
|
|
12
|
-
* />
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
function AltchaWidget({ challengeUrl, onSolutionChange, auto = true, hidelogo = false, className }) {
|
|
16
|
-
const containerRef = useRef(null);
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
if (typeof window === "undefined") return;
|
|
19
|
-
let widget = null;
|
|
20
|
-
import("./altcha-8nj4EF-r.mjs").then(() => {
|
|
21
|
-
if (containerRef.current === null) return;
|
|
22
|
-
widget = document.createElement("altcha-widget");
|
|
23
|
-
widget.setAttribute("challengeurl", challengeUrl);
|
|
24
|
-
if (auto === true) widget.setAttribute("auto", "onload");
|
|
25
|
-
if (hidelogo === true) widget.setAttribute("hidelogo", "true");
|
|
26
|
-
widget.setAttribute("hidefooter", "true");
|
|
27
|
-
if (className !== void 0 && className.length > 0) widget.className = className;
|
|
28
|
-
widget.addEventListener("statechange", ((event) => {
|
|
29
|
-
const { state, payload } = event.detail;
|
|
30
|
-
if (state === "verified" && payload !== void 0 && payload.length > 0) onSolutionChange?.(payload);
|
|
31
|
-
else if (state === "error" || state === "expired") onSolutionChange?.(null);
|
|
32
|
-
}));
|
|
33
|
-
containerRef.current.appendChild(widget);
|
|
34
|
-
}).catch((err) => {
|
|
35
|
-
console.error("Failed to load ALTCHA widget:", err);
|
|
36
|
-
});
|
|
37
|
-
return () => {
|
|
38
|
-
if (widget !== null && containerRef.current !== null) containerRef.current.removeChild(widget);
|
|
39
|
-
};
|
|
40
|
-
}, [
|
|
41
|
-
challengeUrl,
|
|
42
|
-
auto,
|
|
43
|
-
hidelogo,
|
|
44
|
-
className,
|
|
45
|
-
onSolutionChange
|
|
46
|
-
]);
|
|
47
|
-
return createElement("div", { ref: containerRef });
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region ../altcha/src/client.ts
|
|
51
|
-
/**
|
|
52
|
-
* Client-safe check if spam protection is enabled.
|
|
53
|
-
* Uses NEXT_PUBLIC_SPAM_PROTECTION_ENABLED env var.
|
|
54
|
-
*
|
|
55
|
-
* For server-side checks, use hasSpamProtection() from the main entry.
|
|
56
|
-
* For client components receiving props from server, prefer the prop over this check.
|
|
57
|
-
*/
|
|
58
|
-
function isSpamProtectionEnabled() {
|
|
59
|
-
return process.env.NEXT_PUBLIC_SPAM_PROTECTION_ENABLED === "true";
|
|
60
|
-
}
|
|
61
|
-
new TextEncoder();
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region ../altcha/src/index.ts
|
|
64
|
-
/**
|
|
65
|
-
* Get the HMAC key from environment.
|
|
66
|
-
* Returns null if not configured (bypass mode).
|
|
67
|
-
*/
|
|
68
|
-
function getHmacKey() {
|
|
69
|
-
const key = process.env.ALTCHA_HMAC_KEY;
|
|
70
|
-
return key !== void 0 && key.trim().length > 0 ? key : null;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Check if spam protection is configured.
|
|
74
|
-
* Returns true if ALTCHA_HMAC_KEY is set.
|
|
75
|
-
*/
|
|
76
|
-
function hasSpamProtection() {
|
|
77
|
-
return getHmacKey() !== null;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Resolve the CMS API base URL from environment variables.
|
|
81
|
-
* Supports multi-env pattern and dashboard URL.
|
|
82
|
-
*/
|
|
83
|
-
function getCmsApiUrl() {
|
|
84
|
-
const env = process.env.RIVERBANK_ENV;
|
|
85
|
-
if (env !== void 0 && env.length > 0) {
|
|
86
|
-
const envKey = `RIVERBANK_${env.toUpperCase()}_DASHBOARD_URL`;
|
|
87
|
-
const dashboardUrl = process.env[envKey];
|
|
88
|
-
if (dashboardUrl !== void 0 && dashboardUrl.length > 0) return `${dashboardUrl.replace(/\/$/, "")}/api`;
|
|
89
|
-
}
|
|
90
|
-
const dashboardUrl = process.env.NEXT_PUBLIC_DASHBOARD_URL;
|
|
91
|
-
if (dashboardUrl !== void 0 && dashboardUrl.length > 0) return `${dashboardUrl.replace(/\/$/, "")}/api`;
|
|
92
|
-
throw new Error("Dashboard URL not configured. Set NEXT_PUBLIC_DASHBOARD_URL");
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Get the challenge endpoint URL.
|
|
96
|
-
* Returns the full URL to the /api/public/challenge endpoint.
|
|
97
|
-
*/
|
|
98
|
-
function getChallengeUrl() {
|
|
99
|
-
return `${getCmsApiUrl()}/public/challenge`;
|
|
100
|
-
}
|
|
101
|
-
//#endregion
|
|
102
|
-
export { AltchaWidget as i, hasSpamProtection as n, isSpamProtectionEnabled as r, getChallengeUrl as t };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Is as cn, Ms as Primitive } from "./previewAuthStore-DHtSQIBE.mjs";
|
|
3
|
-
import { A as LoaderCircle } from "./lucide-react-CA9cpo0P.mjs";
|
|
4
|
-
import * as React$1 from "react";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-separator@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.17__@types+r_adfab47c9055efb8b0c4b77a2b96b053/node_modules/@radix-ui/react-separator/dist/index.mjs
|
|
7
|
-
var NAME = "Separator";
|
|
8
|
-
var DEFAULT_ORIENTATION = "horizontal";
|
|
9
|
-
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
10
|
-
var Separator$1 = React$1.forwardRef((props, forwardedRef) => {
|
|
11
|
-
const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
|
|
12
|
-
const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
|
|
13
|
-
const semanticProps = decorative ? { role: "none" } : {
|
|
14
|
-
"aria-orientation": orientation === "vertical" ? orientation : void 0,
|
|
15
|
-
role: "separator"
|
|
16
|
-
};
|
|
17
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
18
|
-
"data-orientation": orientation,
|
|
19
|
-
...semanticProps,
|
|
20
|
-
...domProps,
|
|
21
|
-
ref: forwardedRef
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
Separator$1.displayName = NAME;
|
|
25
|
-
function isValidOrientation(orientation) {
|
|
26
|
-
return ORIENTATIONS.includes(orientation);
|
|
27
|
-
}
|
|
28
|
-
var Root = Separator$1;
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region ../ui/src/separator.tsx
|
|
31
|
-
function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
|
|
32
|
-
return /* @__PURE__ */ jsx(Root, {
|
|
33
|
-
"data-slot": "separator",
|
|
34
|
-
decorative,
|
|
35
|
-
orientation,
|
|
36
|
-
className: cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", className),
|
|
37
|
-
...props
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region ../ui/src/spinner.tsx
|
|
42
|
-
const sizeClasses = {
|
|
43
|
-
xs: "size-3",
|
|
44
|
-
sm: "size-4",
|
|
45
|
-
md: "size-5",
|
|
46
|
-
lg: "size-6",
|
|
47
|
-
xl: "size-10"
|
|
48
|
-
};
|
|
49
|
-
function Spinner({ size = "sm", srLabel, className, ...props }) {
|
|
50
|
-
return /* @__PURE__ */ jsxs("span", {
|
|
51
|
-
...srLabel ? {
|
|
52
|
-
role: "status",
|
|
53
|
-
"aria-live": "polite"
|
|
54
|
-
} : { "aria-hidden": true },
|
|
55
|
-
className: cn("inline-flex items-center justify-center text-current", className),
|
|
56
|
-
...props,
|
|
57
|
-
children: [/* @__PURE__ */ jsx(LoaderCircle, {
|
|
58
|
-
"aria-hidden": "true",
|
|
59
|
-
className: cn("animate-spin motion-reduce:animate-none", sizeClasses[size])
|
|
60
|
-
}), srLabel ? /* @__PURE__ */ jsx("span", {
|
|
61
|
-
className: "sr-only",
|
|
62
|
-
children: srLabel
|
|
63
|
-
}) : null]
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
export { Separator as n, Spinner as t };
|