@riverbankcms/sdk 0.135.0 → 0.136.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/CHANGELOG.md +13 -0
- package/README.md +4 -8
- package/dist/{PreviewEditorSidebar-roNY0GVy.mjs → PreviewEditorSidebar-BU5ZlhQR.mjs} +4 -4
- package/dist/{PreviewEditorUI-KboDbEh_.mjs → PreviewEditorUI-9XkHL-bC.mjs} +3 -3
- package/dist/{PreviewQueryProvider-DcgaESkm.mjs → PreviewQueryProvider-wbEpXryy.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DBrF7Caa.mjs → SdkPreviewModeRuntime-CnWmj-2B.mjs} +50 -99
- package/dist/{SiteChromeCustomizeContext-DrIEpJKn.mjs → SiteChromeCustomizeContext-B6d5zkog.mjs} +2334 -1173
- package/dist/_dts/ai/src/contracts/proposals.d.ts +8 -554
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +401 -2312
- package/dist/_dts/api/src/contentRuntime.d.ts +6 -0
- package/dist/_dts/api/src/endpoints.d.ts +7 -0
- package/dist/_dts/api/src/index.d.ts +1 -0
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +26 -0
- package/dist/_dts/api/src/sdkBlockContentAdmission.d.ts +5 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +6 -432
- package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +2 -3
- package/dist/_dts/block-form/src/utils/slug.d.ts +6 -0
- package/dist/_dts/blocks/src/PageRenderer.d.ts +12 -6
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +48 -0
- package/dist/_dts/blocks/src/definitions.d.ts +14 -0
- package/dist/_dts/blocks/src/index.d.ts +4 -3
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +40 -0
- package/dist/_dts/blocks/src/server.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +25 -0
- package/dist/_dts/blocks/src/system/data/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/data/publicLoaderCachePolicy.d.ts +78 -0
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +2 -18
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +103 -16
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -0
- 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 +19 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +52 -0
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +44 -18
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +20 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/VerifyingTimeoutStep.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.client.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +40 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +43 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CalendarDayCell.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CalendarNavigationChevron.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DayEventsModal.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModalContext.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +31 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +19 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/timetableModel.d.ts +4 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +3 -3
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +0 -1
- package/dist/_dts/calendar/src/grid.d.ts +24 -66
- package/dist/_dts/calendar/src/index.d.ts +2 -2
- package/dist/_dts/calendar/src/timetable.d.ts +5 -9
- package/dist/_dts/commerce/src/purchase/allocation.d.ts +11 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/settlement.d.ts +33 -0
- package/dist/_dts/commerce/src/purchase/stripeCheckoutReturnUrl.d.ts +8 -0
- package/dist/_dts/content-model/src/templates/defaults.d.ts +6 -0
- package/dist/_dts/core/src/slug.d.ts +20 -5
- package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/headerInteractionPaletteSurfaceState.d.ts +2 -1
- package/dist/_dts/sdk/src/client/publicLoaderCacheAccess.d.ts +6 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -1
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +10 -6
- package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +0 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/helpers/footerPageOutline.d.ts +3 -0
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +3 -0
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +17 -0
- package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +9 -3
- package/dist/_dts/sdk/src/rendering/hooks/usePage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/index.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/overrideResolution.d.ts +7 -4
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/cards/types.d.ts +8 -8
- package/dist/_dts/theme-core/src/data.d.ts +12 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +2 -6
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +6 -807
- package/dist/_dts/theme-core/src/schema.d.ts +452 -1278
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +213 -1
- package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +0 -29
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyles.d.ts +10 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutTypes.d.ts +8 -5
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +16 -2
- package/dist/_dts/theme-core/src/site-styles/headerStyleDefaults.d.ts +465 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +161 -0
- package/dist/client/{BookingConsentAgreement-BQqwi8Oa.mjs → BookingConsentAgreement-DCch21a6.mjs} +2 -2
- package/dist/client/{DiscountCodeDisclosure-B97aMo0V.mjs → DiscountCodeDisclosure-DIj1T59K.mjs} +1 -1
- package/dist/client/{EventCombined.client-Bs2Iw9Q6.mjs → EventCombined.client-BWVNlXTx.mjs} +226 -206
- package/dist/client/{EventListing.client-C4QUQdmg.mjs → EventListing.client-DVFCDe3i.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CwWRk69M.mjs → LeafletStaticMap-BY5mIHw9.mjs} +1 -1
- package/dist/client/{accordion-BA0j8Mpw.mjs → accordion-CK29E8rG.mjs} +1 -1
- package/dist/client/{bookingForm-Br2e41H0.mjs → bookingForm-DFvnet-N.mjs} +5 -5
- package/dist/client/bookings.mjs +87 -47
- package/dist/client/{carousel-B4dmwnpD.mjs → carousel-BVU5NQlb.mjs} +1 -1
- package/dist/client/{cart-B_ckGW4b.mjs → cart-BNItcZVa.mjs} +3 -3
- package/dist/client/{checkout-DAyspHdf.mjs → checkout-Bu6iCdkP.mjs} +3 -3
- package/dist/client/client.mjs +1985 -1055
- package/dist/client/{context-DljQn8L5.mjs → context-BImarOAq.mjs} +12 -0
- package/dist/client/{eventCalendar-pJu3FUod.mjs → eventCalendar-DS2h-UXD.mjs} +256 -114
- package/dist/client/{eventCombined-B6Kacm9F.mjs → eventCombined-Drt4Oq9p.mjs} +3 -3
- package/dist/client/{eventDetails-CaX9z1pv.mjs → eventDetails-Bl2vWgTX.mjs} +4 -3
- package/dist/client/{eventListing-B9aXPO-I.mjs → eventListing-CS7PHY7v.mjs} +3 -3
- package/dist/client/{eventRegistration-CBSovBkg.mjs → eventRegistration-D-j8eNy2.mjs} +85 -41
- package/dist/client/{form-Cm0tu_7o.mjs → form-RMpoLTyr.mjs} +2 -2
- package/dist/client/{headerSection-OgRtHeKS.mjs → headerSection-BYE3Lb3k.mjs} +2 -2
- package/dist/client/hooks.mjs +2254 -298
- package/dist/client/{locationMap-DmjcYqNM.mjs → locationMap-BxSr7Kkh.mjs} +2 -2
- package/dist/client/{newsletterForm-D08OZQAC.mjs → newsletterForm-DerbXwFC.mjs} +2 -2
- package/dist/client/{productDetail-BqZeu2P4.mjs → productDetail-4SZCLhAf.mjs} +3 -3
- package/dist/client/{productList-mNyIF9FG.mjs → productList-D7AP4GNq.mjs} +3 -3
- package/dist/client/{propsDecoder-DwHXRm9X.mjs → propsDecoder-pzBeCh14.mjs} +123 -46
- package/dist/client/rendering/client.mjs +793 -488
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +2161 -1268
- package/dist/client/{scrollToBlock-DtmdM3v-.mjs → scrollToBlock-CduAKf8T.mjs} +1 -1
- package/dist/client/{shop-CNjZK16F.mjs → shop-Cp5p_kGe.mjs} +6 -6
- package/dist/client/{shop-commerce-DkNNao1J.mjs → shop-commerce-DicXYaYX.mjs} +5 -5
- package/dist/client/{shop-commerce-store-9WA--zuW.mjs → shop-commerce-store-CGWnpY4K.mjs} +1 -1
- package/dist/client/{shopShared-CHCVfccY.mjs → shopShared-BDf9ljkm.mjs} +3 -3
- package/dist/client/{useEventFilters-DvuaB4ZN.mjs → useEventFilters-DeeyGYuk.mjs} +3 -3
- package/dist/preview-next/before-render.mjs +7 -0
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +7 -0
- package/dist/preview-next/middleware.mjs +7 -0
- package/dist/{previewAuthStore-C7ksxt5b.mjs → previewAuthStore-DbqBol0V.mjs} +7 -0
- package/dist/{sdk-runtime-3GhW4knb.mjs → sdk-runtime-19MO27F0.mjs} +2 -2
- package/dist/{separator-D3bCWYYb.mjs → separator-DaPLtJ1f.mjs} +1 -1
- package/dist/server/components.mjs +1562 -917
- package/dist/server/config-validation.mjs +94 -135
- package/dist/server/config.mjs +94 -135
- package/dist/server/data.mjs +94 -134
- package/dist/server/index.mjs +122 -4
- package/dist/server/manifest.mjs +0 -1
- package/dist/server/next.mjs +1467 -732
- package/dist/server/page-converter.mjs +87 -113
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1717 -939
- package/dist/server/rendering.mjs +1729 -1044
- package/dist/server/routing.mjs +3229 -1835
- package/dist/server/server.mjs +21739 -19801
- package/dist/server/theme-bridge.mjs +656 -264
- package/dist/server/theme.mjs +2 -17
- package/dist/styles/index.css +609 -181
- package/package.json +1 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import type { EntrySubrouteContextData, MediaAssetIndexItem, OccurrenceContextData,
|
|
2
|
+
import type { EntrySubrouteContextData, MediaAssetIndexItem, OccurrenceContextData, PageRuntimeBoundary, RouteMap, Theme, ThemeTokens } from '../../contracts';
|
|
3
3
|
import type { ResolvedBlockData } from '../../data';
|
|
4
4
|
import type { SiteBookingOfferingPresetSummary } from '../../public-api/contracts';
|
|
5
5
|
import type { RuntimeSdkConfig } from '../helpers/loadPage';
|
|
6
|
-
import { type ComponentRegistry } from '../blocks-page-renderer';
|
|
6
|
+
import { type ComponentRegistry, type RenderablePageOutline } from '../blocks-page-renderer';
|
|
7
7
|
import { type SdkThemeRuntime } from '../themeRuntime';
|
|
8
8
|
import type { BlockOverrides } from '../overrides';
|
|
9
9
|
import type { SdkCustomBlock } from '../../config/types';
|
|
10
10
|
import type { SdkRenderingMode } from '../renderingMode';
|
|
11
11
|
type PageCommonProps = {
|
|
12
|
-
page:
|
|
12
|
+
page: RenderablePageOutline;
|
|
13
13
|
runtimeBoundaries?: readonly PageRuntimeBoundary[];
|
|
14
14
|
siteId: string;
|
|
15
15
|
resolvedData?: ResolvedBlockData;
|
|
16
16
|
bookingOfferingPresets?: readonly SiteBookingOfferingPresetSummary[];
|
|
17
|
+
bookingTimeZone?: string;
|
|
17
18
|
routeMap?: RouteMap;
|
|
18
19
|
/** Page identifier to routeId lookup for { kind: 'page' } CTA links */
|
|
19
20
|
pagesByIdentifier?: Record<string, string>;
|
|
@@ -75,7 +76,6 @@ type PageCommonProps = {
|
|
|
75
76
|
};
|
|
76
77
|
wrapBlock?: (blockId: string, rendered: React.ReactNode) => React.ReactNode;
|
|
77
78
|
registry?: ComponentRegistry;
|
|
78
|
-
usePlaceholders?: boolean;
|
|
79
79
|
/**
|
|
80
80
|
* Custom components to override default block rendering.
|
|
81
81
|
* Keys can be full block kind ("block.hero") or short form ("hero").
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { SiteResponse } from '../../client/types';
|
|
2
|
+
import type { SiteFooterBlock } from '../../public-api/contracts';
|
|
3
|
+
export declare function buildFooterRenderablePageOutline(siteData: SiteResponse, blocks: readonly SiteFooterBlock[]): import("../../../../blocks/src/index").RenderablePageOutline;
|
|
@@ -111,6 +111,7 @@ export type PageContentResult = {
|
|
|
111
111
|
resolvedData: ResolvedBlockData;
|
|
112
112
|
/** Selected booking offering presets exposed to SSR blocks. */
|
|
113
113
|
bookingOfferingPresets?: PageProps['bookingOfferingPresets'];
|
|
114
|
+
bookingTimeZone?: string;
|
|
114
115
|
/** Site data for metadata generation */
|
|
115
116
|
site: SiteData;
|
|
116
117
|
/**
|
|
@@ -146,6 +147,7 @@ export type EntryContentResult = {
|
|
|
146
147
|
resolvedData: ResolvedBlockData;
|
|
147
148
|
/** Selected booking offering presets exposed to SSR blocks. */
|
|
148
149
|
bookingOfferingPresets?: PageProps['bookingOfferingPresets'];
|
|
150
|
+
bookingTimeZone?: string;
|
|
149
151
|
/** Data context for template blocks (includes entry content for bindings) */
|
|
150
152
|
dataContext: {
|
|
151
153
|
contentEntry: Record<string, unknown>;
|
|
@@ -209,6 +211,7 @@ export type PageSurfaceContentResult = {
|
|
|
209
211
|
templatePage: PageProps['page'] | null;
|
|
210
212
|
resolvedData: ResolvedBlockData;
|
|
211
213
|
bookingOfferingPresets?: PageProps['bookingOfferingPresets'];
|
|
214
|
+
bookingTimeZone?: string;
|
|
212
215
|
dataContext: {
|
|
213
216
|
pageSurface: Record<string, unknown>;
|
|
214
217
|
subject: PageSurfaceContentData['subject'];
|
|
@@ -79,7 +79,7 @@ export type LoadPageParams = {
|
|
|
79
79
|
*/
|
|
80
80
|
searchParams?: DataLoaderSearchParams;
|
|
81
81
|
};
|
|
82
|
-
export type LoadPageResult = Omit<PageProps, 'registry' | 'wrapBlock' | '
|
|
82
|
+
export type LoadPageResult = Omit<PageProps, 'registry' | 'wrapBlock' | 'blockOverrides' | 'sdkConfig'> & {
|
|
83
83
|
/**
|
|
84
84
|
* SDK site configuration, if available.
|
|
85
85
|
* Contains SDK-defined theme palette, section backgrounds, and style options.
|
|
@@ -2,6 +2,7 @@ import type { MediaAssetIndexItem, PageOutline, RouteMap, Theme } from '../../co
|
|
|
2
2
|
import type { SiteBookingOfferingPresetSummary } from '../../public-api/contracts';
|
|
3
3
|
import type { SiteResponse } from '../../client/types';
|
|
4
4
|
import type { SdkCustomBlock } from '../../config/types';
|
|
5
|
+
import { type BlockManifest, type FieldDefinition, type PageBlockRenderAdmissionError, type RenderablePageBlock, type RenderablePageOutline } from '../../../../blocks/src/index';
|
|
5
6
|
export type RuntimeSdkConfig = NonNullable<SiteResponse['sdkConfig']>;
|
|
6
7
|
export type SiteData = SiteResponse['site'];
|
|
7
8
|
export type SiteRenderSupport = Readonly<{
|
|
@@ -9,6 +10,7 @@ export type SiteRenderSupport = Readonly<{
|
|
|
9
10
|
site: SiteData;
|
|
10
11
|
sdkConfig: RuntimeSdkConfig | null;
|
|
11
12
|
bookingOfferingPresets: readonly SiteBookingOfferingPresetSummary[];
|
|
13
|
+
bookingTimeZone: string;
|
|
12
14
|
customBlocks?: SdkCustomBlock[];
|
|
13
15
|
supabaseUrl?: string;
|
|
14
16
|
routeMap?: RouteMap;
|
|
@@ -35,6 +37,10 @@ export type PageRecordForPreview = Readonly<{
|
|
|
35
37
|
}>;
|
|
36
38
|
export declare function buildSiteRenderSupport(site: SiteResponse, mediaAssets: readonly MediaAssetIndexItem[] | undefined): SiteRenderSupport;
|
|
37
39
|
export declare function collectMediaAssetSidecar(mediaAssets: readonly MediaAssetIndexItem[] | null | undefined): readonly MediaAssetIndexItem[] | undefined;
|
|
40
|
+
export declare function readInvalidBlockAdmission(value: unknown): Readonly<{
|
|
41
|
+
kind: 'invalid';
|
|
42
|
+
error: PageBlockRenderAdmissionError;
|
|
43
|
+
}> | null;
|
|
38
44
|
export declare function buildPageOutline(input: Readonly<{
|
|
39
45
|
name: string;
|
|
40
46
|
path: string | null | undefined;
|
|
@@ -42,4 +48,15 @@ export declare function buildPageOutline(input: Readonly<{
|
|
|
42
48
|
purpose: string;
|
|
43
49
|
blocks: readonly unknown[];
|
|
44
50
|
}>): PageOutline;
|
|
51
|
+
export declare function buildRenderablePageOutline(input: Readonly<{
|
|
52
|
+
name: string;
|
|
53
|
+
path: string | null | undefined;
|
|
54
|
+
fallbackPath: string;
|
|
55
|
+
purpose: string;
|
|
56
|
+
blocks: readonly unknown[];
|
|
57
|
+
customBlocks?: readonly SdkCustomBlock[];
|
|
58
|
+
}>): RenderablePageOutline;
|
|
59
|
+
export declare function projectRenderablePageOutline(page: RenderablePageOutline): PageOutline;
|
|
60
|
+
export declare function resolveSdkBlockManifest(blockKind: string, customBlocks: readonly SdkCustomBlock[] | undefined): BlockManifest | FieldDefinition[] | null;
|
|
61
|
+
export declare function invalidRenderableBlock(block: Omit<RenderablePageBlock, 'admission'>, error: PageBlockRenderAdmissionError): RenderablePageBlock;
|
|
45
62
|
export declare function sanitizeSdkRuntimeBlockContent(blockKind: string, content: Record<string, unknown>): Record<string, unknown>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { RiverbankClient } from '../../client/types';
|
|
2
2
|
import type { SdkCustomBlock } from '../../config/types';
|
|
3
|
+
import { type BlockManifest, type FieldDefinition, type ManifestContentAdmissionResult, type RenderablePageOutline, type RenderableManifestContent } from '../../../../blocks/src/index';
|
|
3
4
|
import type { ResolvedBlockData } from '../../data/prefetchBlockData';
|
|
4
5
|
import { type BlockDataLoadPolicy, type ResolveBlockDataDeps } from '../../data/resolveBlockData';
|
|
5
6
|
import type { DataLoaderPreviewStage, DataLoaderRenderTarget } from '../../data/types';
|
|
6
|
-
import type { PageProps } from '../components/Page';
|
|
7
7
|
import { type BindingContext } from './bindings';
|
|
8
8
|
export type Template = {
|
|
9
9
|
id: string;
|
|
@@ -28,6 +28,7 @@ type EntrySlotBlock = {
|
|
|
28
28
|
publishedContent?: unknown;
|
|
29
29
|
orderIndex?: number | null;
|
|
30
30
|
bindings?: Record<string, unknown> | null;
|
|
31
|
+
admission?: unknown;
|
|
31
32
|
};
|
|
32
33
|
type TemplateSlotContent = {
|
|
33
34
|
slotKey: string;
|
|
@@ -58,12 +59,17 @@ type TemplateProcessorSupport = Readonly<{
|
|
|
58
59
|
deps: ResolveBlockDataDeps;
|
|
59
60
|
customBlocks?: SdkCustomBlock[];
|
|
60
61
|
}>;
|
|
62
|
+
export declare function admitMaterializedSdkTemplateBlockContent(input: Readonly<{
|
|
63
|
+
block: TemplateBlock;
|
|
64
|
+
bindingContext: BindingContext;
|
|
65
|
+
manifestOrFields: BlockManifest | FieldDefinition[];
|
|
66
|
+
}>): ManifestContentAdmissionResult<RenderableManifestContent>;
|
|
61
67
|
export declare function processEntryTemplate(input: TemplateProcessorSupport & Readonly<{
|
|
62
68
|
templates: Template[] | undefined;
|
|
63
69
|
entrySlots: TemplateSlotContent[] | undefined;
|
|
64
70
|
entry: TemplateEntry;
|
|
65
71
|
}>): Promise<{
|
|
66
|
-
templatePage:
|
|
72
|
+
templatePage: RenderablePageOutline | null;
|
|
67
73
|
resolvedData: ResolvedBlockData;
|
|
68
74
|
}>;
|
|
69
75
|
export declare function processTemplatePage(input: TemplateProcessorSupport & Readonly<{
|
|
@@ -75,7 +81,7 @@ export declare function processTemplatePage(input: TemplateProcessorSupport & Re
|
|
|
75
81
|
pagePurpose: string;
|
|
76
82
|
renderTargetSource: TemplateRenderTargetSource;
|
|
77
83
|
}>): Promise<{
|
|
78
|
-
templatePage:
|
|
84
|
+
templatePage: RenderablePageOutline | null;
|
|
79
85
|
resolvedData: ResolvedBlockData;
|
|
80
86
|
}>;
|
|
81
87
|
export {};
|
|
@@ -40,7 +40,7 @@ export type UsePageResult = {
|
|
|
40
40
|
loading: false;
|
|
41
41
|
error: null;
|
|
42
42
|
sdkConfig: RuntimeSdkConfig | null;
|
|
43
|
-
} & Omit<PageProps, 'registry' | 'wrapBlock' | '
|
|
43
|
+
} & Omit<PageProps, 'registry' | 'wrapBlock' | 'sdkConfig'>);
|
|
44
44
|
/**
|
|
45
45
|
* Client-side React hook to fetch all data needed for <Page> component.
|
|
46
46
|
*
|
|
@@ -24,12 +24,12 @@ export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, Bo
|
|
|
24
24
|
export { ImagePresets } from '../contracts';
|
|
25
25
|
export { RichText } from './primitives/RichText';
|
|
26
26
|
export { resolveImageUrl, resolveImageUrlWithContext, resolveImageSourceSetWithContext, } from './image';
|
|
27
|
-
export { MissingBlockOverrideError, PageRenderer, toBlocksPageRendererDataContext, } from './blocks-page-renderer';
|
|
27
|
+
export { MissingBlockOverrideError, EditorPageRenderer, PageRenderer, toBlocksPageRendererDataContext, } from './blocks-page-renderer';
|
|
28
28
|
export { ThemeScope } from './blocks-theme-scope';
|
|
29
29
|
export { buildThemeRuntime } from './blocks-theme-runtime';
|
|
30
30
|
export { toBlocksImageResolveContextInput, toBlocksMediaAssets, } from './mediaAssets';
|
|
31
31
|
export type { BlocksImageResolveContextInput, BlocksMediaAssetIndexItem, } from './mediaAssets';
|
|
32
|
-
export type { ComponentRegistry, BlocksPageRendererDataContext, PageRendererDataContext, PageRendererProps, SdkConfigForRenderer, } from './blocks-page-renderer';
|
|
32
|
+
export type { ComponentRegistry, BlocksPageRendererDataContext, EditorPageRendererProps, PageRendererDataContext, PageRendererProps, RenderablePageOutline, SdkConfigForRenderer, } from './blocks-page-renderer';
|
|
33
33
|
export type { ThemeScopeProps } from './blocks-theme-scope';
|
|
34
34
|
export type { BlockOverrideProps, BlockOverrideComponent, BlockOverrideRegistration, BlockOverrideRegistrations, BlockOverrides, CustomBlockOverrideKey, KnownSystemBlockOverrides, KnownBlockOverrideKey, LazyBlockOverrideFactory, LazyBlockOverrideRegistration, StrictBlockOverrideRegistrations, StrictBlockOverrides, SystemBlockOverrideKey, } from './overrides';
|
|
35
35
|
export { defineBlockOverrideRegistrations, defineBlockOverrides, defineLazyBlockOverride, } from './overrides';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type { PageOutline } from '../contracts';
|
|
2
1
|
import { type BlockOverrideRegistrations, type BlockOverrides } from './overrides';
|
|
3
2
|
export type PageBlockKindIndex = Readonly<{
|
|
4
3
|
kind: 'page-block-kind-index';
|
|
5
4
|
blockKinds: ReadonlySet<string>;
|
|
6
5
|
}>;
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
type PageBlockKindSource = Readonly<{
|
|
7
|
+
blocks: readonly unknown[];
|
|
8
|
+
}>;
|
|
9
|
+
export declare function collectUsedBlockKindsFromPageOutline(page: PageBlockKindSource | null | undefined): ReadonlySet<string>;
|
|
10
|
+
export declare function buildPageBlockKindIndex(page: PageBlockKindSource | null | undefined): PageBlockKindIndex;
|
|
9
11
|
/**
|
|
10
12
|
* Resolve only override registrations used by the current page or template.
|
|
11
13
|
*
|
|
@@ -13,4 +15,5 @@ export declare function buildPageBlockKindIndex(page: PageOutline | null | undef
|
|
|
13
15
|
* with `defineLazyBlockOverride()` are loaded only after their block kind is
|
|
14
16
|
* found in the rendered block tree.
|
|
15
17
|
*/
|
|
16
|
-
export declare function resolveBlockOverridesForPage(registrations: BlockOverrideRegistrations | undefined, page:
|
|
18
|
+
export declare function resolveBlockOverridesForPage(registrations: BlockOverrideRegistrations | undefined, page: PageBlockKindSource | null | undefined): Promise<BlockOverrides | undefined>;
|
|
19
|
+
export {};
|
|
@@ -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
|
-
end: "end";
|
|
230
229
|
start: "start";
|
|
230
|
+
end: "end";
|
|
231
231
|
}>;
|
|
232
232
|
/**
|
|
233
233
|
* A rule drawn along one card edge. `full` renders as a border side; `short`
|
|
@@ -255,8 +255,8 @@ export declare const cardEdgeRuleSchema: z.ZodObject<{
|
|
|
255
255
|
}>>;
|
|
256
256
|
align: z.ZodOptional<z.ZodEnum<{
|
|
257
257
|
center: "center";
|
|
258
|
-
end: "end";
|
|
259
258
|
start: "start";
|
|
259
|
+
end: "end";
|
|
260
260
|
}>>;
|
|
261
261
|
alpha: z.ZodOptional<z.ZodNumber>;
|
|
262
262
|
}, z.core.$strip>;
|
|
@@ -286,8 +286,8 @@ export declare const cardDecorationSchema: z.ZodObject<{
|
|
|
286
286
|
}>>;
|
|
287
287
|
align: z.ZodOptional<z.ZodEnum<{
|
|
288
288
|
center: "center";
|
|
289
|
-
end: "end";
|
|
290
289
|
start: "start";
|
|
290
|
+
end: "end";
|
|
291
291
|
}>>;
|
|
292
292
|
alpha: z.ZodOptional<z.ZodNumber>;
|
|
293
293
|
}, z.core.$strip>;
|
|
@@ -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
|
-
end: "end";
|
|
317
316
|
start: "start";
|
|
317
|
+
end: "end";
|
|
318
318
|
}>>;
|
|
319
319
|
alpha: z.ZodOptional<z.ZodNumber>;
|
|
320
320
|
}, z.core.$strip>>;
|
|
@@ -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
|
-
end: "end";
|
|
505
504
|
start: "start";
|
|
505
|
+
end: "end";
|
|
506
506
|
}>>;
|
|
507
507
|
alpha: z.ZodOptional<z.ZodNumber>;
|
|
508
508
|
}, z.core.$strip>>>;
|
|
@@ -568,7 +568,7 @@ export declare const cardVariantSchema: z.ZodPipe<z.ZodObject<{
|
|
|
568
568
|
colorToken: string;
|
|
569
569
|
width: "medium" | "thin" | "thick" | "hairline" | "heavy";
|
|
570
570
|
length?: "short" | "full" | undefined;
|
|
571
|
-
align?: "center" | "
|
|
571
|
+
align?: "center" | "start" | "end" | undefined;
|
|
572
572
|
alpha?: number | undefined;
|
|
573
573
|
}[] | undefined;
|
|
574
574
|
accentEdge?: {
|
|
@@ -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
|
-
end: "end";
|
|
734
733
|
start: "start";
|
|
734
|
+
end: "end";
|
|
735
735
|
}>>;
|
|
736
736
|
alpha: z.ZodOptional<z.ZodNumber>;
|
|
737
737
|
}, z.core.$strip>>>;
|
|
@@ -797,7 +797,7 @@ export declare const cardSystemSchema: z.ZodPipe<z.ZodObject<{
|
|
|
797
797
|
colorToken: string;
|
|
798
798
|
width: "medium" | "thin" | "thick" | "hairline" | "heavy";
|
|
799
799
|
length?: "short" | "full" | undefined;
|
|
800
|
-
align?: "center" | "
|
|
800
|
+
align?: "center" | "start" | "end" | undefined;
|
|
801
801
|
alpha?: number | undefined;
|
|
802
802
|
}[] | undefined;
|
|
803
803
|
accentEdge?: {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme data exports (no React components)
|
|
3
|
+
*
|
|
4
|
+
* This module exports only pure data and types - no React dependencies.
|
|
5
|
+
* Use this for server-side code or integration tests.
|
|
6
|
+
*/
|
|
7
|
+
export * from './schema';
|
|
8
|
+
export { mockThemes } from './mock-themes/all';
|
|
9
|
+
export { modernMinimalTheme } from './mock-themes/modern-minimal';
|
|
10
|
+
export { classicProfessionalTheme } from './mock-themes/classic-professional';
|
|
11
|
+
export { vibrantCreativeTheme } from './mock-themes/vibrant-creative';
|
|
12
|
+
export type { CornerStyle, ShadowSize, TextTransform, FontWeight, HoverTransform, HoverColor, GradientStyle, GradientSharpness, GradientDirection, ButtonVariant, ButtonSystem, } from './buttons/types';
|