@riverbankcms/sdk 0.139.0 → 0.140.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-CUyTzd5z.mjs} +4 -4
- package/dist/{PreviewEditorUI-DSRhgjF5.mjs → PreviewEditorUI-Agkw4v5i.mjs} +3 -3
- package/dist/{PreviewQueryProvider-D2K8GLUG.mjs → PreviewQueryProvider-CN0ewic5.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CL7wSnYu.mjs → SdkPreviewModeRuntime-DdbeAdS8.mjs} +22 -8
- package/dist/{SiteChromeCustomizeContext-BhDn-5ir.mjs → SiteChromeCustomizeContext-CqGOz-Kv.mjs} +2053 -1110
- 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 +8 -3
- 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/footerSettings.d.ts +9 -6
- package/dist/_dts/api/src/index.d.ts +5 -6
- 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/mailingListIntegration.d.ts +8 -2
- package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -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 +9 -5
- package/dist/_dts/api/src/siteOnboarding.d.ts +2 -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 +14 -3
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +16 -4
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +2 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +5 -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/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/data/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/prefetchBlockData.d.ts +2 -1
- package/dist/_dts/blocks/src/system/data/types.d.ts +9 -0
- 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 +30 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +15 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +43 -0
- 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/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/useEventRegistrationSubmit.d.ts +8 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +10 -2
- 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.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/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/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 +293 -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/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/accordions/types.d.ts +3 -3
- 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/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-CuKa82V4.mjs} +4 -4
- package/dist/client/{DiscountCodeDisclosure-D-DsLCMU.mjs → DiscountCodeDisclosure-BbYieKWB.mjs} +1 -1
- package/dist/client/{EventCombined.client-dWqgd5ZO.mjs → EventCombined.client-LTfR1Aby.mjs} +6 -6
- package/dist/client/{EventListing.client-BMRa9IYp.mjs → EventListing.client-DUHpYSuo.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-D21W9kBZ.mjs → LeafletStaticMap-CHRupL6m.mjs} +1 -1
- package/dist/client/{accordion-FxF_ta47.mjs → accordion-6HiIFxNL.mjs} +1 -1
- package/dist/client/{bookingForm-YnwW4TGw.mjs → bookingForm-Dlmid43H.mjs} +7 -7
- package/dist/client/bookings.mjs +325 -140
- package/dist/client/{carousel-vng7fFT5.mjs → carousel-DmkZRRq_.mjs} +2 -2
- package/dist/client/{carousel.client-59G_WMr4.mjs → carousel.client-DQTjCVQT.mjs} +1 -1
- package/dist/client/{cart-DEPDsjNk.mjs → cart-CIC24330.mjs} +3 -3
- package/dist/client/{checkout-CZRWu9rW.mjs → checkout-D1Zw9imo.mjs} +3 -3
- package/dist/client/{checkoutUrls-BuseL0dw.mjs → checkoutUrls-FL6lRkrt.mjs} +1 -1
- package/dist/client/client.mjs +1717 -882
- package/dist/client/{colorStyles-CrxJrPjJ.mjs → colorStyles-3013aRAY.mjs} +3 -1
- package/dist/client/{context-DvU_WUmd.mjs → context-Cy1OayHx.mjs} +6 -19
- package/dist/client/{dates-wnPMiRl5.mjs → dates-aDcfoLHr.mjs} +2 -2
- package/dist/client/{eventCalendar-BA3Q5L15.mjs → eventCalendar-FQxMPAjf.mjs} +8 -8
- package/dist/client/{eventCombined-51wgR-1R.mjs → eventCombined-Dr3ac6Hb.mjs} +3 -3
- package/dist/client/{eventDetails-modaetpm.mjs → eventDetails-D-AzUHFQ.mjs} +4 -4
- package/dist/client/{eventListing-D8t2J3Kv.mjs → eventListing-B3XxBf3i.mjs} +3 -3
- package/dist/client/{eventRegistration-CYqtkCE_.mjs → eventRegistration-I6EaokFD.mjs} +500 -152
- package/dist/client/{form-CBKXN5In.mjs → form-BbWckVWY.mjs} +3 -3
- package/dist/client/{headerSection-DylDqNrs.mjs → headerSection-C9qU4Y7x.mjs} +2 -2
- package/dist/client/hooks.mjs +445 -180
- package/dist/client/{locationMap-CvWrG0vZ.mjs → locationMap-CLCShvlG.mjs} +3 -3
- package/dist/client/{media-BOHuueS5.mjs → media-DHpfFwd3.mjs} +1 -1
- package/dist/client/{newsletterForm-Btwk70zw.mjs → newsletterForm-Briukxzi.mjs} +130 -87
- package/dist/client/{pricing-Uzw-GQ6Y.mjs → pricing-Copadu-2.mjs} +1 -1
- package/dist/client/{productDetail-JLcUYKnd.mjs → productDetail-oujlRd-r.mjs} +3 -3
- package/dist/client/{productList-FM0cbUzj.mjs → productList-BRiIRUcd.mjs} +3 -3
- package/dist/client/{propsDecoder-DYzafZb2.mjs → propsDecoder-CB2KS_ko.mjs} +130 -24
- package/dist/client/rendering/client.mjs +911 -400
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +1696 -818
- package/dist/client/{scrollToBlock-CvXszexS.mjs → scrollToBlock-B1IS1_ua.mjs} +1 -1
- package/dist/client/{shop-BIcjvy5a.mjs → shop-Vn6yNFED.mjs} +6 -6
- package/dist/client/{shop-commerce-BZQsy7xw.mjs → shop-commerce-BVTqipYp.mjs} +7 -7
- package/dist/client/{shop-commerce-store-D5V7XAb5.mjs → shop-commerce-store-BVnJVy7v.mjs} +1 -1
- package/dist/client/{shopShared-DowkXevB.mjs → shopShared-COIeK77T.mjs} +4 -4
- package/dist/client/{useEventFilters-oMoTw_JE.mjs → useEventFilters-DzIUcS9n.mjs} +7 -7
- package/dist/preview-next/before-render.mjs +119 -64
- package/dist/preview-next/client/runtime.mjs +4 -4
- 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-CnCLvZRv.mjs} +2 -2
- package/dist/{separator-UGtpag4Z.mjs → separator-DKDRJ1oH.mjs} +1 -1
- package/dist/server/components.mjs +787 -323
- package/dist/server/config-validation.mjs +328 -79
- package/dist/server/config.mjs +332 -83
- package/dist/server/data.mjs +441 -180
- package/dist/server/index.mjs +126 -66
- package/dist/server/next.mjs +1031 -595
- package/dist/server/page-converter.mjs +183 -74
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1068 -592
- package/dist/server/rendering.mjs +802 -324
- package/dist/server/routing.mjs +506 -214
- package/dist/server/server.mjs +468 -244
- package/dist/server/theme-bridge.mjs +433 -100
- package/dist/server/theme.mjs +8 -2
- package/dist/styles/index.css +237 -43
- 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 {};
|
|
@@ -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' | '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 {};
|
|
@@ -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>>;
|
|
@@ -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, {
|