@riverbankcms/sdk 0.148.0 → 0.150.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/EventEmbeddedCheckoutStep-D00Kc8Zj.mjs +285 -0
- package/dist/{PreviewEditorSidebar-DvEPG3Z2.mjs → PreviewEditorSidebar-7ZhmmnBB.mjs} +103 -66
- package/dist/{PreviewEditorUI-D6eb6fkx.mjs → PreviewEditorUI-BIJucTRd.mjs} +3 -6
- package/dist/{PreviewQueryProvider-5znTyJuz.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-DJ6utQ_R.mjs → SdkPreviewModeRuntime-tj45gmCX.mjs} +96 -67
- package/dist/{SiteChromeCustomizeContext-CFJYh6vo.mjs → SiteChromeCustomizeContext-BFOt0ss-.mjs} +4804 -4161
- package/dist/_dts/ai/src/contracts/proposals.d.ts +660 -0
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +510 -0
- package/dist/_dts/api/src/billing.d.ts +2 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +33 -48
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/bookingOperations.d.ts +5 -7
- package/dist/_dts/api/src/bookingRecords.d.ts +15 -11
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/clientErrorReporting.d.ts +11 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +0 -2
- package/dist/_dts/api/src/common/cancellation.d.ts +23 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +5 -1
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +2 -10
- package/dist/_dts/api/src/eventManagementContracts.d.ts +4 -7
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +9 -0
- package/dist/_dts/api/src/footerSettings.d.ts +3 -3
- package/dist/_dts/api/src/index.d.ts +4 -4
- package/dist/_dts/api/src/navigation/bookingPortalLink.d.ts +13 -0
- package/dist/_dts/api/src/navigation.d.ts +1 -0
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +2 -2
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +2 -29
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +9 -173
- package/dist/_dts/api/src/request.d.ts +1 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkThemeWire.d.ts +12 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
- package/dist/_dts/api/src/siteOperations.d.ts +6 -2
- package/dist/_dts/api/src/siteSettings.d.ts +2 -0
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -1
- package/dist/_dts/blocks/src/client.d.ts +2 -1
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +38 -10
- package/dist/_dts/blocks/src/portal/types.d.ts +9 -6
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +24 -24
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +84 -160
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +31 -4
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +30 -3
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +10 -1
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +38 -18
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +48 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingNowIso.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/FullyBookedStep.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +15 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentLocation.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentResponse.d.ts +72 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +66 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +13 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +11 -52
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +19 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -42
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +7 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +94 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useGuestRegistrationRecovery.d.ts +30 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +24 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts +6 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +24 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/shared/stripe/browserStripe.d.ts +8 -0
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +54 -0
- package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +58 -13
- package/dist/_dts/commerce/src/purchase/checkoutCopy.d.ts +10 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +16 -21
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +23 -40
- package/dist/_dts/commerce/src/purchase/checkoutPresentation.d.ts +49 -0
- package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +6 -6
- package/dist/_dts/commerce/src/purchase/checkoutStripeFinalizationPlanning.d.ts +5 -1
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +9 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +3 -3
- package/dist/_dts/commerce/src/purchase/membershipOrderItemMetadata.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +9 -4
- package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +13 -1
- package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +5 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +4 -1
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +7 -1
- package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/stripeCheckoutReturnUrl.d.ts +9 -2
- package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +7 -7
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +3 -2
- package/dist/_dts/content-editor/src/controller/editLeaseHandover.d.ts +30 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +6 -1
- package/dist/_dts/content-editor/src/lib/browserStorage.d.ts +5 -0
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +7 -0
- package/dist/_dts/core/src/booking-flexible-balance.d.ts +2 -2
- package/dist/_dts/core/src/booking-instalment-deposit.d.ts +20 -0
- package/dist/_dts/core/src/booking-live-payment-terms.d.ts +72 -0
- package/dist/_dts/core/src/booking-payment-options.d.ts +24 -0
- package/dist/_dts/core/src/booking-payment-schemas.d.ts +522 -0
- package/dist/_dts/core/src/branded.d.ts +3 -0
- package/dist/_dts/core/src/edit-lease.d.ts +5 -0
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/patch/index.d.ts +30 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +326 -36
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +3 -1
- package/dist/_dts/media-editor/src/MediaPickerMiniDialog.d.ts +10 -0
- package/dist/_dts/media-editor/src/index.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +0 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/previewAuthStore.d.ts +7 -0
- package/dist/_dts/preview-next/src/constants.d.ts +4 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +1 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -1
- package/dist/_dts/sdk/src/bookings/types.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -12
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/blocks/opaquePanels.d.ts +147 -0
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +22 -0
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +22 -0
- package/dist/_dts/theme-core/src/cards/roles.d.ts +12 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +198 -0
- package/dist/_dts/theme-core/src/palette/utils/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/palette/utils/scrimContrast.d.ts +22 -0
- package/dist/_dts/theme-core/src/runtime/bridgeColourTokens.d.ts +10 -0
- package/dist/_dts/theme-core/src/schema.d.ts +330 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +0 -51
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +0 -51
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +11 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +7 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +7 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
- package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +12 -6
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +7 -4
- package/dist/_dts/theme-core/src/site-styles/sectionSurfaceBackgrounds.d.ts +65 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +17 -0
- package/dist/_dts/theme-core/src/surfaces/opaqueSurface.d.ts +43 -0
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/palette/useHexDraft.d.ts +7 -0
- package/dist/client/{BookingMailingListNote-CzRt2dF_.mjs → BookingMailingListNote-CYHOufsI.mjs} +33 -124
- package/dist/client/{CheckboxChoice-B33MqoUo.mjs → CheckboxChoice-M-3HycLw.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-mxqwap3f.mjs → DemoBookingPortalAccess-Cvr9O_ca.mjs} +2 -2
- package/dist/client/{EventCombined.client-CDb11igO.mjs → EventCombined.client-m5UZIobP.mjs} +7 -7
- package/dist/client/EventEmbeddedCheckoutStep-DL6zFAkA.mjs +289 -0
- package/dist/client/{EventListing.client-EgYhzKPa.mjs → EventListing.client-DeMfCM04.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-gtmtaA2b.mjs → LeafletStaticMap-CvZ3gOdD.mjs} +1 -1
- package/dist/client/{checkoutUrls-CXhko2Rv.mjs → RichText-BtfNvQV6.mjs} +2 -29
- package/dist/client/{TerminalPanel-DvNUP5ot.mjs → TerminalPanel-CUCNEwlH.mjs} +2 -18
- package/dist/client/{ThemedButton-C7CeUJjW.mjs → ThemedButton-C7WhXuRl.mjs} +2 -2
- package/dist/client/{accordion-kjvt49rA.mjs → accordion-cQm5mjqs.mjs} +1 -1
- package/dist/client/{bookingForm-pbRZordh.mjs → bookingForm-BVPJE5RQ.mjs} +15 -11
- package/dist/client/bookings.mjs +2860 -1222
- package/dist/client/{carousel-f4Zbmicv.mjs → carousel-3vgnY7LC.mjs} +2 -2
- package/dist/client/{carousel.client-A2lG-9od.mjs → carousel.client-CISsdZvg.mjs} +1 -1
- package/dist/client/{cart-DO20An50.mjs → cart-BGK4oOjm.mjs} +3 -3
- package/dist/client/{checkout-Du5amDR_.mjs → checkout-GsBLUNJD.mjs} +3 -3
- package/dist/client/checkoutUrls-ChxwaNtO.mjs +28 -0
- package/dist/client/client.mjs +3324 -2053
- package/dist/client/{colorStyles-j5U9v5JA.mjs → colorStyles-D-32xHZh.mjs} +2 -30
- package/dist/client/{context-eW97E945.mjs → context-D_8s12Fp.mjs} +1 -1
- package/dist/client/{dates-jPCirRea.mjs → dates-DeJQbQ9T.mjs} +2 -2
- package/dist/client/{eventCalendar-C2M-iE4j.mjs → eventCalendar-cmucD4NR.mjs} +10 -10
- package/dist/client/{eventCombined-W6ns3LHg.mjs → eventCombined-ku3E9FTl.mjs} +4 -4
- package/dist/client/{eventDetails-CR-GT0f0.mjs → eventDetails-CyKZ61sF.mjs} +5 -5
- package/dist/client/{eventListing-BK8AfYZz.mjs → eventListing-B7yxGIhX.mjs} +4 -4
- package/dist/client/{eventRegistration-BJSd4KUu.mjs → eventRegistration-BoXfSFgZ.mjs} +1455 -1184
- package/dist/client/{form-BvpfbQaT.mjs → form-CNQOWhJo.mjs} +5 -5
- package/dist/client/{headerSection-I5sUQ8x-.mjs → headerSection-DahaBJGQ.mjs} +3 -3
- package/dist/client/hooks.mjs +283 -193
- package/dist/client/{locationMap-BLvwf9_f.mjs → locationMap-BoDjqYlW.mjs} +4 -4
- package/dist/client/{media-Cl38iOMI.mjs → media-BFY0y2rb.mjs} +2 -1
- package/dist/client/{newsletterForm-DrQ2weE8.mjs → newsletterForm-DtzXDklw.mjs} +4 -4
- package/dist/client/{pricing-BES87mrR.mjs → pricing-DXEh2Lhh.mjs} +1 -1
- package/dist/client/{productDetail-Url9jcc5.mjs → productDetail-D7cPa-00.mjs} +3 -3
- package/dist/client/{productList-DE7ngEZJ.mjs → productList-D1XMap66.mjs} +3 -3
- package/dist/client/{propsDecoder-D1OtGXDV.mjs → propsDecoder-DiIeBopB.mjs} +913 -322
- package/dist/client/rendering/client.mjs +3913 -2260
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3302 -2013
- package/dist/client/result-DRW7JWXz.mjs +30 -0
- package/dist/client/{routeIslandApiConfig-BG9Y-SHg.mjs → routeIslandApiConfig-wzR4lKAY.mjs} +1 -1
- package/dist/client/scrollToBlock-C86BYkyV.mjs +17 -0
- package/dist/client/{shop-CJkuySJ3.mjs → shop-CYT5P-S5.mjs} +13 -14
- package/dist/client/{shop-commerce-store-Bxm75Pg6.mjs → shop-commerce-store-wKhsJQxI.mjs} +1 -1
- package/dist/client/{shop-commerce-4rKj5n9h.mjs → shop-commerce-ypBu_dx4.mjs} +9 -9
- package/dist/client/{shopShared-DpoQDWfz.mjs → shopShared-DFGhYrf2.mjs} +52 -6
- package/dist/client/{useEventFilters-D8HliSqR.mjs → useEventFilters-blSbN5o7.mjs} +8 -8
- package/dist/preview-next/before-render.mjs +15 -22
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/constants.mjs +5 -1
- package/dist/preview-next/index.mjs +5 -1
- package/dist/preview-next/keepAlive.mjs +149 -82
- package/dist/preview-next/middleware.mjs +15 -22
- package/dist/{previewAuthStore-BXXF3hhW.mjs → previewAuthStore-BBmV7UsW.mjs} +49 -29
- package/dist/{sdk-runtime-C2a05WjL.mjs → sdk-runtime-2p8uQk1V.mjs} +2 -2
- package/dist/{separator-CuNhBAhS.mjs → separator-Cvvzk0Oo.mjs} +1 -1
- package/dist/server/components.mjs +4041 -3704
- package/dist/server/config-validation.mjs +345 -255
- package/dist/server/config.mjs +345 -255
- package/dist/server/data.mjs +283 -193
- package/dist/server/index.mjs +20 -27
- package/dist/server/next.mjs +788 -469
- package/dist/server/page-converter.mjs +245 -121
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4018 -3690
- package/dist/server/rendering.mjs +4044 -3707
- package/dist/server/routing.mjs +314 -190
- package/dist/server/server.mjs +290 -218
- package/dist/server/theme-bridge.mjs +1122 -310
- package/dist/server/theme.mjs +126 -116
- package/dist/spinner-CDo6AkDz.mjs +658 -0
- package/dist/styles/index.css +75 -212
- package/package.json +1 -1
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
- package/dist/_dts/billing/src/checkout/platform.d.ts +0 -77
- package/dist/_dts/billing/src/config/env.d.ts +0 -29
- package/dist/_dts/billing/src/stripe/client.d.ts +0 -29
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +0 -63
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventCheckoutHandoffRestore.d.ts +0 -9
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +0 -10
- package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +0 -55
- package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +0 -24
- package/dist/client/urlParams-D71VXFGx.mjs +0 -47
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { MediaPickerMiniRenderProps } from '../../media-react/src/index';
|
|
3
|
+
import { type MediaPickerDialogProps } from './MediaPickerDialog';
|
|
4
|
+
type LibraryDialogKeys = 'open' | 'onOpenChange' | 'assets' | 'loading' | 'error' | 'retryLoad' | 'hasMore' | 'selectAsset' | 'loadMore' | 'enqueueUploads' | 'uploads';
|
|
5
|
+
export type MediaPickerMiniDialogProps = Omit<MediaPickerDialogProps, LibraryDialogKeys> & {
|
|
6
|
+
picker: MediaPickerMiniRenderProps;
|
|
7
|
+
component?: ComponentType<MediaPickerDialogProps>;
|
|
8
|
+
};
|
|
9
|
+
export declare function MediaPickerMiniDialog({ picker, component: DialogComponent, ...props }: MediaPickerMiniDialogProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { MediaEditor } from './MediaEditor';
|
|
2
2
|
export type { MediaEditorProps } from './MediaEditor';
|
|
3
3
|
export { MediaPickerDialog } from './MediaPickerDialog';
|
|
4
|
+
export { MediaPickerMiniDialog } from './MediaPickerMiniDialog';
|
|
5
|
+
export type { MediaPickerMiniDialogProps } from './MediaPickerMiniDialog';
|
|
4
6
|
export type { MediaPickerAssetSelection, MediaPickerDialogProps, MediaPickerPolicy, } from './MediaPickerDialog';
|
|
5
7
|
export { FileAssetPreview, classifyMimeForPreview } from './FileAssetPreview';
|
|
6
8
|
export { CropDialog } from './CropDialog';
|
|
@@ -62,7 +62,6 @@ type PreviewEntryControllerProviderProps = {
|
|
|
62
62
|
*/
|
|
63
63
|
export type PreviewLiveDrafts = Readonly<{
|
|
64
64
|
client: LiveDraftsClient;
|
|
65
|
-
previewToken: string;
|
|
66
65
|
refreshBaselines: () => void;
|
|
67
66
|
}>;
|
|
68
67
|
export declare function PreviewEntryControllerProvider({ children, siteId, pageId, pageNodeType, routeId: providedRouteId, entryData, contentTypeSchema, initialStatus, initialBlocks, blockFieldExtensions, pageMetadata, apiClient, subscribeToLeaseChanges, onLeaseGranted, liveDrafts, }: PreviewEntryControllerProviderProps): React.JSX.Element;
|
|
@@ -33,7 +33,7 @@ type PreviewShellCommonProps = {
|
|
|
33
33
|
subscribeToLeaseChanges?: EditLeaseChangeSubscription;
|
|
34
34
|
onLeaseGranted?: () => void;
|
|
35
35
|
/** Live drafts between tabs; the host supplies a Supabase client dedicated to the preview token. */
|
|
36
|
-
liveDrafts?:
|
|
36
|
+
liveDrafts?: PreviewLiveDrafts | null;
|
|
37
37
|
previewSession: PreviewRuntimeSession | null;
|
|
38
38
|
previewToken: string;
|
|
39
39
|
dashboardBaseUrl?: string | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ApiClient } from "../../../api/src/request";
|
|
1
2
|
import { type PreviewRuntimeSession, type PreviewSessionAuthMode } from "../auth-contract";
|
|
2
3
|
export type PreviewAuthState = "ok" | "expired";
|
|
3
4
|
export type PreviewAuthFailureSource = "keep-alive" | "inline-save" | "publish" | "block-editor" | "metadata" | "draft-action" | "query" | "unknown";
|
|
@@ -22,6 +23,8 @@ export declare function usePreviewAuth(): PreviewAuthSnapshot;
|
|
|
22
23
|
* Returns null if no token is available (falls back to proxy).
|
|
23
24
|
*/
|
|
24
25
|
export declare function usePreviewToken(): string | null;
|
|
26
|
+
export declare function getPreviewAccessToken(): string;
|
|
27
|
+
export declare function setPreviewAccessToken(token: string): void;
|
|
25
28
|
type PreviewAuthInitInput = {
|
|
26
29
|
siteId: string;
|
|
27
30
|
siteSlug: string;
|
|
@@ -38,5 +41,9 @@ export declare function initPreviewAuth(input: PreviewAuthInitInput): void;
|
|
|
38
41
|
export declare function __getPreviewAuthStateForTests(): Readonly<PreviewAuthSnapshot>;
|
|
39
42
|
export declare function __resetPreviewAuthStateForTests(): void;
|
|
40
43
|
export declare function markPreviewAuthExpired(source: PreviewAuthFailureSource): void;
|
|
44
|
+
/** Handle bearer 401s at the request boundary, including calls outside the query cache. */
|
|
45
|
+
export declare function createGuardedPreviewApiClient(baseUrl: string): ApiClient;
|
|
46
|
+
/** Query callbacks receive the same error after the request guard has decided auth state. */
|
|
47
|
+
export declare function wasPreviewApiAuthErrorHandled(error: unknown): boolean;
|
|
41
48
|
export declare function usePreviewAuthFetch(baseFetch: BaseFetch): PreviewAuthFetch;
|
|
42
49
|
export {};
|
|
@@ -3,3 +3,7 @@ export declare const PREVIEW_REFRESH_COOKIE_NAME = "preview_refresh_token";
|
|
|
3
3
|
export declare const PREVIEW_COOKIE_MAX_AGE: number;
|
|
4
4
|
export declare const PREVIEW_CODE_PARAM = "preview_code";
|
|
5
5
|
export declare const PREVIEW_THEME_COOKIE_NAME = "preview_theme_id";
|
|
6
|
+
export declare const PREVIEW_KEEP_ALIVE_INTERVAL_MS: number;
|
|
7
|
+
export declare const PREVIEW_KEEP_ALIVE_JITTER_RATIO = 0.1;
|
|
8
|
+
export declare const PREVIEW_KEEP_ALIVE_MAX_INTERVAL_MS: number;
|
|
9
|
+
export declare const PREVIEW_REFRESH_THRESHOLD_SECONDS: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CookieStoreLike } from './session';
|
|
2
2
|
export type PreviewKeepAliveLogger = {
|
|
3
3
|
debug?: (message: string, meta?: Record<string, unknown>) => void;
|
|
4
|
+
info?: (message: string, meta?: Record<string, unknown>) => void;
|
|
4
5
|
warn?: (message: string, meta?: Record<string, unknown>) => void;
|
|
5
6
|
error?: (message: string, meta?: Record<string, unknown>) => void;
|
|
6
7
|
};
|
|
@@ -35,4 +35,5 @@ export declare const HeadlessBookingPaymentSelectionStep: React.FC<HeadlessBooki
|
|
|
35
35
|
export { BOOKING_FORM_DATA_RESERVED_KEY_VALUES } from '../../../blocks/src/client';
|
|
36
36
|
export { HeadlessBookingAltchaWidget, HeadlessEventRegistrationAltchaWidget, createBookingBlockApiConfig, createEventRegistrationBlockApiConfig, getAppointmentBookingOverrideInput, getEventRegistrationOverrideInput, useHeadlessBookingFlow, useHeadlessEventRegistrationFlow, };
|
|
37
37
|
export type { BookingService, BookingFormConfig } from './types';
|
|
38
|
-
export type { Service, TimeSlot, BookingFormSettings, BookingFormSchema, BookingFormField, BookingFormData, BookingSelectedCollectionOptionKind, BookingSubmissionData, BookingSubmissionResult, BookingFormClientProps, BookingFormClientForm, BookingFormClientService, HeadlessBookingPaymentSelectionStepProps, HeadlessBookingFlow, HeadlessBookingFlowOptions, HeadlessBookingProviderProps, HeadlessEventRegistrationFlow, HeadlessEventRegistrationFlowOptions, HeadlessEventRegistrationProviderProps, EventRegistrationAttendeeModel, EventRegistrationDiscountModel, EventRegistrationEventsModel, EventRegistrationFlowActionResult, EventRegistrationFlowActions, EventRegistrationFlowStatus, EventRegistrationFlowStep, EventRegistrationFlowStepId, EventRegistrationFlowView, EventRegistrationGuestsModel, EventRegistrationLoadState, EventRegistrationOverrideData, EventRegistrationOverrideInput, EventRegistrationOverrideInputResult, EventRegistrationOverridePropsLike, EventRegistrationPaymentModel, EventRegistrationPaymentSelection, EventRegistrationPortalAuthModel, EventRegistrationSpamProtectionModel,
|
|
38
|
+
export type { Service, TimeSlot, BookingFormSettings, BookingFormSchema, BookingFormField, BookingFormData, BookingSelectedCollectionOptionKind, BookingSubmissionData, BookingSubmissionResult, BookingFormClientProps, BookingFormClientForm, BookingFormClientService, HeadlessBookingPaymentSelectionStepProps, HeadlessBookingFlow, HeadlessBookingFlowOptions, HeadlessBookingProviderProps, HeadlessEventRegistrationFlow, HeadlessEventRegistrationFlowOptions, HeadlessEventRegistrationProviderProps, EventRegistrationAttendeeModel, EventRegistrationDiscountModel, EventRegistrationEventsModel, EventRegistrationFlowActionResult, EventRegistrationFlowActions, EventRegistrationFlowStatus, EventRegistrationFlowStep, EventRegistrationFlowStepId, EventRegistrationFlowView, EventRegistrationGuestsModel, EventRegistrationLoadState, EventRegistrationOverrideData, EventRegistrationOverrideInput, EventRegistrationOverrideInputResult, EventRegistrationOverridePropsLike, EventRegistrationPaymentModel, EventRegistrationPaymentSelection, EventRegistrationPortalAuthModel, EventRegistrationSpamProtectionModel, EventRegistrationSubmitResult, EventRegistrationTerminalModel, EventRegistrationTicketsModel, AppointmentBookingOverrideData, AppointmentBookingOverrideInput, AppointmentBookingOverrideInputResult, BookingAvailabilityQuery, BookingAppointmentPackagesModel, BookingAppointmentPackagesUnavailableReason, BookingPaymentOptionViewModel, BookingPaymentSelectionViewModel, BookingFieldValue, BookingFieldView, BookingFlowActionResult, BookingFlowFeedback, BookingFlowStatus, BookingResourceView, BookingResourcesModel, BookingFlowStep, BookingFlowStepId, BookingFlowView, BookingSlotView, BookingSubmitActionResult, BookingSubmitOptions, BookingValidationErrors, DerivedBookingFlowSteps, DeriveBookingFlowStepsInput, UseBookingFormConfigResult, } from './types';
|
|
39
|
+
export { EventRegistrationPayment } from '../../../blocks/src/client';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* responses.
|
|
9
9
|
*/
|
|
10
10
|
import type { BookingFlexibleBalanceConfig, BookingInstalmentPlanConfig } from '../../../core/src/index';
|
|
11
|
-
export type { AppointmentBookingOverrideData, AppointmentBookingOverrideInput, AppointmentBookingOverrideInputResult, BookingAvailabilityQuery, BookingAppointmentPackagesModel, BookingAppointmentPackagesUnavailableReason, BookingPaymentOptionViewModel, BookingPaymentSelectionViewModel, BookingFieldValue, BookingFieldView, BookingFlowActionResult, BookingFlowFeedback, BookingFlowStatus, BookingResourceView, BookingFlowStep, BookingFlowStepId, BookingFlowView, BookingResourcesModel, BookingSlotView, BookingSubmitActionResult, BookingSubmitOptions, BookingValidationErrors, DerivedBookingFlowSteps, DeriveBookingFlowStepsInput, EventRegistrationAttendeeModel, EventRegistrationDiscountModel, EventRegistrationEventsModel, EventRegistrationFlowActionResult, EventRegistrationFlowActions, EventRegistrationFlowStatus, EventRegistrationFlowStep, EventRegistrationFlowStepId, EventRegistrationFlowView, EventRegistrationGuestsModel, EventRegistrationLoadState, EventRegistrationOverrideData, EventRegistrationOverrideInput, EventRegistrationOverrideInputResult, EventRegistrationOverridePropsLike, EventRegistrationPaymentModel, EventRegistrationPaymentSelection, EventRegistrationPortalAuthModel, EventRegistrationSpamProtectionModel,
|
|
11
|
+
export type { AppointmentBookingOverrideData, AppointmentBookingOverrideInput, AppointmentBookingOverrideInputResult, BookingAvailabilityQuery, BookingAppointmentPackagesModel, BookingAppointmentPackagesUnavailableReason, BookingPaymentOptionViewModel, BookingPaymentSelectionViewModel, BookingFieldValue, BookingFieldView, BookingFlowActionResult, BookingFlowFeedback, BookingFlowStatus, BookingResourceView, BookingFlowStep, BookingFlowStepId, BookingFlowView, BookingResourcesModel, BookingSlotView, BookingSubmitActionResult, BookingSubmitOptions, BookingValidationErrors, DerivedBookingFlowSteps, DeriveBookingFlowStepsInput, EventRegistrationAttendeeModel, EventRegistrationDiscountModel, EventRegistrationEventsModel, EventRegistrationFlowActionResult, EventRegistrationFlowActions, EventRegistrationFlowStatus, EventRegistrationFlowStep, EventRegistrationFlowStepId, EventRegistrationFlowView, EventRegistrationGuestsModel, EventRegistrationLoadState, EventRegistrationOverrideData, EventRegistrationOverrideInput, EventRegistrationOverrideInputResult, EventRegistrationOverridePropsLike, EventRegistrationPaymentModel, EventRegistrationPaymentSelection, EventRegistrationPortalAuthModel, EventRegistrationSpamProtectionModel, EventRegistrationSubmitResult, EventRegistrationTerminalModel, EventRegistrationTicketsModel, HeadlessBookingFlow, HeadlessBookingFlowOptions, HeadlessBookingPaymentSelectionStepProps, HeadlessBookingProviderProps, HeadlessEventRegistrationFlow, HeadlessEventRegistrationFlowOptions, HeadlessEventRegistrationProviderProps, } from '../../../blocks/src/client';
|
|
12
12
|
import type { BookingFormData as BlocksBookingFormData, BookingFormField as BlocksBookingFormField, BookingFormClientProps as BlocksBookingFormClientProps, BookingFormConfig as BlocksBookingFormConfig, BookingService as BlocksBookingService } from '../../../blocks/src/client';
|
|
13
13
|
export type { BookingSelectedCollectionOptionKind } from '../../../blocks/src/client';
|
|
14
14
|
export { BOOKING_FORM_DATA_RESERVED_KEY_VALUES } from '../../../blocks/src/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ButtonVariant as SystemButtonVariant, EventScheduleScope as SystemEventScheduleScope, EventSurfacePreset as SystemEventSurfacePreset, RichTextDoc as SystemRichTextDoc } from '../../contracts/system-block-content';
|
|
2
2
|
import type { PublicTeamMemberSummary } from '../../../../api/src/index';
|
|
3
|
-
import type {
|
|
3
|
+
import type { BookingPaymentCollectionOption, LocationCoordinates, PublicEventPriceDisplay, PublicEventPricing, PublicEventPricingOption, PublicEventPricingOptionAvailability, PublicEventPricingType } from '../../../../core/src/index';
|
|
4
4
|
import type { AccordionIslandProps as BlocksAccordionIslandProps, BookingFormConfig as BlocksBookingFormConfig, BookingFormInteractiveIslandProps as BlocksBookingFormIslandProps, BookingFormService as BlocksBookingFormService, CarouselIslandProps as BlocksCarouselIslandProps, CartDisplay as BlocksCartDisplay, CartInteractiveIslandProps as BlocksCartIslandProps, CartLineDisplay as BlocksCartLineDisplay, CheckoutDisplay as BlocksCheckoutDisplay, CheckoutInteractiveIslandProps as BlocksCheckoutIslandProps, EventCalendarInteractiveIslandProps as BlocksEventCalendarIslandProps, EventCombinedInteractiveIslandProps as BlocksEventCombinedIslandProps, EventDetailsIslandProps as BlocksEventDetailsIslandProps, EventDetailsOccurrenceContext as BlocksEventDetailsOccurrenceContext, LocationMapIslandProps as BlocksLocationMapIslandProps, EventRegistrationInteractiveIslandProps as BlocksEventRegistrationIslandProps, EventListingDisplay as BlocksEventListingDisplay, EventListingHydration as BlocksEventListingHydration, EventListingInteractiveIslandProps as BlocksEventListingIslandProps, PublicEvent as BlocksPublicEvent, FormInteractiveIslandProps as BlocksFormIslandProps, HeaderSectionIslandProps as BlocksHeaderSectionIslandProps, MembershipCardDisplay as BlocksMembershipCardDisplay, NewsletterFormInteractiveIslandProps as BlocksNewsletterFormIslandProps, PassCardDisplay as BlocksPassCardDisplay, PassesMembershipsDisplay as BlocksPassesMembershipsDisplay, ProductCardDisplay as BlocksProductCardDisplay, ProductDetailDisplay as BlocksProductDetailDisplay, ProductDetailInteractiveIslandProps as BlocksProductDetailIslandProps, ProductListDisplay as BlocksProductListDisplay, ProductListInteractiveIslandProps as BlocksProductListIslandProps, ProductVariantOptionDisplay as BlocksProductVariantOptionDisplay, ShopInteractiveIslandProps as BlocksShopIslandProps } from '../../../../blocks/src/contracts/index';
|
|
5
5
|
export type ResponsiveSlidesToShow = {
|
|
6
6
|
mobile?: number | string;
|
|
@@ -72,17 +72,7 @@ export type PublicEventAttendanceModeAvailability = {
|
|
|
72
72
|
waitlistEnabled: boolean;
|
|
73
73
|
};
|
|
74
74
|
export type { PublicTeamMemberSummary };
|
|
75
|
-
export type BookingPaymentCollectionOption
|
|
76
|
-
kind: 'upfront';
|
|
77
|
-
} | {
|
|
78
|
-
kind: 'deferred_manual';
|
|
79
|
-
} | {
|
|
80
|
-
kind: 'instalment_plan';
|
|
81
|
-
plan: BookingInstalmentPlanConfig;
|
|
82
|
-
} | {
|
|
83
|
-
kind: 'flexible_balance';
|
|
84
|
-
config: BookingFlexibleBalanceConfig;
|
|
85
|
-
};
|
|
75
|
+
export type { BookingPaymentCollectionOption };
|
|
86
76
|
export type BookingPaymentTerms = {
|
|
87
77
|
allowedOptions: BookingPaymentCollectionOption[];
|
|
88
78
|
};
|
|
@@ -18,4 +18,5 @@
|
|
|
18
18
|
*/
|
|
19
19
|
export type { BlockVarGeneratorTheme, BlockVarGeneratorContext, BlockVarGenerator, BlockVarRegistry, BlockCustomVars, } from './types';
|
|
20
20
|
export { registerBlockVarGenerator, getBlockVarGenerator, generateAllBlockVarsCss, generateBlockCustomVarsCss, } from './registry';
|
|
21
|
+
export { opaquePanels, generateOpaquePanelCss, type OpaquePanel } from './opaquePanels';
|
|
21
22
|
export * from './vars';
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { type OpaqueSurfaceContext } from '../surfaces/opaqueSurface';
|
|
2
|
+
/**
|
|
3
|
+
* Every element in `blocks-static/` CSS that paints its own background behind
|
|
4
|
+
* text or buttons, with the palette token it paints.
|
|
5
|
+
*
|
|
6
|
+
* The CSS owns layout and the paint itself; this registry owns what the paint
|
|
7
|
+
* implies. `generateOpaquePanelCss` publishes each panel's foreground contract
|
|
8
|
+
* and button context from the theme, exactly as card roles and section
|
|
9
|
+
* backgrounds do, so a white panel inside a dark band never inherits the band's
|
|
10
|
+
* light text or its band-resolved buttons. `opaquePanels.test.ts` scans the
|
|
11
|
+
* static CSS and fails when a rule paints a surface token without an entry
|
|
12
|
+
* here, or when a registered rule declares the contract by hand.
|
|
13
|
+
*
|
|
14
|
+
* Selectors are written without the theme-scope prefix; the generator adds it.
|
|
15
|
+
* A `transparent` entry is a treatment that turns a surface-owning class into
|
|
16
|
+
* a boxless row, so it hands the surrounding surface's contract back.
|
|
17
|
+
*/
|
|
18
|
+
export declare const opaquePanels: readonly [{
|
|
19
|
+
readonly selector: ":where([data-block=\"event-registration\"], [data-block=\"appointment-booking\"]) .rb-reg-surface";
|
|
20
|
+
readonly paint: {
|
|
21
|
+
readonly kind: "solid";
|
|
22
|
+
readonly token: "surface";
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
readonly selector: ":where([data-block='event-registration']) .er-booking-teaser";
|
|
26
|
+
readonly paint: {
|
|
27
|
+
readonly kind: "solid";
|
|
28
|
+
readonly token: "surface";
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
readonly selector: ":where([data-block='event-registration']) .er-booking-bar";
|
|
32
|
+
readonly paint: {
|
|
33
|
+
readonly kind: "solid";
|
|
34
|
+
readonly token: "background";
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
readonly selector: ":where([data-block='event-registration']) .er-modal";
|
|
38
|
+
readonly paint: {
|
|
39
|
+
readonly kind: "solid";
|
|
40
|
+
readonly token: "background";
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
readonly selector: ":where([data-block='event-registration']) .er-booking-overlay__panel";
|
|
44
|
+
readonly paint: {
|
|
45
|
+
readonly kind: "solid";
|
|
46
|
+
readonly token: "background";
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
readonly selector: ":where([data-block='event-calendar']) .event-agenda-card";
|
|
50
|
+
readonly paint: {
|
|
51
|
+
readonly kind: "solid";
|
|
52
|
+
readonly token: "surface";
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
readonly selector: ":where([data-block='event-calendar']) .event-timetable-event";
|
|
56
|
+
readonly paint: {
|
|
57
|
+
readonly kind: "solid";
|
|
58
|
+
readonly token: "surface";
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
readonly selector: ":where([data-block='event-calendar']) .event-week-board";
|
|
62
|
+
readonly paint: {
|
|
63
|
+
readonly kind: "solid";
|
|
64
|
+
readonly token: "surface";
|
|
65
|
+
};
|
|
66
|
+
}, {
|
|
67
|
+
readonly selector: ":where([data-block='event-calendar']) .event-week-board-top";
|
|
68
|
+
readonly paint: {
|
|
69
|
+
readonly kind: "solid";
|
|
70
|
+
readonly token: "surfaceAlt";
|
|
71
|
+
};
|
|
72
|
+
}, {
|
|
73
|
+
readonly selector: ":where([data-block='event-calendar']) .event-week-board-foot";
|
|
74
|
+
readonly paint: {
|
|
75
|
+
readonly kind: "solid";
|
|
76
|
+
readonly token: "surfaceAlt";
|
|
77
|
+
};
|
|
78
|
+
}, {
|
|
79
|
+
readonly selector: ":where([data-block='event-calendar']) .ec-modal";
|
|
80
|
+
readonly paint: {
|
|
81
|
+
readonly kind: "solid";
|
|
82
|
+
readonly token: "surface";
|
|
83
|
+
};
|
|
84
|
+
}, {
|
|
85
|
+
readonly selector: ".event-listing-compact-container";
|
|
86
|
+
readonly paint: {
|
|
87
|
+
readonly kind: "solid";
|
|
88
|
+
readonly token: "surface";
|
|
89
|
+
};
|
|
90
|
+
}, {
|
|
91
|
+
readonly selector: ".shop__card";
|
|
92
|
+
readonly paint: {
|
|
93
|
+
readonly kind: "solid";
|
|
94
|
+
readonly token: "surface";
|
|
95
|
+
};
|
|
96
|
+
}, {
|
|
97
|
+
readonly selector: ".shop--register .shop__card";
|
|
98
|
+
readonly paint: {
|
|
99
|
+
readonly kind: "transparent";
|
|
100
|
+
};
|
|
101
|
+
}, {
|
|
102
|
+
readonly selector: ":where([data-block=\"shop\"]) .shop__return";
|
|
103
|
+
readonly paint: {
|
|
104
|
+
readonly kind: "solid";
|
|
105
|
+
readonly token: "surface";
|
|
106
|
+
};
|
|
107
|
+
}, {
|
|
108
|
+
readonly selector: "[data-block=\"feature-cards\"][data-block-composition=\"asymmetric-emphasis\"] .rb-feature-card:nth-child(even)";
|
|
109
|
+
readonly paint: {
|
|
110
|
+
readonly kind: "solid";
|
|
111
|
+
readonly token: "secondary";
|
|
112
|
+
};
|
|
113
|
+
}, {
|
|
114
|
+
readonly selector: ".rb-feature-cards-grid--editorial-diptych .rb-feature-card[data-surface-role=\"panel\"]";
|
|
115
|
+
readonly paint: {
|
|
116
|
+
readonly kind: "solid";
|
|
117
|
+
readonly token: "primary";
|
|
118
|
+
};
|
|
119
|
+
}, {
|
|
120
|
+
readonly selector: ":is(.rb-event-list-treatment-ruled-register, .rb-event-list-treatment-editorial-register, .rb-event-list-treatment-dense-index) .event-card.event-card";
|
|
121
|
+
readonly paint: {
|
|
122
|
+
readonly kind: "transparent";
|
|
123
|
+
};
|
|
124
|
+
}, {
|
|
125
|
+
readonly selector: ".feedback-callout";
|
|
126
|
+
readonly paint: {
|
|
127
|
+
readonly kind: "solid";
|
|
128
|
+
readonly token: "surface";
|
|
129
|
+
};
|
|
130
|
+
}, {
|
|
131
|
+
readonly selector: "[data-block=\"gifting\"] .gifting-feedback";
|
|
132
|
+
readonly paint: {
|
|
133
|
+
readonly kind: "solid";
|
|
134
|
+
readonly token: "surface";
|
|
135
|
+
};
|
|
136
|
+
}];
|
|
137
|
+
export type OpaquePanel = (typeof opaquePanels)[number];
|
|
138
|
+
/**
|
|
139
|
+
* Publishes every registered panel's surface contract. Emitted after the card
|
|
140
|
+
* CSS in both the theme runtime and the SDK theme bridge, so a composition
|
|
141
|
+
* that recolours a card role (the feature-card diptych panel) or a treatment
|
|
142
|
+
* that empties one (the event registers) wins over the role's own contract.
|
|
143
|
+
*/
|
|
144
|
+
export declare function generateOpaquePanelCss(input: Readonly<{
|
|
145
|
+
themeId: string;
|
|
146
|
+
surface: OpaqueSurfaceContext;
|
|
147
|
+
}>): string;
|
|
@@ -18,6 +18,17 @@ export declare const boxBackgroundSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
18
18
|
supportingColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
type: z.ZodLiteral<"color">;
|
|
20
20
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
mediaScrim: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<"none">;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<"color">;
|
|
25
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
type: z.ZodLiteral<"gradient">;
|
|
29
|
+
gradient: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
}, z.core.$strip>], "type">>>>;
|
|
21
32
|
}, z.core.$strip>, z.ZodObject<{
|
|
22
33
|
contentOwner: z.ZodOptional<z.ZodLiteral<"page-design-editor">>;
|
|
23
34
|
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -27,6 +38,17 @@ export declare const boxBackgroundSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
27
38
|
type: z.ZodLiteral<"gradient">;
|
|
28
39
|
gradient: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
40
|
gradientPresetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
mediaScrim: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<"none">;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
type: z.ZodLiteral<"color">;
|
|
45
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<"gradient">;
|
|
49
|
+
gradient: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
|
+
}, z.core.$strip>], "type">>>>;
|
|
30
52
|
}, z.core.$strip>, z.ZodObject<{
|
|
31
53
|
contentOwner: z.ZodOptional<z.ZodLiteral<"page-design-editor">>;
|
|
32
54
|
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -62,6 +62,28 @@ export type ContextualButtonResolution = Readonly<{
|
|
|
62
62
|
* Images, gradients, alpha/composite layers and arbitrary CSS remain unknown.
|
|
63
63
|
*/
|
|
64
64
|
export declare function deriveButtonSurfaceContext(input: ButtonSurfaceInput, palette: Readonly<Record<string, string>>, fallbackToken?: string): ButtonSurfaceContext;
|
|
65
|
+
/**
|
|
66
|
+
* The complete button context a surface publishes: `--rb-action-*` variables
|
|
67
|
+
* for every role, resolved against the surface when its colour is provable,
|
|
68
|
+
* and an explicit reset when it is not (image, gradient, composited), so a
|
|
69
|
+
* nested surface never inherits a context resolved for an outer band.
|
|
70
|
+
* A surface with no background of its own publishes nothing and inherits.
|
|
71
|
+
*
|
|
72
|
+
* Sections (through the blocks background transforms), card roles and opaque
|
|
73
|
+
* block panels all publish through this one function.
|
|
74
|
+
*/
|
|
75
|
+
export declare function surfaceButtonContextStyles(input: Readonly<{
|
|
76
|
+
surface: ButtonSurfaceInput;
|
|
77
|
+
palette: ButtonColourPalette;
|
|
78
|
+
buttonSystem: ButtonSystem | undefined;
|
|
79
|
+
fallbackToken?: string;
|
|
80
|
+
}>): Readonly<Record<string, string>>;
|
|
81
|
+
/** Every role's contextual styles against one proven solid surface. */
|
|
82
|
+
export declare function knownSurfaceButtonContextStyles(input: Readonly<{
|
|
83
|
+
surface: KnownButtonSurface;
|
|
84
|
+
palette: ButtonColourPalette;
|
|
85
|
+
buttonSystem: ButtonSystem;
|
|
86
|
+
}>): Readonly<Record<string, string>>;
|
|
65
87
|
export declare function resolveContextualButtonRole(input: Readonly<{
|
|
66
88
|
role: VariantRole;
|
|
67
89
|
buttonSystem: ButtonSystem;
|
|
@@ -20,6 +20,18 @@ export type ResolvedCardSurface = {
|
|
|
20
20
|
variant: CardVariant;
|
|
21
21
|
source: CardSurfaceSource;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Whether a card system gives `role` a surface of its own, rather than one
|
|
25
|
+
* borrowed through the fallback chain below.
|
|
26
|
+
*
|
|
27
|
+
* `none` asks for no surface and `default` is every card system's everyday
|
|
28
|
+
* card (the generated baseline stands in for it by design), so both always
|
|
29
|
+
* hold. `alternative` and `open` hold only when the site style declares an
|
|
30
|
+
* enabled variant for them: otherwise `alternative` quietly renders the
|
|
31
|
+
* default card and `open` the generated baseline, and a Look asking for either
|
|
32
|
+
* would look like some other Look. Look availability is derived from this.
|
|
33
|
+
*/
|
|
34
|
+
export declare function cardSystemDefinesRole(cardSystem: CardSystem | null, role: CardRole): boolean;
|
|
23
35
|
/**
|
|
24
36
|
* Resolve a card role against a site style's card system.
|
|
25
37
|
*
|