@riverbankcms/sdk 0.162.0 → 0.164.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/CHANGELOG.md +9 -0
- package/README.md +12 -1
- package/dist/_dts/{BlocksIslandsHydrator-PZUoA872.d.ts → BlocksIslandsHydrator-CubPwupc.d.ts} +1 -1
- package/dist/_dts/{Page-CdQS6C7i.d.ts → Page-CDzsagB2.d.ts} +15 -12
- package/dist/_dts/{SdkPreviewMode-CNGO-5f1.d.ts → SdkPreviewMode-CPRQbRCI.d.ts} +2 -3
- package/dist/_dts/{client-DGa53rjL.d.ts → client-CbeYTSry.d.ts} +13 -41
- package/dist/_dts/{content-types-K9R7P-KF.d.ts → content-types--uYRIcIF.d.ts} +2 -2
- package/dist/_dts/{contracts-CyBaPaIq.d.ts → contracts-DJQYAOsv.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-B6jmKmon.d.ts → footerPageOutline-CKkhBwgJ.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-iemoR3AN.d.ts → generatePageMetadata--qd7NCIA.d.ts} +2 -2
- package/dist/_dts/{index-DEu85xBt.d.ts → index-BZE-1azr.d.ts} +1 -1
- package/dist/_dts/{index-Wm62sXf2.d.ts → index-BpEbwDM7.d.ts} +4 -4
- package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
- package/dist/_dts/{index-8CN0Nd-Z.d.ts → index-CjdIn9-_.d.ts} +2 -2
- package/dist/_dts/{index-BtnsA14K.d.ts → index-DYQFmf--.d.ts} +4 -3
- package/dist/_dts/{index-Dbd0Sn0G.d.ts → index-D_pQO-AS.d.ts} +21723 -21361
- package/dist/_dts/{index-Du1IRglc.d.ts → index-DriYVLfT.d.ts} +2 -2
- package/dist/_dts/{index-DI2yaSPY.d.ts → index-JS8WYgD3.d.ts} +31248 -30975
- package/dist/_dts/{index-Jlcq6w69.d.ts → index-wegfy7lf.d.ts} +3 -3
- package/dist/_dts/{loadContent-BPfAAZDW.d.ts → loadContent-DUi94Qfk.d.ts} +15 -30
- package/dist/_dts/{resolvePageContent-DWbrtKf8.d.ts → resolvePageContent-JDE0ry6T.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 +13 -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-ClZ-BQL_.d.ts → types-DiciZDrk.d.ts} +3 -3
- package/dist/_dts/{types-CVv2H4AT.d.ts → types-DubJnBnI.d.ts} +7 -7
- package/dist/_dts/{types-CfNG5koF.d.ts → types-W40f2olO.d.ts} +3 -2
- package/dist/_dts/{validation-BJ6Lf_Dr.d.ts → validation-BF4_zNkR.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-COqlgWYU.mjs → BlocksIslandsHydrator-64hFxF02.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-CFYPDEHH.mjs → BookingMailingListNote-CSQyFm9J.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-COBVxgHb.mjs → CalendarNavigationChevron-Bvkx8Z7Y.mjs} +6 -6
- package/dist/client/{CheckboxChoice-C7X9dJ8A.mjs → CheckboxChoice-3PhxDxgR.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CvT0E9AR.mjs → DemoBookingPortalAccess-pt2xXBQp.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-EBOBN5dT.mjs → DemoPortalSignInLink-Qw780EfW.mjs} +1 -1
- package/dist/client/{EventCalendar.client-U6pKcntV.mjs → EventCalendar.client-DWoboRW5.mjs} +9 -9
- package/dist/client/{EventCombined.client-CNzwEHws.mjs → EventCombined.client-C98ucpcP.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B9yAWV_k.mjs → EventEmbeddedCheckoutStep-DHRlFfkp.mjs} +2 -1
- package/dist/client/{EventItem-M5rpaHxi.mjs → EventItem-hrSyTApW.mjs} +102 -22
- package/dist/client/{EventListWeekNavigation-D4ieBLDY.mjs → EventListWeekNavigation-C3t7H13W.mjs} +1 -1
- package/dist/client/{EventListing.client-B8F40Rmn.mjs → EventListing.client-Cp11sBX_.mjs} +3 -3
- package/dist/client/{EventListing.view-k4lhuCn5.mjs → EventListing.view-Dd5QHIAf.mjs} +7 -56
- package/dist/client/{EventRegistrationPayment-C3g8_Hqb.mjs → EventRegistrationPayment-ByT88VHR.mjs} +18 -22
- package/dist/client/{LocationMapActions-CAjt7qVo.mjs → LocationMapActions-BsepG5Vv.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-_aIK2ojv.mjs → MapDrawingSvg-R4JMT4yd.mjs} +1 -1
- package/dist/client/{Page-DJBIQBOw.mjs → Page-Dub71o3c.mjs} +956 -378
- package/dist/client/ProtectedSubmitButton-DGbgGvdh.mjs +14 -0
- package/dist/client/SpamProtectionWidget-CRsKTQV-.mjs +139 -0
- package/dist/client/{StepIndicator-CFacB1z6.mjs → StepIndicator-Bp7MyutT.mjs} +2 -2
- package/dist/client/{TabBarFragment-BLsfQskO.mjs → TabBarFragment-C4WJyybx.mjs} +1 -1
- package/dist/client/{ThemedButton-BWsDgjMC.mjs → ThemedButton-BGVwNwE-.mjs} +2 -898
- package/dist/client/{accordion-CtO2XF7M.mjs → accordion-vCG_JC5t.mjs} +1 -1
- package/dist/client/altchaProtection-BWchRM3v.mjs +12 -0
- package/dist/client/{booking-form.client-RICCQ0h2.mjs → booking-form.client-CHTbcZJM.mjs} +23 -56
- package/dist/client/{bookingForm-SvjLPx8i.mjs → bookingForm-BxbUbzUr.mjs} +4 -4
- package/dist/client/bookings.mjs +23 -32
- package/dist/client/{carousel-BR-zCD3O.mjs → carousel-FM1mkkL0.mjs} +2 -2
- package/dist/client/{carousel.client-CEWtoZd3.mjs → carousel.client-ChoLiWwD.mjs} +1 -1
- package/dist/client/{cart-C6YpKbZZ.mjs → cart-BDFhbh9j.mjs} +3 -3
- package/dist/client/{cart.client-dC938WrX.mjs → cart.client-x3HOke6T.mjs} +1 -1
- package/dist/client/{checkout-Dy9RlREI.mjs → checkout-BibhwnTd.mjs} +3 -3
- package/dist/client/{checkout.client-CefG0d2F.mjs → checkout.client-CE4jUi0G.mjs} +1 -1
- package/dist/client/client.mjs +216 -109
- package/dist/client/{context-BFwxgZpB.mjs → context-BNAM7NsW.mjs} +17 -3
- package/dist/client/{cta-DtA42Xio.mjs → cta-ChiN1Vgg.mjs} +1 -1
- package/dist/client/{dateFormatting-yP1B7F0O.mjs → dateFormatting-QwBSo0hK.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-WOiT5Ryi.mjs → demoPortalMagicLink-NwKJk6gn.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Dh8c_Lq-.mjs → enhanceHeaderSection-D4zqEBDl.mjs} +3 -3
- package/dist/client/{event-details.client-BFgsLqTj.mjs → event-details.client-jFyFjOIC.mjs} +1 -1
- package/dist/client/{event-registration.client-BaXZ1-Ky.mjs → event-registration.client-BK_jVv3R.mjs} +37 -55
- package/dist/client/{eventCalendar-COLwF80U.mjs → eventCalendar-DSkzejQh.mjs} +4 -4
- package/dist/client/{eventCombined-D3Ltwu03.mjs → eventCombined-BG-BEaYh.mjs} +4 -4
- package/dist/client/{eventDetails-CBrkimXu.mjs → eventDetails-BhIwXAKe.mjs} +2 -2
- package/dist/client/{eventListing-CedKVA1S.mjs → eventListing-DQtyO1Xj.mjs} +4 -4
- package/dist/client/{eventRegistration-DkQQfR1b.mjs → eventRegistration-DRTz8X0M.mjs} +4 -4
- package/dist/client/{form-XFy9uXSJ.mjs → form-GXqjObPC.mjs} +3 -3
- package/dist/client/{form.client-B0iancFK.mjs → form.client-CoKNba2e.mjs} +33 -24
- package/dist/client/{form.parts-DMbolu9Y.mjs → form.parts-magB_epJ.mjs} +6 -5
- package/dist/client/{formatDate-Jm5MQOCA.mjs → formatDate-BiloOyjS.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -3
- package/dist/client/{headerSection-WjlECjtV.mjs → headerSection-BMQCPHT3.mjs} +2 -2
- package/dist/client/mediaAssets-BX-vWwQc.mjs +43 -0
- package/dist/client/{mediaContext-CNzWmoA4.mjs → mediaContext-CdqGYlWl.mjs} +1 -1
- package/dist/client/{newsletter-form.client-D-XwJTjN.mjs → newsletter-form.client-8orCez1z.mjs} +99 -84
- package/dist/client/{newsletter-form.parts-H92f30y0.mjs → newsletter-form.parts-D8NgHY_F.mjs} +11 -7
- package/dist/client/{newsletterForm-DMuxzu6I.mjs → newsletterForm-BhBNsS3n.mjs} +3 -3
- package/dist/client/{noop-B3RNPVrt.mjs → noop-C2vZse15.mjs} +3 -3
- package/dist/client/portal/client.mjs +13 -12
- package/dist/client/{product-detail.client-B3HuuykE.mjs → product-detail.client-CQ0k0fbH.mjs} +1 -1
- package/dist/client/{product-list.client-CzsDrHQO.mjs → product-list.client-Xlr1P0x9.mjs} +1 -1
- package/dist/client/{productDetail-CbBUVWgd.mjs → productDetail-BsCao6X4.mjs} +3 -3
- package/dist/client/{productList-vqOKH2mh.mjs → productList-Cc-PmbEe.mjs} +3 -3
- package/dist/client/{propsDecoder-CkSUep5a.mjs → propsDecoder-DikkDJ9x.mjs} +3 -3
- package/dist/client/protection-C0PoH1lT.mjs +104 -0
- package/dist/client/purchase-BMsWpx8y.mjs +894 -0
- package/dist/client/{registry.server-cZ24QwtW.mjs → registry.server-BpLZo3bC.mjs} +27 -24
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -19
- package/dist/client/{richText-coerce-DDcCKvBJ.mjs → richText-coerce-WuMYrBm3.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DYBioANh.mjs → routeIslandApiConfig-DNx6b07x.mjs} +1 -1
- package/dist/client/{schema-DNHLlze-.mjs → schema-DMUkBtIO.mjs} +3517 -3147
- package/dist/client/{shop-CF0dhnfH.mjs → shop-DyXtB5TD.mjs} +3 -3
- package/dist/client/{shop-commerce-store-Ba8zPlIg.mjs → shop-commerce-store-CbBsS1kD.mjs} +1 -1
- package/dist/client/{shop-commerce-DQznNBEo.mjs → shop-commerce-xjWH7-Ym.mjs} +11 -11
- package/dist/client/{shop.client-DqfYoqWH.mjs → shop.client-QOKqQPgK.mjs} +12 -12
- package/dist/client/{shop.interactive-CreQ0I7i.mjs → shop.interactive-BQdm441g.mjs} +62 -34
- package/dist/client/{shopShared-D-yh-P7g.mjs → shopShared-CyW6MU48.mjs} +2 -2
- package/dist/client/{site-styles-B9HgmY07.mjs → site-styles-BLHYJ8S7.mjs} +755 -35
- package/dist/client/spam-protection.mjs +4 -69
- package/dist/client/{timetableModel-DCdVErTJ.mjs → timetableModel-BgdkhRuA.mjs} +10 -10
- package/dist/client/{useAvailableSlots-Cvgdp2DH.mjs → useAvailableSlots-wmdo6uZ8.mjs} +3 -3
- package/dist/client/{useBookingNowIso-DrTnGNzD.mjs → useBookingNowIso-CUExAee1.mjs} +1 -1
- package/dist/client/{useDiscountApply-CULjnXGl.mjs → useDiscountApply-BRM-OoTN.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-Gn_m7e0o.mjs → useDiscountCodeUi-BEIvL31G.mjs} +1 -1
- package/dist/client/{useEventPagination-CsysCF22.mjs → useEventPagination-Dk3g64we.mjs} +6 -6
- package/dist/client/{view-DMyTchi7.mjs → view-BnaOmrap.mjs} +4 -4
- package/dist/client/{view-BpBjo9Te.mjs → view-vhKGFfC3.mjs} +7 -7
- package/dist/client/{wizardSteps-BO2OmMO9.mjs → wizardSteps-xqU4q63H.mjs} +14 -14
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/chrome.css +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DLsSmZbO.mjs → EventEmbeddedCheckoutStep-43wIAWr4.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-ChrW9VEo.mjs → PreviewEditorSidebar-C3AQVxQt.mjs} +74 -72
- package/dist/preview-next/client/{PreviewEditorUI-VaHvYtrA.mjs → PreviewEditorUI-C-1zDCR_.mjs} +151 -126
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DWwktlWs.mjs → SdkPreviewModeRuntime-B47yHFL0.mjs} +371 -1433
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bz7jR6nl.mjs → SdkPreviewModeRuntime-C6Rhm2NQ.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-CHKOWXxl.mjs → ThemedButton-g7NPrsGp.mjs} +462 -110
- package/dist/preview-next/client/{previewAuthStore-C0VUwEHz.mjs → previewAuthStore-By_zfrS5.mjs} +164988 -163471
- package/dist/preview-next/client/{previewChromeSurface-Dhyx2YrS.mjs → previewChromeSurface-Cjwxv90x.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C2GWOCyj.mjs → sdk-runtime-BG2HYvQj.mjs} +1 -1
- package/dist/preview-next/client/{siteStyleAccess-DHyzUpv4.mjs → siteStyleAccess-BiSyYyyr.mjs} +10854 -9509
- package/dist/preview-next/client/{spinner-BeR2S8oG.mjs → spinner-DnWpeDp2.mjs} +1 -1
- package/dist/preview-next/edit-map.css +37 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/maplibre-gl.css +1 -0
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-CkrFDMrl.mjs → route-contract-D5tHZEz5.mjs} +40 -42
- package/dist/preview-next/upload-structure.css +18 -0
- package/dist/server/{Block.shared-DxvNGDig.mjs → Block.shared-Iy7g11iP.mjs} +17 -16
- package/dist/server/{bindings-BuhKvYkE.mjs → bindings-BVJGgUT0.mjs} +2 -2
- package/dist/server/{client-BobW6DOz.mjs → client-CiKaE8ms.mjs} +215 -109
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-B-MKSt0p.mjs → effectiveNavLinkStyle-EDSdd_oK.mjs} +725 -18
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-CCG_3mbY.mjs → loadContent-BuintpdO.mjs} +6 -4
- package/dist/server/loadPage-BwjncpJf.mjs +2 -0
- package/dist/server/{loadPage-jntGoMrf.mjs → loadPage-Dk4wea8M.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-BBOlgn4Z.mjs → overrideResolution-BDiQWM7D.mjs} +1 -1
- package/dist/server/{overrides-DByQwIyW.mjs → overrides-DVemf-GV.mjs} +231 -114
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-DrwcTk2t.mjs → prebuild-DubLNgRH.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-LfgxSJYE.mjs → prefetchBlockData-Bnbwoe5n.mjs} +53 -28
- package/dist/server/{publicProducts-8A3T5v4M.mjs → publicProducts-D3Fc5TKk.mjs} +85 -70
- package/dist/server/{registry-Digv02oV.mjs → registry-zjd1P2Dl.mjs} +127 -59
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-C23t8-77.mjs → resolveBlockData-CZJ--nH6.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-BiqpDRwB.mjs → schema-BlTWmTSl.mjs} +4163 -3793
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-DrkprQPL.mjs → site-styles-yHytcXIB.mjs} +33 -20
- package/dist/server/{siteChromeOverlayClearance-BmKKkkbh.mjs → siteChromeOverlayClearance-D0uCNZ7E.mjs} +159 -107
- package/dist/server/{src-08GY1njw.mjs → src-cbbK3Bho.mjs} +547 -147
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-CSd_Vusz.mjs → themeAdmission-BdY8lP-K.mjs} +3 -2
- package/dist/server/{validation-DdUTkBOZ.mjs → validation-CGH-Xs4E.mjs} +2 -2
- package/dist/server/{version-DdIOqIDe.mjs → version-DoOG6F13.mjs} +1 -1
- package/dist/styles/index.css +399 -112
- package/package.json +2 -3
- package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
- package/dist/_dts/index-C39F9KaB.d.ts +0 -77
- package/dist/client/mediaAssets-BkoW_PEn.mjs +0 -16
- package/dist/client/src-BNZzXgWu.mjs +0 -102
- package/dist/server/loadPage-Bk9HDh9K.mjs +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riverbankcms/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.164.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, fi as HexColor } from "./index-DI2yaSPY.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,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { er as renderableMediaAssetSchema } from "./schema-DNHLlze-.mjs";
|
|
3
|
-
//#region src/rendering/mediaAssets.ts
|
|
4
|
-
function toBlocksMediaAssets(assets) {
|
|
5
|
-
if (!assets) return void 0;
|
|
6
|
-
return assets.map((asset) => renderableMediaAssetSchema.parse(asset));
|
|
7
|
-
}
|
|
8
|
-
function toBlocksImageResolveContextInput(context) {
|
|
9
|
-
if (!context) return void 0;
|
|
10
|
-
return {
|
|
11
|
-
...context,
|
|
12
|
-
mediaAssets: toBlocksMediaAssets(context.mediaAssets)
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { toBlocksMediaAssets as n, toBlocksImageResolveContextInput as t };
|
|
@@ -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 };
|