@riverbankcms/sdk 0.139.0 → 0.141.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 +1 -1
- package/dist/{PreviewEditorSidebar-BDeenhi3.mjs → PreviewEditorSidebar-Q-fy9GYw.mjs} +4 -4
- package/dist/{PreviewEditorUI-DSRhgjF5.mjs → PreviewEditorUI-LYGzgk85.mjs} +3 -3
- package/dist/{PreviewQueryProvider-D2K8GLUG.mjs → PreviewQueryProvider-CN0ewic5.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CL7wSnYu.mjs → SdkPreviewModeRuntime-CoPYI5Jq.mjs} +90 -50
- package/dist/{SiteChromeCustomizeContext-BhDn-5ir.mjs → SiteChromeCustomizeContext-D8LePX8x.mjs} +2731 -1303
- package/dist/_dts/ai/src/contracts/proposals.d.ts +165 -165
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +212 -212
- package/dist/_dts/api/src/accessAdmin.d.ts +74 -104
- package/dist/_dts/api/src/aiEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/authSubmission.d.ts +46 -0
- package/dist/_dts/api/src/billing.d.ts +8 -4
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +23 -0
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +26 -0
- package/dist/_dts/api/src/blocks.d.ts +2 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -2
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +8 -1
- package/dist/_dts/api/src/communications.d.ts +0 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +17 -31
- package/dist/_dts/api/src/domainConnection.d.ts +4 -0
- package/dist/_dts/api/src/endpoints.d.ts +93 -64
- package/dist/_dts/api/src/event-destination-policy.d.ts +2 -1
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +25 -0
- package/dist/_dts/api/src/footerSettings.d.ts +9 -6
- package/dist/_dts/api/src/index.d.ts +6 -7
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/launchReadiness.d.ts +1 -0
- package/dist/_dts/api/src/mailingListIntegration.d.ts +8 -2
- package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
- package/dist/_dts/api/src/navigation/dashboardSiteNav.d.ts +2 -1
- package/dist/_dts/api/src/navigation/types.d.ts +1 -1
- package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +25 -0
- package/dist/_dts/api/src/onboarding/surfaceData.d.ts +32 -32
- package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +11 -3
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +3 -29
- package/dist/_dts/api/src/publicOnboardingAttemptEndpointDefinitions.d.ts +65 -0
- package/dist/_dts/api/src/saveOutcome.d.ts +20 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +3 -22
- package/dist/_dts/api/src/sdkPushContracts.d.ts +18 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +44 -44
- package/dist/_dts/api/src/settings/permissions.d.ts +12 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +10 -29
- package/dist/_dts/api/src/siteOnboarding.d.ts +9 -9
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -4
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -1
- package/dist/_dts/api/src/siteSettings.d.ts +20 -7
- package/dist/_dts/api/src/types.d.ts +77 -77
- package/dist/_dts/api/src/wholeSeriesRuns.d.ts +2 -37
- package/dist/_dts/billing/src/membership/index.d.ts +3 -0
- package/dist/_dts/billing/src/plans/types.d.ts +3 -0
- package/dist/_dts/billing/src/site-arrangements.d.ts +23 -3
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +20 -4
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +2 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +7 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +2 -4
- package/dist/_dts/blocks/src/portal/waitlist-types.d.ts +35 -0
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +122 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/eventSelection.d.ts +11 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +42 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
- package/dist/_dts/blocks/src/system/data/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/prefetchBlockData.d.ts +7 -1
- package/dist/_dts/blocks/src/system/data/types.d.ts +9 -0
- package/dist/_dts/blocks/src/system/data/utils.d.ts +1 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +27 -1
- package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +0 -28
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +42 -186
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -93
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +48 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +1 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/checkoutRecovery.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +56 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.state.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +6 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useCheckoutRecovery.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.d.ts +10 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventCheckoutHandoffRestore.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +8 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +14 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useSettledCommerceView.d.ts +37 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +24 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +4 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +11 -101
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -6
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +12 -0
- package/dist/_dts/commerce/src/purchase/bookingInstalmentSchedule.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +27 -4
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +2 -1
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +3 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +3 -0
- package/dist/_dts/core/src/branded.d.ts +0 -8
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/mailing-list-setup-parser.d.ts +1 -1
- package/dist/_dts/core/src/mailing-list-setup.d.ts +14 -1
- package/dist/_dts/core/src/mailing-list-submission.d.ts +7 -27
- package/dist/_dts/core/src/participants.d.ts +2 -29
- package/dist/_dts/core/src/public-experience.d.ts +4 -0
- package/dist/_dts/core/src/public-profile.d.ts +27 -1
- package/dist/_dts/core/src/site-route-target.d.ts +9 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +296 -606
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListGlobalSettingsSummary.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListTargetingField.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/context.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/targetingState.d.ts +19 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +27 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +14 -20
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +7 -1
- package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +17 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +17 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/classNames.d.ts +16 -0
- package/dist/_dts/theme-core/src/buttons/generateButtonCss.d.ts +0 -6
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +4 -4
- package/dist/_dts/theme-core/src/cards/types.d.ts +21 -21
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +8 -2
- package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +2 -2
- package/dist/_dts/theme-core/src/hosted-booking-appearance.d.ts +54 -12
- package/dist/_dts/theme-core/src/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +54 -54
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -4
- package/dist/_dts/theme-core/src/schema.d.ts +84 -84
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/surfaces/foregroundInteraction.d.ts +77 -0
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/typography/generateTypographyCss.d.ts +2 -2
- package/dist/_dts/ui/src/lib/use-delayed-flag.d.ts +9 -0
- package/dist/_dts/ui/src/pending-button.d.ts +10 -0
- package/dist/client/{BookingConsentAgreement-CZvTDtsK.mjs → BookingConsentAgreement-xJeYNdnb.mjs} +4 -4
- package/dist/client/{DiscountCodeDisclosure-D-DsLCMU.mjs → DiscountCodeDisclosure-DdT6uzl9.mjs} +1 -1
- package/dist/client/{EventCombined.client-dWqgd5ZO.mjs → EventCombined.client-Cp28uYuM.mjs} +12 -16
- package/dist/client/{EventListing.client-BMRa9IYp.mjs → EventListing.client-CD6AJsMr.mjs} +4 -17
- package/dist/client/{LeafletStaticMap-D21W9kBZ.mjs → LeafletStaticMap-DBsAi9-e.mjs} +1 -1
- package/dist/client/{accordion-FxF_ta47.mjs → accordion-6dwbOKYR.mjs} +1 -1
- package/dist/client/{bookingForm-YnwW4TGw.mjs → bookingForm-CZE9_qPQ.mjs} +7 -7
- package/dist/client/bookings.mjs +500 -233
- package/dist/client/{carousel-vng7fFT5.mjs → carousel-7VHGQARz.mjs} +2 -2
- package/dist/client/{carousel.client-59G_WMr4.mjs → carousel.client-DQTjCVQT.mjs} +1 -1
- package/dist/client/{cart-DEPDsjNk.mjs → cart-Qg_mvQhh.mjs} +3 -3
- package/dist/client/{checkout-CZRWu9rW.mjs → checkout-D84rpgdr.mjs} +3 -3
- package/dist/client/{checkoutUrls-BuseL0dw.mjs → checkoutUrls-FL6lRkrt.mjs} +1 -1
- package/dist/client/client.mjs +2315 -1017
- package/dist/client/{colorStyles-CrxJrPjJ.mjs → colorStyles-3013aRAY.mjs} +3 -1
- package/dist/client/{context-DvU_WUmd.mjs → context-Ctp3T0Wr.mjs} +6 -19
- package/dist/client/{dates-wnPMiRl5.mjs → dates-DJKFcI_N.mjs} +2 -2
- package/dist/client/{eventCalendar-BA3Q5L15.mjs → eventCalendar-CK31z3vs.mjs} +12 -8
- package/dist/client/{eventCombined-51wgR-1R.mjs → eventCombined-DiXd-ewn.mjs} +3 -3
- package/dist/client/{eventDetails-modaetpm.mjs → eventDetails-CTRgt2DK.mjs} +4 -4
- package/dist/client/{eventListing-D8t2J3Kv.mjs → eventListing-Dy9vi_j_.mjs} +3 -3
- package/dist/client/{eventRegistration-CYqtkCE_.mjs → eventRegistration-CnalYMr2.mjs} +618 -177
- package/dist/client/{form-CBKXN5In.mjs → form-eUiMveTT.mjs} +3 -3
- package/dist/client/{headerSection-DylDqNrs.mjs → headerSection-Dy9kQpB1.mjs} +2 -2
- package/dist/client/hooks.mjs +692 -212
- package/dist/client/{locationMap-CvWrG0vZ.mjs → locationMap-DalCmWU0.mjs} +3 -3
- package/dist/client/{media-BOHuueS5.mjs → media-DHpfFwd3.mjs} +1 -1
- package/dist/client/{newsletterForm-Btwk70zw.mjs → newsletterForm-SDDPvhS0.mjs} +150 -94
- package/dist/client/{pricing-Uzw-GQ6Y.mjs → pricing-OcMz4SnX.mjs} +1 -1
- package/dist/client/{productDetail-JLcUYKnd.mjs → productDetail-BQrgHElM.mjs} +3 -3
- package/dist/client/{productList-FM0cbUzj.mjs → productList-OnPn_UJj.mjs} +3 -3
- package/dist/client/{propsDecoder-DYzafZb2.mjs → propsDecoder-zBdsnS-N.mjs} +168 -32
- package/dist/client/rendering/client.mjs +1355 -519
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2294 -953
- package/dist/client/{scrollToBlock-CvXszexS.mjs → scrollToBlock-BNM4Ob2Y.mjs} +28 -11
- package/dist/client/{shop-BIcjvy5a.mjs → shop-Bv1fPTwQ.mjs} +6 -6
- package/dist/client/{shop-commerce-BZQsy7xw.mjs → shop-commerce-D4KNGaW8.mjs} +7 -7
- package/dist/client/{shop-commerce-store-D5V7XAb5.mjs → shop-commerce-store-2N5EV0Rc.mjs} +1 -1
- package/dist/client/{shopShared-DowkXevB.mjs → shopShared-DvJGdHTV.mjs} +4 -4
- package/dist/client/{useEventFilters-oMoTw_JE.mjs → useEventFilters-BBBvGDHQ.mjs} +19 -13
- package/dist/preview-next/before-render.mjs +119 -64
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-chrome.css +4 -8
- package/dist/preview-next/keepAlive.mjs +119 -64
- package/dist/preview-next/middleware.mjs +119 -64
- package/dist/{previewAuthStore-COUyAKaX.mjs → previewAuthStore-Gjb6r6vz.mjs} +119 -64
- package/dist/{sdk-runtime-D4k2LSGF.mjs → sdk-runtime-Defnbfzw.mjs} +2 -2
- package/dist/{separator-UGtpag4Z.mjs → separator-CZXO3Sb0.mjs} +1 -1
- package/dist/server/components.mjs +1170 -384
- package/dist/server/config-validation.mjs +560 -105
- package/dist/server/config.mjs +564 -109
- package/dist/server/data.mjs +688 -212
- package/dist/server/index.mjs +126 -66
- package/dist/server/next.mjs +1429 -662
- package/dist/server/page-converter.mjs +372 -99
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1624 -817
- package/dist/server/rendering.mjs +1200 -391
- package/dist/server/routing.mjs +767 -247
- package/dist/server/server.mjs +715 -276
- package/dist/server/theme-bridge.mjs +475 -110
- package/dist/server/theme.mjs +9 -3
- package/dist/styles/index.css +265 -45
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionCompactRow.d.ts +0 -29
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionList.d.ts +0 -13
package/README.md
CHANGED
|
@@ -3333,7 +3333,7 @@ Set `RIVERBANK_WEBHOOK_SECRET` in the deployed SDK site and configure the matchi
|
|
|
3333
3333
|
|
|
3334
3334
|
The SDK client cache clear is process-local and best-effort. It helps single-process deployments, `next dev`, `next start`, and any runtime where the revalidation route and render path share the same module instance. Serverless platforms such as Vercel can compile `/api/revalidate` and page rendering into separate functions and can run many warm containers; in those deployments, the webhook may clear only the webhook function's local client instance while other render instances keep their SDK response cache until TTL expiry. Use Next tag/path revalidation as the authoritative cross-instance invalidation layer, and disable or shorten SDK response caching for force-dynamic deployments that require immediate freshness across serverless instances.
|
|
3335
3335
|
|
|
3336
|
-
Existing SDK sites should update their revalidation route to pass `getClient: getRiverbankClient`, then redeploy after adding or changing the deployed site's `RIVERBANK_WEBHOOK_SECRET`. The dashboard/CMS environment separately needs `
|
|
3336
|
+
Existing SDK sites should update their revalidation route to pass `getClient: getRiverbankClient`, then redeploy after adding or changing the deployed site's `RIVERBANK_WEBHOOK_SECRET`. The dashboard/CMS environment separately needs `SERVICE_SECRET_KEYRING_JSON` configured so Riverbank can create and store endpoint signing secrets; do not put that dashboard keyring in the SDK site.
|
|
3337
3337
|
|
|
3338
3338
|
The CMS includes a `dispatchId` in signed payloads and sends matching `X-Riverbank-Dispatch-Id` / `X-Riverbank-Correlation-Id` headers. Use the optional callback metadata to join CMS delivery logs with consumer deployment logs without logging secrets:
|
|
3339
3339
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as FooterComposerPanel,
|
|
3
|
-
import { d as unwrapResponse, f as getDashboardUrl, r as usePreviewAuth } from "./previewAuthStore-
|
|
4
|
-
import { t as Separator } from "./separator-
|
|
5
|
-
import { S as getSiteFontsStorageUrl, _ as usePreviewBlockCustomizeSelectionOptional, b as buildFontPreviewUrl, d as buildPreviewDashboardSetupUrl, f as resolvePreviewDashboardSetupHandoff, g as useBlockCustomizeControls, h as usePreviewSiteFontStorageUrl, m as resolvePreviewSidebarChromeModel, p as resolvePreviewEditorGuidanceModel, u as canInspectSiteStyle, v as PreviewFormProvider, x as generateFontFaceCss, y as previewWidgetOverrides } from "./SdkPreviewModeRuntime-
|
|
2
|
+
import { $ as FooterComposerPanel, A as markApplySaving, Aa as CollapsibleTrigger, Ai as buttonStyleHoverPreferenceValue, B as setPaletteColors, Br as curatedPalettes, C as cancelPreview, D as isPreviewingChange, Dr as curatedSiteStyles, E as dismissWarnings, F as previewFooterLook, Fa as DropdownMenuLabel, Fi as updateButtonStyleSelectionChoice, H as syncStyleConfiguratorState, Ha as X$1, Hi as VARIANT_ROLES, Ht as useEditorUiStore, I as previewHeaderLayout, Ia as DropdownMenuSeparator, Ii as buttonStyleSelectionKey, It as BlockEditor, Ja as Smartphone, Ka as Tablet, L as previewHeaderStyle, La as DropdownMenuTrigger, M as palettePreviewProjection, Ma as DropdownMenu, Mi as findButtonStyleRecipe, Mr as findFooterLook, N as previewButtonStyle, Na as DropdownMenuContent, Ni as resolveButtonStyleSelection, Nr as getHeaderLayout, O as markApplyFailed, Oa as Collapsible, P as previewCuratedPalette, Pa as DropdownMenuItem, Pi as updateButtonStyleHoverPreference, Pr as getHeaderStyle, Q as resolvePreviewSidebarTab, R as previewSiteStyle, S as applyTypographyDraftPatch, T as deriveStyleConfiguratorCapabilities, U as toggleRow, Ui as paletteColorEntries, Ut as useEditorUiStoreInstance, V as styleConfiguratorHistoryEntryForPersistedSelection, Va as cn, Wi as paletteColorsSchema, X as resolveStyleConfiguratorInitialSnapshot, Ya as SlidersHorizontal, Z as createOptimisticActionRunner, _ as reportPreviewDesignError, _a as Input, at as useUISelector, b as planSiteChromeSelection, ba as TabsList, bn as listEntryPageContentSlots, c as selectionSnapshotFromApplySiteStyleSelectionResponse, ca as SelectItem, cn as resolveContentTitle, co as ChevronRight, ct as useEntryController, da as Callout, dn as ManifestForm, do as Check, f as usePreviewDesignCoordinator, fa as CalloutDescription, g as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, ga as PopoverTrigger, gn as createStoreBackend, ha as PopoverContent, ho as assertNever$1, in as isAdapterReferenceKind, it as ContentFieldsForm, j as openRow, ja as Surface, ji as buttonStyleSelectionParameterValue, k as markApplySaved, ka as CollapsibleContent, kn as ThemeScope, kr as getCuratedSiteStyle, l as deriveSiteStylePreviewUpdate, la as SelectTrigger, lo as ChevronLeft, ma as Popover, mn as FormRenderer, n as useSiteChromeCustomizeOptional, no as Maximize2, oa as Select, on as deriveRouteMetadataPresentation, pa as SearchInput, pn as createManifestValidation, po as unsafeAsEditorBlockId, ro as LoaderCircle, s as buildApplySiteStyleSelectionBody, sa as SelectContent, sn as resolvePageRouteSlug, to as Monitor, u as planConfiguratorPreview, ua as SelectValue, uo as ChevronDown, v as buildSiteChromeSelectionModels, va as Tabs, w as createStyleConfiguratorState, x as applyResolvedSelections, xa as TabsTrigger, y as cycleSiteChromeSelectionId, ya as TabsContent, z as resetTypographyToSaved, za as Button, zi as themeButtonClassName } from "./SiteChromeCustomizeContext-D8LePX8x.mjs";
|
|
3
|
+
import { d as unwrapResponse, f as getDashboardUrl, r as usePreviewAuth } from "./previewAuthStore-Gjb6r6vz.mjs";
|
|
4
|
+
import { t as Separator } from "./separator-CZXO3Sb0.mjs";
|
|
5
|
+
import { S as getSiteFontsStorageUrl, _ as usePreviewBlockCustomizeSelectionOptional, b as buildFontPreviewUrl, d as buildPreviewDashboardSetupUrl, f as resolvePreviewDashboardSetupHandoff, g as useBlockCustomizeControls, h as usePreviewSiteFontStorageUrl, m as resolvePreviewSidebarChromeModel, p as resolvePreviewEditorGuidanceModel, u as canInspectSiteStyle, v as PreviewFormProvider, x as generateFontFaceCss, y as previewWidgetOverrides } from "./SdkPreviewModeRuntime-CoPYI5Jq.mjs";
|
|
6
6
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $t as useMultiAutosave,
|
|
3
|
-
import { d as unwrapResponse, r as usePreviewAuth } from "./previewAuthStore-
|
|
4
|
-
import { C as FixedBottomSurface, a as usePreviewPageDesignEditorState, c as applyPreviewChromeSurfaceToElement, l as resolvePreviewChromeSurface, o as PREVIEW_CHROME_PORTAL_CLASS_NAME, s as PREVIEW_CHROME_THEME_CLASS_NAME } from "./SdkPreviewModeRuntime-
|
|
2
|
+
import { $a as PenLine, $t as useMultiAutosave, Ba as cva, Ca as DialogContent, Da as DialogTitle, Ea as DialogHeader, Ga as TriangleAlert, Ht as useEditorUiStore, La as DropdownMenuTrigger, Ma as DropdownMenu, Na as DropdownMenuContent, Nt as useEditor, Pa as DropdownMenuItem, Qa as Pencil, Sa as Dialog, Ut as useEditorUiStoreInstance, Va as cn, Vt as classifyHistoryShortcut, Wa as Undo2, Za as Redo2, a as previewDesignHistoryDomainForCommand, aa as TooltipTrigger, eo as Palette, i as usePreviewDesignHistoryOrder, ia as TooltipContent, lt as useEntryEditorController, n as useSiteChromeCustomizeOptional, o as selectPreviewDesignHistoryDomain, oo as Eye, qa as Sparkles, ra as Tooltip, ro as LoaderCircle, so as EllipsisVertical, uo as ChevronDown, wa as DialogDescription, za as Button } from "./SiteChromeCustomizeContext-D8LePX8x.mjs";
|
|
3
|
+
import { d as unwrapResponse, r as usePreviewAuth } from "./previewAuthStore-Gjb6r6vz.mjs";
|
|
4
|
+
import { C as FixedBottomSurface, a as usePreviewPageDesignEditorState, c as applyPreviewChromeSurfaceToElement, l as resolvePreviewChromeSurface, o as PREVIEW_CHROME_PORTAL_CLASS_NAME, s as PREVIEW_CHROME_THEME_CLASS_NAME } from "./SdkPreviewModeRuntime-CoPYI5Jq.mjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { useCallback, useEffect, useMemo, useState, useTransition } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as markPreviewAuthExpired, s as ApiRequestError } from "./previewAuthStore-
|
|
2
|
+
import { n as markPreviewAuthExpired, s as ApiRequestError } from "./previewAuthStore-Gjb6r6vz.mjs";
|
|
3
3
|
import { createContext, useContext, useRef } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { MutationCache, QueryCache, QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $i as
|
|
3
|
-
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-
|
|
4
|
-
import { _ as API_ENDPOINTS, a as usePreviewToken, c as createBearerAPIClient, d as unwrapResponse, g as resolveSurfaceDocumentAttributes, h as SURFACE_IDS, i as usePreviewAuthFetch, m as SURFACE_DOCUMENT_DATA_ATTRIBUTE, n as markPreviewAuthExpired, o as isPreviewRuntimeSessionEditable, r as usePreviewAuth, s as ApiRequestError, t as initPreviewAuth } from "./previewAuthStore-
|
|
2
|
+
import { $i as mapOptionValueForSelect, $n as coerceLinkedContentEntriesPayload, $r as runTransforms, An as containerResponsiveThemeCss, Ar as compileTransitionRuntime, At as RichTextField, Bi as parseThemeForPersistence, Bn as compileManifestContentContract, Bt as getBlockManifestFromSdkConfig, Ca as DialogContent, Ci as isRecord$13, Cn as deriveLaunchReadiness, Cr as retargetCompiledRuntimeFieldsForContentAdjacency, Ct as ButtonVariantField, Da as DialogTitle, Di as asDesignBlockId, Dn as useApiMediaUploader, Dt as ReferenceField, Ea as DialogHeader, Ei as pageDesignEditorBackgroundOverrideOwner, En as useMediaEditorOptional, Er as componentRuntimeRulesForTheme, Et as MediaField, Fn as SITE_CHROME_VISIBLE_HEADER_SELECTOR, Fr as gradientToCss, Ft as LinkWidgetProvider, G as confirmAutosaveBatch, Gi as paletteModeSchema, Gn as escapeStyleContent, Gr as backgroundAppearanceColorTokenNames, Gt as canRedoHistory, Ha as X, Hn as buildThemeRuntime, Hr as sectionTransitionFamilies, Ht as useEditorUiStore, In as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, Ir as GRADIENT_PRESETS, J as idleEditorTransactionQueueState, Ji as isHeaderField, Jn as defaultTransforms, Jr as ctaButton, Jt as pushHistoryEntry, K as deriveTransactionCapabilities, Ki as attachRenderableMediaAssetFields, Kn as readBlockComposition, Kr as backgroundAppearanceQuickColorTokenNames, Kt as canUndoHistory, Li as textColorStyle, Ln as planSiteOverlayHeaderClearance, Lr as GRADIENT_PRESET_IDS, Lt as hideThemeV2RawStyleFields, Mn as makeDefaultBlockComponent, Mt as EditorProvider, Nn as getBlockDefinition, Nt as useEditor, Oi as assertNever$1, On as isSupportedLoaderEndpoint, Or as designRuntimeRulesForTheme, Ot as ReferenceWidgetProvider, Pn as projectRecurringSchedule, Pt as LinkField, Q as resolvePreviewSidebarTab, Qi as mapCurrentValueForSelect, Qn as LINKED_CONTENT_ENTRY_META_KEY, Qr as parseBackgroundContent, Qt as recordsEqual, Ri as defaultThemeTokens, Rn as visibleHeaderClearancePx, Rr as getGradientPreset, Rt as prepareBlockEditorManifest, Sa as Dialog, Si as isObjectRecord, Sn as DEFAULT_LAUNCH_READINESS_INPUT, Sr as retargetCompiledBoundaryRuntimeForContentAdjacency, St as EntryPickerWidgetProvider, Ta as DialogFooter, Ti as isThemeV2NormalEditorRawStyleFieldName, Tn as MediaEditorContextProvider, Tr as planPageDesignLayoutLookCompatibility, Tt as FileField, Ua as Upload, Un as DEFAULT_THEME_RESPONSIVE_MODE, Ur as sectionTransitionFamilyForBoundaryOptionId, Ut as useEditorUiStoreInstance, Va as cn, Vi as ORDINARY_TEXT_MIN_CONTRAST_RATIO, Vn as validateManifestDraft, Vr as defaultSectionTransitionVariantForFamily, W as beginAutosaveBatch, Wi as paletteColorsSchema, Wn as getResponsiveScopeSpec, Wr as sectionTransitionVariantForBoundaryOptionId, Wt as useOptionalEditorUiStoreInstance, Xa as RotateCcw, Xi as useSdkConfig, Xn as resolvePageRouteTarget, Xt as undoHistory, Y as rejectAutosaveBatch, Yi as SdkConfigProvider, Yn as resolveEntryRouteTarget, Yr as bindingSchema, Yt as redoHistory, Zi as hasEmptyOption, Zn as resolveRouteTarget, Zr as planSiteChromePlacement, Zt as unsafeAsLinkedContentEntryId, _ as reportPreviewDesignError, _i as BlockApiProvider, _n as MediaEditor, _o as parseMediaAssetId, _r as heroCopyFragment, _t as loadMailingListAuthoringContext, ai as coerceInlineTextWithFallback, an as parseReferenceKind, ao as GripVertical, ar as cardFragment, at as useUISelector, ba as TabsList, bi as eventCalendarListLayoutOptions, br as applyCompiledRuntimeFieldsToContent, bt as IconPickerField, ca as SelectItem, ci as Text$1, co as ChevronRight, cr as blogFeaturedPostFragment, d as PreviewDesignCoordinatorProvider, di as getCurrentResolveImageUrlContext, dr as formCopyFragment, dt as createSiteOptionWidgetAdapters, ea as unmapValueFromSelect, ei as parseBlockIconValue, en as useDebouncedLatestSave, er as getLinkedContentEntryMeta, et as renderSiteChromeBlock, fi as resolveImageUrlWithContext, fn as createManifestFormAdapter, fo as parseFooterModuleId, fr as testimonialsCarouselFragment, ft as SiteOptionPickerField, g as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, gi as siblingPath, gn as createStoreBackend, go as expectParsedBrandedId, gr as ctaRowFragment, gt as MailingListTargetingField, h as PREVIEW_DESIGN_LOAD_ERROR_MESSAGE, hi as getAtPath, hn as evaluateVisibility, ho as assertNever$2, hr as heroCtaRowFragment, ht as OfferingsPreviewWidgetProvider, i as usePreviewDesignHistoryOrder, ii as logger, io as Image, ir as headingFragment, jn as createCustomBlockRegistry, jr as surfaceResolutionContextFromTheme, jt as RichTextWidgetProvider, ki as makeBoundaryId, kn as ThemeScope, kt as useRichTextImagePicker, la as SelectTrigger, li as RichText$1, ln as PaletteProvider, lo as ChevronLeft, lr as singleButtonFragment, lt as useEntryEditorController, m as usePreviewThemeOverlay, mi as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, mn as FormRenderer, mo as unsafeAsEditorBlockValues, mr as ctaCopyFragment, mt as OfferingsPreviewGroupOrderField, n as useSiteChromeCustomizeOptional, na as useField, ni as parseGeneratedIconSetId, nn as createSnapshotFromPageRecord, nr as ImageResolveContextProvider, nt as PreviewInlineTextEditor, oa as Select, oi as inlineTextToPlainText, or as faqAccordionFragment, ot as EditableBlockProvider, p as PreviewThemeOverlayProvider, pi as setContextResolveImageUrlContext, po as unsafeAsEditorBlockId, pr as testimonialsHeadingFragment, pt as SiteOptionWidgetProvider, q as enqueueTransaction, qi as getFieldIntent, qn as getDefaultComponentRegistry, qr as parseBackgroundAppearanceColorToken, qt as createHistoryState, r as PreviewDesignHistoryOrderProvider, ri as renderInlineText, rn as BUILT_IN_REFERENCE_KINDS, rr as richTextFragment, rt as PreviewTextEditor, sa as SelectContent, si as isInlineTextEmpty, sr as faqHeadingFragment, st as EntryControllerProvider, t as SiteChromeCustomizeProvider, ta as FieldFrame, ti as parseGeneratedIconAssetId, tn as createRoutingHelpers, tr as clientComponentRegistry, tt as PreviewRichTextEditor, ua as SelectValue, ui as buildResolveImageUrlContext, un as usePalette, ur as formEmbedFragment, ut as createSiteOptionApiLoader, va as Tabs, vi as calendarWindowQuerySchema, vn as applyPageDesignEditorAction, vo as parseSiteId, vr as bodyCopyFragment, vt as MailingListTargetingProvider, wa as DialogDescription, wi as corners, wn as AMBIENT_BACKGROUND_ROLES, wr as formatSiteChromeBackgroundTokenLabel, wt as ButtonWidgetProvider, xa as TabsTrigger, xi as bookingConsentCarrierSchema, xn as decodePublicProductCategorySelectorQuery, xr as compileEditorModelRuntime, xt as EntryPickerField, ya as TabsContent, yi as eventCalendarListLayoutCompatibleDisplayModeValues, yn as getPageDesignEditorState, yo as __exportAll, yr as defineFragment, yt as InlineTextField, za as Button, zn as resolveVariantKey, zr as parseGradientPresetId, zt as stripTopLevelRoutingUi } from "./SiteChromeCustomizeContext-D8LePX8x.mjs";
|
|
3
|
+
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-CN0ewic5.mjs";
|
|
4
|
+
import { _ as API_ENDPOINTS, a as usePreviewToken, c as createBearerAPIClient, d as unwrapResponse, g as resolveSurfaceDocumentAttributes, h as SURFACE_IDS, i as usePreviewAuthFetch, m as SURFACE_DOCUMENT_DATA_ATTRIBUTE, n as markPreviewAuthExpired, o as isPreviewRuntimeSessionEditable, r as usePreviewAuth, s as ApiRequestError, t as initPreviewAuth } from "./previewAuthStore-Gjb6r6vz.mjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -460,7 +460,7 @@ function pageBlockPosition(index, blockCount) {
|
|
|
460
460
|
//#endregion
|
|
461
461
|
//#region ../blocks/src/pageRendererContracts.ts
|
|
462
462
|
function buildPageRendererRootRuntime(dataContext) {
|
|
463
|
-
const { siteId = null, pageId = null, pathname = null, bookingTimeZone, previewStage = "published", apiBaseUrl = null, portalToken = null, bookingOfferingPresets = [], mailingList = { tag: "not_configured" }, eventRegistrationOverlayEnabled = false } = dataContext ?? {};
|
|
463
|
+
const { siteId = null, pageId = null, pathname = null, bookingTimeZone, previewStage = "published", apiBaseUrl = null, portalToken = null, bookingOfferingPresets = [], appointmentServicePathPrefix = null, mailingList = { tag: "not_configured" }, eventRegistrationOverlayEnabled = false, loaderFailures = {} } = dataContext ?? {};
|
|
464
464
|
return {
|
|
465
465
|
siteId,
|
|
466
466
|
pageId,
|
|
@@ -470,8 +470,10 @@ function buildPageRendererRootRuntime(dataContext) {
|
|
|
470
470
|
apiBaseUrl,
|
|
471
471
|
portalToken,
|
|
472
472
|
bookingOfferingPresets,
|
|
473
|
+
appointmentServicePathPrefix,
|
|
473
474
|
mailingList,
|
|
474
|
-
eventRegistrationOverlayEnabled
|
|
475
|
+
eventRegistrationOverlayEnabled,
|
|
476
|
+
loaderFailures
|
|
475
477
|
};
|
|
476
478
|
}
|
|
477
479
|
//#endregion
|
|
@@ -1064,6 +1066,7 @@ function buildBlockOverrideProps(input) {
|
|
|
1064
1066
|
...blockSubjectProps(dataContext),
|
|
1065
1067
|
imageResolveContext: input.imageResolveContext,
|
|
1066
1068
|
blockId: block.id ?? null,
|
|
1069
|
+
contentVersionId: block.contentVersionId ?? null,
|
|
1067
1070
|
blockKind: block.kind
|
|
1068
1071
|
};
|
|
1069
1072
|
}
|
|
@@ -2020,12 +2023,12 @@ function normalizeContent(block) {
|
|
|
2020
2023
|
}
|
|
2021
2024
|
/**
|
|
2022
2025
|
* Normalize params for API calls.
|
|
2023
|
-
* Converts
|
|
2026
|
+
* Converts supplied values to strings, preserving absent versus explicitly empty params.
|
|
2024
2027
|
*/
|
|
2025
2028
|
function normalizeParams(input) {
|
|
2026
2029
|
if (!input || typeof input !== "object") return {};
|
|
2027
2030
|
const output = {};
|
|
2028
|
-
for (const [key, value] of Object.entries(input)) output[key] = coerceToString(value);
|
|
2031
|
+
for (const [key, value] of Object.entries(input)) if (value !== void 0 && value !== null) output[key] = coerceToString(value);
|
|
2029
2032
|
return output;
|
|
2030
2033
|
}
|
|
2031
2034
|
function isNonArrayObject(value) {
|
|
@@ -2089,6 +2092,14 @@ function coercePayload(payload) {
|
|
|
2089
2092
|
* - Frontend: provide internal API client
|
|
2090
2093
|
* - SDK: provide SDK client with endpoint mapping
|
|
2091
2094
|
*/
|
|
2095
|
+
function projectDataLoaders(loaders, shouldLoad, blockId, blockKind) {
|
|
2096
|
+
if (!shouldLoad) return [...loaders];
|
|
2097
|
+
return loaders.filter(({ key }) => shouldLoad({
|
|
2098
|
+
blockId,
|
|
2099
|
+
blockKind,
|
|
2100
|
+
loaderKey: key
|
|
2101
|
+
}));
|
|
2102
|
+
}
|
|
2092
2103
|
function shouldSkipResolvedLoader(input) {
|
|
2093
2104
|
if (input.loader.requiredParams?.some((param) => !input.params[param]?.trim())) return true;
|
|
2094
2105
|
return Boolean(input.isValidEndpoint && !input.isValidEndpoint(input.endpoint));
|
|
@@ -2114,8 +2125,12 @@ function shouldSkipResolvedLoader(input) {
|
|
|
2114
2125
|
* ```
|
|
2115
2126
|
*/
|
|
2116
2127
|
async function prefetchBlockData(page, context, options) {
|
|
2117
|
-
|
|
2128
|
+
return (await prefetchBlockDataWithFailures(page, context, options)).resolvedData;
|
|
2129
|
+
}
|
|
2130
|
+
async function prefetchBlockDataWithFailures(page, context, options) {
|
|
2131
|
+
const { apiClient, isValidEndpoint, onError, getCustomBlockLoaders, getBlockDefinition: getBlockDefinition$1 = getBlockDefinition, resolveParamsBindings: resolveParamsBindings$1 = resolveParamsBindings, shouldLoad } = options;
|
|
2118
2132
|
const results = {};
|
|
2133
|
+
const loaderFailures = {};
|
|
2119
2134
|
const tasks = [];
|
|
2120
2135
|
for (const block of page.blocks) {
|
|
2121
2136
|
const blockId = block.id;
|
|
@@ -2130,6 +2145,7 @@ async function prefetchBlockData(page, context, options) {
|
|
|
2130
2145
|
loader
|
|
2131
2146
|
})) : [];
|
|
2132
2147
|
} else loaders = [];
|
|
2148
|
+
loaders = projectDataLoaders(loaders, shouldLoad, blockId, block.kind);
|
|
2133
2149
|
if (loaders.length === 0) continue;
|
|
2134
2150
|
const root = {
|
|
2135
2151
|
...context.root ?? {},
|
|
@@ -2163,6 +2179,11 @@ async function prefetchBlockData(page, context, options) {
|
|
|
2163
2179
|
const blockResults = results[blockId] ?? (results[blockId] = {});
|
|
2164
2180
|
blockResults[key] = data;
|
|
2165
2181
|
} catch (error) {
|
|
2182
|
+
const blockFailures = loaderFailures[blockId] ?? (loaderFailures[blockId] = {});
|
|
2183
|
+
blockFailures[key] = {
|
|
2184
|
+
endpoint,
|
|
2185
|
+
params
|
|
2186
|
+
};
|
|
2166
2187
|
if (onError) onError(error, {
|
|
2167
2188
|
block: block.kind,
|
|
2168
2189
|
loader: key
|
|
@@ -2172,7 +2193,10 @@ async function prefetchBlockData(page, context, options) {
|
|
|
2172
2193
|
}
|
|
2173
2194
|
}
|
|
2174
2195
|
if (tasks.length > 0) await Promise.all(tasks);
|
|
2175
|
-
return
|
|
2196
|
+
return {
|
|
2197
|
+
resolvedData: results,
|
|
2198
|
+
loaderFailures
|
|
2199
|
+
};
|
|
2176
2200
|
}
|
|
2177
2201
|
//#endregion
|
|
2178
2202
|
//#region ../blocks/src/system/data/batching.ts
|
|
@@ -2263,8 +2287,8 @@ function toStringParams(value) {
|
|
|
2263
2287
|
for (const [k, v] of Object.entries(value)) if (typeof v === "string") out[k] = v;
|
|
2264
2288
|
return out;
|
|
2265
2289
|
}
|
|
2266
|
-
function stripEmptyStringValues(params) {
|
|
2267
|
-
for (const [key, value] of Object.entries(params)) if (value === "") delete params[key];
|
|
2290
|
+
function stripEmptyStringValues(params, endpoint) {
|
|
2291
|
+
for (const [key, value] of Object.entries(params)) if (value === "" && !(key === "seriesIds" && (endpoint === "listPublicEvents" || endpoint === "listPublicEventCalendarWindow"))) delete params[key];
|
|
2268
2292
|
}
|
|
2269
2293
|
function ensureSiteId(params, context) {
|
|
2270
2294
|
if (!params.siteId && typeof context.siteId === "string" && context.siteId) params.siteId = context.siteId;
|
|
@@ -2306,7 +2330,7 @@ function normalizeOrder(orderBy) {
|
|
|
2306
2330
|
*/
|
|
2307
2331
|
function normalizeLoaderParams(endpoint, params, context) {
|
|
2308
2332
|
const out = toStringParams(params);
|
|
2309
|
-
stripEmptyStringValues(out);
|
|
2333
|
+
stripEmptyStringValues(out, endpoint);
|
|
2310
2334
|
if (endpoint === "getPublicFormById") {
|
|
2311
2335
|
ensureSiteId(out, context);
|
|
2312
2336
|
if (!out.formId && out.formSlug) {
|
|
@@ -7777,6 +7801,15 @@ function resolvePreviewThemeRoles(input) {
|
|
|
7777
7801
|
documentTheme: input.renderTheme ?? input.theme
|
|
7778
7802
|
};
|
|
7779
7803
|
}
|
|
7804
|
+
z.object({
|
|
7805
|
+
palette: paletteColorsSchema,
|
|
7806
|
+
paletteMode: paletteModeSchema,
|
|
7807
|
+
typography: z.object({
|
|
7808
|
+
headingFamily: z.string().trim().min(1),
|
|
7809
|
+
bodyFamily: z.string().trim().min(1)
|
|
7810
|
+
}).strict(),
|
|
7811
|
+
corners
|
|
7812
|
+
}).strict();
|
|
7780
7813
|
const DEFAULT_PREVIEW_CHROME_FLOATING_PLACEMENT = Object.freeze({
|
|
7781
7814
|
kind: "anchor-top-right",
|
|
7782
7815
|
topPx: 8,
|
|
@@ -9217,16 +9250,26 @@ function resolveShellThemeRoles(props) {
|
|
|
9217
9250
|
}
|
|
9218
9251
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
9219
9252
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
9220
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
9253
|
+
return { default: (await import("./PreviewEditorSidebar-Q-fy9GYw.mjs")).PreviewEditorSidebar };
|
|
9221
9254
|
});
|
|
9222
9255
|
const PreviewEditorUI = React.lazy(async () => {
|
|
9223
|
-
return { default: (await import("./PreviewEditorUI-
|
|
9256
|
+
return { default: (await import("./PreviewEditorUI-LYGzgk85.mjs")).PreviewEditorUI };
|
|
9224
9257
|
});
|
|
9225
9258
|
const previewPaneContainmentStyle = {
|
|
9226
9259
|
contain: "layout paint",
|
|
9227
9260
|
isolation: "isolate",
|
|
9228
9261
|
transform: "translateZ(0)"
|
|
9229
9262
|
};
|
|
9263
|
+
function PreviewScrollViewport({ children }) {
|
|
9264
|
+
return /* @__PURE__ */ jsx("div", {
|
|
9265
|
+
className: "relative h-full min-h-0 overflow-hidden bg-muted/30",
|
|
9266
|
+
style: previewPaneContainmentStyle,
|
|
9267
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
9268
|
+
className: "relative flex h-full min-h-0 flex-col overflow-auto",
|
|
9269
|
+
children
|
|
9270
|
+
})
|
|
9271
|
+
});
|
|
9272
|
+
}
|
|
9230
9273
|
function renderShellProviders(input) {
|
|
9231
9274
|
if (!input.themeRoles) return input.content;
|
|
9232
9275
|
const { props, themeRoles } = input;
|
|
@@ -9400,44 +9443,40 @@ function PreviewShellLayout(props) {
|
|
|
9400
9443
|
contentObserverRef.current?.disconnect();
|
|
9401
9444
|
};
|
|
9402
9445
|
}, [viewportMode, viewportWidth]);
|
|
9403
|
-
const leftPane = /* @__PURE__ */ jsx(
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9446
|
+
const leftPane = /* @__PURE__ */ jsx(PreviewScrollViewport, { children: /* @__PURE__ */ jsx(PreviewDocumentContent, {
|
|
9447
|
+
rendering,
|
|
9448
|
+
themeRuntime,
|
|
9449
|
+
viewportMode,
|
|
9450
|
+
viewportWidth,
|
|
9451
|
+
scale: useMemo(() => {
|
|
9452
|
+
const ZOOM_PERCENTAGES = {
|
|
9453
|
+
33: .33,
|
|
9454
|
+
50: .5,
|
|
9455
|
+
75: .75,
|
|
9456
|
+
100: 1
|
|
9457
|
+
};
|
|
9458
|
+
if (viewportMode === "squeeze") return 1;
|
|
9459
|
+
if (zoom === "fit") {
|
|
9460
|
+
if (!containerWidth || containerWidth === 0) return 1;
|
|
9461
|
+
const calculatedScale = containerWidth / (viewportWidth === "full" ? 1440 : viewportWidth);
|
|
9462
|
+
return Math.min(1, calculatedScale);
|
|
9463
|
+
}
|
|
9464
|
+
return ZOOM_PERCENTAGES[zoom];
|
|
9465
|
+
}, [
|
|
9409
9466
|
viewportMode,
|
|
9410
9467
|
viewportWidth,
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
}
|
|
9424
|
-
return ZOOM_PERCENTAGES[zoom];
|
|
9425
|
-
}, [
|
|
9426
|
-
viewportMode,
|
|
9427
|
-
viewportWidth,
|
|
9428
|
-
zoom,
|
|
9429
|
-
containerWidth
|
|
9430
|
-
]),
|
|
9431
|
-
contentHeight,
|
|
9432
|
-
scaleContainerRef,
|
|
9433
|
-
contentRef,
|
|
9434
|
-
headerNode,
|
|
9435
|
-
bannerNode,
|
|
9436
|
-
footerNode,
|
|
9437
|
-
siteChromeRenderModel,
|
|
9438
|
-
children
|
|
9439
|
-
})
|
|
9440
|
-
});
|
|
9468
|
+
zoom,
|
|
9469
|
+
containerWidth
|
|
9470
|
+
]),
|
|
9471
|
+
contentHeight,
|
|
9472
|
+
scaleContainerRef,
|
|
9473
|
+
contentRef,
|
|
9474
|
+
headerNode,
|
|
9475
|
+
bannerNode,
|
|
9476
|
+
footerNode,
|
|
9477
|
+
siteChromeRenderModel,
|
|
9478
|
+
children
|
|
9479
|
+
}) });
|
|
9441
9480
|
const rightPane = /* @__PURE__ */ jsx("div", {
|
|
9442
9481
|
className: `${PREVIEW_CHROME_THEME_CLASS_NAME} flex h-full min-h-0 flex-col overflow-hidden ${surfaceDocument.surfaceClassName ?? ""}`,
|
|
9443
9482
|
...getPreviewChromeSurfaceDataProps(surfaceDocument),
|
|
@@ -11539,6 +11578,7 @@ function eventLoaderParams(params) {
|
|
|
11539
11578
|
scheduleScope: params.scheduleScope || void 0,
|
|
11540
11579
|
entryId: params.entryId || void 0,
|
|
11541
11580
|
seriesId: params.seriesId || void 0,
|
|
11581
|
+
seriesIds: params.seriesIds,
|
|
11542
11582
|
includeOccurrenceId: params.includeOccurrenceId || void 0
|
|
11543
11583
|
});
|
|
11544
11584
|
}
|