@riverbankcms/sdk 0.144.0 → 0.145.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/dist/{PreviewEditorSidebar-CQZNnFiM.mjs → PreviewEditorSidebar-O-V6Pl5a.mjs} +4 -4
- package/dist/{PreviewEditorUI-DCNxnmI0.mjs → PreviewEditorUI-1UlX_9cw.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BCYICImX.mjs → PreviewQueryProvider-BxGwdOCV.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-BJolUbr1.mjs → SdkPreviewModeRuntime-DYbA_4iv.mjs} +419 -348
- package/dist/{SiteChromeCustomizeContext-CKgEpoxi.mjs → SiteChromeCustomizeContext-CNTKQ9nx.mjs} +2081 -1313
- package/dist/_dts/ai/src/contracts/proposals.d.ts +4719 -66
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +429 -6
- package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +49 -0
- package/dist/_dts/api/src/appointmentServiceCategoryEndpoints.d.ts +75 -0
- package/dist/_dts/api/src/appointmentServiceContracts.d.ts +80 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +8 -1
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -12
- package/dist/_dts/api/src/communications.d.ts +14 -22
- package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
- package/dist/_dts/api/src/endpoints.d.ts +105 -58
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/launchReadiness.d.ts +2 -0
- package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +0 -23
- package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +3 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +35 -1
- package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +13 -0
- package/dist/_dts/api/src/publicNewsletterEndpointDefinitions.d.ts +58 -0
- package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +3 -3
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/types.d.ts +2 -1
- package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -4
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +24 -0
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/pageRenderJoins.d.ts +68 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -27
- package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +7 -4
- package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +40 -23
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-services.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +1 -1
- 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/manifest/schema.d.ts +29 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +22 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +57 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-categories.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-choices.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +13 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +20 -1
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
- package/dist/_dts/core/src/appointment-service-categories.d.ts +108 -0
- package/dist/_dts/core/src/editor-state.d.ts +6 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/public-profile.d.ts +9 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +663 -241
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +6 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +16 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +13 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +29 -0
- package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +7 -2
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +1 -3
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
- package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +8 -0
- package/dist/_dts/sdk/src/client/types.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/page.d.ts +7 -2
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +2 -2
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -8
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/layout/boundaryCss.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/compositionBudget.d.ts +8 -0
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +1 -3
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/joinTreatment.d.ts +132 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorBoundaries.d.ts +31 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +33 -29
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/pageFlowPresets.d.ts +36 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -10
- package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +17 -4
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +20 -74
- package/dist/_dts/theme-core/src/site-styles/sectionBoundaryComposition.d.ts +95 -0
- package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +80 -518
- package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +9 -4
- package/dist/_dts/theme-core/src/site-styles/transitionCatalogue.d.ts +320 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +3 -18
- package/dist/client/{BookingConsentAgreement-DoAILrkN.mjs → BookingConsentAgreement-DlVOmpW4.mjs} +2 -2
- package/dist/client/{DiscountCodeDisclosure-X528hUTf.mjs → DiscountCodeDisclosure-T9q623PQ.mjs} +1 -1
- package/dist/client/{EventCombined.client-DSBVwq5m.mjs → EventCombined.client-DnsUeONl.mjs} +6 -6
- package/dist/client/{EventListing.client-DmFAX7Vb.mjs → EventListing.client-CNBFqJS4.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BAqXdfhq.mjs → LeafletStaticMap-C7higg52.mjs} +1 -1
- package/dist/client/{ThemedButton-BwNFVwi4.mjs → ThemedButton-LAJTNrS8.mjs} +1 -1
- package/dist/client/{accordion-DRhMdkbd.mjs → accordion-BcNF9TjX.mjs} +1 -1
- package/dist/client/{bookingForm-iJ_nCsNF.mjs → bookingForm-BUaQ3S03.mjs} +142 -50
- package/dist/client/bookings.mjs +191 -64
- package/dist/client/{carousel-D8zuffZr.mjs → carousel-CTdF6e0V.mjs} +1 -1
- package/dist/client/{cart-DeMGJViN.mjs → cart-pGtyf_XU.mjs} +3 -3
- package/dist/client/{checkout-DXc06Km2.mjs → checkout-Da9WSn7Y.mjs} +3 -3
- package/dist/client/client.mjs +1630 -816
- package/dist/client/{context-CDLCfDep.mjs → context-BFeY_Wbm.mjs} +1 -1
- package/dist/client/{dates-ClFx7Epy.mjs → dates-BhwVSxDg.mjs} +2 -2
- package/dist/client/{eventCalendar-BaGpnOGN.mjs → eventCalendar-BAtdnR4s.mjs} +9 -9
- package/dist/client/{eventCombined-ywONOx2m.mjs → eventCombined-RksA3tRC.mjs} +4 -4
- package/dist/client/{eventDetails-B2LlOTYY.mjs → eventDetails-BB9hB4wR.mjs} +4 -4
- package/dist/client/{eventListing-CMgxWpqP.mjs → eventListing-BpJBkviM.mjs} +4 -4
- package/dist/client/{eventRegistration-BarLDNHR.mjs → eventRegistration-B18jFq_o.mjs} +8 -8
- package/dist/client/{form-BjqKaBJ7.mjs → form-Dodt8Y8t.mjs} +3 -3
- package/dist/client/{headerSection-CP4XDwz1.mjs → headerSection-B0qj9ttg.mjs} +3 -3
- package/dist/client/hooks.mjs +550 -99
- package/dist/client/{locationMap-C5gW-d-w.mjs → locationMap-gn-iMk7a.mjs} +3 -3
- package/dist/client/{newsletterForm-afXlVSA0.mjs → newsletterForm-oByLdFkr.mjs} +26 -5
- package/dist/client/{pricing-Bl1CAl28.mjs → pricing-BOU0_Hai.mjs} +1 -1
- package/dist/client/{productDetail-CvQ3jWQe.mjs → productDetail-D9v1zH2j.mjs} +3 -3
- package/dist/client/{productList-U874PGO7.mjs → productList-D-mItx1n.mjs} +3 -3
- package/dist/client/{propsDecoder-DPXtCZWP.mjs → propsDecoder-C3TP_z4x.mjs} +72 -33
- package/dist/client/rendering/client.mjs +900 -266
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +1637 -788
- package/dist/client/{routeIslandApiConfig-NGYiUWXu.mjs → routeIslandApiConfig-DzN1W0sq.mjs} +1 -1
- package/dist/client/{scrollToBlock-0-C3DVhK.mjs → scrollToBlock-CWs8EIdo.mjs} +1 -1
- package/dist/client/{shop-BXjXhM9P.mjs → shop-Dufw7N7o.mjs} +7 -7
- package/dist/client/{shop-commerce-BZ6UlWJ7.mjs → shop-commerce-gklw_hLF.mjs} +6 -6
- package/dist/client/{shop-commerce-store-DlSBXb3D.mjs → shop-commerce-store-Sf1eyTaZ.mjs} +1 -1
- package/dist/client/{shopShared-kkEOiLPA.mjs → shopShared-B5nyA41S.mjs} +4 -4
- package/dist/client/{useEventFilters-zvnnE1ro.mjs → useEventFilters-CLL829vy.mjs} +6 -6
- package/dist/preview-next/before-render.mjs +147 -77
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +147 -77
- package/dist/preview-next/middleware.mjs +147 -77
- package/dist/{previewAuthStore-JA6-I_sL.mjs → previewAuthStore-BxAFlu-j.mjs} +147 -77
- package/dist/{sdk-runtime-DFJlQt3q.mjs → sdk-runtime-D0uZFev7.mjs} +2 -2
- package/dist/{separator-o8GHb1xh.mjs → separator-EvdCAn4V.mjs} +1 -1
- package/dist/server/components.mjs +1727 -991
- package/dist/server/config-validation.mjs +537 -97
- package/dist/server/config.mjs +537 -97
- package/dist/server/data.mjs +549 -98
- package/dist/server/index.mjs +159 -81
- package/dist/server/next.mjs +1460 -748
- package/dist/server/page-converter.mjs +384 -54
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1712 -973
- package/dist/server/rendering.mjs +1748 -1001
- package/dist/server/routing.mjs +624 -131
- package/dist/server/server.mjs +554 -138
- package/dist/server/theme-bridge.mjs +1192 -27
- package/dist/server/theme.mjs +6 -4
- package/package.json +2 -1
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { EditorBlockId, EditorBlockBaselineInput, EditorDraftBlockBaselineUpdateMetaInput, EditorDraftBlockInitMetaInput, EditorStructuralDraftSnapshot } from '../../../core/src/index';
|
|
2
2
|
export type BlockItem = {
|
|
3
3
|
id?: string | null;
|
|
4
|
+
/**
|
|
5
|
+
* The content version the block was loaded with. Runtime blocks that
|
|
6
|
+
* submit to the API (newsletter signup) cite it so the server can verify
|
|
7
|
+
* the placement; dropping it turns the form off in preview.
|
|
8
|
+
*/
|
|
9
|
+
contentVersionId?: string | null;
|
|
4
10
|
kind: string;
|
|
5
11
|
content?: Record<string, unknown> | null;
|
|
6
12
|
orderIndex?: number | null;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { GetEndpoint, ApiClient } from '../../../../api/src/index';
|
|
2
2
|
import type { SiteOptionSource } from '../../../../blocks/src/index';
|
|
3
|
-
import type { SiteOptionWidgetAdapter, SiteOptionWidgetAdapters, SiteOptionWidgetItem } from './types';
|
|
3
|
+
import type { SiteOptionSingleSelectionConfig, SiteOptionWidgetAdapter, SiteOptionWidgetAdapters, SiteOptionWidgetItem } from './types';
|
|
4
4
|
type ListEventCategoriesResponse = NonNullable<GetEndpoint<'listEventCategories'>['response']>;
|
|
5
5
|
type ListVenuesResponse = NonNullable<GetEndpoint<'listVenues'>['response']>;
|
|
6
6
|
type ListAppointmentResourcesResponse = NonNullable<GetEndpoint<'listAppointmentResources'>['response']>;
|
|
7
|
+
type ListAppointmentServiceCategoriesResponse = NonNullable<GetEndpoint<'listAppointmentServiceCategories'>['response']>;
|
|
7
8
|
export type SiteOptionLoadItemsArgs = Readonly<{
|
|
8
9
|
siteId: string;
|
|
9
10
|
source: SiteOptionSource;
|
|
@@ -36,12 +37,19 @@ export declare const siteOptionWidgetLabels: {
|
|
|
36
37
|
readonly empty: "No staff yet";
|
|
37
38
|
readonly emptySelection: "Choose a staff member to restrict this block.";
|
|
38
39
|
};
|
|
40
|
+
readonly appointmentServiceCategories: {
|
|
41
|
+
readonly loading: "Loading categories...";
|
|
42
|
+
readonly select: "All categories";
|
|
43
|
+
readonly empty: "No categories yet";
|
|
44
|
+
readonly emptySelection: "All categories";
|
|
45
|
+
};
|
|
39
46
|
};
|
|
40
47
|
export declare const siteOptionLoadFailureMessages: {
|
|
41
48
|
readonly eventSeries: "We couldn't load your events. Please try again.";
|
|
42
49
|
readonly eventCategories: "Failed to load event categories";
|
|
43
50
|
readonly venues: "Failed to load venues";
|
|
44
51
|
readonly staffMembers: "Failed to load staff members";
|
|
52
|
+
readonly appointmentServiceCategories: "Failed to load service categories";
|
|
45
53
|
};
|
|
46
54
|
export declare function mapEventCategoriesToSiteOptionItems(payload: ListEventCategoriesResponse): SiteOptionWidgetItem[];
|
|
47
55
|
export declare function mapEventsToSiteOptionItems(events: readonly Readonly<{
|
|
@@ -65,6 +73,13 @@ export declare function mapEventsToSiteOptionItems(events: readonly Readonly<{
|
|
|
65
73
|
}>[]): SiteOptionWidgetItem[];
|
|
66
74
|
export declare function mapVenuesToSiteOptionItems(payload: ListVenuesResponse): SiteOptionWidgetItem[];
|
|
67
75
|
export declare function mapStaffMembersToSiteOptionItems(payload: ListAppointmentResourcesResponse): SiteOptionWidgetItem[];
|
|
76
|
+
export declare function mapAppointmentServiceCategoriesToSiteOptionItems(payload: ListAppointmentServiceCategoriesResponse): SiteOptionWidgetItem[];
|
|
77
|
+
/**
|
|
78
|
+
* Sources whose single selection has an explicit default option and can go
|
|
79
|
+
* stale (issue 1403). Only appointment-service categories opt in: the event
|
|
80
|
+
* calendar pickers keep their existing behaviour.
|
|
81
|
+
*/
|
|
82
|
+
export declare const siteOptionSingleSelection: Partial<Readonly<Record<SiteOptionSource, SiteOptionSingleSelectionConfig>>>;
|
|
68
83
|
export declare function loadSiteOptionItemsFromApi({ apiClient, siteId, source }: SiteOptionLoadItemsArgs & Readonly<{
|
|
69
84
|
apiClient: ApiClient;
|
|
70
85
|
}>): Promise<SiteOptionWidgetItem[]>;
|
|
@@ -11,10 +11,23 @@ export type SiteOptionWidgetSelectionLabelArgs = {
|
|
|
11
11
|
items: readonly SiteOptionWidgetItem[];
|
|
12
12
|
};
|
|
13
13
|
export type SiteOptionWidgetAdapterLabels = PickerLabels;
|
|
14
|
+
/**
|
|
15
|
+
* Opt-in behaviour for a single-select source. The empty value is offered as
|
|
16
|
+
* a named default option, and a stored value missing from the loaded options
|
|
17
|
+
* (it was deleted) shows `missingSelection.label` with its warning.
|
|
18
|
+
*/
|
|
19
|
+
export type SiteOptionSingleSelectionConfig = Readonly<{
|
|
20
|
+
defaultOptionLabel: string;
|
|
21
|
+
missingSelection: Readonly<{
|
|
22
|
+
label: string;
|
|
23
|
+
warning: string;
|
|
24
|
+
}>;
|
|
25
|
+
}>;
|
|
14
26
|
export type SiteOptionWidgetAdapter = {
|
|
15
27
|
loadItems: (args: SiteOptionWidgetAdapterArgs) => Promise<SiteOptionWidgetItem[]>;
|
|
16
28
|
renderManageLink?: (args: SiteOptionWidgetAdapterArgs) => ReactNode;
|
|
17
29
|
formatSelectionLabel?: (args: SiteOptionWidgetSelectionLabelArgs) => string;
|
|
18
30
|
labels?: SiteOptionWidgetAdapterLabels;
|
|
31
|
+
singleSelection?: SiteOptionSingleSelectionConfig;
|
|
19
32
|
};
|
|
20
33
|
export type SiteOptionWidgetAdapters = Record<SiteOptionSource, SiteOptionWidgetAdapter>;
|
|
@@ -2,4 +2,33 @@ import { type SiteOptionSource } from '../../../../blocks/src/index';
|
|
|
2
2
|
import type { SelectFieldConfig } from '../../../../block-form/src/index';
|
|
3
3
|
export type SiteOptionValue = string | string[] | null | undefined;
|
|
4
4
|
export declare function normalizeSiteOptionMultiValue(value: SiteOptionValue): string[];
|
|
5
|
+
/**
|
|
6
|
+
* A single selection read against the loaded options.
|
|
7
|
+
*
|
|
8
|
+
* - `default`: nothing stored, so the source's default option applies.
|
|
9
|
+
* - `selected`: the stored value is one of the options.
|
|
10
|
+
* - `unresolved`: the options haven't loaded (or failed), so a stored value
|
|
11
|
+
* can't be judged yet. It must not be reported as deleted.
|
|
12
|
+
* - `missing`: the options loaded and the stored value isn't among them, so
|
|
13
|
+
* whatever it pointed at has been deleted.
|
|
14
|
+
*/
|
|
15
|
+
export type SiteOptionSingleSelectionState = Readonly<{
|
|
16
|
+
kind: 'default';
|
|
17
|
+
}> | Readonly<{
|
|
18
|
+
kind: 'selected';
|
|
19
|
+
value: string;
|
|
20
|
+
}> | Readonly<{
|
|
21
|
+
kind: 'unresolved';
|
|
22
|
+
value: string;
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
kind: 'missing';
|
|
25
|
+
value: string;
|
|
26
|
+
}>;
|
|
27
|
+
export declare function resolveSiteOptionSingleSelection(input: Readonly<{
|
|
28
|
+
value: SiteOptionValue;
|
|
29
|
+
items: readonly Readonly<{
|
|
30
|
+
value: string;
|
|
31
|
+
}>[];
|
|
32
|
+
loaded: boolean;
|
|
33
|
+
}>): SiteOptionSingleSelectionState;
|
|
5
34
|
export declare function getSiteOptionSource(config: SelectFieldConfig): SiteOptionSource | null;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type DesignBlockId } from '../../../../theme-core/src/site-styles/index';
|
|
2
|
+
import { type BoundaryOutcome, type DesignBlockId } from '../../../../theme-core/src/site-styles/index';
|
|
3
3
|
type BoundaryControlProps = Readonly<{
|
|
4
4
|
previousBlockId: DesignBlockId;
|
|
5
5
|
nextBlockId: DesignBlockId;
|
|
6
6
|
previousBlockKind: string;
|
|
7
7
|
nextBlockKind: string;
|
|
8
|
+
/**
|
|
9
|
+
* What the renderer composed for this join, or null when the pair has no
|
|
10
|
+
* break. Informational only: it never changes the controls or the choice.
|
|
11
|
+
*/
|
|
12
|
+
outcome: BoundaryOutcome | null;
|
|
8
13
|
}>;
|
|
9
|
-
export declare function BoundaryControl({ previousBlockId, nextBlockId, previousBlockKind, nextBlockKind, }: BoundaryControlProps): React.JSX.Element | null;
|
|
14
|
+
export declare function BoundaryControl({ previousBlockId, nextBlockId, previousBlockKind, nextBlockKind, outcome, }: BoundaryControlProps): React.JSX.Element | null;
|
|
10
15
|
export {};
|
|
@@ -4,4 +4,4 @@ import type { DraftSnapshot, EditorDraftInspectorStore, EnrichedBlock } from './
|
|
|
4
4
|
import { type PreviewProjection } from '../previewProjection';
|
|
5
5
|
import { type LinkedEntryRenderOverlay } from '../linkedEntryRenderOverlay';
|
|
6
6
|
export declare function getDraftSnapshots(uiStore: EditorDraftInspectorStore): Map<EditorBlockId, DraftSnapshot>;
|
|
7
|
-
export declare function mergeBlockWithDraft(block: BlockItem, draftMap: Map<EditorBlockId, DraftSnapshot>, index: number, projections?: readonly PreviewProjection[], linkedEntryOverlays?: LinkedEntryRenderOverlay
|
|
7
|
+
export declare function mergeBlockWithDraft(block: BlockItem, draftMap: Map<EditorBlockId, DraftSnapshot>, index: number, projections?: readonly PreviewProjection[], linkedEntryOverlays?: LinkedEntryRenderOverlay): EnrichedBlock;
|
package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts
CHANGED
|
@@ -3,7 +3,5 @@ import type { BlockItem } from '../../../../../editor-blocks/src/index';
|
|
|
3
3
|
import type { CanonicalBlockContent, PreviewProjection, PreviewRenderContent } from './types';
|
|
4
4
|
export declare function applyPreviewStructureProjections(blockItems: readonly BlockItem[], projections: readonly PreviewProjection[]): BlockItem[];
|
|
5
5
|
export declare function applyPreviewContentFieldProjections(blockId: EditorBlockId, content: CanonicalBlockContent | null, projections: readonly PreviewProjection[]): CanonicalBlockContent | PreviewRenderContent | null;
|
|
6
|
-
export declare function applyPreviewRuntimeContentProjections(block: BlockItem, content: CanonicalBlockContent | PreviewRenderContent | null, projections: readonly PreviewProjection[]
|
|
7
|
-
nextContent: Record<string, unknown> | null | undefined;
|
|
8
|
-
}>): CanonicalBlockContent | PreviewRenderContent | null;
|
|
6
|
+
export declare function applyPreviewRuntimeContentProjections(block: BlockItem, content: CanonicalBlockContent | PreviewRenderContent | null, projections: readonly PreviewProjection[]): CanonicalBlockContent | PreviewRenderContent | null;
|
|
9
7
|
export declare function blockHasPreviewContentFieldProjection(blockId: EditorBlockId, projections: readonly PreviewProjection[]): boolean;
|
package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockItem } from '../../../../../editor-blocks/src/index';
|
|
2
|
-
import { type DesignRuntimeRules, type PageDesignEditorReadModel, type
|
|
2
|
+
import { type DesignRuntimeRules, type PageDesignEditorReadModel, type SurfaceResolutionContext } from '../../../../../theme-core/src/site-styles/previewCompiler';
|
|
3
3
|
import type { CanonicalBlockContent, PreviewRenderContent, RuntimeContentDecorationProjection } from './types';
|
|
4
4
|
import type { ComponentRuntimeRules } from '../../../../../theme-core/src/site-styles/previewCompiler';
|
|
5
5
|
export declare function runtimeContentDecorationProjectionFromEditorModel(editorModel: PageDesignEditorReadModel, surfaceResolutionContext: SurfaceResolutionContext, designRules?: DesignRuntimeRules, componentRules?: ComponentRuntimeRules): RuntimeContentDecorationProjection;
|
|
6
|
-
export declare function applyRuntimeContentDecorationProjection(block: BlockItem, content: CanonicalBlockContent | PreviewRenderContent | null, projection: RuntimeContentDecorationProjection
|
|
6
|
+
export declare function applyRuntimeContentDecorationProjection(block: BlockItem, content: CanonicalBlockContent | PreviewRenderContent | null, projection: RuntimeContentDecorationProjection): PreviewRenderContent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EditorBlockId } from '../../../../../core/src/index';
|
|
2
2
|
import type { BlockItem } from '../../../../../editor-blocks/src/index';
|
|
3
|
-
import type { CompiledBlockRuntimeFields,
|
|
3
|
+
import type { CompiledBlockRuntimeFields, DesignBlockId, PageRuntimeJoin } from '../../../../../theme-core/src/site-styles/previewCompiler';
|
|
4
4
|
export type CanonicalBlockContent = Record<string, unknown> & {
|
|
5
5
|
readonly __contentAuthority?: 'canonical-block-content';
|
|
6
6
|
};
|
|
@@ -55,7 +55,7 @@ export type PreviewProjection = Readonly<{
|
|
|
55
55
|
kind: 'runtime-content-decoration';
|
|
56
56
|
source: 'page-design';
|
|
57
57
|
fieldsByBlockId: ReadonlyMap<DesignBlockId, CompiledBlockRuntimeFields>;
|
|
58
|
-
|
|
58
|
+
joins: readonly PageRuntimeJoin<DesignBlockId>[];
|
|
59
59
|
}>;
|
|
60
60
|
export type StructureProjection = Extract<PreviewProjection, {
|
|
61
61
|
kind: 'structure-overlay';
|
|
@@ -3,6 +3,7 @@ import type { ApiClient } from '../../../../api/src/request';
|
|
|
3
3
|
import { type ContentTypeSchema } from '../../../../content-model/src/index';
|
|
4
4
|
export type PreviewBlock = {
|
|
5
5
|
id: string | null;
|
|
6
|
+
contentVersionId?: string | null;
|
|
6
7
|
kind: string;
|
|
7
8
|
purpose?: string | null;
|
|
8
9
|
orderIndex?: number | null;
|
|
@@ -7,6 +7,14 @@ export type PublishedRuntimeCacheKey = string & {
|
|
|
7
7
|
export type PublishedRuntimeCachePayloadSchemaVersion = number & {
|
|
8
8
|
readonly [publishedRuntimeCachePayloadSchemaVersionBrand]: 'PublishedRuntimeCachePayloadSchemaVersion';
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Bump when a cached payload's shape changes incompatibly, so readers skip
|
|
12
|
+
* entries written in the old shape until publish or a live success rewrites
|
|
13
|
+
* them.
|
|
14
|
+
*
|
|
15
|
+
* - 2: pages carry intent-only `runtimeJoins` in place of compiled
|
|
16
|
+
* `runtimeBoundaries` (issue 1422).
|
|
17
|
+
*/
|
|
10
18
|
export declare const DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION: PublishedRuntimeCachePayloadSchemaVersion;
|
|
11
19
|
export type GetSiteRuntimeCacheParams = Readonly<Pick<GetSiteParams, 'id' | 'slug' | 'domain' | 'currentPath' | 'force'>>;
|
|
12
20
|
export type GetContentByPathRuntimeCacheParams = Readonly<Pick<GetPageParams, 'siteId' | 'path' | 'preview'>>;
|
|
@@ -2,7 +2,7 @@ import type { CalendarWindowRequest, CalendarWindowPage } from '../../../blocks/
|
|
|
2
2
|
import type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicWeeklySlotAvailabilityResponse, PublicFormResponse, PublicFormsResponse, PublicProductsResponse, PublicTeamMembersResponse, PublicMembershipsResponse, PublicPassesResponse, PublicEventDetailsResponse, PublicEventsResponse, ResolveEventOccurrenceResponse, ResolveEventRunResponse, RouteDecisionResponse, RouteOutcomeResponse, RoutableContentResponse, SiteResponse, SitemapRoutesResponse, PublicProductCategorySelector } from '../public-api/contracts';
|
|
3
3
|
import type { PublishedRuntimeCacheAdapter, PublishedRuntimeCacheAdapterErrorKind } from './runtimeCachePolicy';
|
|
4
4
|
import type { EventPageSurfaceSubjectRefWire } from '../../../core/src/index';
|
|
5
|
-
export type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicWeeklySlotAvailabilityResponse, PublicEventsResponse, PublicFormResponse, PublicFormsResponse, PublicProductsResponse, PublicTeamMembersResponse, PublicMembershipsResponse, PublicPassesResponse, PublicEventDetailsResponse, ResolveEventOccurrenceResponse, ResolveEventRunResponse, RouteDecisionResponse, RouteOutcomeResponse, RoutableContentResponse, SiteResponse, SitemapRoutesResponse, } from '../public-api/contracts';
|
|
5
|
+
export type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServiceCatalogueItem, PublicBookingServicesResponse, PublicServiceCategorySummary, PublicWeeklySlotAvailabilityResponse, PublicEventsResponse, PublicFormResponse, PublicFormsResponse, PublicProductsResponse, PublicTeamMembersResponse, PublicMembershipsResponse, PublicPassesResponse, PublicEventDetailsResponse, ResolveEventOccurrenceResponse, ResolveEventRunResponse, RouteDecisionResponse, RouteOutcomeResponse, RoutableContentResponse, SiteResponse, SitemapRoutesResponse, } from '../public-api/contracts';
|
|
6
6
|
/**
|
|
7
7
|
* Pagination metadata returned when `includeMeta: true`
|
|
8
8
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { TipTapNode, TipTapMark, RichTextDoc, InlineText, InlineTextAccentTone, InlineTextHighlightTone, InlineTextMark, InlineTextRun, Media, LinkValue, InternalRouteOnlyLinkValue, InternalResolvedLinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, RichTextPrimitiveProps, RichTextVariant, } from './content';
|
|
2
2
|
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CartContent, CardRole, CardStylesContent, CheckoutContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent, ContentFrameIntent, CtaFullContent, DisplayMode, EmbedContent, EventCalendarContent, EventDetailsContent, EventLayout, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FaqItem, FeatureCardLegacySurfaceRole, FeatureCardSurfaceRole, FilterAutoShow, FormBlockContent, GiftingContent, HeroContent, HeroCta, HeroCtaInput, HeroMedia, ImageColSize, ImageGalleryContent, IntroContent, LocationMapContent, LayoutAlign, LayoutWidth, MediaTextAlignment, MediaTextAspectRatio, MediaTextContent, MediaTextImagePosition, NewsletterSignupContent, OfferingsPreviewContent, ProductDetailContent, ProductListContent, RecurringScheduleContent, SectionStylesContent, SemanticIconId, SemanticSpacing, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, StackContentAlignment, StackImagePosition, SystemBlockContentByFullKind, SystemBlockContentByKind, SystemBlockContentFor, SystemBlockShortKind, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, ThumbnailPadding, ThumbnailShape, VideoGridContent, WeekStart, BlockIconValue, FeatureCardIconTreatment, } from './system-block-content';
|
|
3
|
-
export type { PageOutline,
|
|
3
|
+
export type { PageOutline, PageRuntimeJoin, BlockOutline, RouteMap, RouteMapEntry, OccurrenceContextData, EntrySubrouteContextData, } from './page';
|
|
4
4
|
export type { Theme, ThemeTokens } from './theme';
|
|
5
5
|
export type { CustomCssDeclarationsInput, CustomCssRuleInput, CustomCssNestedRuleInput, CustomCssAtRuleInput, KeyframesAtRuleInput, FontFaceAtRuleInput, MediaAtRuleInput, SupportsAtRuleInput, RawAtRuleInput, } from './custom-css';
|
|
6
6
|
export type { BindingSource, BindingTransformName, BindingDescriptor, BindingInput, BindingMap, BindingContext, } from './bindings';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Keep these types structurally compatible with the API responses.
|
|
5
5
|
*/
|
|
6
|
-
import type {
|
|
6
|
+
import type { PageRuntimeJoin as ThemeCorePageRuntimeJoin } from '../../../theme-core/src/site-styles/index';
|
|
7
7
|
export type BlockOutline = {
|
|
8
8
|
id: string | null;
|
|
9
9
|
kind: string;
|
|
@@ -19,7 +19,12 @@ export type PageOutline = {
|
|
|
19
19
|
purpose: string;
|
|
20
20
|
blocks: BlockOutline[];
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* A section break between two adjacent blocks, sent as intent only. The
|
|
24
|
+
* renderer composes placement, paint and reserves from the blocks' final
|
|
25
|
+
* content; the boundary id derives from the two block ids.
|
|
26
|
+
*/
|
|
27
|
+
export type PageRuntimeJoin = ThemeCorePageRuntimeJoin<string>;
|
|
23
28
|
export type RouteMapEntry = string | {
|
|
24
29
|
path?: string | null;
|
|
25
30
|
href?: string | null;
|
|
@@ -559,6 +559,11 @@ export type AppointmentBookingContent = {
|
|
|
559
559
|
export type AppointmentServicesContent = {
|
|
560
560
|
heading?: string | null;
|
|
561
561
|
description?: unknown;
|
|
562
|
+
/**
|
|
563
|
+
* Show one appointment-service category, with its heading and intro. Unset
|
|
564
|
+
* shows every category grouped; a deleted category falls back to that.
|
|
565
|
+
*/
|
|
566
|
+
categoryId?: string | null;
|
|
562
567
|
_sectionStyles?: SectionStylesContent;
|
|
563
568
|
};
|
|
564
569
|
export type WeeklySlotAvailabilityContent = {
|
|
@@ -19,10 +19,10 @@ export declare const fieldTypeEnum: z.ZodEnum<{
|
|
|
19
19
|
boolean: "boolean";
|
|
20
20
|
link: "link";
|
|
21
21
|
text: "text";
|
|
22
|
+
group: "group";
|
|
22
23
|
select: "select";
|
|
23
24
|
media: "media";
|
|
24
25
|
repeater: "repeater";
|
|
25
|
-
group: "group";
|
|
26
26
|
richText: "richText";
|
|
27
27
|
}>;
|
|
28
28
|
/**
|
|
@@ -167,8 +167,8 @@ export declare const pass1OutputSchema: z.ZodObject<{
|
|
|
167
167
|
blockDescription: z.ZodNullable<z.ZodString>;
|
|
168
168
|
category: z.ZodEnum<{
|
|
169
169
|
content: "content";
|
|
170
|
-
media: "media";
|
|
171
170
|
layout: "layout";
|
|
171
|
+
media: "media";
|
|
172
172
|
marketing: "marketing";
|
|
173
173
|
blog: "blog";
|
|
174
174
|
interactive: "interactive";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AddressedLocationValue, BusinessAddress } from '../../../core/src/index';
|
|
2
2
|
import type { ResolvedInternalLinkEntityType } from '../../../blocks/src/index';
|
|
3
|
-
import type { APIEndpoints, PublicBookingService as ApiPublicBookingService, RoutableContentItem as ApiRoutableContentItem, SdkRuntimePageSurfaceSubject as ApiSdkRuntimePageSurfaceSubject, SiteBySlugResponse as ApiSiteBySlugResponse, SiteBookingOfferingPresetSummary as ApiSiteBookingOfferingPresetSummary, SdkBlockContentAdmission } from '../../../api/src/index';
|
|
3
|
+
import type { APIEndpoints, PublicBookingService as ApiPublicBookingService, PublicBookingServiceCatalogueItem as ApiPublicBookingServiceCatalogueItem, PublicBookingServicesResponse as ApiPublicBookingServicesResponse, PublicServiceCategorySummary as ApiPublicServiceCategorySummary, RoutableContentItem as ApiRoutableContentItem, SdkRuntimePageSurfaceSubject as ApiSdkRuntimePageSurfaceSubject, SiteBySlugResponse as ApiSiteBySlugResponse, SiteBookingOfferingPresetSummary as ApiSiteBookingOfferingPresetSummary, SdkBlockContentAdmission } from '../../../api/src/index';
|
|
4
4
|
import type { MediaAssetIndexItem, SiteFooterContent, SiteHeaderContent } from '../contracts';
|
|
5
|
-
import type {
|
|
5
|
+
import type { PageRuntimeJoin } from '../../../theme-core/src/site-styles/index';
|
|
6
6
|
import type { BlockFieldConfig as SdkBlockFieldConfig, BlockFieldOptionsMap as SdkBlockFieldOptionsMap, ContentConfig as SdkContentConfig, ContainerOptionsConfig as SdkContainerOptionsConfig, FieldSelectOption as SdkFieldSelectOption, SdkCustomBlock, SdkThemeConfig, SdkThemePalette, SectionBackground as SdkSectionBackground, SectionOptionsConfig as SdkSectionOptionsConfig, SiteStyleConfig as SdkSiteStyleConfig } from '../config/types';
|
|
7
7
|
import type { PublicTeamMemberBlockItem } from './teamMemberContracts';
|
|
8
8
|
import type { ResolveEventSubrouteResponse } from './eventSubrouteContracts';
|
|
@@ -370,7 +370,7 @@ export type SdkRuntimePage = {
|
|
|
370
370
|
content: Record<string, unknown>;
|
|
371
371
|
admission?: SdkBlockContentAdmission;
|
|
372
372
|
}>;
|
|
373
|
-
|
|
373
|
+
runtimeJoins?: readonly PageRuntimeJoin<string>[];
|
|
374
374
|
};
|
|
375
375
|
export type SdkTemplate = {
|
|
376
376
|
id: string;
|
|
@@ -562,11 +562,9 @@ export type PublicFormsResponse = {
|
|
|
562
562
|
forms: FormRecord[];
|
|
563
563
|
};
|
|
564
564
|
export type PublicBookingService = ApiPublicBookingService;
|
|
565
|
-
export type
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
}>;
|
|
569
|
-
};
|
|
565
|
+
export type PublicServiceCategorySummary = ApiPublicServiceCategorySummary;
|
|
566
|
+
export type PublicBookingServiceCatalogueItem = ApiPublicBookingServiceCatalogueItem;
|
|
567
|
+
export type PublicBookingServicesResponse = ApiPublicBookingServicesResponse;
|
|
570
568
|
export type PublicWeeklySlotAvailabilityOption = {
|
|
571
569
|
id: string;
|
|
572
570
|
resourceId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { BlockLoaderFailures } from '../../../blocks/src/system/data/index';
|
|
3
3
|
import type { RenderablePageOutline as BlocksRenderablePageOutline } from '../../../blocks/src/index';
|
|
4
|
-
import type { EntrySubrouteContextData, MediaAssetIndexItem, OccurrenceContextData, PageOutline,
|
|
4
|
+
import type { EntrySubrouteContextData, MediaAssetIndexItem, OccurrenceContextData, PageOutline, PageRuntimeJoin, ResolveImageUrlContextInput, RouteMap, Theme, ThemeTokens } from '../contracts';
|
|
5
5
|
import type { SdkCustomBlock } from '../config/types';
|
|
6
6
|
import type { BlockOverrides } from './overrides';
|
|
7
7
|
import type { SiteBookingOfferingPresetSummary } from '../public-api/contracts';
|
|
@@ -56,7 +56,7 @@ export type SdkConfigForRenderer = {
|
|
|
56
56
|
};
|
|
57
57
|
type PageRendererCommonProps<TPage> = {
|
|
58
58
|
page: TPage | null;
|
|
59
|
-
|
|
59
|
+
runtimeJoins?: readonly PageRuntimeJoin[];
|
|
60
60
|
dataContext?: PageRendererDataContext;
|
|
61
61
|
routeMap?: RouteMap;
|
|
62
62
|
wrapBlock?: (blockId: string, rendered: React.ReactNode) => React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import type { EntrySubrouteContextData, MediaAssetIndexItem, OccurrenceContextData,
|
|
2
|
+
import type { EntrySubrouteContextData, MediaAssetIndexItem, OccurrenceContextData, PageRuntimeJoin, 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';
|
|
@@ -10,7 +10,7 @@ import type { SdkCustomBlock } from '../../config/types';
|
|
|
10
10
|
import type { SdkRenderingMode } from '../renderingMode';
|
|
11
11
|
type PageCommonProps = {
|
|
12
12
|
page: RenderablePageOutline;
|
|
13
|
-
|
|
13
|
+
runtimeJoins?: readonly PageRuntimeJoin[];
|
|
14
14
|
siteId: string;
|
|
15
15
|
resolvedData?: ResolvedBlockData;
|
|
16
16
|
bookingOfferingPresets?: readonly SiteBookingOfferingPresetSummary[];
|
|
@@ -101,7 +101,7 @@ export type PageContentResult = {
|
|
|
101
101
|
pageMetadata: PagePreviewMetadata;
|
|
102
102
|
/** Page outline ready for rendering with <Page> component */
|
|
103
103
|
page: PageProps['page'];
|
|
104
|
-
|
|
104
|
+
runtimeJoins?: PageProps['runtimeJoins'];
|
|
105
105
|
/** Site theme for styling */
|
|
106
106
|
theme: Theme | null;
|
|
107
107
|
/** Site ID */
|
|
@@ -36,6 +36,7 @@ export type SurfaceHostContext = Readonly<{
|
|
|
36
36
|
export declare const SURFACE_ROOT_HOSTS: Readonly<Record<SurfaceId, Readonly<Record<SurfaceTier, string>>>>;
|
|
37
37
|
export declare const SURFACE_SITE_ROOT_HOSTS: Readonly<Record<SurfaceId, Readonly<Record<SurfaceTier, string>>>>;
|
|
38
38
|
export declare function resolveSurfaceFontHref(surfaceId: SurfaceId): string | null;
|
|
39
|
+
export declare function resolveSurfaceSiteHostContext(value: string | URL | null | undefined): SurfaceHostContext | null;
|
|
39
40
|
export declare function resolveSurfaceHostContext(value: string | URL | null | undefined): SurfaceHostContext | null;
|
|
40
41
|
export declare function buildSurfaceAwareDashboardOrigin(input: Readonly<{
|
|
41
42
|
dashboardOrigin: string;
|
|
@@ -33,6 +33,14 @@ export type CompositionBudgetValidationInput<TBlockId extends string = DesignBlo
|
|
|
33
33
|
policy: DesignResolutionPolicy;
|
|
34
34
|
budget: CompositionBudget;
|
|
35
35
|
resolved: ResolvedPageDesignPlan<TBlockId, TPurpose>;
|
|
36
|
+
/**
|
|
37
|
+
* The page's resolved joins. A join counts towards the transition mix when
|
|
38
|
+
* the frame rule lets it draw; one next to a flush panel doesn't.
|
|
39
|
+
*/
|
|
40
|
+
joins: readonly Readonly<{
|
|
41
|
+
previousBlockId: TBlockId;
|
|
42
|
+
nextBlockId: TBlockId;
|
|
43
|
+
}>[];
|
|
36
44
|
blockContexts?: readonly BlockCompositionContext<TBlockId>[];
|
|
37
45
|
}>;
|
|
38
46
|
export declare function maxCompositionItemsWithinRatio(totalItems: number, allowedRatio: number): number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BlockDesignMetadata } from './blockFlow';
|
|
2
2
|
import { type PageDesignEditorIssue } from './pageDesignEditorModel';
|
|
3
|
-
import type { CompiledBlockRuntimeFields,
|
|
3
|
+
import type { CompiledBlockRuntimeFields, SurfaceResolutionContext } from './runtimeCompiler';
|
|
4
|
+
import type { PageRuntimeJoin } from './joinTreatment';
|
|
4
5
|
import { type ContentTemplateBlockScope, type ContentTemplateDesignBlockId, type ContentTemplateDesignIntent } from './contentTemplateDesignIntent';
|
|
5
6
|
import type { BlockDesignCapability, LayoutVariantKey } from './types';
|
|
6
7
|
export type ContentTemplateRuntimeBlockInput = Readonly<{
|
|
@@ -18,7 +19,7 @@ export type CompiledContentTemplateRuntimeBlock = Readonly<{
|
|
|
18
19
|
}>;
|
|
19
20
|
export type CompiledContentTemplateRuntime = Readonly<{
|
|
20
21
|
blocks: readonly CompiledContentTemplateRuntimeBlock[];
|
|
21
|
-
|
|
22
|
+
joins: readonly PageRuntimeJoin<ContentTemplateDesignBlockId>[];
|
|
22
23
|
fieldsByBlockId: ReadonlyMap<ContentTemplateDesignBlockId, CompiledBlockRuntimeFields>;
|
|
23
24
|
issues: readonly PageDesignEditorIssue<ContentTemplateDesignBlockId>[];
|
|
24
25
|
}>;
|
|
@@ -112,9 +112,7 @@ export declare const blockRuntimeStyleAuthoritySchema: z.ZodObject<{
|
|
|
112
112
|
_sectionStyles: "_sectionStyles";
|
|
113
113
|
_containerStyles: "_containerStyles";
|
|
114
114
|
_cardStyles: "_cardStyles";
|
|
115
|
-
|
|
116
|
-
styleGroup: "styleGroup";
|
|
117
|
-
}>>, z.ZodTransform<NonEmptyRuntimeStyleFieldNames, ("_frameStyles" | "_sectionStyles" | "_containerStyles" | "_cardStyles" | "_transitionStyles" | "styleGroup")[]>>;
|
|
115
|
+
}>>, z.ZodTransform<NonEmptyRuntimeStyleFieldNames, ("_frameStyles" | "_sectionStyles" | "_containerStyles" | "_cardStyles")[]>>;
|
|
118
116
|
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
119
117
|
kind: z.ZodLiteral<"theme-v2">;
|
|
120
118
|
source: z.ZodEnum<{
|
|
@@ -3,6 +3,7 @@ import type { ThemeV2StyleAuthority } from './designState';
|
|
|
3
3
|
import { type PageDesignIntent } from './pageDesignIntent';
|
|
4
4
|
import { type HeaderOpeningSectionRepair } from './headerOpeningSection';
|
|
5
5
|
import type { HeaderOpeningSectionContext } from './headerLayoutStyles';
|
|
6
|
+
import { type JoinIntent } from './joinTreatment';
|
|
6
7
|
import { type CompiledPageRuntime } from './runtimeCompiler';
|
|
7
8
|
import { type BlockDesignCapabilityMap, type BlockDesignPlan, type DesignBlockId, type DesignRepairResult, type DesignResolutionIssue, type GeneratedPageDesignIntent, type ResolvedPageDesignPlan, type SiteStyleId } from './types';
|
|
8
9
|
import type { CuratedSiteStyle } from './curatedSiteStyles';
|
|
@@ -44,6 +45,8 @@ export type GeneratedDesignPipelineSuccess<TBlockId extends DesignBlockId = Desi
|
|
|
44
45
|
intent: GeneratedPageDesignIntent<TBlockId>;
|
|
45
46
|
plan: readonly BlockDesignPlan<TBlockId>[];
|
|
46
47
|
resolved: ResolvedPageDesignPlan<TBlockId>;
|
|
48
|
+
/** The page's resolved joins, in block order; see `resolveJoinTreatment`. */
|
|
49
|
+
joins: readonly JoinIntent<TBlockId>[];
|
|
47
50
|
headerOpeningSectionContext: HeaderOpeningSectionContext;
|
|
48
51
|
headerOpeningSectionRepairs: readonly HeaderOpeningSectionRepair[];
|
|
49
52
|
repairs: readonly DesignRepairResult<TBlockId>[];
|
|
@@ -23,6 +23,7 @@ export { compareCompiledHeaders, type CompiledHeaderComparison, type HeaderField
|
|
|
23
23
|
export { compileHeaderForCuratedSelection, recompileSiteChromeHeader, recompileSiteChromeHeaderFromPersistedIntent, type CuratedHeaderSelectionRepair, type CompiledCuratedHeader, type HeaderInteractionPaletteRequest, type RecompileSiteChromeHeaderInput, type RecompiledSiteChromeHeader, } from './headerRecompile';
|
|
24
24
|
export * from './headerOpeningForeground';
|
|
25
25
|
export * from './headerOpeningSection';
|
|
26
|
+
export * from './joinTreatment';
|
|
26
27
|
export * from './lookResolution';
|
|
27
28
|
export * from './lookOptionGroups';
|
|
28
29
|
export * from './logoBranding';
|
|
@@ -42,6 +43,7 @@ export * from './resolver';
|
|
|
42
43
|
export * from './runtimeCompiler';
|
|
43
44
|
export * from './runtimeBackgroundResolution';
|
|
44
45
|
export * from './sectionTransitions';
|
|
46
|
+
export * from './sectionBoundaryComposition';
|
|
45
47
|
export * from './siteChromeBackgrounds';
|
|
46
48
|
export * from './siteChromeNavPreferences';
|
|
47
49
|
export * from './siteStyleThemeCompiler';
|
|
@@ -49,6 +51,7 @@ export * from './siteStyleBlockPolicies';
|
|
|
49
51
|
export * from './sourceCatalogs';
|
|
50
52
|
export * from './styleTags';
|
|
51
53
|
export * from './tokenRecipes';
|
|
54
|
+
export * from './transitionCatalogue';
|
|
52
55
|
export * from './siteStyleTypography';
|
|
53
56
|
export * from './themeParity';
|
|
54
57
|
export * from './types';
|