@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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MailingListAuthoringContext } from '../../../../api/src/index';
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* The read-only "what every signup on this site shares" card. Editors only
|
|
5
|
+
* choose targeting; fields, confirmation and copy are set once by an
|
|
6
|
+
* administrator, so this tells them what they are working inside of.
|
|
7
|
+
*/
|
|
8
|
+
export declare function MailingListGlobalSettingsSummary({ context }: Readonly<{
|
|
9
|
+
context: MailingListAuthoringContext;
|
|
10
|
+
}>): ReactElement | null;
|
package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListTargetingField.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { FieldWidgetProps, GroupFieldConfig } from '../../../../block-form/src/index';
|
|
2
2
|
import { type MailingListPlacementTargeting, type MailingListRuntimeContext } from '../../../../core/src/index';
|
|
3
|
-
export
|
|
4
|
-
export declare function
|
|
3
|
+
export { MailingListGlobalSettingsSummary } from './MailingListGlobalSettingsSummary';
|
|
4
|
+
export declare function MailingListTargetingField({ path, backend, config, }: FieldWidgetProps<MailingListPlacementTargeting, GroupFieldConfig>): import("react").JSX.Element;
|
|
5
|
+
export declare function MailingListTargetingControl({ context, targeting, onChange, name, }: Readonly<{
|
|
5
6
|
context: Extract<MailingListRuntimeContext, {
|
|
6
7
|
tag: 'configured';
|
|
7
8
|
}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { MailingListAuthoringContext } from '../../../../api/src/index';
|
|
3
|
+
import type { SiteId } from '../../../../core/src/index';
|
|
4
|
+
export type MailingListAuthoringContextLoader = (siteId: SiteId) => Promise<MailingListAuthoringContext>;
|
|
4
5
|
type Value = Readonly<{
|
|
5
6
|
siteId: SiteId;
|
|
6
7
|
load: MailingListAuthoringContextLoader;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { MailingListAuthoringContext } from '../../../../api/src/index';
|
|
1
2
|
import type { ApiClient } from '../../../../api/src/request';
|
|
2
|
-
import type {
|
|
3
|
+
import type { SiteId } from '../../../../core/src/index';
|
|
3
4
|
export declare function loadMailingListAuthoringContext(input: Readonly<{
|
|
4
5
|
apiClient: ApiClient;
|
|
5
6
|
siteId: SiteId;
|
|
6
|
-
}>): Promise<
|
|
7
|
+
}>): Promise<MailingListAuthoringContext>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type MailingListPlacementTargeting, type MailingListRuntimeContext } from '../../../../core/src/index';
|
|
2
|
+
type ConfiguredContext = Extract<MailingListRuntimeContext, {
|
|
3
|
+
tag: 'configured';
|
|
4
|
+
}>;
|
|
5
|
+
type CustomTargeting = Exclude<MailingListPlacementTargeting, {
|
|
6
|
+
mode: 'default';
|
|
7
|
+
}>;
|
|
8
|
+
/** The name of the site's default topic/list/audience, or null when it no longer exists. */
|
|
9
|
+
export declare function defaultItemName(context: ConfiguredContext): string | null;
|
|
10
|
+
/** What the editor is choosing between, in the provider's own words. */
|
|
11
|
+
export declare function choiceNoun(context: ConfiguredContext, form?: 'singular' | 'plural'): string;
|
|
12
|
+
export declare function providerDisplayName(context: ConfiguredContext): string;
|
|
13
|
+
export declare function providerDefaultIsAvailable(context: ConfiguredContext): boolean;
|
|
14
|
+
export declare function createInitialCustom(context: ConfiguredContext): CustomTargeting;
|
|
15
|
+
export declare function changeSelectionMode(context: ConfiguredContext, targeting: CustomTargeting, mode: 'fixed' | 'visitor_choice'): CustomTargeting;
|
|
16
|
+
export declare function canOfferVisitorChoice(context: ConfiguredContext, targeting: CustomTargeting): boolean;
|
|
17
|
+
export declare function toggle(values: readonly string[], id: string): string[];
|
|
18
|
+
export declare function toggleRequired(values: readonly string[], id: string): string[];
|
|
19
|
+
export {};
|
|
@@ -12,6 +12,12 @@ export type SiteOptionLoadItems = (args: SiteOptionLoadItemsArgs) => Promise<Sit
|
|
|
12
12
|
export type SiteOptionLoadErrorMapper = (error: unknown, args: SiteOptionLoadItemsArgs) => unknown;
|
|
13
13
|
export type SiteOptionManageLinkRenderers = Partial<Readonly<Record<SiteOptionSource, SiteOptionWidgetAdapter['renderManageLink']>>>;
|
|
14
14
|
export declare const siteOptionWidgetLabels: {
|
|
15
|
+
readonly eventSeries: {
|
|
16
|
+
readonly loading: "Loading events...";
|
|
17
|
+
readonly select: "Choose events";
|
|
18
|
+
readonly empty: "No events available. Create an event in Bookings first.";
|
|
19
|
+
readonly emptySelection: "Choose at least one event to show in this block.";
|
|
20
|
+
};
|
|
15
21
|
readonly eventCategories: {
|
|
16
22
|
readonly loading: "Loading categories...";
|
|
17
23
|
readonly select: "Select categories";
|
|
@@ -32,14 +38,34 @@ export declare const siteOptionWidgetLabels: {
|
|
|
32
38
|
};
|
|
33
39
|
};
|
|
34
40
|
export declare const siteOptionLoadFailureMessages: {
|
|
41
|
+
readonly eventSeries: "We couldn't load your events. Please try again.";
|
|
35
42
|
readonly eventCategories: "Failed to load event categories";
|
|
36
43
|
readonly venues: "Failed to load venues";
|
|
37
44
|
readonly staffMembers: "Failed to load staff members";
|
|
38
45
|
};
|
|
39
46
|
export declare function mapEventCategoriesToSiteOptionItems(payload: ListEventCategoriesResponse): SiteOptionWidgetItem[];
|
|
47
|
+
export declare function mapEventsToSiteOptionItems(events: readonly Readonly<{
|
|
48
|
+
title: string;
|
|
49
|
+
slug: string;
|
|
50
|
+
schedules: {
|
|
51
|
+
kind: 'ordinary';
|
|
52
|
+
schedule: {
|
|
53
|
+
id: string;
|
|
54
|
+
};
|
|
55
|
+
} | {
|
|
56
|
+
kind: 'wholeSeries';
|
|
57
|
+
runs: readonly {
|
|
58
|
+
id: string;
|
|
59
|
+
title: string;
|
|
60
|
+
slug: string;
|
|
61
|
+
status?: string;
|
|
62
|
+
visibility?: string;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
}>[]): SiteOptionWidgetItem[];
|
|
40
66
|
export declare function mapVenuesToSiteOptionItems(payload: ListVenuesResponse): SiteOptionWidgetItem[];
|
|
41
67
|
export declare function mapStaffMembersToSiteOptionItems(payload: ListAppointmentResourcesResponse): SiteOptionWidgetItem[];
|
|
42
|
-
export declare function loadSiteOptionItemsFromApi({ apiClient, siteId, source
|
|
68
|
+
export declare function loadSiteOptionItemsFromApi({ apiClient, siteId, source }: SiteOptionLoadItemsArgs & Readonly<{
|
|
43
69
|
apiClient: ApiClient;
|
|
44
70
|
}>): Promise<SiteOptionWidgetItem[]>;
|
|
45
71
|
export declare function createSiteOptionApiLoader(apiClient: ApiClient): SiteOptionLoadItems;
|
|
@@ -222,7 +222,6 @@ export type SitePrivacyPolicyDocument = {
|
|
|
222
222
|
sections: SitePrivacyPolicySection[];
|
|
223
223
|
};
|
|
224
224
|
export type SiteLegalJurisdiction = 'UK' | 'US' | 'EU' | 'CA' | 'AU' | 'OTHER';
|
|
225
|
-
/** Mirrors `SiteLegalIdentitySource` in `@riverbankcms/api`. */
|
|
226
225
|
export type SiteLegalIdentitySource = 'public' | 'custom';
|
|
227
226
|
export type SiteLegalProfilePayload = {
|
|
228
227
|
legalEntityName: string | null;
|
|
@@ -232,7 +231,6 @@ export type SiteLegalProfilePayload = {
|
|
|
232
231
|
privacyContactEmailSource: SiteLegalIdentitySource;
|
|
233
232
|
privacyPolicyPublished: boolean;
|
|
234
233
|
};
|
|
235
|
-
/** Mirrors `SiteRuntimeBusinessDetails` in `@riverbankcms/api`. */
|
|
236
234
|
export type SiteRuntimeBusinessDetails = {
|
|
237
235
|
tagline: string | null;
|
|
238
236
|
contact: {
|
|
@@ -288,10 +286,9 @@ export type SiteRouteRecord = {
|
|
|
288
286
|
publishedAt?: string | null;
|
|
289
287
|
};
|
|
290
288
|
export type SiteBookingOfferingPresetSummary = ApiSiteBookingOfferingPresetSummary;
|
|
291
|
-
|
|
292
|
-
type SiteSelectionResponse = Pick<ApiSiteBySlugResponse, 'theme' | 'themeId' | Extract<keyof ApiSiteBySlugResponse, `selection${string}`>>;
|
|
289
|
+
type SiteSelectionResponse = Pick<ApiSiteBySlugResponse, 'theme' | 'hostedBookingAppearance' | 'themeId' | 'bookingAttribution' | Extract<keyof ApiSiteBySlugResponse, `selection${string}`>>;
|
|
293
290
|
export type SiteResponse = SiteSelectionResponse & {
|
|
294
|
-
site: {
|
|
291
|
+
site: ApiSiteBySlugResponse['site'] & {
|
|
295
292
|
id: string;
|
|
296
293
|
title: string;
|
|
297
294
|
slug: string;
|
|
@@ -356,6 +353,7 @@ export type SdkRuntimePage = {
|
|
|
356
353
|
canonicalUrl?: string | null;
|
|
357
354
|
blocks: Array<{
|
|
358
355
|
id: string;
|
|
356
|
+
contentVersionId: string | null;
|
|
359
357
|
kind: string;
|
|
360
358
|
purpose?: string;
|
|
361
359
|
content: Record<string, unknown>;
|
|
@@ -374,37 +372,34 @@ export type SdkTemplate = {
|
|
|
374
372
|
bindings: Record<string, unknown> | null;
|
|
375
373
|
}>;
|
|
376
374
|
};
|
|
375
|
+
type SdkSlotBlockIdentity = {
|
|
376
|
+
id: string;
|
|
377
|
+
blockId?: string;
|
|
378
|
+
contentVersionId: string;
|
|
379
|
+
kind: string;
|
|
380
|
+
purpose: string;
|
|
381
|
+
orderIndex?: number | null;
|
|
382
|
+
admission?: SdkBlockContentAdmission;
|
|
383
|
+
};
|
|
377
384
|
export type SdkEntrySlotContent = {
|
|
378
385
|
entrySlotId: string;
|
|
379
386
|
slotKey: string;
|
|
380
|
-
blocks: Array<{
|
|
381
|
-
id: string;
|
|
382
|
-
blockId?: string;
|
|
383
|
-
kind: string;
|
|
384
|
-
purpose: string;
|
|
385
|
-
orderIndex?: number | null;
|
|
387
|
+
blocks: Array<SdkSlotBlockIdentity & {
|
|
386
388
|
content: Record<string, unknown> | null;
|
|
387
|
-
admission?: SdkBlockContentAdmission;
|
|
388
389
|
}>;
|
|
389
390
|
};
|
|
390
391
|
export type SdkSurfaceSlotContent = {
|
|
391
392
|
surfaceSlotId: string;
|
|
392
393
|
pageSurfaceId: string;
|
|
393
394
|
slotKey: string;
|
|
394
|
-
blocks: Array<{
|
|
395
|
-
id: string;
|
|
396
|
-
blockId?: string;
|
|
395
|
+
blocks: Array<SdkSlotBlockIdentity & {
|
|
397
396
|
surfaceSlotId: string;
|
|
398
397
|
identifier?: string | null;
|
|
399
|
-
kind: string;
|
|
400
|
-
purpose: string;
|
|
401
|
-
orderIndex?: number | null;
|
|
402
398
|
content: Record<string, unknown>;
|
|
403
399
|
draftContent?: unknown;
|
|
404
400
|
publishedContent?: unknown;
|
|
405
401
|
draftContentId?: string | null;
|
|
406
402
|
publishedContentId?: string | null;
|
|
407
|
-
admission?: SdkBlockContentAdmission;
|
|
408
403
|
}>;
|
|
409
404
|
};
|
|
410
405
|
export type SdkRuntimePageSurfaceSubject = ApiSdkRuntimePageSurfaceSubject;
|
|
@@ -555,7 +550,6 @@ export type PublicFormResponse = {
|
|
|
555
550
|
export type PublicFormsResponse = {
|
|
556
551
|
forms: FormRecord[];
|
|
557
552
|
};
|
|
558
|
-
/** Visitor-facing appointment service, shared with the API redaction boundary. */
|
|
559
553
|
export type PublicBookingService = ApiPublicBookingService;
|
|
560
554
|
export type PublicBookingServicesResponse = {
|
|
561
555
|
services: Array<Omit<PublicBookingService, 'description'> & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { BlockLoaderFailures } from '../../../blocks/src/system/data/index';
|
|
2
3
|
import type { RenderablePageOutline as BlocksRenderablePageOutline } from '../../../blocks/src/index';
|
|
3
4
|
import type { EntrySubrouteContextData, MediaAssetIndexItem, OccurrenceContextData, PageOutline, PageRuntimeBoundary, ResolveImageUrlContextInput, RouteMap, Theme, ThemeTokens } from '../contracts';
|
|
4
5
|
import type { SdkCustomBlock } from '../config/types';
|
|
@@ -23,6 +24,7 @@ export type PageRendererDataContext = {
|
|
|
23
24
|
/** Canonical request pathname used by blocks when resolving same-site destinations. */
|
|
24
25
|
pathname?: string;
|
|
25
26
|
resolvedData?: Record<string, Record<string, unknown>>;
|
|
27
|
+
loaderFailures?: BlockLoaderFailures;
|
|
26
28
|
bookingOfferingPresets?: readonly SiteBookingOfferingPresetSummary[];
|
|
27
29
|
mailingList?: import('../../../core/src/index').MailingListRuntimeContext;
|
|
28
30
|
bookingTimeZone?: string;
|
|
@@ -60,6 +60,8 @@ type PageCommonProps = {
|
|
|
60
60
|
* Used to pass occurrence context and content entry data to blocks.
|
|
61
61
|
*/
|
|
62
62
|
dataContext?: {
|
|
63
|
+
/** Mailing-list runtime projected for the placements on this page. */
|
|
64
|
+
mailingList?: import('../../../../core/src/index').MailingListRuntimeContext;
|
|
63
65
|
/** Occurrence context for event pages (from URL like /events/yoga/2025-01-15) */
|
|
64
66
|
occurrenceContext?: OccurrenceContextData | null;
|
|
65
67
|
/** Event-occurrence subroute context. */
|
|
@@ -38,6 +38,9 @@ export type PageRecordForPreview = Readonly<{
|
|
|
38
38
|
}>;
|
|
39
39
|
export declare function buildSiteRenderSupport(site: SiteResponse, mediaAssets: readonly MediaAssetIndexItem[] | undefined): SiteRenderSupport;
|
|
40
40
|
export declare function collectMediaAssetSidecar(mediaAssets: readonly MediaAssetIndexItem[] | null | undefined): readonly MediaAssetIndexItem[] | undefined;
|
|
41
|
+
type TransportedPageBlock = PageOutline['blocks'][number] & Readonly<{
|
|
42
|
+
contentVersionId?: string | null;
|
|
43
|
+
}>;
|
|
41
44
|
export declare function readInvalidBlockAdmission(value: unknown): Readonly<{
|
|
42
45
|
kind: 'invalid';
|
|
43
46
|
error: PageBlockRenderAdmissionError;
|
|
@@ -48,7 +51,9 @@ export declare function buildPageOutline(input: Readonly<{
|
|
|
48
51
|
fallbackPath: string;
|
|
49
52
|
purpose: string;
|
|
50
53
|
blocks: readonly unknown[];
|
|
51
|
-
}>): PageOutline
|
|
54
|
+
}>): Omit<PageOutline, 'blocks'> & Readonly<{
|
|
55
|
+
blocks: TransportedPageBlock[];
|
|
56
|
+
}>;
|
|
52
57
|
export declare function buildRenderablePageOutline(input: Readonly<{
|
|
53
58
|
name: string;
|
|
54
59
|
path: string | null | undefined;
|
|
@@ -61,3 +66,4 @@ export declare function projectRenderablePageOutline(page: RenderablePageOutline
|
|
|
61
66
|
export declare function resolveSdkBlockManifest(blockKind: string, customBlocks: readonly SdkCustomBlock[] | undefined): BlockManifest | FieldDefinition[] | null;
|
|
62
67
|
export declare function invalidRenderableBlock(block: Omit<RenderablePageBlock, 'admission'>, error: PageBlockRenderAdmissionError): RenderablePageBlock;
|
|
63
68
|
export declare function sanitizeSdkRuntimeBlockContent(blockKind: string, content: Record<string, unknown>): Record<string, unknown>;
|
|
69
|
+
export {};
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { Theme, Typography } from "./schema";
|
|
3
3
|
import type { SiteFont } from "./fonts/types";
|
|
4
|
+
/**
|
|
5
|
+
* Collect unique font families from typography config
|
|
6
|
+
*/
|
|
7
|
+
type FontLoadingStyle = Readonly<{
|
|
8
|
+
family: string;
|
|
9
|
+
weight?: Typography['body']['weight'] | number;
|
|
10
|
+
}>;
|
|
11
|
+
type FontLoadingWeight = Readonly<{
|
|
12
|
+
weight?: Typography['body']['weight'] | number | null;
|
|
13
|
+
}>;
|
|
14
|
+
type FontLoadingTypography = Readonly<{
|
|
15
|
+
body: FontLoadingStyle;
|
|
16
|
+
headings: Readonly<{
|
|
17
|
+
default: FontLoadingStyle;
|
|
18
|
+
}> & Partial<Record<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', FontLoadingWeight>>;
|
|
19
|
+
}>;
|
|
4
20
|
type ThemeFontLoaderProps = {
|
|
5
|
-
typography:
|
|
21
|
+
typography: FontLoadingTypography;
|
|
6
22
|
/** Optional button font weight from theme.buttons.global.fontWeight */
|
|
7
23
|
buttonFontWeight?: number;
|
|
8
24
|
/** Optional extra weights to load for the body font (useful for UI labels, etc.) */
|
|
@@ -3,9 +3,9 @@ import { z } from 'zod';
|
|
|
3
3
|
* Accordion icon styles for expand/collapse indicators
|
|
4
4
|
*/
|
|
5
5
|
export declare const accordionIconSchema: z.ZodEnum<{
|
|
6
|
+
caret: "caret";
|
|
6
7
|
"plus-minus": "plus-minus";
|
|
7
8
|
chevron: "chevron";
|
|
8
|
-
caret: "caret";
|
|
9
9
|
arrow: "arrow";
|
|
10
10
|
"circle-plus-minus": "circle-plus-minus";
|
|
11
11
|
}>;
|
|
@@ -61,9 +61,9 @@ export declare const accordionSystemSchema: z.ZodObject<{
|
|
|
61
61
|
}, z.core.$strip>>;
|
|
62
62
|
icon: z.ZodObject<{
|
|
63
63
|
style: z.ZodEnum<{
|
|
64
|
+
caret: "caret";
|
|
64
65
|
"plus-minus": "plus-minus";
|
|
65
66
|
chevron: "chevron";
|
|
66
|
-
caret: "caret";
|
|
67
67
|
arrow: "arrow";
|
|
68
68
|
"circle-plus-minus": "circle-plus-minus";
|
|
69
69
|
}>;
|
|
@@ -122,8 +122,8 @@ export declare const accordionSystemSchema: z.ZodObject<{
|
|
|
122
122
|
colorToken: z.ZodString;
|
|
123
123
|
thickness: z.ZodEnum<{
|
|
124
124
|
medium: "medium";
|
|
125
|
-
thin: "thin";
|
|
126
125
|
thick: "thick";
|
|
126
|
+
thin: "thin";
|
|
127
127
|
}>;
|
|
128
128
|
}, z.core.$strip>>;
|
|
129
129
|
}, z.core.$strip>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal: the opt-out the generated affordance rule is written against.
|
|
3
|
+
*
|
|
4
|
+
* A button style may declare a trailing `affordance`, which the theme renders as
|
|
5
|
+
* a CSS `::after` on every button of that variant. An authored button that
|
|
6
|
+
* renders its own trailing icon must not also receive the theme's, or it shows
|
|
7
|
+
* two.
|
|
8
|
+
*
|
|
9
|
+
* Deliberately not exported from `./index`. This used to be public, and two
|
|
10
|
+
* block components reached past the theme to draw arrows of their own — one of
|
|
11
|
+
* them doubling up on the styles that declare an affordance, both of them
|
|
12
|
+
* overriding the twelve styles that deliberately declare none. Whether a button
|
|
13
|
+
* carries a trailing affordance is the style's decision; the only caller that
|
|
14
|
+
* legitimately opts out is the authored-button renderer, which reaches it
|
|
15
|
+
* through `themeButtonClassNameWithTrailingIcon`.
|
|
16
|
+
*/
|
|
17
|
+
export declare const AFFORDANCE_SUPPRESS_CLASS = "rb-affordance-off";
|
|
@@ -16,7 +16,7 @@ export declare const BUTTON_CONTRAST_POLICY: {
|
|
|
16
16
|
readonly nonTextMinimumRatio: 3;
|
|
17
17
|
readonly gradientSamplesPerSegment: 20;
|
|
18
18
|
readonly alphaBackgrounds: "reject-without-known-surface";
|
|
19
|
-
readonly disabled: "
|
|
19
|
+
readonly disabled: "validated-colour-pair-with-muted-control-opacity";
|
|
20
20
|
};
|
|
21
21
|
export type ButtonColourContractError = Readonly<{
|
|
22
22
|
tag: 'unknown_palette_token';
|
|
@@ -19,3 +19,19 @@ export declare function themeButtonVariantClassNames(variant: ThemeButtonVariant
|
|
|
19
19
|
export declare function themeButtonSizeClassName(size: ButtonSizeName): ThemeButtonSizeClassName;
|
|
20
20
|
export declare function themeButtonSelector(variant: ThemeButtonVariantId, size?: ButtonSizeName): string;
|
|
21
21
|
export declare function themeButtonClassName(spec: ThemeButtonClassSpec): ThemeButtonClassName;
|
|
22
|
+
/**
|
|
23
|
+
* Button classes for an authored button that renders its own trailing icon.
|
|
24
|
+
*
|
|
25
|
+
* A separate function rather than a flag on `themeButtonClassName`, because
|
|
26
|
+
* there is exactly one caller and it should stay visible in a diff. The name
|
|
27
|
+
* states what the caller knows to be true of its own markup — that it renders a
|
|
28
|
+
* trailing icon — rather than what the theme does about it. The consequence is
|
|
29
|
+
* the theme's to decide and to change; a caller naming the consequence would be
|
|
30
|
+
* asserting a policy it does not own, and would quietly become a lie the moment
|
|
31
|
+
* that policy moved.
|
|
32
|
+
*
|
|
33
|
+
* Do not reach for this to remove an arrow you simply do not want. A trailing
|
|
34
|
+
* affordance is declared by the button style, and a block overriding that is the
|
|
35
|
+
* defect this replaced.
|
|
36
|
+
*/
|
|
37
|
+
export declare function themeButtonClassNameWithTrailingIcon(spec: ThemeButtonClassSpec): ThemeButtonClassName;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { Theme } from '../schema';
|
|
2
2
|
import type { ButtonSystem } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Class the `button` runtime node adds when it renders its own trailing icon,
|
|
5
|
-
* so a node-level icon suppresses the theme's CSS `::after` affordance.
|
|
6
|
-
* Shared so generator and renderer can't drift.
|
|
7
|
-
*/
|
|
8
|
-
export declare const AFFORDANCE_SUPPRESS_CLASS = "rb-affordance-off";
|
|
9
3
|
export interface GenerateButtonCssOptions {
|
|
10
4
|
themeId: string;
|
|
11
5
|
theme: Theme;
|
|
@@ -11,9 +11,9 @@ export declare function resolvedButtonColourDeclarations(colour: ResolvedButtonC
|
|
|
11
11
|
}>): readonly ButtonCssDeclaration[];
|
|
12
12
|
export declare function resolvedButtonFocusDeclarations(indicator: ResolvedButtonFocusIndicator, role?: string): readonly ButtonCssDeclaration[];
|
|
13
13
|
/**
|
|
14
|
-
* Disabled buttons
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* remain observable.
|
|
14
|
+
* Disabled buttons are deliberately muted as unavailable controls. Native
|
|
15
|
+
* disabled controls are exempt from active-control contrast requirements;
|
|
16
|
+
* opacity distinguishes the state without introducing a focus-like outline.
|
|
17
|
+
* Retaining pointer events lets the not-allowed cursor remain observable.
|
|
18
18
|
*/
|
|
19
19
|
export declare const RESOLVED_BUTTON_DISABLED_DECLARATIONS: readonly ButtonCssDeclaration[];
|
|
@@ -205,8 +205,8 @@ export declare const cardAccentEdgeSchema: z.ZodObject<{
|
|
|
205
205
|
colorToken: z.ZodString;
|
|
206
206
|
width: z.ZodEnum<{
|
|
207
207
|
medium: "medium";
|
|
208
|
-
thin: "thin";
|
|
209
208
|
thick: "thick";
|
|
209
|
+
thin: "thin";
|
|
210
210
|
heavy: "heavy";
|
|
211
211
|
}>;
|
|
212
212
|
}, z.core.$strip>;
|
|
@@ -214,8 +214,8 @@ export type CardAccentEdge = z.infer<typeof cardAccentEdgeSchema>;
|
|
|
214
214
|
/** `hairline` (1px) is the widening the boxless `open` role needs. */
|
|
215
215
|
export declare const cardEdgeRuleWidthSchema: z.ZodEnum<{
|
|
216
216
|
medium: "medium";
|
|
217
|
-
thin: "thin";
|
|
218
217
|
thick: "thick";
|
|
218
|
+
thin: "thin";
|
|
219
219
|
hairline: "hairline";
|
|
220
220
|
heavy: "heavy";
|
|
221
221
|
}>;
|
|
@@ -226,8 +226,8 @@ export declare const cardEdgeRuleLengthSchema: z.ZodEnum<{
|
|
|
226
226
|
}>;
|
|
227
227
|
export declare const cardEdgeRuleAlignSchema: z.ZodEnum<{
|
|
228
228
|
center: "center";
|
|
229
|
-
start: "start";
|
|
230
229
|
end: "end";
|
|
230
|
+
start: "start";
|
|
231
231
|
}>;
|
|
232
232
|
/**
|
|
233
233
|
* A rule drawn along one card edge. `full` renders as a border side; `short`
|
|
@@ -244,8 +244,8 @@ export declare const cardEdgeRuleSchema: z.ZodObject<{
|
|
|
244
244
|
colorToken: z.ZodString;
|
|
245
245
|
width: z.ZodEnum<{
|
|
246
246
|
medium: "medium";
|
|
247
|
-
thin: "thin";
|
|
248
247
|
thick: "thick";
|
|
248
|
+
thin: "thin";
|
|
249
249
|
hairline: "hairline";
|
|
250
250
|
heavy: "heavy";
|
|
251
251
|
}>;
|
|
@@ -255,8 +255,8 @@ export declare const cardEdgeRuleSchema: z.ZodObject<{
|
|
|
255
255
|
}>>;
|
|
256
256
|
align: z.ZodOptional<z.ZodEnum<{
|
|
257
257
|
center: "center";
|
|
258
|
-
start: "start";
|
|
259
258
|
end: "end";
|
|
259
|
+
start: "start";
|
|
260
260
|
}>>;
|
|
261
261
|
alpha: z.ZodOptional<z.ZodNumber>;
|
|
262
262
|
}, z.core.$strip>;
|
|
@@ -275,8 +275,8 @@ export declare const cardDecorationSchema: z.ZodObject<{
|
|
|
275
275
|
colorToken: z.ZodString;
|
|
276
276
|
width: z.ZodEnum<{
|
|
277
277
|
medium: "medium";
|
|
278
|
-
thin: "thin";
|
|
279
278
|
thick: "thick";
|
|
279
|
+
thin: "thin";
|
|
280
280
|
hairline: "hairline";
|
|
281
281
|
heavy: "heavy";
|
|
282
282
|
}>;
|
|
@@ -286,8 +286,8 @@ export declare const cardDecorationSchema: z.ZodObject<{
|
|
|
286
286
|
}>>;
|
|
287
287
|
align: z.ZodOptional<z.ZodEnum<{
|
|
288
288
|
center: "center";
|
|
289
|
-
start: "start";
|
|
290
289
|
end: "end";
|
|
290
|
+
start: "start";
|
|
291
291
|
}>>;
|
|
292
292
|
alpha: z.ZodOptional<z.ZodNumber>;
|
|
293
293
|
}, z.core.$strip>;
|
|
@@ -302,8 +302,8 @@ export declare const cardDecorationsSchema: z.ZodArray<z.ZodObject<{
|
|
|
302
302
|
colorToken: z.ZodString;
|
|
303
303
|
width: z.ZodEnum<{
|
|
304
304
|
medium: "medium";
|
|
305
|
-
thin: "thin";
|
|
306
305
|
thick: "thick";
|
|
306
|
+
thin: "thin";
|
|
307
307
|
hairline: "hairline";
|
|
308
308
|
heavy: "heavy";
|
|
309
309
|
}>;
|
|
@@ -313,8 +313,8 @@ export declare const cardDecorationsSchema: z.ZodArray<z.ZodObject<{
|
|
|
313
313
|
}>>;
|
|
314
314
|
align: z.ZodOptional<z.ZodEnum<{
|
|
315
315
|
center: "center";
|
|
316
|
-
start: "start";
|
|
317
316
|
end: "end";
|
|
317
|
+
start: "start";
|
|
318
318
|
}>>;
|
|
319
319
|
alpha: z.ZodOptional<z.ZodNumber>;
|
|
320
320
|
}, z.core.$strip>>;
|
|
@@ -490,8 +490,8 @@ export declare const cardVariantSchema: z.ZodPipe<z.ZodObject<{
|
|
|
490
490
|
colorToken: z.ZodString;
|
|
491
491
|
width: z.ZodEnum<{
|
|
492
492
|
medium: "medium";
|
|
493
|
-
thin: "thin";
|
|
494
493
|
thick: "thick";
|
|
494
|
+
thin: "thin";
|
|
495
495
|
hairline: "hairline";
|
|
496
496
|
heavy: "heavy";
|
|
497
497
|
}>;
|
|
@@ -501,8 +501,8 @@ export declare const cardVariantSchema: z.ZodPipe<z.ZodObject<{
|
|
|
501
501
|
}>>;
|
|
502
502
|
align: z.ZodOptional<z.ZodEnum<{
|
|
503
503
|
center: "center";
|
|
504
|
-
start: "start";
|
|
505
504
|
end: "end";
|
|
505
|
+
start: "start";
|
|
506
506
|
}>>;
|
|
507
507
|
alpha: z.ZodOptional<z.ZodNumber>;
|
|
508
508
|
}, z.core.$strip>>>;
|
|
@@ -516,8 +516,8 @@ export declare const cardVariantSchema: z.ZodPipe<z.ZodObject<{
|
|
|
516
516
|
colorToken: z.ZodString;
|
|
517
517
|
width: z.ZodEnum<{
|
|
518
518
|
medium: "medium";
|
|
519
|
-
thin: "thin";
|
|
520
519
|
thick: "thick";
|
|
520
|
+
thin: "thin";
|
|
521
521
|
heavy: "heavy";
|
|
522
522
|
}>;
|
|
523
523
|
}, z.core.$strip>>;
|
|
@@ -566,15 +566,15 @@ export declare const cardVariantSchema: z.ZodPipe<z.ZodObject<{
|
|
|
566
566
|
decorations?: {
|
|
567
567
|
edge: "left" | "right" | "bottom" | "top";
|
|
568
568
|
colorToken: string;
|
|
569
|
-
width: "medium" | "
|
|
569
|
+
width: "medium" | "thick" | "thin" | "hairline" | "heavy";
|
|
570
570
|
length?: "short" | "full" | undefined;
|
|
571
|
-
align?: "center" | "
|
|
571
|
+
align?: "center" | "end" | "start" | undefined;
|
|
572
572
|
alpha?: number | undefined;
|
|
573
573
|
}[] | undefined;
|
|
574
574
|
accentEdge?: {
|
|
575
575
|
edge: "left" | "right" | "bottom" | "top";
|
|
576
576
|
colorToken: string;
|
|
577
|
-
width: "medium" | "
|
|
577
|
+
width: "medium" | "thick" | "thin" | "heavy";
|
|
578
578
|
} | undefined;
|
|
579
579
|
}>>;
|
|
580
580
|
export declare const cardSystemSchema: z.ZodPipe<z.ZodObject<{
|
|
@@ -719,8 +719,8 @@ export declare const cardSystemSchema: z.ZodPipe<z.ZodObject<{
|
|
|
719
719
|
colorToken: z.ZodString;
|
|
720
720
|
width: z.ZodEnum<{
|
|
721
721
|
medium: "medium";
|
|
722
|
-
thin: "thin";
|
|
723
722
|
thick: "thick";
|
|
723
|
+
thin: "thin";
|
|
724
724
|
hairline: "hairline";
|
|
725
725
|
heavy: "heavy";
|
|
726
726
|
}>;
|
|
@@ -730,8 +730,8 @@ export declare const cardSystemSchema: z.ZodPipe<z.ZodObject<{
|
|
|
730
730
|
}>>;
|
|
731
731
|
align: z.ZodOptional<z.ZodEnum<{
|
|
732
732
|
center: "center";
|
|
733
|
-
start: "start";
|
|
734
733
|
end: "end";
|
|
734
|
+
start: "start";
|
|
735
735
|
}>>;
|
|
736
736
|
alpha: z.ZodOptional<z.ZodNumber>;
|
|
737
737
|
}, z.core.$strip>>>;
|
|
@@ -745,8 +745,8 @@ export declare const cardSystemSchema: z.ZodPipe<z.ZodObject<{
|
|
|
745
745
|
colorToken: z.ZodString;
|
|
746
746
|
width: z.ZodEnum<{
|
|
747
747
|
medium: "medium";
|
|
748
|
-
thin: "thin";
|
|
749
748
|
thick: "thick";
|
|
749
|
+
thin: "thin";
|
|
750
750
|
heavy: "heavy";
|
|
751
751
|
}>;
|
|
752
752
|
}, z.core.$strip>>;
|
|
@@ -795,15 +795,15 @@ export declare const cardSystemSchema: z.ZodPipe<z.ZodObject<{
|
|
|
795
795
|
decorations?: {
|
|
796
796
|
edge: "left" | "right" | "bottom" | "top";
|
|
797
797
|
colorToken: string;
|
|
798
|
-
width: "medium" | "
|
|
798
|
+
width: "medium" | "thick" | "thin" | "hairline" | "heavy";
|
|
799
799
|
length?: "short" | "full" | undefined;
|
|
800
|
-
align?: "center" | "
|
|
800
|
+
align?: "center" | "end" | "start" | undefined;
|
|
801
801
|
alpha?: number | undefined;
|
|
802
802
|
}[] | undefined;
|
|
803
803
|
accentEdge?: {
|
|
804
804
|
edge: "left" | "right" | "bottom" | "top";
|
|
805
805
|
colorToken: string;
|
|
806
|
-
width: "medium" | "
|
|
806
|
+
width: "medium" | "thick" | "thin" | "heavy";
|
|
807
807
|
} | undefined;
|
|
808
808
|
}>>>;
|
|
809
809
|
}, z.core.$strip>, z.ZodTransform<CardSystem, {
|