@riverbankcms/sdk 0.153.0 → 0.154.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/{EventEmbeddedCheckoutStep-veN-QiAE.mjs → EventEmbeddedCheckoutStep-ba9npQtb.mjs} +1 -1
- package/dist/{PreviewEditorSidebar-jI_4DTZY.mjs → PreviewEditorSidebar-C7FiaxlF.mjs} +194 -22
- package/dist/{PreviewEditorUI-ORkVZhfu.mjs → PreviewEditorUI-DFst50q1.mjs} +20 -44
- package/dist/{SdkPreviewModeRuntime-DaNqevI1.mjs → SdkPreviewModeRuntime-BUNV_YHZ.mjs} +49 -32
- package/dist/{SiteChromeCustomizeContext-CgNuBHC0.mjs → SiteChromeCustomizeContext-DEj7qppF.mjs} +3558 -2321
- package/dist/{ThemedButton-X2UxhW6F.mjs → ThemedButton-C8kzu0hY.mjs} +400 -81
- package/dist/_dts/ai/src/contracts/proposals.d.ts +364 -130
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +1035 -477
- package/dist/_dts/api/src/billing.d.ts +2 -0
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +78 -0
- package/dist/_dts/api/src/bookingAdjustments.d.ts +3 -2
- package/dist/_dts/api/src/bookingOperations.d.ts +7 -2
- package/dist/_dts/api/src/bookingPeople.d.ts +19 -0
- package/dist/_dts/api/src/bookingPeopleEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +4 -106
- package/dist/_dts/api/src/bookings.d.ts +2 -3
- package/dist/_dts/api/src/contentRuntime.d.ts +1 -0
- package/dist/_dts/api/src/endpoints.d.ts +88 -43
- package/dist/_dts/api/src/index.d.ts +4 -2
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/moneyPayments.d.ts +116 -0
- package/dist/_dts/api/src/onboarding/surfaceData.d.ts +2 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +2 -2
- package/dist/_dts/api/src/sdkThemeWire.d.ts +162 -103
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +18 -0
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +17 -16
- package/dist/_dts/api/src/siteSettings.d.ts +1 -0
- package/dist/_dts/api/src/stripeConnectSetup.d.ts +90 -0
- package/dist/_dts/api/src/types.d.ts +11 -31
- package/dist/_dts/api/src/wholeSeriesRuns.d.ts +2 -4
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +8 -96
- package/dist/_dts/blocks/src/primitives/content/components/RichText.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +4 -1
- package/dist/_dts/blocks/src/primitives/layout/Section.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/fields.d.ts +0 -4
- package/dist/_dts/blocks/src/system/blocks/events/shared/index.d.ts +0 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +10 -0
- package/dist/_dts/blocks/src/system/blocks/image-gallery/fields.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +6 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -45
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +12 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime-layout.d.ts +23 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime-profile.d.ts +20 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +17 -16
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +75 -9
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +24 -24
- package/dist/_dts/blocks/src/system/node/fragments/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/fragments/responsiveTwoColumn.d.ts +3 -1
- package/dist/_dts/blocks/src/system/node/fragments/sectionHead.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +18 -198
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +9 -99
- package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +16 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +10 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +29 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/form.fields.d.ts +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/form.interactive.d.ts +11 -79
- package/dist/_dts/blocks/src/system/runtime/nodes/form.parts.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/form.server.d.ts +2 -13
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +8 -72
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.parts.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +2 -2
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -0
- package/dist/_dts/blocks/src/system/transforms/registry/footerArrangement.d.ts +6 -0
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +0 -11
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -10
- package/dist/_dts/commerce/src/purchase/orderConfirmationPlanning.d.ts +1 -0
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +5 -2
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +1 -1
- package/dist/_dts/content-editor/src/FooterNavigationLayoutControl.d.ts +6 -3
- package/dist/_dts/content-editor/src/controller/editorLeaseParticipation.d.ts +1 -1
- package/dist/_dts/content-editor/src/footerComposer.d.ts +2 -1
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +3 -1
- package/dist/_dts/content-editor/src/footerNavigationLayoutState.d.ts +56 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +2 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +3 -4
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +11 -8
- package/dist/_dts/core/src/booking-refunds.d.ts +2 -0
- package/dist/_dts/core/src/date-display.d.ts +85 -0
- package/dist/_dts/core/src/date-time-formatter.d.ts +2 -0
- package/dist/_dts/core/src/footer-arrangement.d.ts +8 -1
- package/dist/_dts/core/src/footer-composition-types.d.ts +6 -1
- package/dist/_dts/core/src/footer-composition.d.ts +1 -1
- package/dist/_dts/core/src/footer-navigation-layout.d.ts +3 -0
- package/dist/_dts/core/src/index.d.ts +2 -0
- package/dist/_dts/core/src/mailing-list-setup.d.ts +3 -0
- package/dist/_dts/core/src/mailing-list-submission.d.ts +6 -1
- package/dist/_dts/core/src/public-profile.d.ts +3 -1
- package/dist/_dts/core/src/scheduled-date-time.d.ts +69 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +50 -9
- package/dist/_dts/db/src/schemas/forms.d.ts +16 -16
- package/dist/_dts/preview-next/src/client/blocks/ArrangementBlockToolbar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +27 -5
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/useConfirmedPreferenceRecord.d.ts +12 -0
- package/dist/_dts/preview-next/src/client/preview/usePersistedFooterPreferences.d.ts +26 -0
- package/dist/_dts/preview-next/src/client/preview/usePersistedHeaderPreferences.d.ts +40 -2
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -46
- package/dist/_dts/sdk/src/date-time/index.d.ts +2 -68
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +2 -0
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +2 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/lanternRecipes.d.ts +60 -0
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +57 -0
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +10 -1
- package/dist/_dts/theme-core/src/buttons/types.d.ts +358 -46
- package/dist/_dts/theme-core/src/buttons/typography.d.ts +24 -0
- package/dist/_dts/theme-core/src/cards/types.d.ts +8 -8
- package/dist/_dts/theme-core/src/footer/effectiveNavLinkStyle.d.ts +1 -1
- package/dist/_dts/theme-core/src/footer/generateFooterCss.d.ts +4 -1
- package/dist/_dts/theme-core/src/footer/mode.d.ts +2 -11
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +234 -147
- package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/schema.d.ts +300 -192
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +23 -7
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +4 -6
- package/dist/_dts/theme-core/src/site-styles/compileFooterAgainstRow.d.ts +121 -0
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +25 -0
- package/dist/_dts/theme-core/src/site-styles/footerLookDefaults.d.ts +45 -0
- package/dist/_dts/theme-core/src/site-styles/footerLookRecipe.d.ts +50 -0
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +9 -35
- package/dist/_dts/theme-core/src/site-styles/footerPreferences.d.ts +29 -0
- package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +2 -3
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +8 -0
- package/dist/_dts/theme-core/src/site-styles/themeParity.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/client/{BookingMailingListNote-DrchYW1m.mjs → BookingMailingListNote-CNoSqFtf.mjs} +2 -2
- package/dist/client/{CardListItem-CC_GVmF6.mjs → CardListItem-BkTkqBkh.mjs} +3 -3
- package/dist/client/{CheckboxChoice-Dq30m3DO.mjs → CheckboxChoice-CHJpsty4.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-ojwbVUmx.mjs → DemoBookingPortalAccess-C7KQKFNt.mjs} +2 -2
- package/dist/client/{EventCombined.client-DyN0v0Xk.mjs → EventCombined.client-BgeYMjHJ.mjs} +5 -5
- package/dist/client/{EventEmbeddedCheckoutStep-CgfpKc3n.mjs → EventEmbeddedCheckoutStep-BTc_lTkM.mjs} +2 -2
- package/dist/client/{EventListing.client-CuOuvYMz.mjs → EventListing.client-ChRs9Hl2.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-B0WhRr3j.mjs → LeafletStaticMap-C_dNQgd0.mjs} +1 -1
- package/dist/client/{RichText-C1fIXBzA.mjs → RichText-BI9bzbjo.mjs} +75 -42
- package/dist/client/{ThemedButton-B7HFqFBg.mjs → ThemedButton-wl3Z3wkH.mjs} +1 -1
- package/dist/client/{accordion-DCDVWSye.mjs → accordion-6Yz8Wd83.mjs} +1 -1
- package/dist/client/{bookingForm-BJ3C4GlM.mjs → bookingForm-i_pKIGiY.mjs} +8 -8
- package/dist/client/bookings.mjs +12565 -11839
- package/dist/client/{carousel-BSCBhfHY.mjs → carousel-DNqd_PjC.mjs} +2 -2
- package/dist/client/{carousel.client-GEtOGsxo.mjs → carousel.client-BUgjPbb6.mjs} +1 -1
- package/dist/client/{cart-Yv-aAtck.mjs → cart-D8OBHuF4.mjs} +3 -3
- package/dist/client/{checkout-B9xDkl30.mjs → checkout-F3-9IGLU.mjs} +3 -3
- package/dist/client/client.mjs +6109 -4778
- package/dist/client/{context-BOGe3rIA.mjs → context-Dg4ZrxDD.mjs} +1 -1
- package/dist/client/{eventCalendar-D6M0T9hs.mjs → eventCalendar-BUc7YIBM.mjs} +8 -8
- package/dist/client/{eventCombined-NM4UFBq8.mjs → eventCombined-BwfShk2a.mjs} +4 -4
- package/dist/client/{eventDetails-f_FhV4O8.mjs → eventDetails-BMOVC3go.mjs} +3 -3
- package/dist/client/{eventListing-WLkfAROh.mjs → eventListing-BwE9PM-t.mjs} +4 -4
- package/dist/client/{eventRegistration-D3ejfLvW.mjs → eventRegistration-CCWPYDc7.mjs} +9 -9
- package/dist/client/{form-D5Or2Jyu.mjs → form-CXFr0Gd5.mjs} +115 -51
- package/dist/client/{headerSection-hWgnv27V.mjs → headerSection-BX8qw8kH.mjs} +3 -3
- package/dist/client/hooks.mjs +2041 -1193
- package/dist/client/{locationMap-Di1K0O2S.mjs → locationMap-B3La71m0.mjs} +3 -3
- package/dist/client/{media-D29-F1u_.mjs → media-B1Cbv721.mjs} +1 -1
- package/dist/client/{newsletterForm-CwxcwTNO.mjs → newsletterForm-DnGyR0x7.mjs} +50 -14
- package/dist/client/{productDetail-BLSnhPdA.mjs → productDetail-BVgTqvkb.mjs} +3 -3
- package/dist/client/{productList-oGytONOX.mjs → productList-CcO7kUQw.mjs} +3 -3
- package/dist/client/{propsDecoder-lf_dTeZS.mjs → propsDecoder-B1OeWavE.mjs} +706 -229
- package/dist/client/rendering/client.mjs +11868 -11098
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +6058 -4676
- package/dist/client/{routeIslandApiConfig-Bc_WVPS8.mjs → routeIslandApiConfig-Dl4vglJm.mjs} +1 -1
- package/dist/client/{shop-BQ3bR7fA.mjs → shop-P72nX5Fs.mjs} +7 -7
- package/dist/client/{shop-commerce-DDPll6ZC.mjs → shop-commerce-Bt7uraDx.mjs} +8 -8
- package/dist/client/{shop-commerce-store-DO-e1pTe.mjs → shop-commerce-store-C1-mxSye.mjs} +1 -1
- package/dist/client/{shopShared-BylM9jh1.mjs → shopShared-Db-cRGu3.mjs} +4 -4
- package/dist/client/{useDiscountCodeUi-B1Puub2v.mjs → useDiscountCodeUi-jvAiUoUX.mjs} +1 -1
- package/dist/client/{useEventPagination-BBhkmQaT.mjs → useEventPagination-BdWpCniq.mjs} +6 -6
- package/dist/preview-next/before-render.mjs +133 -51
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/editor-chrome.css +5 -2
- package/dist/preview-next/keepAlive.mjs +133 -51
- package/dist/preview-next/middleware.mjs +133 -51
- package/dist/{sdk-runtime-DWCvhJGu.mjs → sdk-runtime-DLhjF2Nw.mjs} +1 -1
- package/dist/server/components.mjs +11284 -10014
- package/dist/server/config-validation.mjs +2016 -1188
- package/dist/server/config.mjs +2016 -1188
- package/dist/server/data.mjs +2041 -1193
- package/dist/server/date-time.mjs +258 -116
- package/dist/server/index.mjs +134 -52
- package/dist/server/next.mjs +10571 -9350
- package/dist/server/page-converter.mjs +1629 -941
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +11156 -9872
- package/dist/server/rendering.mjs +11284 -10014
- package/dist/server/routing.mjs +2204 -1283
- package/dist/server/server.mjs +2369 -1570
- package/dist/server/theme-bridge.mjs +838 -124
- package/dist/server/theme.mjs +348 -64
- package/dist/{spinner-BYM-Y81w.mjs → spinner-MTooKfck.mjs} +1 -1
- package/dist/styles/index.css +254 -1
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/layout.d.ts +0 -12
|
@@ -15999,9 +15999,11 @@ export type Database = {
|
|
|
15999
15999
|
metadata: Json | null;
|
|
16000
16000
|
onboarding_complete: boolean;
|
|
16001
16001
|
payouts_enabled: boolean;
|
|
16002
|
+
setup_state: Json;
|
|
16003
|
+
setup_version: number;
|
|
16002
16004
|
site_id: string;
|
|
16003
16005
|
stripe_account_email: string | null;
|
|
16004
|
-
stripe_account_id: string;
|
|
16006
|
+
stripe_account_id: string | null;
|
|
16005
16007
|
stripe_webhook_secret: string | null;
|
|
16006
16008
|
updated_at: string;
|
|
16007
16009
|
};
|
|
@@ -16015,9 +16017,11 @@ export type Database = {
|
|
|
16015
16017
|
metadata?: Json | null;
|
|
16016
16018
|
onboarding_complete?: boolean;
|
|
16017
16019
|
payouts_enabled?: boolean;
|
|
16020
|
+
setup_state?: Json;
|
|
16021
|
+
setup_version?: number;
|
|
16018
16022
|
site_id: string;
|
|
16019
16023
|
stripe_account_email?: string | null;
|
|
16020
|
-
stripe_account_id
|
|
16024
|
+
stripe_account_id?: string | null;
|
|
16021
16025
|
stripe_webhook_secret?: string | null;
|
|
16022
16026
|
updated_at?: string;
|
|
16023
16027
|
};
|
|
@@ -16031,9 +16035,11 @@ export type Database = {
|
|
|
16031
16035
|
metadata?: Json | null;
|
|
16032
16036
|
onboarding_complete?: boolean;
|
|
16033
16037
|
payouts_enabled?: boolean;
|
|
16038
|
+
setup_state?: Json;
|
|
16039
|
+
setup_version?: number;
|
|
16034
16040
|
site_id?: string;
|
|
16035
16041
|
stripe_account_email?: string | null;
|
|
16036
|
-
stripe_account_id?: string;
|
|
16042
|
+
stripe_account_id?: string | null;
|
|
16037
16043
|
stripe_webhook_secret?: string | null;
|
|
16038
16044
|
updated_at?: string;
|
|
16039
16045
|
};
|
|
@@ -16105,7 +16111,8 @@ export type Database = {
|
|
|
16105
16111
|
button_style_id: string | null;
|
|
16106
16112
|
button_style_options: Json;
|
|
16107
16113
|
created_at: string;
|
|
16108
|
-
footer_look_id: string
|
|
16114
|
+
footer_look_id: string;
|
|
16115
|
+
footer_preferences: Json;
|
|
16109
16116
|
header_layout_id: string;
|
|
16110
16117
|
header_preferences: Json | null;
|
|
16111
16118
|
header_style_id: string;
|
|
@@ -16122,7 +16129,8 @@ export type Database = {
|
|
|
16122
16129
|
button_style_id?: string | null;
|
|
16123
16130
|
button_style_options?: Json;
|
|
16124
16131
|
created_at?: string;
|
|
16125
|
-
footer_look_id
|
|
16132
|
+
footer_look_id: string;
|
|
16133
|
+
footer_preferences?: Json;
|
|
16126
16134
|
header_layout_id: string;
|
|
16127
16135
|
header_preferences?: Json | null;
|
|
16128
16136
|
header_style_id: string;
|
|
@@ -16139,7 +16147,8 @@ export type Database = {
|
|
|
16139
16147
|
button_style_id?: string | null;
|
|
16140
16148
|
button_style_options?: Json;
|
|
16141
16149
|
created_at?: string;
|
|
16142
|
-
footer_look_id?: string
|
|
16150
|
+
footer_look_id?: string;
|
|
16151
|
+
footer_preferences?: Json;
|
|
16143
16152
|
header_layout_id?: string;
|
|
16144
16153
|
header_preferences?: Json | null;
|
|
16145
16154
|
header_style_id?: string;
|
|
@@ -18501,7 +18510,8 @@ export type Database = {
|
|
|
18501
18510
|
p_base_selection_version: number;
|
|
18502
18511
|
p_button_style_id: string;
|
|
18503
18512
|
p_button_style_options: Json;
|
|
18504
|
-
p_footer_look_id
|
|
18513
|
+
p_footer_look_id: string;
|
|
18514
|
+
p_footer_preferences: Json;
|
|
18505
18515
|
p_header_layout_id: string;
|
|
18506
18516
|
p_header_preferences?: Json;
|
|
18507
18517
|
p_header_style_id: string;
|
|
@@ -21168,7 +21178,8 @@ export type Database = {
|
|
|
21168
21178
|
Args: {
|
|
21169
21179
|
p_button_style_id: string;
|
|
21170
21180
|
p_button_style_options: Json;
|
|
21171
|
-
p_footer_look_id
|
|
21181
|
+
p_footer_look_id: string;
|
|
21182
|
+
p_footer_preferences: Json;
|
|
21172
21183
|
p_header_layout_id: string;
|
|
21173
21184
|
p_header_preferences?: Json;
|
|
21174
21185
|
p_header_style_id: string;
|
|
@@ -21728,6 +21739,22 @@ export type Database = {
|
|
|
21728
21739
|
};
|
|
21729
21740
|
Returns: string;
|
|
21730
21741
|
};
|
|
21742
|
+
resolve_staff_booking_person_atomic: {
|
|
21743
|
+
Args: {
|
|
21744
|
+
p_email?: string;
|
|
21745
|
+
p_kind: string;
|
|
21746
|
+
p_name?: string;
|
|
21747
|
+
p_person_id?: string;
|
|
21748
|
+
p_phone?: string;
|
|
21749
|
+
p_site_id: string;
|
|
21750
|
+
};
|
|
21751
|
+
Returns: {
|
|
21752
|
+
customer_id: string;
|
|
21753
|
+
outcome: string;
|
|
21754
|
+
person_id: string;
|
|
21755
|
+
provenance: string;
|
|
21756
|
+
}[];
|
|
21757
|
+
};
|
|
21731
21758
|
resource_can_provide_service: {
|
|
21732
21759
|
Args: {
|
|
21733
21760
|
p_resource_id: string;
|
|
@@ -21864,7 +21891,8 @@ export type Database = {
|
|
|
21864
21891
|
p_button_style_id: string;
|
|
21865
21892
|
p_button_style_options: Json;
|
|
21866
21893
|
p_expected_selection_version: number;
|
|
21867
|
-
p_footer_look_id
|
|
21894
|
+
p_footer_look_id: string;
|
|
21895
|
+
p_footer_preferences: Json;
|
|
21868
21896
|
p_header_layout_id: string;
|
|
21869
21897
|
p_header_preferences?: Json;
|
|
21870
21898
|
p_header_style_id: string;
|
|
@@ -22361,6 +22389,19 @@ export type Database = {
|
|
|
22361
22389
|
};
|
|
22362
22390
|
Returns: Json;
|
|
22363
22391
|
};
|
|
22392
|
+
transition_site_stripe_setup: {
|
|
22393
|
+
Args: {
|
|
22394
|
+
p_action: string;
|
|
22395
|
+
p_actor_id: string;
|
|
22396
|
+
p_expected_account_id?: string;
|
|
22397
|
+
p_expected_version: number;
|
|
22398
|
+
p_new_account_id?: string;
|
|
22399
|
+
p_next_state?: Json;
|
|
22400
|
+
p_operation_id?: string;
|
|
22401
|
+
p_site_id: string;
|
|
22402
|
+
};
|
|
22403
|
+
Returns: string;
|
|
22404
|
+
};
|
|
22364
22405
|
try_acquire_email_rate_gate: {
|
|
22365
22406
|
Args: {
|
|
22366
22407
|
p_interval_ms: number;
|
|
@@ -416,8 +416,8 @@ export declare const formFieldSchema: z.ZodObject<{
|
|
|
416
416
|
number: "number";
|
|
417
417
|
date: "date";
|
|
418
418
|
time: "time";
|
|
419
|
-
text: "text";
|
|
420
419
|
email: "email";
|
|
420
|
+
text: "text";
|
|
421
421
|
url: "url";
|
|
422
422
|
textarea: "textarea";
|
|
423
423
|
select: "select";
|
|
@@ -477,8 +477,8 @@ declare const bookingQuestionScalarFieldSchema: z.ZodObject<{
|
|
|
477
477
|
number: "number";
|
|
478
478
|
date: "date";
|
|
479
479
|
time: "time";
|
|
480
|
-
text: "text";
|
|
481
480
|
email: "email";
|
|
481
|
+
text: "text";
|
|
482
482
|
url: "url";
|
|
483
483
|
textarea: "textarea";
|
|
484
484
|
select: "select";
|
|
@@ -534,8 +534,8 @@ export declare const bookingQuestionDraftFieldSchema: z.ZodDiscriminatedUnion<[z
|
|
|
534
534
|
number: "number";
|
|
535
535
|
date: "date";
|
|
536
536
|
time: "time";
|
|
537
|
-
text: "text";
|
|
538
537
|
email: "email";
|
|
538
|
+
text: "text";
|
|
539
539
|
url: "url";
|
|
540
540
|
textarea: "textarea";
|
|
541
541
|
select: "select";
|
|
@@ -590,8 +590,8 @@ export declare const bookingQuestionFieldSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
590
590
|
number: "number";
|
|
591
591
|
date: "date";
|
|
592
592
|
time: "time";
|
|
593
|
-
text: "text";
|
|
594
593
|
email: "email";
|
|
594
|
+
text: "text";
|
|
595
595
|
url: "url";
|
|
596
596
|
textarea: "textarea";
|
|
597
597
|
select: "select";
|
|
@@ -649,8 +649,8 @@ export declare const bookingQuestionsSectionSchema: z.ZodObject<{
|
|
|
649
649
|
number: "number";
|
|
650
650
|
date: "date";
|
|
651
651
|
time: "time";
|
|
652
|
-
text: "text";
|
|
653
652
|
email: "email";
|
|
653
|
+
text: "text";
|
|
654
654
|
url: "url";
|
|
655
655
|
textarea: "textarea";
|
|
656
656
|
select: "select";
|
|
@@ -711,8 +711,8 @@ export declare const bookingQuestionsDetailedSchemaSchema: z.ZodObject<{
|
|
|
711
711
|
number: "number";
|
|
712
712
|
date: "date";
|
|
713
713
|
time: "time";
|
|
714
|
-
text: "text";
|
|
715
714
|
email: "email";
|
|
715
|
+
text: "text";
|
|
716
716
|
url: "url";
|
|
717
717
|
textarea: "textarea";
|
|
718
718
|
select: "select";
|
|
@@ -755,8 +755,8 @@ export declare const formSchemaSchema: z.ZodObject<{
|
|
|
755
755
|
number: "number";
|
|
756
756
|
date: "date";
|
|
757
757
|
time: "time";
|
|
758
|
-
text: "text";
|
|
759
758
|
email: "email";
|
|
759
|
+
text: "text";
|
|
760
760
|
url: "url";
|
|
761
761
|
textarea: "textarea";
|
|
762
762
|
select: "select";
|
|
@@ -814,8 +814,8 @@ export declare const bookingQuestionsFlatSchemaSchema: z.ZodObject<{
|
|
|
814
814
|
number: "number";
|
|
815
815
|
date: "date";
|
|
816
816
|
time: "time";
|
|
817
|
-
text: "text";
|
|
818
817
|
email: "email";
|
|
818
|
+
text: "text";
|
|
819
819
|
url: "url";
|
|
820
820
|
textarea: "textarea";
|
|
821
821
|
select: "select";
|
|
@@ -872,8 +872,8 @@ export declare const bookingQuestionsStoredSchemaSchema: z.ZodUnion<readonly [z.
|
|
|
872
872
|
number: "number";
|
|
873
873
|
date: "date";
|
|
874
874
|
time: "time";
|
|
875
|
-
text: "text";
|
|
876
875
|
email: "email";
|
|
876
|
+
text: "text";
|
|
877
877
|
url: "url";
|
|
878
878
|
textarea: "textarea";
|
|
879
879
|
select: "select";
|
|
@@ -933,8 +933,8 @@ export declare const bookingQuestionsStoredSchemaSchema: z.ZodUnion<readonly [z.
|
|
|
933
933
|
number: "number";
|
|
934
934
|
date: "date";
|
|
935
935
|
time: "time";
|
|
936
|
-
text: "text";
|
|
937
936
|
email: "email";
|
|
937
|
+
text: "text";
|
|
938
938
|
url: "url";
|
|
939
939
|
textarea: "textarea";
|
|
940
940
|
select: "select";
|
|
@@ -1016,8 +1016,8 @@ export declare const formPayloadFieldsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1016
1016
|
number: "number";
|
|
1017
1017
|
date: "date";
|
|
1018
1018
|
time: "time";
|
|
1019
|
-
text: "text";
|
|
1020
1019
|
email: "email";
|
|
1020
|
+
text: "text";
|
|
1021
1021
|
url: "url";
|
|
1022
1022
|
textarea: "textarea";
|
|
1023
1023
|
select: "select";
|
|
@@ -1074,8 +1074,8 @@ export declare const formPayloadFieldsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1074
1074
|
number: "number";
|
|
1075
1075
|
date: "date";
|
|
1076
1076
|
time: "time";
|
|
1077
|
-
text: "text";
|
|
1078
1077
|
email: "email";
|
|
1078
|
+
text: "text";
|
|
1079
1079
|
url: "url";
|
|
1080
1080
|
textarea: "textarea";
|
|
1081
1081
|
select: "select";
|
|
@@ -1135,8 +1135,8 @@ export declare const formPayloadFieldsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1135
1135
|
number: "number";
|
|
1136
1136
|
date: "date";
|
|
1137
1137
|
time: "time";
|
|
1138
|
-
text: "text";
|
|
1139
1138
|
email: "email";
|
|
1139
|
+
text: "text";
|
|
1140
1140
|
url: "url";
|
|
1141
1141
|
textarea: "textarea";
|
|
1142
1142
|
select: "select";
|
|
@@ -1178,8 +1178,8 @@ export declare const createFormPayloadSchema: z.ZodObject<{
|
|
|
1178
1178
|
number: "number";
|
|
1179
1179
|
date: "date";
|
|
1180
1180
|
time: "time";
|
|
1181
|
-
text: "text";
|
|
1182
1181
|
email: "email";
|
|
1182
|
+
text: "text";
|
|
1183
1183
|
url: "url";
|
|
1184
1184
|
textarea: "textarea";
|
|
1185
1185
|
select: "select";
|
|
@@ -1236,8 +1236,8 @@ export declare const createFormPayloadSchema: z.ZodObject<{
|
|
|
1236
1236
|
number: "number";
|
|
1237
1237
|
date: "date";
|
|
1238
1238
|
time: "time";
|
|
1239
|
-
text: "text";
|
|
1240
1239
|
email: "email";
|
|
1240
|
+
text: "text";
|
|
1241
1241
|
url: "url";
|
|
1242
1242
|
textarea: "textarea";
|
|
1243
1243
|
select: "select";
|
|
@@ -1297,8 +1297,8 @@ export declare const createFormPayloadSchema: z.ZodObject<{
|
|
|
1297
1297
|
number: "number";
|
|
1298
1298
|
date: "date";
|
|
1299
1299
|
time: "time";
|
|
1300
|
-
text: "text";
|
|
1301
1300
|
email: "email";
|
|
1301
|
+
text: "text";
|
|
1302
1302
|
url: "url";
|
|
1303
1303
|
textarea: "textarea";
|
|
1304
1304
|
select: "select";
|
|
@@ -36,8 +36,9 @@ export declare function useArrangementToolbar(input: Readonly<{
|
|
|
36
36
|
chooseBackground: (override: BackgroundOverride) => void;
|
|
37
37
|
openField: (fieldPath: string) => void;
|
|
38
38
|
}>): ArrangementToolbar | null;
|
|
39
|
-
export declare function ArrangementControlsRow({ toolbar, blockTitle, popover, onToggleOptions, editButton, }: Readonly<{
|
|
39
|
+
export declare function ArrangementControlsRow({ toolbar, blockName, blockTitle, popover, onToggleOptions, editButton, }: Readonly<{
|
|
40
40
|
toolbar: ArrangementToolbar;
|
|
41
|
+
blockName: ReactNode;
|
|
41
42
|
blockTitle: string;
|
|
42
43
|
popover: CustomizePopoverController;
|
|
43
44
|
onToggleOptions: (event: React.MouseEvent<HTMLElement>) => void;
|
|
@@ -60,6 +60,7 @@ type PreviewShellCommonProps = {
|
|
|
60
60
|
themeSelectionButtonStyleSelection?: ButtonStyleSelection | null;
|
|
61
61
|
themeSelectionButtonStyleRepairs?: readonly ButtonStyleSelectionRepair[];
|
|
62
62
|
themeSelectionHeaderPreferences?: import('../../../../theme-core/src/site-styles/index').HeaderPreferences | null;
|
|
63
|
+
themeSelectionFooterPreferences?: import('../../../../theme-core/src/site-styles/index').FooterPreferences | null;
|
|
63
64
|
themeSelectionHeaderSelection?: HeaderLayoutStyleSelection | null;
|
|
64
65
|
themeSelectionFooterLookId?: FooterLookId | null;
|
|
65
66
|
themeSelectionHeaderLogo?: HeaderLogoContext;
|
|
@@ -30,6 +30,7 @@ type PreviewShellLayoutCommonProps = {
|
|
|
30
30
|
themeSelectionButtonStyleSelection?: ButtonStyleSelection | null;
|
|
31
31
|
themeSelectionButtonStyleRepairs?: readonly ButtonStyleSelectionRepair[];
|
|
32
32
|
themeSelectionHeaderPreferences?: import('../../../../theme-core/src/site-styles/index').HeaderPreferences | null;
|
|
33
|
+
themeSelectionFooterPreferences?: import('../../../../theme-core/src/site-styles/index').FooterPreferences | null;
|
|
33
34
|
themeSelectionHeaderSelection?: HeaderLayoutStyleSelection | null;
|
|
34
35
|
themeSelectionFooterLookId?: FooterLookId | null;
|
|
35
36
|
themeSelectionHeaderLogo?: HeaderLogoContext;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type FooterPreferences } from '../../../../theme-core/src/site-styles/index';
|
|
1
2
|
import React, { type ReactNode } from 'react';
|
|
2
3
|
import { type ApiClient } from '../../../../api/src/request';
|
|
3
4
|
import type { Theme } from '../../../../blocks/src/index';
|
|
@@ -36,6 +37,7 @@ type SiteChromeCustomizeContextValue = Readonly<{
|
|
|
36
37
|
setHeaderInteractionPalette: (value: HeaderInteractionPalettePreference) => void;
|
|
37
38
|
cycleSurfaceBackground: (surface: SiteChromeEditableSurfaceKind, direction: 'prev' | 'next') => void;
|
|
38
39
|
chooseSurfaceBackground: (surface: SiteChromeEditableSurfaceKind, override: SiteChromeBackgroundOverride) => void;
|
|
40
|
+
getFooterPreferences: () => FooterPreferences | null;
|
|
39
41
|
siteStyleHistory: SiteStyleHistoryController;
|
|
40
42
|
quickControlHistory: SiteChromeQuickControlHistoryController;
|
|
41
43
|
}>;
|
|
@@ -45,6 +47,7 @@ export type SiteChromeCustomizeProviderProps = Readonly<{
|
|
|
45
47
|
apiClient: ApiClient;
|
|
46
48
|
theme?: Theme | null;
|
|
47
49
|
headerPreferences?: HeaderPreferences | null;
|
|
50
|
+
footerPreferences?: FooterPreferences | null;
|
|
48
51
|
themeId?: string | null;
|
|
49
52
|
selectionId?: string | null;
|
|
50
53
|
selectionVersion?: number | null;
|
|
@@ -54,5 +57,5 @@ export type SiteChromeCustomizeProviderProps = Readonly<{
|
|
|
54
57
|
siteStyleAccess?: SiteStyleAccess;
|
|
55
58
|
canOpenDesignEditor?: boolean;
|
|
56
59
|
}>;
|
|
57
|
-
export declare function SiteChromeCustomizeProvider({ children, siteId, apiClient, theme, headerPreferences, themeId, selectionId, selectionVersion, selectionUpdatedAt, initialSelections, headerLogoContext, siteStyleAccess, canOpenDesignEditor, }: SiteChromeCustomizeProviderProps): React.JSX.Element;
|
|
60
|
+
export declare function SiteChromeCustomizeProvider({ children, siteId, apiClient, theme, headerPreferences, footerPreferences, themeId, selectionId, selectionVersion, selectionUpdatedAt, initialSelections, headerLogoContext, siteStyleAccess, canOpenDesignEditor, }: SiteChromeCustomizeProviderProps): React.JSX.Element;
|
|
58
61
|
export declare function useSiteChromeCustomizeOptional(): SiteChromeCustomizeContextValue | null;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { type SiteChromeQuickControlSaveRequest } from './siteChromeQuickControlSaveRequest';
|
|
2
|
+
import type { FooterPreferences } from '../../../../theme-core/src/site-styles/index';
|
|
1
3
|
import type { APIEndpoints } from '../../../../api/src/index';
|
|
2
4
|
import type { Theme } from '../../../../blocks/src/index';
|
|
3
5
|
import type { HeaderNavPreferences, HeaderLogoContext, HeaderPreferences, SiteChromeBackgroundPreferences } from '../../../../theme-core/src/site-styles/index';
|
|
4
6
|
import type { CuratedSiteStyle } from '../../../../theme-core/src/site-styles/previewCompiler';
|
|
5
7
|
import type { SelectionSnapshot } from './StyleConfigurator.state';
|
|
6
|
-
import {
|
|
8
|
+
import type { SiteStylePreviewPlan } from './siteStylePreviewPlanner';
|
|
7
9
|
import type { SiteChromeEditableSurfaceKind } from './SiteChromeEditableSurface';
|
|
8
10
|
import { type HeaderBrandPreferences } from './siteChromeBrandPreferences';
|
|
9
11
|
type SaveSiteChromeSelectionBody = NonNullable<APIEndpoints['saveSiteChromeSelection']['body']>;
|
|
@@ -17,7 +19,7 @@ export type BuildSiteChromeSavePlanInput = Readonly<{
|
|
|
17
19
|
surface: SiteChromeEditableSurfaceKind;
|
|
18
20
|
siteStyle: CuratedSiteStyle;
|
|
19
21
|
selection: SelectionSnapshot;
|
|
20
|
-
baseTheme: Theme
|
|
22
|
+
baseTheme: Theme;
|
|
21
23
|
headerLogoContext: HeaderLogoContext | undefined;
|
|
22
24
|
headerBrandPreferences: HeaderBrandPreferences;
|
|
23
25
|
headerNavPreferences: HeaderNavPreferences;
|
|
@@ -27,8 +29,9 @@ export type BuildSiteChromeSavePlanInput = Readonly<{
|
|
|
27
29
|
baseSelectionUpdatedAt: string | null;
|
|
28
30
|
/** Persisted intent, including the structural fields quick controls cannot edit. */
|
|
29
31
|
persistedHeaderPreferences: HeaderPreferences;
|
|
32
|
+
persistedFooterPreferences: FooterPreferences;
|
|
30
33
|
}>;
|
|
31
|
-
export declare function buildSiteChromeSavePlan(
|
|
34
|
+
export declare function buildSiteChromeSavePlan(input: BuildSiteChromeSavePlanInput): SiteChromeSavePlan;
|
|
32
35
|
/**
|
|
33
36
|
* The nav half of the record the server persisted, read back rather than
|
|
34
37
|
* re-derived from the saved bytes. The theme is compiled output from 4b
|
|
@@ -38,8 +41,8 @@ export declare function buildSiteChromeSavePlan({ surface, siteStyle, selection,
|
|
|
38
41
|
*/
|
|
39
42
|
export declare function headerNavPreferencesFromSiteChromeSaveResponse(saved: SaveSiteChromeSelectionResponse): HeaderNavPreferences;
|
|
40
43
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
44
|
+
* Each surface comes from its own persisted record. Header absence retains
|
|
45
|
+
* the existing pre-backfill fallback; footer intent is always required.
|
|
43
46
|
*/
|
|
44
47
|
export declare function backgroundPreferencesFromSiteChromeSaveResponse(saved: SaveSiteChromeSelectionResponse): SiteChromeBackgroundPreferences;
|
|
45
48
|
/**
|
|
@@ -55,4 +58,23 @@ export declare function selectionSnapshotFromSiteChromeSaveResponse({ saved, fal
|
|
|
55
58
|
fallback: SelectionSnapshot;
|
|
56
59
|
savePlan: SiteChromeSavePlan;
|
|
57
60
|
}>): SelectionSnapshot;
|
|
61
|
+
/** Close record readiness and the targeted quick-control edit before running effects. */
|
|
62
|
+
export declare function planSiteChromeQuickControlSave(input: Readonly<{
|
|
63
|
+
request: SiteChromeQuickControlSaveRequest;
|
|
64
|
+
currentSelection: SelectionSnapshot | null;
|
|
65
|
+
confirmedBrand: HeaderBrandPreferences;
|
|
66
|
+
confirmedNav: HeaderNavPreferences;
|
|
67
|
+
confirmedBackground: SiteChromeBackgroundPreferences;
|
|
68
|
+
footerPreferences: FooterPreferences | null;
|
|
69
|
+
compilation: Omit<BuildSiteChromeSavePlanInput, 'surface' | 'siteStyle' | 'selection' | 'headerBrandPreferences' | 'headerNavPreferences' | 'backgroundPreferences' | 'persistedFooterPreferences' | 'baseTheme'> & Readonly<{
|
|
70
|
+
baseTheme: Theme | null | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
}>): Readonly<{
|
|
73
|
+
kind: 'unavailable';
|
|
74
|
+
}> | Readonly<{
|
|
75
|
+
kind: 'prepared';
|
|
76
|
+
previousSelection: SelectionSnapshot;
|
|
77
|
+
selection: SelectionSnapshot;
|
|
78
|
+
savePlan: SiteChromeSavePlan;
|
|
79
|
+
}>;
|
|
58
80
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type FooterPreferences } from '../../../../theme-core/src/site-styles/index';
|
|
1
2
|
import type { Theme } from '../../../../blocks/src/index';
|
|
2
3
|
import { type ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
|
|
3
4
|
import type { HeaderBrandPresentationPreference, FooterLookId, HeaderLayoutId, HeaderLogoContext, HeaderStyleId, SiteChromeSurface } from '../../../../theme-core/src/site-styles/index';
|
|
@@ -19,6 +20,7 @@ export type SiteStylePreviewPlan = Readonly<{
|
|
|
19
20
|
type SiteStylePreviewPlanCommonInput = Readonly<{
|
|
20
21
|
siteStyle: CuratedSiteStyle;
|
|
21
22
|
selection: SiteStylePreviewSelection;
|
|
23
|
+
footerPreferences?: FooterPreferences;
|
|
22
24
|
headerLogoContext?: HeaderLogoContext;
|
|
23
25
|
/**
|
|
24
26
|
* The row's brand-presentation mode, which the preview must honour or it
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ConfirmedPreferenceRecord<T> = Readonly<{
|
|
2
|
+
source: T;
|
|
3
|
+
value: T;
|
|
4
|
+
}>;
|
|
5
|
+
/** A refreshed row replaces confirmations made against the previous row. */
|
|
6
|
+
export declare function refreshPreferenceRecord<T>(record: ConfirmedPreferenceRecord<T>, source: T): ConfirmedPreferenceRecord<T>;
|
|
7
|
+
/** Props and confirmed responses share one render model; the ref serves async callbacks only. */
|
|
8
|
+
export declare function useConfirmedPreferenceRecord<T>(source: T): {
|
|
9
|
+
value: T;
|
|
10
|
+
confirm: (value: T) => void;
|
|
11
|
+
getLatest: () => T;
|
|
12
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Theme } from '../../../../blocks/src/index';
|
|
2
|
+
import { type FooterPreferences } from '../../../../theme-core/src/site-styles/index';
|
|
3
|
+
import type { SiteStyleAccess } from './siteStyleAccess';
|
|
4
|
+
/** The client controller holds the row's record across previews, responses and refreshes. */
|
|
5
|
+
export declare function usePersistedFooterPreferences(stored: FooterPreferences | null | undefined): {
|
|
6
|
+
getFooterPreferences: () => Readonly<{
|
|
7
|
+
background: import("../../../../blocks/src/index").SiteChromeBackgroundOverride;
|
|
8
|
+
navigationLayout: "inline-wrap" | "stack";
|
|
9
|
+
}> | null;
|
|
10
|
+
getLatestFooterPreferences: () => Readonly<{
|
|
11
|
+
background: import("../../../../blocks/src/index").SiteChromeBackgroundOverride;
|
|
12
|
+
navigationLayout: "inline-wrap" | "stack";
|
|
13
|
+
}> | null;
|
|
14
|
+
observeSavedFooter: <T extends {
|
|
15
|
+
footerPreferences: FooterPreferences;
|
|
16
|
+
}>(saved: T) => T;
|
|
17
|
+
backgroundPreferencesFor: (theme: Theme | null | undefined) => {
|
|
18
|
+
footer: import("../../../../blocks/src/index").SiteChromeBackgroundOverride;
|
|
19
|
+
header: import("../../../../blocks/src/index").SiteChromeBackgroundOverride;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
/** Record availability governs every appearance control, including history writes. */
|
|
23
|
+
export declare function footerRecordCapabilities(preferences: FooterPreferences | null | undefined, access: SiteStyleAccess, canOpenDesignEditor: boolean): {
|
|
24
|
+
applyAllowed: boolean;
|
|
25
|
+
canOpenDesignEditor: boolean;
|
|
26
|
+
};
|
|
@@ -1,8 +1,46 @@
|
|
|
1
|
-
import { type RefObject } from 'react';
|
|
2
1
|
import type { Theme } from '../../../../blocks/src/index';
|
|
3
2
|
import { type HeaderLogoContext, type HeaderPreferences } from '../../../../theme-core/src/site-styles/index';
|
|
4
3
|
import type { SelectionSnapshot } from './StyleConfigurator.state';
|
|
5
4
|
import type { SiteChromeCustomizeProviderProps } from './SiteChromeCustomizeContext';
|
|
6
5
|
/** Keep the row-owned intent across optimistic edits and server responses. */
|
|
7
|
-
export declare function usePersistedHeaderPreferences(stored: HeaderPreferences | null, theme: Theme | null | undefined, selection: SelectionSnapshot | null, logo: HeaderLogoContext | undefined):
|
|
6
|
+
export declare function usePersistedHeaderPreferences(stored: HeaderPreferences | null, theme: Theme | null | undefined, selection: SelectionSnapshot | null, logo: HeaderLogoContext | undefined): {
|
|
7
|
+
preferences: Readonly<{
|
|
8
|
+
brandPresentation: import("../../../../blocks/src/index").HeaderBrandPresentationPreference;
|
|
9
|
+
brandDisplay: import("../../../../blocks/src/index").BrandDisplayMode;
|
|
10
|
+
logoSize: import("../../../../blocks/src/index").LogoSizePolicy;
|
|
11
|
+
navFontRole: import("../../../../blocks/src/index").HeaderNavTypographyPreference;
|
|
12
|
+
navTextSize: import("../../../../blocks/src/index").HeaderNavFontSizePreference;
|
|
13
|
+
interactionPalette: import("../../../../blocks/src/index").HeaderInteractionPalettePreference;
|
|
14
|
+
background: import("../../../../blocks/src/index").SiteChromeBackgroundOverride;
|
|
15
|
+
structure: import("../../../../blocks/src/index").HeaderStructurePreferences;
|
|
16
|
+
}>;
|
|
17
|
+
getLatestPreferences: () => Readonly<{
|
|
18
|
+
brandPresentation: import("../../../../blocks/src/index").HeaderBrandPresentationPreference;
|
|
19
|
+
brandDisplay: import("../../../../blocks/src/index").BrandDisplayMode;
|
|
20
|
+
logoSize: import("../../../../blocks/src/index").LogoSizePolicy;
|
|
21
|
+
navFontRole: import("../../../../blocks/src/index").HeaderNavTypographyPreference;
|
|
22
|
+
navTextSize: import("../../../../blocks/src/index").HeaderNavFontSizePreference;
|
|
23
|
+
interactionPalette: import("../../../../blocks/src/index").HeaderInteractionPalettePreference;
|
|
24
|
+
background: import("../../../../blocks/src/index").SiteChromeBackgroundOverride;
|
|
25
|
+
structure: Readonly<{
|
|
26
|
+
positioning: "inherit" | import("../../../../blocks/src/index").ThemeHeader["positioning"];
|
|
27
|
+
shrinkOnScroll: "inherit" | boolean;
|
|
28
|
+
logoText: "inherit" | "none" | import("../../../../blocks/src/index").HeaderLogoTextIntent;
|
|
29
|
+
}>;
|
|
30
|
+
}>;
|
|
31
|
+
observeSavedPreferences: (value: Readonly<{
|
|
32
|
+
brandPresentation: import("../../../../blocks/src/index").HeaderBrandPresentationPreference;
|
|
33
|
+
brandDisplay: import("../../../../blocks/src/index").BrandDisplayMode;
|
|
34
|
+
logoSize: import("../../../../blocks/src/index").LogoSizePolicy;
|
|
35
|
+
navFontRole: import("../../../../blocks/src/index").HeaderNavTypographyPreference;
|
|
36
|
+
navTextSize: import("../../../../blocks/src/index").HeaderNavFontSizePreference;
|
|
37
|
+
interactionPalette: import("../../../../blocks/src/index").HeaderInteractionPalettePreference;
|
|
38
|
+
background: import("../../../../blocks/src/index").SiteChromeBackgroundOverride;
|
|
39
|
+
structure: Readonly<{
|
|
40
|
+
positioning: "inherit" | import("../../../../blocks/src/index").ThemeHeader["positioning"];
|
|
41
|
+
shrinkOnScroll: "inherit" | boolean;
|
|
42
|
+
logoText: "inherit" | "none" | import("../../../../blocks/src/index").HeaderLogoTextIntent;
|
|
43
|
+
}>;
|
|
44
|
+
}>) => void;
|
|
45
|
+
};
|
|
8
46
|
export declare function useSiteChromeInitialSnapshot({ theme, initialSelections, selectionVersion, selectionUpdatedAt, headerLogoContext, }: Pick<SiteChromeCustomizeProviderProps, 'theme' | 'initialSelections' | 'selectionVersion' | 'selectionUpdatedAt' | 'headerLogoContext'>): SelectionSnapshot | null;
|
|
@@ -39,8 +39,8 @@ export declare const sectionBackgroundSchema: z.ZodObject<{
|
|
|
39
39
|
* Schema for section spacing values.
|
|
40
40
|
*/
|
|
41
41
|
export declare const sectionSpacingSchema: z.ZodEnum<{
|
|
42
|
-
default: "default";
|
|
43
42
|
compact: "compact";
|
|
43
|
+
default: "default";
|
|
44
44
|
spacious: "spacious";
|
|
45
45
|
}>;
|
|
46
46
|
/**
|
|
@@ -68,8 +68,8 @@ export declare const sectionOptionsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
68
68
|
backgroundImage: z.ZodOptional<z.ZodBoolean>;
|
|
69
69
|
backgroundGradient: z.ZodOptional<z.ZodBoolean>;
|
|
70
70
|
spacing: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodEnum<{
|
|
71
|
-
default: "default";
|
|
72
71
|
compact: "compact";
|
|
72
|
+
default: "default";
|
|
73
73
|
spacious: "spacious";
|
|
74
74
|
}>>, z.ZodBoolean]>>;
|
|
75
75
|
textColor: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -104,8 +104,8 @@ export declare const siteStyleConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
104
104
|
backgroundImage: z.ZodOptional<z.ZodBoolean>;
|
|
105
105
|
backgroundGradient: z.ZodOptional<z.ZodBoolean>;
|
|
106
106
|
spacing: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodEnum<{
|
|
107
|
-
default: "default";
|
|
108
107
|
compact: "compact";
|
|
108
|
+
default: "default";
|
|
109
109
|
spacious: "spacious";
|
|
110
110
|
}>>, z.ZodBoolean]>>;
|
|
111
111
|
textColor: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8,6 +8,7 @@ import type { InlineText, LinkValue, Media } from './content';
|
|
|
8
8
|
import type { EventRegistrationContent } from './event-registration-content';
|
|
9
9
|
export type { EventRegistrationContent } from './event-registration-content';
|
|
10
10
|
import type { Brand, EventCategoryId, RichTextDoc, VenueId } from '../../../core/src/index';
|
|
11
|
+
import type { ImageGalleryContent as BlocksImageGalleryContent } from '../../../blocks/src/system/blocks/image-gallery';
|
|
11
12
|
import type { SiteFooterContent as BlocksSiteFooterContent } from '../../../blocks/src/system/blocks/site-footer';
|
|
12
13
|
import type { NewsletterSignupContent as BlocksNewsletterSignupContent } from '../../../blocks/src/system/blocks/newsletter-signup';
|
|
13
14
|
import type { ContactNewsletterContent as BlocksContactNewsletterContent } from '../../../blocks/src/system/blocks/contact-newsletter';
|
|
@@ -66,12 +67,7 @@ export type BlogListingContent = {
|
|
|
66
67
|
_cardStyles?: CardStylesContent;
|
|
67
68
|
};
|
|
68
69
|
export type BodyTextAlignment = 'left' | 'center';
|
|
69
|
-
export type BodyTextContent =
|
|
70
|
-
variant?: 'prose' | 'intro' | 'narrow' | null;
|
|
71
|
-
heading?: string | null;
|
|
72
|
-
body: RichTextDoc;
|
|
73
|
-
alignment?: BodyTextAlignment | null;
|
|
74
|
-
};
|
|
70
|
+
export type BodyTextContent = import('../../../blocks/src/system/blocks/body-text').BodyTextContent;
|
|
75
71
|
export type BlockCtaContent = {
|
|
76
72
|
label?: string | null;
|
|
77
73
|
href?: string | null;
|
|
@@ -331,38 +327,7 @@ export type HeroContent = {
|
|
|
331
327
|
columnGuides?: boolean | null;
|
|
332
328
|
};
|
|
333
329
|
export type HeroMedia = Media;
|
|
334
|
-
export type ImageGalleryContent =
|
|
335
|
-
variant?: 'grid' | 'carousel' | 'masonry' | 'marquee' | null;
|
|
336
|
-
fullBleed?: boolean | null;
|
|
337
|
-
aspectRatio?: 'auto' | '1/1' | '4/3' | '16/9' | '3/2' | '3/4' | null;
|
|
338
|
-
slidesToShow?: '1' | '2' | '3' | null;
|
|
339
|
-
slidesToShowTablet?: '' | '1' | '2' | '3' | null;
|
|
340
|
-
slidesToShowDesktop?: '' | '1' | '2' | '3' | null;
|
|
341
|
-
transition?: 'slide' | 'fade' | null;
|
|
342
|
-
showControls?: boolean | null;
|
|
343
|
-
showDots?: boolean | null;
|
|
344
|
-
autoplay?: boolean | null;
|
|
345
|
-
autoplayDelay?: '3000' | '5000' | '7000' | '10000' | null;
|
|
346
|
-
arrowVisibility?: 'always' | 'hover' | null;
|
|
347
|
-
loop?: boolean | null;
|
|
348
|
-
marqueeDirection?: 'left' | 'right' | null;
|
|
349
|
-
marqueeSpeed?: 'slow' | 'medium' | 'fast' | null;
|
|
350
|
-
marqueePauseOnHover?: boolean | null;
|
|
351
|
-
marqueeImageSize?: 'sm' | 'md' | 'lg' | 'xl' | null;
|
|
352
|
-
imageFilter?: 'none' | 'grayscale' | 'grayscale-hover-reveal' | 'sepia' | null;
|
|
353
|
-
imageBorder?: {
|
|
354
|
-
enabled?: boolean | null;
|
|
355
|
-
colorToken?: string | null;
|
|
356
|
-
opacity?: number | null;
|
|
357
|
-
width?: '1' | '2' | '3' | null;
|
|
358
|
-
} | null;
|
|
359
|
-
imageCorners?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | null;
|
|
360
|
-
images?: Array<{
|
|
361
|
-
image?: Media | null;
|
|
362
|
-
caption?: string | null;
|
|
363
|
-
}> | null;
|
|
364
|
-
_sectionStyles?: SectionStylesContent;
|
|
365
|
-
};
|
|
330
|
+
export type ImageGalleryContent = BlocksImageGalleryContent;
|
|
366
331
|
export type MediaTextAlignment = 'left' | 'center';
|
|
367
332
|
export type MediaTextImagePosition = 'left' | 'right';
|
|
368
333
|
export type MediaTextAspectRatio = 'auto' | '16/9' | '4/3' | '1/1' | '3/4' | '9/16';
|
|
@@ -602,14 +567,7 @@ export type BlogPostContent = {
|
|
|
602
567
|
title?: string | null;
|
|
603
568
|
postSlug?: string | null;
|
|
604
569
|
};
|
|
605
|
-
export type FormBlockContent =
|
|
606
|
-
title?: string | null;
|
|
607
|
-
intro?: RichTextDoc | null;
|
|
608
|
-
formSlug: string;
|
|
609
|
-
submitLabel?: string | null;
|
|
610
|
-
successMessage?: string | null;
|
|
611
|
-
_sectionStyles?: SectionStylesContent;
|
|
612
|
-
};
|
|
570
|
+
export type FormBlockContent = import('../../../blocks/src/system/blocks/form').FormBlockContent;
|
|
613
571
|
export type LocationMapContent = {
|
|
614
572
|
heading?: string | null;
|
|
615
573
|
location?: {
|