@riverbankcms/sdk 0.159.0 → 0.161.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 +4 -4
- package/dist/_dts/{BlocksIslandsHydrator-Cj1i1Yhh.d.ts → BlocksIslandsHydrator-Bx4kLiTA.d.ts} +1 -1
- package/dist/_dts/{Page-Cgzbv22M.d.ts → Page-Dm7_P13o.d.ts} +217 -8
- package/dist/_dts/{SdkPreviewMode-BC_FGc6b.d.ts → SdkPreviewMode-D7HdWWwF.d.ts} +55 -127
- package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
- package/dist/_dts/{client-BOK-YHVJ.d.ts → client-Ep0jI9eE.d.ts} +1 -1
- package/dist/_dts/{content-types-CsrYWxq_.d.ts → content-types-BgAzCrBc.d.ts} +18 -18
- package/dist/_dts/{contracts-ClgMD-9g.d.ts → contracts-DUiOnj9e.d.ts} +10 -6
- package/dist/_dts/{footerPageOutline-C_IDuELl.d.ts → footerPageOutline-B-uXamTG.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-B7bhYSWx.d.ts → generatePageMetadata-BDkZYEcS.d.ts} +2 -2
- package/dist/_dts/index-BQDBQvdu.d.ts +13 -0
- package/dist/_dts/index-BVkP8f70.d.ts +66 -0
- package/dist/_dts/{index-Dt3XSGzY.d.ts → index-CF6Cjs7b.d.ts} +2 -2
- package/dist/_dts/{index-Ci1PEk82.d.ts → index-CSsfq6KG.d.ts} +3 -17
- package/dist/_dts/{index-BZ4fb2zz.d.ts → index-D_8uz4OP.d.ts} +3 -3
- package/dist/_dts/{index-CcaG6O13.d.ts → index-DvKQA6AZ.d.ts} +4 -4
- package/dist/_dts/{index-DMOfW1A7.d.ts → index-KPrWM0KF.d.ts} +2 -2
- package/dist/_dts/{index-DzUdUaJ-.d.ts → index-ylivB7Jj.d.ts} +2 -2
- package/dist/_dts/{loadContent-C1JI2pG0.d.ts → loadContent-DTjKOO-T.d.ts} +19 -10
- package/dist/_dts/{resolvePageContent-BtRUtrJa.d.ts → resolvePageContent-C1vA5c5w.d.ts} +2 -2
- package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
- package/dist/_dts/{hosted-booking-appearance-ChGCQYdQ.d.ts → schema-BHu0PYWl.d.ts} +25911 -23567
- 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 +13 -7
- 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 +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 +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/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
- 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/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
- package/dist/_dts/{navigation-BnV_hOZy.d.ts → types-BR1Yboa9.d.ts} +15530 -16017
- package/dist/_dts/{types-CMFIZGUI.d.ts → types-CJXTCF_F.d.ts} +10 -13
- package/dist/_dts/{types-CI9dYWJ8.d.ts → types-D02ngcUH.d.ts} +4 -2
- package/dist/_dts/{types--oWXIfyz.d.ts → types-ZGUiHpDE.d.ts} +7 -7
- package/dist/_dts/{validation-Ct-GL0eA.d.ts → validation-BaV565gb.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DKS8Ba30.mjs → BlocksIslandsHydrator-DTExCJsb.mjs} +22 -21
- package/dist/client/{BookingMailingListNote-Cg9v6d7Y.mjs → BookingMailingListNote-BDpxmn1p.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-BoVCTUXy.mjs → CalendarNavigationChevron-PeCiL82X.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-DWexRLf6.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-BxRVCJG3.mjs → DemoBookingPortalAccess-3zmIqakW.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-GHi-8BW5.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BI-kvwXf.mjs → EventCalendar.client-BxQLY5cX.mjs} +10 -9
- package/dist/client/{EventCombined.client-DIvnoN5l.mjs → EventCombined.client-B5bmQ03b.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-CgMZ9TeU.mjs} +1 -1
- package/dist/client/{EventItem-BRMtEaa6.mjs → EventItem-BEx-qiDE.mjs} +11 -6
- package/dist/client/{EventListWeekNavigation-B8DzAUDa.mjs → EventListWeekNavigation-CyH5tA6Y.mjs} +1 -1
- package/dist/client/{EventListing.client-Bo4qzQi0.mjs → EventListing.client-D3uySdGP.mjs} +3 -3
- package/dist/client/{EventListing.view-D2vemnCx.mjs → EventListing.view-9RFrBejr.mjs} +31 -15
- package/dist/client/{EventRegistrationPayment-e5XWtygG.mjs → EventRegistrationPayment-CG2tQx8K.mjs} +92 -99
- package/dist/client/LocationMapActions-Wsr83Q7q.mjs +268 -0
- package/dist/client/{Page-Dqpv9Ggi.mjs → Page-Bf2nPACI.mjs} +2673 -2290
- package/dist/client/{StepIndicator-BrvKa_8H.mjs → StepIndicator-CZweb1vs.mjs} +3 -3
- package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-Bkgz67gt.mjs} +1 -1
- package/dist/client/ThemedButton-CnyL3s1A.mjs +2243 -0
- package/dist/client/{accordion-ByLpb4Dz.mjs → accordion-TcimLLRQ.mjs} +1 -1
- package/dist/client/{booking-form.client-BLndwxpx.mjs → booking-form.client-q-RpJ4aF.mjs} +13 -13
- package/dist/client/{bookingForm-CTxTEgHX.mjs → bookingForm-DjGfk3Wj.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-C8ef0vnT.mjs → carousel-CGAk6j0m.mjs} +2 -2
- package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-ArlGmYWV.mjs} +1 -1
- package/dist/client/{cart-BpH6jkUO.mjs → cart-D_h3rAZ2.mjs} +3 -3
- package/dist/client/{cart.client-DV78Td13.mjs → cart.client-DHOxZbJ7.mjs} +1 -1
- package/dist/client/{checkout-BJVb2RpL.mjs → checkout-tC-3CzuM.mjs} +3 -3
- package/dist/client/{checkout.client-CqGPXPSm.mjs → checkout.client-DsBb2Pkm.mjs} +1 -1
- package/dist/client/client.mjs +28 -15
- package/dist/client/{context-BRgBWthI.mjs → context-9ZfMb6GA.mjs} +1 -1
- package/dist/client/{cta-D8ucLsvX.mjs → cta-D-ZqL7-e.mjs} +2 -1
- package/dist/client/{dateFormatting-LeKNQ-iX.mjs → dateFormatting-BCwLqYpW.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CjstiFPh.mjs → demoPortalMagicLink-BxkSS9fx.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BaQJyI9x.mjs → enhanceHeaderSection-xg6to91E.mjs} +3 -3
- package/dist/client/{event-details.client-CYNQYOsP.mjs → event-details.client-C670TgRd.mjs} +2 -17
- package/dist/client/{event-registration.client-DDqSpN36.mjs → event-registration.client-C6GApWTB.mjs} +17 -17
- package/dist/client/{eventCalendar-3vQtuC9X.mjs → eventCalendar-CWc0dg9i.mjs} +4 -4
- package/dist/client/{eventCombined-CEJFMjqV.mjs → eventCombined-D4DbOrvQ.mjs} +4 -4
- package/dist/client/{eventDetails-nGh47jef.mjs → eventDetails-C2DfmbC0.mjs} +2 -2
- package/dist/client/{eventListing-BL3Ptb83.mjs → eventListing-C_yXmHyz.mjs} +4 -4
- package/dist/client/{eventRegistration-DDSO6KB2.mjs → eventRegistration-DJuaCB-O.mjs} +4 -4
- package/dist/client/{form-DjNLfy2Z.mjs → form-QZhtdFHA.mjs} +3 -3
- package/dist/client/{form.client-Cj0By6ot.mjs → form.client-CgvPACwG.mjs} +5 -5
- package/dist/client/{form.parts-DyA9C5Hy.mjs → form.parts-2uI0-5N-.mjs} +3 -3
- package/dist/client/{formatDate-CZo0MPTA.mjs → formatDate-Danr0Nk4.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-JjSq6Mzp.mjs → headerSection-DJdlLdvZ.mjs} +2 -2
- package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BvjcAZpS.mjs} +1 -1
- package/dist/client/mediaContext-jPeJ2PmJ.mjs +10801 -0
- package/dist/client/{newsletter-form.client-C2EgEBP1.mjs → newsletter-form.client-Cbepz2KU.mjs} +8 -8
- package/dist/client/{newsletter-form.parts-CaldoFmi.mjs → newsletter-form.parts-DN8oMCQ0.mjs} +2 -2
- package/dist/client/{newsletterForm-hm7L17LM.mjs → newsletterForm-wjLtW-wq.mjs} +3 -3
- package/dist/client/{noop-M8FTSgm2.mjs → noop-B7H6gCbj.mjs} +306 -5
- package/dist/client/portal/client.mjs +4560 -115
- package/dist/client/{product-detail.client-y86uwzEI.mjs → product-detail.client-CYTR165c.mjs} +1 -1
- package/dist/client/{product-list.client-_JBndYZT.mjs → product-list.client-B4vTvag8.mjs} +1 -1
- package/dist/client/{productDetail-D-9fb2cW.mjs → productDetail-k8LEMSWn.mjs} +3 -3
- package/dist/client/{productList-BSRlnwBW.mjs → productList-DEo8Bqoe.mjs} +3 -3
- package/dist/client/{propsDecoder-DhbGL302.mjs → propsDecoder-G0j0HXBO.mjs} +3 -28
- package/dist/client/{registry.server-BaX0hxf5.mjs → registry.server-BTmSXE3D.mjs} +1154 -997
- package/dist/client/rendering/client.mjs +28 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +57 -32
- package/dist/client/{richText-coerce-Cny2Ukb6.mjs → richText-coerce-B19taoH6.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-96er7pIx.mjs → routeIslandApiConfig-Chu5BHra.mjs} +1 -1
- package/dist/client/{ThemedButton-DVBC_pS9.mjs → schema-C-m8XHuW.mjs} +1123 -2362
- package/dist/client/{shop-CnIJfdZA.mjs → shop-RGWa43H7.mjs} +3 -3
- package/dist/client/{shop-commerce-CsLwzq5O.mjs → shop-commerce-TJYCBO_H.mjs} +12 -12
- package/dist/client/{shop-commerce-store--O8GRBwr.mjs → shop-commerce-store-CjCcUB_o.mjs} +1 -1
- package/dist/client/{shop.client-BcaJ-acA.mjs → shop.client-tsKfZw1W.mjs} +15 -15
- package/dist/client/{shop.interactive-BxL_bshW.mjs → shop.interactive-CVqLAU53.mjs} +370 -189
- package/dist/client/{shopShared-VZjPOfCX.mjs → shopShared-C3lHMz_R.mjs} +2 -2
- package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
- package/dist/client/timetableModel-V2ifvGGy.mjs +1100 -0
- package/dist/client/{useAvailableSlots-pTXuY3jV.mjs → useAvailableSlots-D1X69-pN.mjs} +4 -4
- package/dist/client/{useBookingNowIso-D14J-EhJ.mjs → useBookingNowIso-Ch30jino.mjs} +1 -1
- package/dist/client/{useDiscountApply-o5sIVZ2u.mjs → useDiscountApply-Bwzr1RjV.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-DJhFP_rg.mjs → useDiscountCodeUi-BimJbFC7.mjs} +1 -1
- package/dist/client/{useEventPagination-DMmNf2FP.mjs → useEventPagination-CLAS0upd.mjs} +12 -24
- package/dist/client/uuid-BETKW8rS.mjs +12 -0
- package/dist/client/{view-BgPql2yH2.mjs → view-BUh4LnLS.mjs} +4 -4
- package/dist/client/{view-D1R3Lk05.mjs → view-Dj_FZHmg.mjs} +19 -15
- package/dist/client/wizardSteps-BkZc-hKH.mjs +6598 -0
- package/dist/preview-next/before-render.mjs +5 -4
- package/dist/preview-next/chrome.css +2 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-CwerMfzn.mjs} +2 -1
- package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
- package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
- package/dist/preview-next/client/{PreviewEditorSidebar-DADCj_ET.mjs → PreviewEditorSidebar-Dvq-RW9-.mjs} +1328 -171
- package/dist/preview-next/client/{PreviewEditorUI-La40Dmmh.mjs → PreviewEditorUI-BdFjS39R.mjs} +53 -79
- package/dist/preview-next/client/{SdkPreviewModeRuntime-406Hw9zY.mjs → SdkPreviewModeRuntime-BEfHln1E.mjs} +1249 -2551
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CWN44I_B.mjs → SdkPreviewModeRuntime-CjkGh1IG.mjs} +1 -1
- package/dist/preview-next/client/{SiteChromeCustomizeContext-BdwEZoo9.mjs → SiteChromeCustomizeContext-CDbxk_qZ.mjs} +117481 -162497
- package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-b14Bv03E.mjs} +1253 -403
- package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
- package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
- package/dist/preview-next/client/{previewChromeSurface-BVUKIYG0.mjs → previewChromeSurface-Dd1_mNIg.mjs} +3 -8
- package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
- package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-Cy9AKPy5.mjs → sdk-runtime-B-CXyGVb.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +5812 -0
- package/dist/preview-next/client/{spinner-Bhpzz2vO.mjs → spinner-CGxS8Ns-.mjs} +2 -1
- package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
- package/dist/preview-next/editor-base.css +64 -2
- package/dist/preview-next/editor-chrome.css +85 -0
- package/dist/preview-next/keepAlive.mjs +2 -2
- package/dist/preview-next/middleware.mjs +7 -3
- package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-hLg-yjQN.mjs} +190 -116
- package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-DB6fb1pR.mjs → Block.shared-CeTd2saO.mjs} +6 -6
- package/dist/server/{bindings-z2daXp-2.mjs → bindings-C5YpKuKt.mjs} +3 -2
- package/dist/server/{client-Cv-osXoU.mjs → client-Cv26lZQ4.mjs} +14 -10
- 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/{siteChromeOverlayClearance-BangtD8A.mjs → effectiveNavLinkStyle-CGvGr3yD.mjs} +572 -1078
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BNMDYCm8.mjs → loadContent-C8a0b-cC.mjs} +40 -21
- package/dist/server/loadPage--DXBwI8V.mjs +2 -0
- package/dist/server/{loadPage-CjA_F_AF.mjs → loadPage-BW7dklu3.mjs} +9 -5
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-CGodrtqi.mjs → overrideResolution-tIuqmJB3.mjs} +1 -1
- package/dist/server/{overrides-DxRC724a.mjs → overrides-D1fiPOKF.mjs} +1158 -754
- package/dist/server/page-converter.mjs +8 -10
- package/dist/server/{prebuild-C6bhjRKT.mjs → prebuild--fO0E2tr.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DZ5Fq_-r.mjs → prefetchBlockData-CqJnokWJ.mjs} +968 -968
- package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-CvvZ4JIe.mjs} +207 -132
- package/dist/server/{blocks-BaG8Qpaa.mjs → registry-BVfCqaCq.mjs} +2853 -2799
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-CbGDakvp.mjs → resolveBlockData-DPNvhXEz.mjs} +6 -3
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-Bs735S27.mjs → schema-CD4peO7m.mjs} +2441 -1401
- package/dist/server/server.mjs +3 -3
- package/dist/server/site-styles-H-EvTJiW.mjs +787 -0
- package/dist/server/siteChromeOverlayClearance-DNC2k1U0.mjs +750 -0
- package/dist/server/{src-B935_bzN.mjs → src-ILxc6pid.mjs} +427 -190
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-DK2YBNqy.mjs → themeAdmission-BNHIXiUj.mjs} +117 -26
- package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
- package/dist/server/{validation-BtHE2S_D.mjs → validation-B1ieVemg.mjs} +22 -63
- package/dist/server/{version-CNCdL6id.mjs → version-BQK44wFg.mjs} +1 -1
- package/dist/styles/index.css +235 -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/LeafletStaticMap-dlapZ6mi.mjs +0 -135
- package/dist/client/location-map.client-DRN1JePj.mjs +0 -28
- package/dist/client/location-map.view-CuCvQdvp.mjs +0 -282
- package/dist/client/locationMap-B9srHHzZ.mjs +0 -15
- package/dist/client/mediaContext-DThoeEBU.mjs +0 -136
- package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
- package/dist/client/timetableModel-D09jPdue.mjs +0 -480
- package/dist/client/wizardSteps-C0TsNqJc.mjs +0 -17049
- package/dist/preview-next/client/siteStyleAccess-CFMmoMZb.mjs +0 -1326
- package/dist/server/loadPage-jade28Xh.mjs +0 -2
- package/dist/server/media-CcHwZkdJ.mjs +0 -243
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Os as cn, ws as Primitive } from "./SiteChromeCustomizeContext-CDbxk_qZ.mjs";
|
|
3
|
+
import { A as LoaderCircle } from "./lucide-react-CA9cpo0P.mjs";
|
|
3
4
|
import * as React$1 from "react";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
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
|
|
@@ -3,5 +3,6 @@ const PREVIEW_COOKIE_NAME = "preview_token";
|
|
|
3
3
|
const PREVIEW_REFRESH_COOKIE_NAME = "preview_refresh_token";
|
|
4
4
|
const PREVIEW_COOKIE_MAX_AGE = 3600 * 12;
|
|
5
5
|
const PREVIEW_CODE_PARAM = "preview_code";
|
|
6
|
+
const PREVIEW_TILES_KEY_COOKIE_NAME = "preview_tiles_key";
|
|
6
7
|
//#endregion
|
|
7
|
-
export { PREVIEW_REFRESH_COOKIE_NAME as i, PREVIEW_COOKIE_MAX_AGE as n, PREVIEW_COOKIE_NAME as r, PREVIEW_CODE_PARAM as t };
|
|
8
|
+
export { PREVIEW_TILES_KEY_COOKIE_NAME as a, PREVIEW_REFRESH_COOKIE_NAME as i, PREVIEW_COOKIE_MAX_AGE as n, PREVIEW_COOKIE_NAME as r, PREVIEW_CODE_PARAM as t };
|
|
@@ -2,9 +2,20 @@
|
|
|
2
2
|
* Preview/dev-only chrome styles live in editor-chrome.css.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
@import "./upload-structure.css";
|
|
6
|
+
|
|
5
7
|
/* Base CSS variables used throughout the editor UI */
|
|
6
8
|
/* Dashboard/editor palette anchored around teal accents with neutral white surfaces. */
|
|
7
9
|
:root {
|
|
10
|
+
--upload-tray: var(--background);
|
|
11
|
+
--upload-row-hover: var(--table-row-hover-background, var(--muted));
|
|
12
|
+
--upload-track: color-mix(in srgb, var(--primary) 14%, var(--card));
|
|
13
|
+
--upload-attention: #9a4330;
|
|
14
|
+
--upload-attention-wash: #fbf1ea;
|
|
15
|
+
--upload-attention-soft: #f3e1d5;
|
|
16
|
+
--upload-new-wash: var(--studio-field, var(--muted));
|
|
17
|
+
--upload-ease: cubic-bezier(.2, .7, .3, 1);
|
|
18
|
+
|
|
8
19
|
/* Backgrounds - Keep white */
|
|
9
20
|
--background: oklch(1 0 0);
|
|
10
21
|
--foreground: oklch(0.35 0.02 30); /* Dark brown #4f3d3d */
|
|
@@ -120,7 +131,7 @@
|
|
|
120
131
|
--dropdown-link-hover-background: var(--sidebar-accent);
|
|
121
132
|
--dropdown-link-hover-foreground: var(--sidebar-accent-foreground);
|
|
122
133
|
|
|
123
|
-
--font-sans: Plus Jakarta Sans, sans-serif;
|
|
134
|
+
--font-sans: var(--font-plus-jakarta, "Plus Jakarta Sans"), sans-serif;
|
|
124
135
|
--font-serif: Lora, serif;
|
|
125
136
|
--font-mono: IBM Plex Mono, monospace;
|
|
126
137
|
--radius: 1.4rem;
|
|
@@ -152,6 +163,9 @@
|
|
|
152
163
|
|
|
153
164
|
/* Dark mode overrides - Earthy palette adjusted for dark backgrounds */
|
|
154
165
|
.dark {
|
|
166
|
+
--upload-attention: #e6a08c;
|
|
167
|
+
--upload-attention-wash: color-mix(in srgb, #9a4330 12%, var(--card));
|
|
168
|
+
--upload-attention-soft: color-mix(in srgb, #9a4330 22%, var(--card));
|
|
155
169
|
--background: oklch(0.20 0.02 30); /* Very dark brown */
|
|
156
170
|
--foreground: oklch(0.92 0.02 55); /* Light cream */
|
|
157
171
|
|
|
@@ -238,7 +252,7 @@
|
|
|
238
252
|
--dropdown-link-hover-background: var(--sidebar-accent);
|
|
239
253
|
--dropdown-link-hover-foreground: var(--sidebar-accent-foreground);
|
|
240
254
|
|
|
241
|
-
--font-sans: Plus Jakarta Sans, sans-serif;
|
|
255
|
+
--font-sans: var(--font-plus-jakarta, "Plus Jakarta Sans"), sans-serif;
|
|
242
256
|
--font-serif: Lora, serif;
|
|
243
257
|
--font-mono: IBM Plex Mono, monospace;
|
|
244
258
|
--radius: 1.4rem;
|
|
@@ -360,3 +374,51 @@
|
|
|
360
374
|
outline: 2px solid var(--inverse-foreground);
|
|
361
375
|
outline-offset: 2px;
|
|
362
376
|
}
|
|
377
|
+
|
|
378
|
+
/* Shared compact upload rows. Colours follow the current editor surface. */
|
|
379
|
+
.rb-upload-progress { background: var(--upload-track); }
|
|
380
|
+
.rb-upload-progress-fill { background: var(--primary); transition: width .3s var(--upload-ease); }
|
|
381
|
+
.rb-upload-progress[data-waiting] { background: color-mix(in srgb, var(--upload-track) 55%, var(--card)); }
|
|
382
|
+
.rb-upload-progress[data-indeterminate] .rb-upload-progress-fill { position: absolute; width: 45%; background: linear-gradient(90deg, transparent, var(--primary) 60%, transparent); animation: rb-upload-comet 1.6s var(--upload-ease) infinite; }
|
|
383
|
+
.rb-upload-row { display: grid; grid-template-columns: 28px minmax(0,1fr) var(--upload-status-col,6.6em) 28px; gap: 12px; align-items: center; padding: 7px 8px; min-height: 44px; border-radius: 10px; transition: background-color .15s; }
|
|
384
|
+
.rb-upload-row:hover, .rb-upload-row:focus-within { background: var(--upload-row-hover); }
|
|
385
|
+
.rb-upload-row[data-failed] { background: var(--upload-attention-wash); align-items: start; }
|
|
386
|
+
.rb-upload-row[data-failed]:hover, .rb-upload-row[data-failed]:focus-within { background: color-mix(in srgb, var(--upload-attention-wash) 94%, var(--foreground)); }
|
|
387
|
+
.rb-upload-row[data-single], .rb-upload-row[data-review] { --upload-status-col: auto; }
|
|
388
|
+
.rb-upload-thumb { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 7px; background: var(--muted); color: var(--muted-foreground); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) 7%, transparent); }
|
|
389
|
+
.rb-upload-thumb[data-failed] { background: var(--upload-attention-soft); color: var(--upload-attention); }
|
|
390
|
+
.rb-upload-icon { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--muted-foreground); }
|
|
391
|
+
.rb-upload-icon:hover { background: var(--muted); color: var(--foreground); }
|
|
392
|
+
.rb-upload-icon:focus-visible { outline: 2px solid var(--studio-accent, var(--ring)); outline-offset: 2px; }
|
|
393
|
+
.rb-upload-link { color: var(--foreground); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
|
|
394
|
+
.rb-upload-scroll { max-height: 196px; overflow-y: auto; padding: 0 16px 10px; }
|
|
395
|
+
.rb-upload-scroll[data-overflow] { mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); }
|
|
396
|
+
.rb-upload-summary { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 24px 6px; text-align: left; font-size: 13.5px; }
|
|
397
|
+
.rb-upload-summary .rb-upload-icon { background: var(--muted); }
|
|
398
|
+
.rb-upload-summary-bar { display: none; }
|
|
399
|
+
.rb-upload-new { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
|
|
400
|
+
.rb-upload-new-caption { background: var(--upload-new-wash); }
|
|
401
|
+
@media (max-width: 639px) {
|
|
402
|
+
.rb-upload-list[data-phone-collapsed] .rb-upload-scroll { display: none; }
|
|
403
|
+
.rb-upload-list[data-phone-collapsed] .rb-upload-summary-bar { display: block; flex: 1; }
|
|
404
|
+
.rb-upload-list[data-phone-collapsed] .rb-upload-summary-detail { display: none; }
|
|
405
|
+
.rb-upload-scroll { max-height: 160px; }
|
|
406
|
+
.rb-upload-row { gap: 8px; grid-template-columns: 28px minmax(0,1fr) auto 28px; }
|
|
407
|
+
.rb-upload-row[data-failed] > .rb-upload-status { display: none; }
|
|
408
|
+
.rb-upload-row[data-failed] > .rb-upload-icon { grid-column: 4; }
|
|
409
|
+
}
|
|
410
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
411
|
+
.rb-upload-row { animation: rb-upload-row-in .24s var(--upload-ease) both; }
|
|
412
|
+
.rb-upload-row[data-leaving] { animation: rb-upload-row-out .32s ease-in forwards; overflow: hidden; }
|
|
413
|
+
.rb-upload-new, [data-new].border { animation: rb-upload-tile-settle .5s var(--upload-ease) both; }
|
|
414
|
+
}
|
|
415
|
+
@media (prefers-reduced-motion: reduce) {
|
|
416
|
+
.rb-upload-progress[data-indeterminate] .rb-upload-progress-fill { animation: none; width: 100%; opacity: .35; }
|
|
417
|
+
.rb-upload-progress-fill { transition: none; }
|
|
418
|
+
}
|
|
419
|
+
@keyframes rb-upload-comet { from { transform: translateX(-100%); } to { transform: translateX(225%); } }
|
|
420
|
+
@keyframes rb-upload-row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
|
|
421
|
+
@keyframes rb-upload-row-out { 0% { opacity: 1; max-height: 150px; } 45% { opacity: 0; max-height: 150px; padding-block: 7px; } 100% { opacity: 0; max-height: 0; min-height: 0; padding-block: 0; } }
|
|
422
|
+
@keyframes rb-upload-tile-settle { from { box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 25%, transparent); } to { box-shadow: 0 0 0 1px var(--primary); } }
|
|
423
|
+
|
|
424
|
+
[data-new].border { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
|
|
@@ -193,6 +193,91 @@
|
|
|
193
193
|
list-style-type: lower-roman;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
/*
|
|
197
|
+
* Rich text fields without a site theme (the preview sidebar) show the
|
|
198
|
+
* document's structure in dashboard type rather than imitating the site:
|
|
199
|
+
* headings stay body-sized and bold, with a small level marker in front.
|
|
200
|
+
*/
|
|
201
|
+
.builder-editor-content[data-rich-text-structure] :is(h1, h2, h3, h4, h5, h6) {
|
|
202
|
+
font-family: inherit;
|
|
203
|
+
font-size: 1em;
|
|
204
|
+
font-weight: 600;
|
|
205
|
+
line-height: 1.45;
|
|
206
|
+
letter-spacing: normal;
|
|
207
|
+
text-transform: none;
|
|
208
|
+
color: inherit;
|
|
209
|
+
margin-top: calc(var(--rt-space-y, 0.75rem) * 1.25);
|
|
210
|
+
margin-bottom: calc(var(--rt-space-y, 0.75rem) * 0.4);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.builder-editor-content[data-rich-text-structure] .ProseMirror > :first-child {
|
|
214
|
+
margin-top: 0;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.builder-editor-content[data-rich-text-structure] :is(h1, h2, h3, h4, h5, h6)::before {
|
|
218
|
+
display: inline-block;
|
|
219
|
+
margin-right: 0.5em;
|
|
220
|
+
padding: 0 0.3rem;
|
|
221
|
+
border-radius: 0.25rem;
|
|
222
|
+
background: color-mix(in srgb, currentColor 9%, transparent);
|
|
223
|
+
color: var(--muted-foreground);
|
|
224
|
+
font-size: 0.625rem;
|
|
225
|
+
font-weight: 600;
|
|
226
|
+
line-height: 1.125rem;
|
|
227
|
+
letter-spacing: 0.03em;
|
|
228
|
+
vertical-align: 0.1em;
|
|
229
|
+
pointer-events: none;
|
|
230
|
+
user-select: none;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.builder-editor-content[data-rich-text-structure] h1::before { content: 'H1'; }
|
|
234
|
+
.builder-editor-content[data-rich-text-structure] h2::before { content: 'H2'; }
|
|
235
|
+
.builder-editor-content[data-rich-text-structure] h3::before { content: 'H3'; }
|
|
236
|
+
.builder-editor-content[data-rich-text-structure] h4::before { content: 'H4'; }
|
|
237
|
+
.builder-editor-content[data-rich-text-structure] h5::before { content: 'H5'; }
|
|
238
|
+
.builder-editor-content[data-rich-text-structure] h6::before { content: 'H6'; }
|
|
239
|
+
|
|
240
|
+
.builder-editor-content[data-rich-text-structure] a {
|
|
241
|
+
color: var(--primary);
|
|
242
|
+
text-decoration-line: underline;
|
|
243
|
+
text-underline-offset: 0.15em;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.builder-editor-content[data-rich-text-structure] blockquote {
|
|
247
|
+
margin: var(--rt-space-y, 0.75rem) 0;
|
|
248
|
+
padding-left: 0.875rem;
|
|
249
|
+
border-left: 3px solid var(--border);
|
|
250
|
+
color: var(--muted-foreground);
|
|
251
|
+
font-style: normal;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.builder-editor-content[data-rich-text-structure] li::marker {
|
|
255
|
+
color: var(--muted-foreground);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.builder-editor-content[data-rich-text-structure] img {
|
|
259
|
+
max-width: 100%;
|
|
260
|
+
height: auto;
|
|
261
|
+
border-radius: 0.375rem;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/*
|
|
265
|
+
* The editor's own dialogs already stack above the canvas chips (see
|
|
266
|
+
* chromeLayers in @riverbankcms/editor). A site's modal, such as the site
|
|
267
|
+
* header's mobile menu (open via aria-hidden=false), renders inside the
|
|
268
|
+
* preview shell and so below the chips' layer: while one is open the chips
|
|
269
|
+
* step aside. Require an open signal and let either closed signal win. The
|
|
270
|
+
* toolbar's menus and tooltips, which portal into the chrome root, are lifted
|
|
271
|
+
* above a modal so they stay visible.
|
|
272
|
+
*/
|
|
273
|
+
body:has([aria-modal="true"]:is([data-state="open"], [aria-hidden="false"]):not([aria-hidden="true"], [data-state="closed"])) [data-preview-chrome-layer] {
|
|
274
|
+
visibility: hidden;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
body:has([aria-modal="true"]:is([data-state="open"], [aria-hidden="false"]):not([aria-hidden="true"], [data-state="closed"])) #builder-editor-chrome-root [data-radix-popper-content-wrapper] {
|
|
278
|
+
z-index: 60 !important;
|
|
279
|
+
}
|
|
280
|
+
|
|
196
281
|
/* Collapsible animations for editor UI */
|
|
197
282
|
@keyframes collapsible-down {
|
|
198
283
|
from {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as PREVIEW_REFRESH_COOKIE_NAME, r as PREVIEW_COOKIE_NAME } from "./constants-
|
|
2
|
-
import { n as buildPreviewAuthRefreshUrl, r as setPreviewAuthCookies } from "./route-contract-
|
|
1
|
+
import { i as PREVIEW_REFRESH_COOKIE_NAME, r as PREVIEW_COOKIE_NAME } from "./constants-Bf-vqdKH.mjs";
|
|
2
|
+
import { n as buildPreviewAuthRefreshUrl, r as setPreviewAuthCookies } from "./route-contract-hLg-yjQN.mjs";
|
|
3
3
|
import { t as parsePreviewRefreshResponse } from "./refresh-contract-CvmNqZ1Q.mjs";
|
|
4
4
|
import { t as decodeJwtPayload } from "./jwt-BHfnwjzx.mjs";
|
|
5
5
|
import { NextResponse } from "next/server.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as PREVIEW_CODE_PARAM } from "./constants-
|
|
2
|
-
import { r as setPreviewAuthCookies, t as buildPreviewAuthExchangeUrl } from "./route-contract-
|
|
1
|
+
import { t as PREVIEW_CODE_PARAM } from "./constants-Bf-vqdKH.mjs";
|
|
2
|
+
import { i as setPreviewTilesKeyCookie, r as setPreviewAuthCookies, t as buildPreviewAuthExchangeUrl } from "./route-contract-hLg-yjQN.mjs";
|
|
3
3
|
import { NextResponse } from "next/server.js";
|
|
4
4
|
//#region ../preview-next/src/middleware.ts
|
|
5
5
|
const EXCHANGE_CODE_PATTERN = /^[A-Za-z0-9_-]{40,256}$/;
|
|
@@ -81,7 +81,7 @@ function isApiErrorEnvelope(value) {
|
|
|
81
81
|
return value !== null && typeof value === "object" && "success" in value && value.success === false;
|
|
82
82
|
}
|
|
83
83
|
function isPreviewExchangeSuccessPayload(value) {
|
|
84
|
-
return value !== null && typeof value === "object" && typeof value.accessToken === "string" && (typeof value.refreshToken === "string" || value.refreshToken === null) && typeof value.siteId === "string" && typeof value.expiresAt === "string";
|
|
84
|
+
return value !== null && typeof value === "object" && typeof value.accessToken === "string" && (typeof value.refreshToken === "string" || value.refreshToken === null) && typeof value.siteId === "string" && typeof value.expiresAt === "string" && (!("tilesKey" in value) || typeof value.tilesKey === "string");
|
|
85
85
|
}
|
|
86
86
|
async function exchangePreviewCode(params) {
|
|
87
87
|
const controller = new AbortController();
|
|
@@ -174,6 +174,10 @@ async function handlePreviewTokens(request, options = {}) {
|
|
|
174
174
|
maxAge,
|
|
175
175
|
secure
|
|
176
176
|
});
|
|
177
|
+
setPreviewTilesKeyCookie(response, exchangeResult.payload.tilesKey, {
|
|
178
|
+
maxAge,
|
|
179
|
+
secure
|
|
180
|
+
});
|
|
177
181
|
return response;
|
|
178
182
|
}
|
|
179
183
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as PREVIEW_REFRESH_COOKIE_NAME, n as PREVIEW_COOKIE_MAX_AGE, r as PREVIEW_COOKIE_NAME } from "./constants-
|
|
1
|
+
import { a as PREVIEW_TILES_KEY_COOKIE_NAME, i as PREVIEW_REFRESH_COOKIE_NAME, n as PREVIEW_COOKIE_MAX_AGE, r as PREVIEW_COOKIE_NAME } from "./constants-Bf-vqdKH.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region ../preview-next/src/cookies.ts
|
|
4
4
|
function getPreviewCookieOptions(options = {}) {
|
|
@@ -24,6 +24,51 @@ function setPreviewAuthCookies(res, { accessToken, refreshToken }, options) {
|
|
|
24
24
|
if (refreshToken) setPreviewRefreshCookie(res, refreshToken, options);
|
|
25
25
|
return res;
|
|
26
26
|
}
|
|
27
|
+
function setPreviewTilesKeyCookie(res, tilesKey, options) {
|
|
28
|
+
if (tilesKey) res.cookies.set(PREVIEW_TILES_KEY_COOKIE_NAME, tilesKey, getPreviewCookieOptions(options));
|
|
29
|
+
else res.cookies.delete(PREVIEW_TILES_KEY_COOKIE_NAME);
|
|
30
|
+
return res;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region ../api/src/pageJournalEndpoints.ts
|
|
34
|
+
const PAGE_JOURNAL_ENDPOINT_DEFINITIONS = {
|
|
35
|
+
replayThemeJournalChange: {
|
|
36
|
+
path: "/sites/{siteId}/theme/journal",
|
|
37
|
+
method: "POST",
|
|
38
|
+
auth: "user",
|
|
39
|
+
responseKind: "json",
|
|
40
|
+
errors: [
|
|
41
|
+
"validation:invalid_input",
|
|
42
|
+
"auth:forbidden",
|
|
43
|
+
"resource:conflict",
|
|
44
|
+
"server:internal_error"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
getPageJournalState: {
|
|
48
|
+
path: "/sites/{siteId}/pages/{pageId}/journal",
|
|
49
|
+
method: "GET",
|
|
50
|
+
auth: "user",
|
|
51
|
+
responseKind: "json",
|
|
52
|
+
errors: [
|
|
53
|
+
"resource:not_found",
|
|
54
|
+
"resource:conflict",
|
|
55
|
+
"server:internal_error"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
replayPageJournalChange: {
|
|
59
|
+
path: "/sites/{siteId}/pages/{pageId}/journal",
|
|
60
|
+
method: "POST",
|
|
61
|
+
auth: "user",
|
|
62
|
+
responseKind: "json",
|
|
63
|
+
editLease: "managed",
|
|
64
|
+
errors: [
|
|
65
|
+
"validation:invalid_input",
|
|
66
|
+
"resource:not_found",
|
|
67
|
+
"resource:conflict",
|
|
68
|
+
"server:internal_error"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
};
|
|
27
72
|
//#endregion
|
|
28
73
|
//#region ../api/src/apiEndpointTypes.ts
|
|
29
74
|
function allowedDemoMutationPolicy() {
|
|
@@ -290,6 +335,57 @@ const SDK_ENTRY_READ_ENDPOINTS = {
|
|
|
290
335
|
}
|
|
291
336
|
};
|
|
292
337
|
//#endregion
|
|
338
|
+
//#region ../api/src/guardedContentReplayEndpointDefinitions.ts
|
|
339
|
+
const GUARDED_CONTENT_REPLAY_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
340
|
+
restoreSurfaceSlotStructure: {
|
|
341
|
+
editLease: "managed",
|
|
342
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/restore",
|
|
343
|
+
method: "POST",
|
|
344
|
+
tags: [
|
|
345
|
+
"site-{siteId}",
|
|
346
|
+
"page-surface-{pageSurfaceId}",
|
|
347
|
+
"blocks"
|
|
348
|
+
],
|
|
349
|
+
auth: "user",
|
|
350
|
+
responseKind: "json",
|
|
351
|
+
errors: [
|
|
352
|
+
"validation:invalid_input",
|
|
353
|
+
"resource:not_found",
|
|
354
|
+
"resource:conflict"
|
|
355
|
+
]
|
|
356
|
+
},
|
|
357
|
+
restoreLiveTemplate: {
|
|
358
|
+
path: "/sites/{siteId}/content/types/{type}/template/restore",
|
|
359
|
+
method: "POST",
|
|
360
|
+
tags: ["site-{siteId}", "content-template-{siteId}-{type}"],
|
|
361
|
+
auth: "user",
|
|
362
|
+
responseKind: "json",
|
|
363
|
+
errors: [
|
|
364
|
+
"validation:invalid_input",
|
|
365
|
+
"resource:not_found",
|
|
366
|
+
"resource:conflict"
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
restoreEntrySlotStructure: {
|
|
370
|
+
editLease: "managed",
|
|
371
|
+
path: "/sites/{siteId}/content/{type}/{entryId}/slots/{slotKey}/blocks/restore",
|
|
372
|
+
method: "POST",
|
|
373
|
+
tags: [
|
|
374
|
+
"site-{siteId}",
|
|
375
|
+
"content-entry-{entryId}",
|
|
376
|
+
"entry-slot-{slotKey}",
|
|
377
|
+
"blocks"
|
|
378
|
+
],
|
|
379
|
+
auth: "user",
|
|
380
|
+
responseKind: "json",
|
|
381
|
+
errors: [
|
|
382
|
+
"validation:invalid_input",
|
|
383
|
+
"resource:not_found",
|
|
384
|
+
"resource:conflict"
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
//#endregion
|
|
293
389
|
//#region ../api/src/appointmentRequestEndpointDefinitions.ts
|
|
294
390
|
const APPOINTMENT_REQUEST_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
295
391
|
approveAppointmentRequest: {
|
|
@@ -1010,12 +1106,6 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1010
1106
|
"server:internal_error"
|
|
1011
1107
|
]
|
|
1012
1108
|
},
|
|
1013
|
-
cancelAppointment: {
|
|
1014
|
-
path: "/sites/{siteId}/bookings/appointments/{appointmentId}/cancel",
|
|
1015
|
-
method: "POST",
|
|
1016
|
-
auth: "user",
|
|
1017
|
-
responseKind: "json"
|
|
1018
|
-
},
|
|
1019
1109
|
rescheduleAppointment: {
|
|
1020
1110
|
path: "/sites/{siteId}/bookings/appointments/{appointmentId}/reschedule",
|
|
1021
1111
|
method: "POST",
|
|
@@ -1157,19 +1247,6 @@ const EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
|
|
|
1157
1247
|
"server:internal_error"
|
|
1158
1248
|
]
|
|
1159
1249
|
},
|
|
1160
|
-
cancelEventSeriesRegistration: {
|
|
1161
|
-
path: "/sites/{siteId}/bookings/event-series/{seriesId}/registrations/{registrationId}/cancel",
|
|
1162
|
-
method: "POST",
|
|
1163
|
-
auth: "user",
|
|
1164
|
-
responseKind: "json",
|
|
1165
|
-
errors: [
|
|
1166
|
-
"validation:invalid_input",
|
|
1167
|
-
"auth:forbidden",
|
|
1168
|
-
"resource:not_found",
|
|
1169
|
-
"resource:conflict",
|
|
1170
|
-
"server:internal_error"
|
|
1171
|
-
]
|
|
1172
|
-
},
|
|
1173
1250
|
saveEventSeriesRegistrationAnswers: {
|
|
1174
1251
|
path: "/sites/{siteId}/bookings/event-series/{seriesId}/registrations/{registrationId}/answers",
|
|
1175
1252
|
method: "PUT",
|
|
@@ -2893,6 +2970,14 @@ const lifecycleErrors = [
|
|
|
2893
2970
|
"server:internal_error"
|
|
2894
2971
|
];
|
|
2895
2972
|
const EDIT_LEASE_ENDPOINT_DEFINITIONS = {
|
|
2973
|
+
readEditAdmission: {
|
|
2974
|
+
path: "/sites/{siteId}/edit-admission",
|
|
2975
|
+
method: "GET",
|
|
2976
|
+
editLease: "lifecycle",
|
|
2977
|
+
errors: lifecycleErrors,
|
|
2978
|
+
auth: "user",
|
|
2979
|
+
responseKind: "json"
|
|
2980
|
+
},
|
|
2896
2981
|
readEditLease: {
|
|
2897
2982
|
path,
|
|
2898
2983
|
method: "GET",
|
|
@@ -3140,6 +3225,7 @@ z.object({
|
|
|
3140
3225
|
}).strict().nullable().optional()
|
|
3141
3226
|
}).strict();
|
|
3142
3227
|
const API_ENDPOINTS = {
|
|
3228
|
+
...PAGE_JOURNAL_ENDPOINT_DEFINITIONS,
|
|
3143
3229
|
...PREVIEW_AUTH_ENDPOINT_DEFINITIONS,
|
|
3144
3230
|
...SITE_LIFECYCLE_ENDPOINT_DEFINITIONS,
|
|
3145
3231
|
...CLIENT_ERROR_REPORT_ENDPOINT_DEFINITIONS,
|
|
@@ -3153,57 +3239,12 @@ const API_ENDPOINTS = {
|
|
|
3153
3239
|
...EDIT_LEASE_ENDPOINT_DEFINITIONS,
|
|
3154
3240
|
...PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS,
|
|
3155
3241
|
...SITE_MANAGEMENT_ENDPOINT_DEFINITIONS,
|
|
3156
|
-
aiContentUpdateChat: {
|
|
3157
|
-
path: "/ai/content-update-chat",
|
|
3158
|
-
method: "POST",
|
|
3159
|
-
auth: "user",
|
|
3160
|
-
responseKind: "stream"
|
|
3161
|
-
},
|
|
3162
|
-
aiChat: {
|
|
3163
|
-
path: "/ai/chat",
|
|
3164
|
-
method: "POST",
|
|
3165
|
-
auth: "user",
|
|
3166
|
-
responseKind: "stream"
|
|
3167
|
-
},
|
|
3168
|
-
aiDesignerThemeApply: {
|
|
3169
|
-
path: "/sites/{siteId}/ai/designer/theme/apply",
|
|
3170
|
-
method: "POST",
|
|
3171
|
-
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
|
|
3172
|
-
auth: "user",
|
|
3173
|
-
responseKind: "json"
|
|
3174
|
-
},
|
|
3175
|
-
aiDesignerPageOpsApply: {
|
|
3176
|
-
editLease: "managed",
|
|
3177
|
-
path: "/sites/{siteId}/ai/designer/page/apply",
|
|
3178
|
-
method: "POST",
|
|
3179
|
-
tags: [TAG_TEMPLATES.siteCollection],
|
|
3180
|
-
auth: "user",
|
|
3181
|
-
responseKind: "json"
|
|
3182
|
-
},
|
|
3183
3242
|
applySeoChanges: {
|
|
3184
3243
|
path: "/seo/apply",
|
|
3185
3244
|
method: "POST",
|
|
3186
3245
|
auth: "user",
|
|
3187
3246
|
responseKind: "json"
|
|
3188
3247
|
},
|
|
3189
|
-
aiCreateBriefChat: {
|
|
3190
|
-
path: "/ai/chat/create-brief",
|
|
3191
|
-
method: "POST",
|
|
3192
|
-
auth: "user",
|
|
3193
|
-
responseKind: "json"
|
|
3194
|
-
},
|
|
3195
|
-
aiPatchDryRun: {
|
|
3196
|
-
path: "/ai/patch/dry-run",
|
|
3197
|
-
method: "POST",
|
|
3198
|
-
auth: "user",
|
|
3199
|
-
responseKind: "json"
|
|
3200
|
-
},
|
|
3201
|
-
aiPatchApply: {
|
|
3202
|
-
path: "/ai/patch/apply",
|
|
3203
|
-
method: "POST",
|
|
3204
|
-
auth: "user",
|
|
3205
|
-
responseKind: "json"
|
|
3206
|
-
},
|
|
3207
3248
|
aiPlaygroundProposeMulti: {
|
|
3208
3249
|
path: "/sites/{siteId}/ai/playground/propose-multi",
|
|
3209
3250
|
method: "POST",
|
|
@@ -3216,17 +3257,33 @@ const API_ENDPOINTS = {
|
|
|
3216
3257
|
auth: "user",
|
|
3217
3258
|
responseKind: "stream"
|
|
3218
3259
|
},
|
|
3219
|
-
|
|
3220
|
-
path: "/
|
|
3260
|
+
assistantSuggestions: {
|
|
3261
|
+
path: "/assistant/suggestions",
|
|
3221
3262
|
method: "POST",
|
|
3222
3263
|
auth: "user",
|
|
3223
|
-
responseKind: "
|
|
3264
|
+
responseKind: "json",
|
|
3265
|
+
errors: []
|
|
3224
3266
|
},
|
|
3225
|
-
|
|
3226
|
-
path: "/
|
|
3267
|
+
submitSupportTicket: {
|
|
3268
|
+
path: "/assistant/support",
|
|
3227
3269
|
method: "POST",
|
|
3228
3270
|
auth: "user",
|
|
3229
|
-
responseKind: "
|
|
3271
|
+
responseKind: "json",
|
|
3272
|
+
errors: []
|
|
3273
|
+
},
|
|
3274
|
+
replyToSupportTicket: {
|
|
3275
|
+
path: "/assistant/support/reply",
|
|
3276
|
+
method: "POST",
|
|
3277
|
+
auth: "user",
|
|
3278
|
+
responseKind: "json",
|
|
3279
|
+
errors: []
|
|
3280
|
+
},
|
|
3281
|
+
assistantTurn: {
|
|
3282
|
+
path: "/assistant/turn",
|
|
3283
|
+
method: "POST",
|
|
3284
|
+
auth: "user",
|
|
3285
|
+
responseKind: "stream",
|
|
3286
|
+
errors: []
|
|
3230
3287
|
},
|
|
3231
3288
|
aiPlaygroundPageConvert: {
|
|
3232
3289
|
path: "/sites/{siteId}/ai/playground/page-convert",
|
|
@@ -3425,6 +3482,7 @@ const API_ENDPOINTS = {
|
|
|
3425
3482
|
demoMutation: DEMO_MUTATION_BLOCKED_DISABLED
|
|
3426
3483
|
},
|
|
3427
3484
|
...SITE_API_KEY_ENDPOINT_DEFINITIONS,
|
|
3485
|
+
...GUARDED_CONTENT_REPLAY_ENDPOINT_DEFINITIONS,
|
|
3428
3486
|
getBookingSettings: {
|
|
3429
3487
|
path: "/sites/{siteId}/bookings/settings",
|
|
3430
3488
|
method: "GET",
|
|
@@ -3558,20 +3616,6 @@ const API_ENDPOINTS = {
|
|
|
3558
3616
|
auth: "user",
|
|
3559
3617
|
responseKind: "json"
|
|
3560
3618
|
},
|
|
3561
|
-
opsCancelEventAttendee: {
|
|
3562
|
-
path: "/ops/sites/{siteId}/events/attendees/{attendeeId}/cancel",
|
|
3563
|
-
method: "POST",
|
|
3564
|
-
auth: "user",
|
|
3565
|
-
responseKind: "json",
|
|
3566
|
-
demoMutation: DEMO_MUTATION_INTERNAL_ONLY,
|
|
3567
|
-
errors: [
|
|
3568
|
-
"validation:invalid_input",
|
|
3569
|
-
"auth:forbidden",
|
|
3570
|
-
"resource:not_found",
|
|
3571
|
-
"resource:conflict",
|
|
3572
|
-
"server:internal_error"
|
|
3573
|
-
]
|
|
3574
|
-
},
|
|
3575
3619
|
getEventAttendeeDetails: {
|
|
3576
3620
|
path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}",
|
|
3577
3621
|
method: "GET",
|
|
@@ -3579,19 +3623,6 @@ const API_ENDPOINTS = {
|
|
|
3579
3623
|
responseKind: "json",
|
|
3580
3624
|
errors: []
|
|
3581
3625
|
},
|
|
3582
|
-
cancelEventAttendee: {
|
|
3583
|
-
path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/cancel",
|
|
3584
|
-
method: "POST",
|
|
3585
|
-
auth: "user",
|
|
3586
|
-
responseKind: "json",
|
|
3587
|
-
errors: [
|
|
3588
|
-
"validation:invalid_input",
|
|
3589
|
-
"auth:forbidden",
|
|
3590
|
-
"resource:not_found",
|
|
3591
|
-
"resource:conflict",
|
|
3592
|
-
"server:internal_error"
|
|
3593
|
-
]
|
|
3594
|
-
},
|
|
3595
3626
|
opsRefundEventAttendee: {
|
|
3596
3627
|
path: "/ops/sites/{siteId}/events/attendees/{attendeeId}/refund",
|
|
3597
3628
|
method: "POST",
|
|
@@ -4175,6 +4206,13 @@ const API_ENDPOINTS = {
|
|
|
4175
4206
|
auth: "user",
|
|
4176
4207
|
responseKind: "json"
|
|
4177
4208
|
},
|
|
4209
|
+
getBlockPickerContext: {
|
|
4210
|
+
errors: ["resource:not_found"],
|
|
4211
|
+
path: "/sites/{siteId}/block-picker",
|
|
4212
|
+
method: "GET",
|
|
4213
|
+
auth: "user",
|
|
4214
|
+
responseKind: "json"
|
|
4215
|
+
},
|
|
4178
4216
|
listContentTypes: {
|
|
4179
4217
|
path: "/sites/{siteId}/content-types",
|
|
4180
4218
|
method: "GET",
|
|
@@ -4440,14 +4478,6 @@ const API_ENDPOINTS = {
|
|
|
4440
4478
|
auth: "user",
|
|
4441
4479
|
responseKind: "json"
|
|
4442
4480
|
},
|
|
4443
|
-
getSiteLayoutSettings: {
|
|
4444
|
-
path: "/sites/{siteId}/settings/layout",
|
|
4445
|
-
method: "GET",
|
|
4446
|
-
revalidate: 120,
|
|
4447
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
|
|
4448
|
-
auth: "user",
|
|
4449
|
-
responseKind: "json"
|
|
4450
|
-
},
|
|
4451
4481
|
getSiteBannerSettings: {
|
|
4452
4482
|
path: "/sites/{siteId}/settings/banner",
|
|
4453
4483
|
method: "GET",
|
|
@@ -4501,13 +4531,6 @@ const API_ENDPOINTS = {
|
|
|
4501
4531
|
],
|
|
4502
4532
|
responseKind: "json"
|
|
4503
4533
|
},
|
|
4504
|
-
updateSiteLayoutSettings: {
|
|
4505
|
-
path: "/sites/{siteId}/settings/layout",
|
|
4506
|
-
method: "POST",
|
|
4507
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
|
|
4508
|
-
auth: "user",
|
|
4509
|
-
responseKind: "json"
|
|
4510
|
-
},
|
|
4511
4534
|
updateSiteBannerSettings: {
|
|
4512
4535
|
path: "/sites/{siteId}/settings/banner",
|
|
4513
4536
|
method: "POST",
|
|
@@ -4741,6 +4764,22 @@ const API_ENDPOINTS = {
|
|
|
4741
4764
|
auth: "admin",
|
|
4742
4765
|
responseKind: "json"
|
|
4743
4766
|
},
|
|
4767
|
+
adminReplyToSupportTicket: {
|
|
4768
|
+
path: "/admin/support/tickets/reply",
|
|
4769
|
+
method: "POST",
|
|
4770
|
+
tags: ["admin", "support"],
|
|
4771
|
+
auth: "admin",
|
|
4772
|
+
responseKind: "json",
|
|
4773
|
+
errors: []
|
|
4774
|
+
},
|
|
4775
|
+
adminSetSupportTicketStatus: {
|
|
4776
|
+
path: "/admin/support/tickets/status",
|
|
4777
|
+
method: "POST",
|
|
4778
|
+
tags: ["admin", "support"],
|
|
4779
|
+
auth: "admin",
|
|
4780
|
+
responseKind: "json",
|
|
4781
|
+
errors: []
|
|
4782
|
+
},
|
|
4744
4783
|
mfaTotpEnroll: {
|
|
4745
4784
|
path: "/auth/mfa/totp/enroll",
|
|
4746
4785
|
method: "POST",
|
|
@@ -6678,6 +6717,32 @@ const API_ENDPOINTS = {
|
|
|
6678
6717
|
auth: "user",
|
|
6679
6718
|
responseKind: "json"
|
|
6680
6719
|
},
|
|
6720
|
+
previewBookingOperation: {
|
|
6721
|
+
path: "/bookings/operations/preview",
|
|
6722
|
+
method: "POST",
|
|
6723
|
+
auth: "user",
|
|
6724
|
+
responseKind: "json",
|
|
6725
|
+
errors: [
|
|
6726
|
+
"server:internal_error",
|
|
6727
|
+
"auth:insufficient_permissions",
|
|
6728
|
+
"validation:invalid_input",
|
|
6729
|
+
"resource:not_found",
|
|
6730
|
+
"resource:conflict"
|
|
6731
|
+
]
|
|
6732
|
+
},
|
|
6733
|
+
confirmBookingOperation: {
|
|
6734
|
+
path: "/bookings/operations/confirm",
|
|
6735
|
+
method: "POST",
|
|
6736
|
+
auth: "user",
|
|
6737
|
+
responseKind: "json",
|
|
6738
|
+
errors: [
|
|
6739
|
+
"server:internal_error",
|
|
6740
|
+
"auth:insufficient_permissions",
|
|
6741
|
+
"validation:invalid_input",
|
|
6742
|
+
"resource:not_found",
|
|
6743
|
+
"resource:conflict"
|
|
6744
|
+
]
|
|
6745
|
+
},
|
|
6681
6746
|
createEventOccurrence: {
|
|
6682
6747
|
path: "/sites/{siteId}/bookings/event-series/{seriesId}/occurrences",
|
|
6683
6748
|
method: "POST",
|
|
@@ -6783,8 +6848,17 @@ const API_ENDPOINTS = {
|
|
|
6783
6848
|
responseKind: "json",
|
|
6784
6849
|
errors: ["resource:conflict", "resource:not_found"]
|
|
6785
6850
|
},
|
|
6786
|
-
|
|
6787
|
-
|
|
6851
|
+
previewLocationDrawing: {
|
|
6852
|
+
errors: ["resource:not_found"],
|
|
6853
|
+
path: "/sites/{siteId}/location/drawing-preview",
|
|
6854
|
+
method: "POST",
|
|
6855
|
+
tags: [],
|
|
6856
|
+
auth: "user",
|
|
6857
|
+
responseKind: "json"
|
|
6858
|
+
},
|
|
6859
|
+
geocodeLocation: {
|
|
6860
|
+
errors: ["resource:not_found"],
|
|
6861
|
+
path: "/sites/{siteId}/location/geocode",
|
|
6788
6862
|
method: "POST",
|
|
6789
6863
|
tags: ["site-{siteId}"],
|
|
6790
6864
|
auth: "user",
|
|
@@ -8410,4 +8484,4 @@ function buildPreviewAuthRefreshUrl(input) {
|
|
|
8410
8484
|
return buildDashboardUrl(input.dashboardBaseUrl, previewDashboardApiEndpoints.previewAuthRefresh.path).toString();
|
|
8411
8485
|
}
|
|
8412
8486
|
//#endregion
|
|
8413
|
-
export { buildPreviewAuthRefreshUrl as n, setPreviewAuthCookies as r, buildPreviewAuthExchangeUrl as t };
|
|
8487
|
+
export { setPreviewTilesKeyCookie as i, buildPreviewAuthRefreshUrl as n, setPreviewAuthCookies as r, buildPreviewAuthExchangeUrl as t };
|