@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
package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts
CHANGED
|
@@ -90,8 +90,8 @@ export declare const eventCollectionFilterSourceSchemaShape: {
|
|
|
90
90
|
readonly showFilters: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
91
91
|
readonly showCategoryFilter: z.ZodOptional<z.ZodEnum<{
|
|
92
92
|
auto: "auto";
|
|
93
|
-
never: "never";
|
|
94
93
|
always: "always";
|
|
94
|
+
never: "never";
|
|
95
95
|
}>>;
|
|
96
96
|
readonly showVenueFilter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
97
97
|
readonly showStaffFilter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -136,8 +136,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
136
136
|
readonly showFilters: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
137
137
|
readonly showCategoryFilter: z.ZodOptional<z.ZodEnum<{
|
|
138
138
|
auto: "auto";
|
|
139
|
-
never: "never";
|
|
140
139
|
always: "always";
|
|
140
|
+
never: "never";
|
|
141
141
|
}>>;
|
|
142
142
|
readonly showVenueFilter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
143
143
|
readonly showStaffFilter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -467,8 +467,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
467
467
|
cancellationPolicy: z.ZodObject<{
|
|
468
468
|
refunds: z.ZodObject<{
|
|
469
469
|
mode: z.ZodEnum<{
|
|
470
|
-
never: "never";
|
|
471
470
|
always: "always";
|
|
471
|
+
never: "never";
|
|
472
472
|
cutoff: "cutoff";
|
|
473
473
|
}>;
|
|
474
474
|
cutoffHours: z.ZodNumber;
|
|
@@ -808,8 +808,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
808
808
|
cancellationPolicy: z.ZodObject<{
|
|
809
809
|
refunds: z.ZodObject<{
|
|
810
810
|
mode: z.ZodEnum<{
|
|
811
|
-
never: "never";
|
|
812
811
|
always: "always";
|
|
812
|
+
never: "never";
|
|
813
813
|
cutoff: "cutoff";
|
|
814
814
|
}>;
|
|
815
815
|
cutoffHours: z.ZodNumber;
|
|
@@ -870,8 +870,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
870
870
|
preview: "preview";
|
|
871
871
|
}>>;
|
|
872
872
|
readonly listLayout: z.ZodOptional<z.ZodEnum<{
|
|
873
|
-
stack: "stack";
|
|
874
873
|
compact: "compact";
|
|
874
|
+
stack: "stack";
|
|
875
875
|
grid: "grid";
|
|
876
876
|
}>>;
|
|
877
877
|
readonly listColumns: z.ZodOptional<z.ZodEnum<{
|
|
@@ -950,12 +950,17 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
950
950
|
time: "time";
|
|
951
951
|
layout: "layout";
|
|
952
952
|
group: "group";
|
|
953
|
+
contact: "contact";
|
|
953
954
|
stack: "stack";
|
|
954
955
|
inline: "inline";
|
|
955
956
|
heading: "heading";
|
|
956
957
|
intro: "intro";
|
|
957
958
|
section: "section";
|
|
958
959
|
navigation: "navigation";
|
|
960
|
+
head: "head";
|
|
961
|
+
social: "social";
|
|
962
|
+
panel: "panel";
|
|
963
|
+
base: "base";
|
|
959
964
|
row: "row";
|
|
960
965
|
media: "media";
|
|
961
966
|
caption: "caption";
|
|
@@ -968,7 +973,6 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
968
973
|
icon: "icon";
|
|
969
974
|
copy: "copy";
|
|
970
975
|
grid: "grid";
|
|
971
|
-
panel: "panel";
|
|
972
976
|
facts: "facts";
|
|
973
977
|
chips: "chips";
|
|
974
978
|
numeral: "numeral";
|
|
@@ -980,7 +984,6 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
980
984
|
sticker: "sticker";
|
|
981
985
|
list: "list";
|
|
982
986
|
frame: "frame";
|
|
983
|
-
head: "head";
|
|
984
987
|
headline: "headline";
|
|
985
988
|
lede: "lede";
|
|
986
989
|
actions: "actions";
|
|
@@ -1025,12 +1028,17 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
1025
1028
|
time: "time";
|
|
1026
1029
|
layout: "layout";
|
|
1027
1030
|
group: "group";
|
|
1031
|
+
contact: "contact";
|
|
1028
1032
|
stack: "stack";
|
|
1029
1033
|
inline: "inline";
|
|
1030
1034
|
heading: "heading";
|
|
1031
1035
|
intro: "intro";
|
|
1032
1036
|
section: "section";
|
|
1033
1037
|
navigation: "navigation";
|
|
1038
|
+
head: "head";
|
|
1039
|
+
social: "social";
|
|
1040
|
+
panel: "panel";
|
|
1041
|
+
base: "base";
|
|
1034
1042
|
row: "row";
|
|
1035
1043
|
media: "media";
|
|
1036
1044
|
caption: "caption";
|
|
@@ -1043,7 +1051,6 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
1043
1051
|
icon: "icon";
|
|
1044
1052
|
copy: "copy";
|
|
1045
1053
|
grid: "grid";
|
|
1046
|
-
panel: "panel";
|
|
1047
1054
|
facts: "facts";
|
|
1048
1055
|
chips: "chips";
|
|
1049
1056
|
numeral: "numeral";
|
|
@@ -1055,7 +1062,6 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
1055
1062
|
sticker: "sticker";
|
|
1056
1063
|
list: "list";
|
|
1057
1064
|
frame: "frame";
|
|
1058
|
-
head: "head";
|
|
1059
1065
|
headline: "headline";
|
|
1060
1066
|
lede: "lede";
|
|
1061
1067
|
actions: "actions";
|
|
@@ -1404,8 +1410,8 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1404
1410
|
cancellationPolicy: z.ZodObject<{
|
|
1405
1411
|
refunds: z.ZodObject<{
|
|
1406
1412
|
mode: z.ZodEnum<{
|
|
1407
|
-
never: "never";
|
|
1408
1413
|
always: "always";
|
|
1414
|
+
never: "never";
|
|
1409
1415
|
cutoff: "cutoff";
|
|
1410
1416
|
}>;
|
|
1411
1417
|
cutoffHours: z.ZodNumber;
|
|
@@ -1745,8 +1751,8 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1745
1751
|
cancellationPolicy: z.ZodObject<{
|
|
1746
1752
|
refunds: z.ZodObject<{
|
|
1747
1753
|
mode: z.ZodEnum<{
|
|
1748
|
-
never: "never";
|
|
1749
1754
|
always: "always";
|
|
1755
|
+
never: "never";
|
|
1750
1756
|
cutoff: "cutoff";
|
|
1751
1757
|
}>;
|
|
1752
1758
|
cutoffHours: z.ZodNumber;
|
|
@@ -1800,8 +1806,8 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1800
1806
|
}, z.core.$strip>;
|
|
1801
1807
|
}, z.core.$strip>]>>;
|
|
1802
1808
|
readonly listLayout: z.ZodEnum<{
|
|
1803
|
-
stack: "stack";
|
|
1804
1809
|
compact: "compact";
|
|
1810
|
+
stack: "stack";
|
|
1805
1811
|
grid: "grid";
|
|
1806
1812
|
ledger: "ledger";
|
|
1807
1813
|
"day-groups": "day-groups";
|
|
@@ -1829,8 +1835,8 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1829
1835
|
readonly showFilters: z.ZodBoolean;
|
|
1830
1836
|
readonly showCategoryFilter: z.ZodEnum<{
|
|
1831
1837
|
auto: "auto";
|
|
1832
|
-
never: "never";
|
|
1833
1838
|
always: "always";
|
|
1839
|
+
never: "never";
|
|
1834
1840
|
}>;
|
|
1835
1841
|
readonly showVenueFilter: z.ZodBoolean;
|
|
1836
1842
|
readonly showStaffFilter: z.ZodBoolean;
|
|
@@ -1919,12 +1925,17 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1919
1925
|
time: "time";
|
|
1920
1926
|
layout: "layout";
|
|
1921
1927
|
group: "group";
|
|
1928
|
+
contact: "contact";
|
|
1922
1929
|
stack: "stack";
|
|
1923
1930
|
inline: "inline";
|
|
1924
1931
|
heading: "heading";
|
|
1925
1932
|
intro: "intro";
|
|
1926
1933
|
section: "section";
|
|
1927
1934
|
navigation: "navigation";
|
|
1935
|
+
head: "head";
|
|
1936
|
+
social: "social";
|
|
1937
|
+
panel: "panel";
|
|
1938
|
+
base: "base";
|
|
1928
1939
|
row: "row";
|
|
1929
1940
|
media: "media";
|
|
1930
1941
|
caption: "caption";
|
|
@@ -1937,7 +1948,6 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1937
1948
|
icon: "icon";
|
|
1938
1949
|
copy: "copy";
|
|
1939
1950
|
grid: "grid";
|
|
1940
|
-
panel: "panel";
|
|
1941
1951
|
facts: "facts";
|
|
1942
1952
|
chips: "chips";
|
|
1943
1953
|
numeral: "numeral";
|
|
@@ -1949,7 +1959,6 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1949
1959
|
sticker: "sticker";
|
|
1950
1960
|
list: "list";
|
|
1951
1961
|
frame: "frame";
|
|
1952
|
-
head: "head";
|
|
1953
1962
|
headline: "headline";
|
|
1954
1963
|
lede: "lede";
|
|
1955
1964
|
actions: "actions";
|
|
@@ -1994,12 +2003,17 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1994
2003
|
time: "time";
|
|
1995
2004
|
layout: "layout";
|
|
1996
2005
|
group: "group";
|
|
2006
|
+
contact: "contact";
|
|
1997
2007
|
stack: "stack";
|
|
1998
2008
|
inline: "inline";
|
|
1999
2009
|
heading: "heading";
|
|
2000
2010
|
intro: "intro";
|
|
2001
2011
|
section: "section";
|
|
2002
2012
|
navigation: "navigation";
|
|
2013
|
+
head: "head";
|
|
2014
|
+
social: "social";
|
|
2015
|
+
panel: "panel";
|
|
2016
|
+
base: "base";
|
|
2003
2017
|
row: "row";
|
|
2004
2018
|
media: "media";
|
|
2005
2019
|
caption: "caption";
|
|
@@ -2012,7 +2026,6 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
2012
2026
|
icon: "icon";
|
|
2013
2027
|
copy: "copy";
|
|
2014
2028
|
grid: "grid";
|
|
2015
|
-
panel: "panel";
|
|
2016
2029
|
facts: "facts";
|
|
2017
2030
|
chips: "chips";
|
|
2018
2031
|
numeral: "numeral";
|
|
@@ -2024,7 +2037,6 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
2024
2037
|
sticker: "sticker";
|
|
2025
2038
|
list: "list";
|
|
2026
2039
|
frame: "frame";
|
|
2027
|
-
head: "head";
|
|
2028
2040
|
headline: "headline";
|
|
2029
2041
|
lede: "lede";
|
|
2030
2042
|
actions: "actions";
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type LookListPresentation } from '../lookSurfaces';
|
|
3
|
+
type FieldPresentation = Pick<LookListPresentation, 'lookSlots'>;
|
|
2
4
|
import type { FormFieldDef } from './form.types';
|
|
3
|
-
export declare function FormFieldControl({ field }: Readonly<{
|
|
5
|
+
export declare function FormFieldControl({ field, lookSlots }: Readonly<{
|
|
4
6
|
field: FormFieldDef;
|
|
5
|
-
}>): React.ReactElement;
|
|
7
|
+
}> & FieldPresentation): React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { type LookListPresentation } from '../lookSurfaces';
|
|
1
2
|
import { type InteractiveIslandProps } from '../../../contracts/islands';
|
|
2
3
|
import { type FormFieldGroup } from './form-layout';
|
|
3
4
|
import type { FormRecord } from './form.types';
|
|
4
|
-
export type FormSourceProps = Readonly<{
|
|
5
|
+
export type FormSourceProps = Pick<LookListPresentation, 'lookSlots'> & Readonly<{
|
|
5
6
|
value?: FormRecord;
|
|
6
7
|
siteId?: string;
|
|
7
8
|
apiBaseUrl?: string;
|
|
@@ -10,7 +11,7 @@ export type FormSourceProps = Readonly<{
|
|
|
10
11
|
className?: string;
|
|
11
12
|
spamProtectionEnabled?: boolean;
|
|
12
13
|
}>;
|
|
13
|
-
export type FormDisplay = Readonly<{
|
|
14
|
+
export type FormDisplay = Pick<LookListPresentation, 'lookSlots'> & Readonly<{
|
|
14
15
|
kind: 'form';
|
|
15
16
|
state: 'missing' | 'ready';
|
|
16
17
|
className: string | null;
|
|
@@ -31,77 +32,26 @@ export declare function buildFormDisplay(source: FormSourceProps): FormDisplay;
|
|
|
31
32
|
export type FormInteractiveIslandProps = InteractiveIslandProps<FormIslandMeta, 'form', typeof formBlockRuntime>;
|
|
32
33
|
export declare const formBlockRuntime: Readonly<{
|
|
33
34
|
kind: "progressive";
|
|
34
|
-
buildRender: (source: Readonly<{
|
|
35
|
-
|
|
36
|
-
siteId?: string;
|
|
37
|
-
apiBaseUrl?: string;
|
|
38
|
-
submitLabel?: string;
|
|
39
|
-
successMessage?: string | null;
|
|
40
|
-
className?: string;
|
|
41
|
-
spamProtectionEnabled?: boolean;
|
|
42
|
-
}>) => Readonly<{
|
|
43
|
-
display: Readonly<{
|
|
44
|
-
kind: "form";
|
|
45
|
-
state: "missing" | "ready";
|
|
46
|
-
className: string | null;
|
|
47
|
-
formId: string | null;
|
|
48
|
-
submitLabel: string;
|
|
49
|
-
successMessage: string | null;
|
|
50
|
-
form: FormRecord | null;
|
|
51
|
-
groups: readonly FormFieldGroup[];
|
|
52
|
-
}>;
|
|
35
|
+
buildRender: (source: FormSourceProps) => Readonly<{
|
|
36
|
+
display: FormDisplay;
|
|
53
37
|
hydration: Readonly<{
|
|
54
38
|
spamProtectionEnabled?: boolean;
|
|
55
39
|
}>;
|
|
56
40
|
}>;
|
|
57
41
|
contracts: Readonly<{
|
|
58
42
|
source: Readonly<{
|
|
59
|
-
encode: (value:
|
|
60
|
-
|
|
61
|
-
siteId?: string;
|
|
62
|
-
apiBaseUrl?: string;
|
|
63
|
-
submitLabel?: string;
|
|
64
|
-
successMessage?: string | null;
|
|
65
|
-
className?: string;
|
|
66
|
-
spamProtectionEnabled?: boolean;
|
|
67
|
-
}>) => unknown;
|
|
68
|
-
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
69
|
-
value?: FormRecord;
|
|
70
|
-
siteId?: string;
|
|
71
|
-
apiBaseUrl?: string;
|
|
72
|
-
submitLabel?: string;
|
|
73
|
-
successMessage?: string | null;
|
|
74
|
-
className?: string;
|
|
75
|
-
spamProtectionEnabled?: boolean;
|
|
76
|
-
}>>;
|
|
43
|
+
encode: (value: FormSourceProps) => unknown;
|
|
44
|
+
decode: (input: unknown) => import("../../../contracts").DecodeResult<FormSourceProps>;
|
|
77
45
|
}>;
|
|
78
46
|
render: Readonly<{
|
|
79
47
|
encode: (value: Readonly<{
|
|
80
|
-
display:
|
|
81
|
-
kind: "form";
|
|
82
|
-
state: "missing" | "ready";
|
|
83
|
-
className: string | null;
|
|
84
|
-
formId: string | null;
|
|
85
|
-
submitLabel: string;
|
|
86
|
-
successMessage: string | null;
|
|
87
|
-
form: FormRecord | null;
|
|
88
|
-
groups: readonly FormFieldGroup[];
|
|
89
|
-
}>;
|
|
48
|
+
display: FormDisplay;
|
|
90
49
|
hydration: Readonly<{
|
|
91
50
|
spamProtectionEnabled?: boolean;
|
|
92
51
|
}>;
|
|
93
52
|
}>) => unknown;
|
|
94
53
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
95
|
-
display:
|
|
96
|
-
kind: "form";
|
|
97
|
-
state: "missing" | "ready";
|
|
98
|
-
className: string | null;
|
|
99
|
-
formId: string | null;
|
|
100
|
-
submitLabel: string;
|
|
101
|
-
successMessage: string | null;
|
|
102
|
-
form: FormRecord | null;
|
|
103
|
-
groups: readonly FormFieldGroup[];
|
|
104
|
-
}>;
|
|
54
|
+
display: FormDisplay;
|
|
105
55
|
hydration: Readonly<{
|
|
106
56
|
spamProtectionEnabled?: boolean;
|
|
107
57
|
}>;
|
|
@@ -118,16 +68,7 @@ export declare const formInteractiveIslandPropsCodec: Readonly<{
|
|
|
118
68
|
render: Readonly<{
|
|
119
69
|
mode: "form";
|
|
120
70
|
} & Readonly<{
|
|
121
|
-
display:
|
|
122
|
-
kind: "form";
|
|
123
|
-
state: "missing" | "ready";
|
|
124
|
-
className: string | null;
|
|
125
|
-
formId: string | null;
|
|
126
|
-
submitLabel: string;
|
|
127
|
-
successMessage: string | null;
|
|
128
|
-
form: FormRecord | null;
|
|
129
|
-
groups: readonly FormFieldGroup[];
|
|
130
|
-
}>;
|
|
71
|
+
display: FormDisplay;
|
|
131
72
|
hydration: Readonly<{
|
|
132
73
|
spamProtectionEnabled?: boolean;
|
|
133
74
|
}>;
|
|
@@ -141,16 +82,7 @@ export declare const formInteractiveIslandPropsCodec: Readonly<{
|
|
|
141
82
|
render: Readonly<{
|
|
142
83
|
mode: "form";
|
|
143
84
|
} & Readonly<{
|
|
144
|
-
display:
|
|
145
|
-
kind: "form";
|
|
146
|
-
state: "missing" | "ready";
|
|
147
|
-
className: string | null;
|
|
148
|
-
formId: string | null;
|
|
149
|
-
submitLabel: string;
|
|
150
|
-
successMessage: string | null;
|
|
151
|
-
form: FormRecord | null;
|
|
152
|
-
groups: readonly FormFieldGroup[];
|
|
153
|
-
}>;
|
|
85
|
+
display: FormDisplay;
|
|
154
86
|
hydration: Readonly<{
|
|
155
87
|
spamProtectionEnabled?: boolean;
|
|
156
88
|
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FormDisplay } from './form.interactive';
|
|
3
|
+
/** SSR and hydration consume the same decided field groups and Look hooks. */
|
|
4
|
+
export declare function FormFieldGroups({ groups, lookSlots }: Pick<FormDisplay, 'groups' | 'lookSlots'>): React.ReactElement;
|
|
5
|
+
export declare function FormSubmitAction({ lookSlots, submitLabel, disabled }: Pick<FormDisplay, 'lookSlots' | 'submitLabel'> & Readonly<{
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}>): React.ReactElement;
|
|
@@ -1,20 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type
|
|
3
|
-
type FormNodeProps = {
|
|
2
|
+
import { type FormSourceProps } from './form.interactive';
|
|
3
|
+
type FormNodeProps = FormSourceProps & {
|
|
4
4
|
blockId?: string | null;
|
|
5
|
-
value?: FormRecord;
|
|
6
|
-
submitLabel?: string;
|
|
7
|
-
successMessage?: string | null;
|
|
8
|
-
className?: string;
|
|
9
5
|
onSubmit?: React.FormEventHandler<HTMLFormElement>;
|
|
10
|
-
/** Override server form action (defaults to /api/forms/submit). */
|
|
11
6
|
action?: string;
|
|
12
|
-
/** Site ID for form submission */
|
|
13
|
-
siteId?: string;
|
|
14
|
-
/** API base URL for client-side fetching (passed from server to avoid env var resolution on client) */
|
|
15
|
-
apiBaseUrl?: string;
|
|
16
|
-
/** Enable spam protection (ALTCHA) */
|
|
17
|
-
spamProtectionEnabled?: boolean;
|
|
18
7
|
};
|
|
19
8
|
export declare const FormNodeSSR: React.FC<FormNodeProps>;
|
|
20
9
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { type LookListPresentation } from '../lookSurfaces';
|
|
1
2
|
import { type MailingListSignupSourceRef } from '../../../../../core/src/index';
|
|
2
3
|
import { type InteractiveIslandProps } from '../../../contracts/islands';
|
|
3
4
|
import { type NewsletterButtonVariant, type NewsletterFieldDef, type NewsletterFormProps } from './newsletter-form.types';
|
|
4
5
|
export type NewsletterFormSourceProps = NewsletterFormProps;
|
|
5
|
-
export type NewsletterFormDisplay = Readonly<{
|
|
6
|
+
export type NewsletterFormDisplay = Pick<LookListPresentation, 'lookSlots'> & Readonly<{
|
|
6
7
|
kind: 'newsletter-form';
|
|
7
8
|
availability: 'ready' | 'unavailable';
|
|
8
9
|
className: string | null;
|
|
@@ -47,25 +48,12 @@ type NewsletterIslandMeta = Readonly<{
|
|
|
47
48
|
siteId?: string;
|
|
48
49
|
apiBaseUrl?: string;
|
|
49
50
|
}>;
|
|
50
|
-
export declare function buildNewsletterDisplay(source: Pick<NewsletterFormSourceProps, 'source' | 'mailingList' | 'targeting' | 'buttonVariant' | 'className'>): NewsletterFormDisplay;
|
|
51
|
+
export declare function buildNewsletterDisplay(source: Pick<NewsletterFormSourceProps, 'source' | 'mailingList' | 'targeting' | 'buttonVariant' | 'className' | 'lookSlots'>): NewsletterFormDisplay;
|
|
51
52
|
export type NewsletterFormInteractiveIslandProps = InteractiveIslandProps<NewsletterIslandMeta, 'newsletter-form', typeof newsletterFormBlockRuntime>;
|
|
52
53
|
export declare const newsletterFormBlockRuntime: Readonly<{
|
|
53
54
|
kind: "progressive";
|
|
54
55
|
buildRender: (source: NewsletterFormProps) => Readonly<{
|
|
55
|
-
display:
|
|
56
|
-
kind: "newsletter-form";
|
|
57
|
-
availability: "ready" | "unavailable";
|
|
58
|
-
className: string | null;
|
|
59
|
-
buttonLabel: string;
|
|
60
|
-
successMessage: string;
|
|
61
|
-
buttonVariant: NewsletterButtonVariant;
|
|
62
|
-
privacyNote: string | null;
|
|
63
|
-
fields: readonly NewsletterFieldDef[];
|
|
64
|
-
choices: readonly Readonly<{
|
|
65
|
-
id: string;
|
|
66
|
-
label: string;
|
|
67
|
-
}>[];
|
|
68
|
-
}>;
|
|
56
|
+
display: NewsletterFormDisplay;
|
|
69
57
|
hydration: Readonly<{
|
|
70
58
|
target: NewsletterFormHydrationTarget;
|
|
71
59
|
setupRevision: number | null;
|
|
@@ -81,20 +69,7 @@ export declare const newsletterFormBlockRuntime: Readonly<{
|
|
|
81
69
|
}>;
|
|
82
70
|
render: Readonly<{
|
|
83
71
|
encode: (value: Readonly<{
|
|
84
|
-
display:
|
|
85
|
-
kind: "newsletter-form";
|
|
86
|
-
availability: "ready" | "unavailable";
|
|
87
|
-
className: string | null;
|
|
88
|
-
buttonLabel: string;
|
|
89
|
-
successMessage: string;
|
|
90
|
-
buttonVariant: NewsletterButtonVariant;
|
|
91
|
-
privacyNote: string | null;
|
|
92
|
-
fields: readonly NewsletterFieldDef[];
|
|
93
|
-
choices: readonly Readonly<{
|
|
94
|
-
id: string;
|
|
95
|
-
label: string;
|
|
96
|
-
}>[];
|
|
97
|
-
}>;
|
|
72
|
+
display: NewsletterFormDisplay;
|
|
98
73
|
hydration: Readonly<{
|
|
99
74
|
target: NewsletterFormHydrationTarget;
|
|
100
75
|
setupRevision: number | null;
|
|
@@ -104,20 +79,7 @@ export declare const newsletterFormBlockRuntime: Readonly<{
|
|
|
104
79
|
}>;
|
|
105
80
|
}>) => unknown;
|
|
106
81
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
107
|
-
display:
|
|
108
|
-
kind: "newsletter-form";
|
|
109
|
-
availability: "ready" | "unavailable";
|
|
110
|
-
className: string | null;
|
|
111
|
-
buttonLabel: string;
|
|
112
|
-
successMessage: string;
|
|
113
|
-
buttonVariant: NewsletterButtonVariant;
|
|
114
|
-
privacyNote: string | null;
|
|
115
|
-
fields: readonly NewsletterFieldDef[];
|
|
116
|
-
choices: readonly Readonly<{
|
|
117
|
-
id: string;
|
|
118
|
-
label: string;
|
|
119
|
-
}>[];
|
|
120
|
-
}>;
|
|
82
|
+
display: NewsletterFormDisplay;
|
|
121
83
|
hydration: Readonly<{
|
|
122
84
|
target: NewsletterFormHydrationTarget;
|
|
123
85
|
setupRevision: number | null;
|
|
@@ -139,20 +101,7 @@ export declare const newsletterFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
139
101
|
render: Readonly<{
|
|
140
102
|
mode: "newsletter-form";
|
|
141
103
|
} & Readonly<{
|
|
142
|
-
display:
|
|
143
|
-
kind: "newsletter-form";
|
|
144
|
-
availability: "ready" | "unavailable";
|
|
145
|
-
className: string | null;
|
|
146
|
-
buttonLabel: string;
|
|
147
|
-
successMessage: string;
|
|
148
|
-
buttonVariant: NewsletterButtonVariant;
|
|
149
|
-
privacyNote: string | null;
|
|
150
|
-
fields: readonly NewsletterFieldDef[];
|
|
151
|
-
choices: readonly Readonly<{
|
|
152
|
-
id: string;
|
|
153
|
-
label: string;
|
|
154
|
-
}>[];
|
|
155
|
-
}>;
|
|
104
|
+
display: NewsletterFormDisplay;
|
|
156
105
|
hydration: Readonly<{
|
|
157
106
|
target: NewsletterFormHydrationTarget;
|
|
158
107
|
setupRevision: number | null;
|
|
@@ -170,20 +119,7 @@ export declare const newsletterFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
170
119
|
render: Readonly<{
|
|
171
120
|
mode: "newsletter-form";
|
|
172
121
|
} & Readonly<{
|
|
173
|
-
display:
|
|
174
|
-
kind: "newsletter-form";
|
|
175
|
-
availability: "ready" | "unavailable";
|
|
176
|
-
className: string | null;
|
|
177
|
-
buttonLabel: string;
|
|
178
|
-
successMessage: string;
|
|
179
|
-
buttonVariant: NewsletterButtonVariant;
|
|
180
|
-
privacyNote: string | null;
|
|
181
|
-
fields: readonly NewsletterFieldDef[];
|
|
182
|
-
choices: readonly Readonly<{
|
|
183
|
-
id: string;
|
|
184
|
-
label: string;
|
|
185
|
-
}>[];
|
|
186
|
-
}>;
|
|
122
|
+
display: NewsletterFormDisplay;
|
|
187
123
|
hydration: Readonly<{
|
|
188
124
|
target: NewsletterFormHydrationTarget;
|
|
189
125
|
setupRevision: number | null;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { type LookListPresentation } from '../lookSurfaces';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import type { NewsletterButtonVariant, NewsletterFieldDef } from './newsletter-form.types';
|
|
3
4
|
/**
|
|
4
5
|
* Newsletter form pieces shared by the SSR render and the hydrated island, so
|
|
5
6
|
* both produce the same markup.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* readers still get the label.
|
|
8
|
+
* Legacy layouts keep visually hidden labels and the joined email/button.
|
|
9
|
+
* Compiler-owned Look hooks expose labelled controls and a separate action.
|
|
10
10
|
*/
|
|
11
11
|
export declare const TOPIC_CHOICE_FIELD_ID = "mailingListChoice";
|
|
12
|
-
type FieldState = Readonly<{
|
|
12
|
+
type FieldState = Pick<LookListPresentation, 'lookSlots'> & Readonly<{
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
error?: string | null;
|
|
15
15
|
}>;
|
|
@@ -18,7 +18,7 @@ export declare function partitionNewsletterFields(fields: readonly NewsletterFie
|
|
|
18
18
|
email: NewsletterFieldDef | null;
|
|
19
19
|
extra: readonly NewsletterFieldDef[];
|
|
20
20
|
}>;
|
|
21
|
-
export declare function NewsletterExtraField({ field, disabled, error, }: Readonly<{
|
|
21
|
+
export declare function NewsletterExtraField({ field, disabled, error, lookSlots, }: Readonly<{
|
|
22
22
|
field: NewsletterFieldDef;
|
|
23
23
|
}> & FieldState): React.ReactElement;
|
|
24
24
|
/** The email field and submit button sharing one input-styled shell. */
|
|
@@ -31,7 +31,7 @@ export declare function NewsletterEmailEntry({ field, buttonVariant, buttonLabel
|
|
|
31
31
|
* The submit action: joined to the email field when the preset has one
|
|
32
32
|
* (every current preset does), otherwise a plain themed button.
|
|
33
33
|
*/
|
|
34
|
-
export declare function NewsletterSubmitRow({ emailField, buttonVariant, buttonLabel, disabled, error, }: Readonly<{
|
|
34
|
+
export declare function NewsletterSubmitRow({ emailField, lookSlots, buttonVariant, buttonLabel, disabled, error, }: Readonly<{
|
|
35
35
|
emailField: NewsletterFieldDef | null;
|
|
36
36
|
buttonVariant: NewsletterButtonVariant;
|
|
37
37
|
buttonLabel: string;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { MailingListGlobalForm, MailingListPlacementTargeting, MailingListRuntimeContext, MailingListSignupSourceRef } from '../../../../../core/src/index';
|
|
7
7
|
import type { BlockButtonRole } from '../../constants/buttonRoles';
|
|
8
|
+
import type { LookListPresentation } from '../lookSurfaces';
|
|
8
9
|
import type { NewsletterBlockSubmission } from './newsletter-form.block-submission';
|
|
9
10
|
export type NewsletterPreset = MailingListGlobalForm['fields']['preset'];
|
|
10
11
|
export type NewsletterFieldDef = {
|
|
@@ -15,7 +16,7 @@ export type NewsletterFieldDef = {
|
|
|
15
16
|
placeholder?: string;
|
|
16
17
|
};
|
|
17
18
|
export type NewsletterButtonVariant = BlockButtonRole;
|
|
18
|
-
type NewsletterFormCommonProps = {
|
|
19
|
+
type NewsletterFormCommonProps = Pick<LookListPresentation, 'lookSlots'> & {
|
|
19
20
|
/** Site ID for API calls */
|
|
20
21
|
siteId?: string;
|
|
21
22
|
/** API base URL for client-side fetching */
|
|
@@ -52,5 +53,5 @@ export type NewsletterFormProps = NewsletterFormCommonProps & (BlockNewsletterFo
|
|
|
52
53
|
/**
|
|
53
54
|
* Get form fields based on preset configuration.
|
|
54
55
|
*/
|
|
55
|
-
export declare function getGlobalFormFields(form: MailingListGlobalForm): NewsletterFieldDef[];
|
|
56
|
+
export declare function getGlobalFormFields(form: MailingListGlobalForm, presentation?: Pick<LookListPresentation, "lookSlots">): NewsletterFieldDef[];
|
|
56
57
|
export {};
|
|
@@ -18,8 +18,8 @@ export declare const eventButtonVariantSchema: z.ZodEnum<{
|
|
|
18
18
|
ghost: "ghost";
|
|
19
19
|
}>;
|
|
20
20
|
export declare const eventLayoutSchema: z.ZodEnum<{
|
|
21
|
-
stack: "stack";
|
|
22
21
|
compact: "compact";
|
|
22
|
+
stack: "stack";
|
|
23
23
|
grid: "grid";
|
|
24
24
|
}>;
|
|
25
25
|
export declare const eventCalendarDisplayModeSchema: z.ZodEnum<{
|
|
@@ -44,8 +44,8 @@ export declare const weekStartSchema: z.ZodEnum<{
|
|
|
44
44
|
}>;
|
|
45
45
|
export declare const filterAutoShowSchema: z.ZodEnum<{
|
|
46
46
|
auto: "auto";
|
|
47
|
-
never: "never";
|
|
48
47
|
always: "always";
|
|
48
|
+
never: "never";
|
|
49
49
|
}>;
|
|
50
50
|
export declare const calendarTabViewsSchema: z.ZodEnum<{
|
|
51
51
|
week: "week";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { surfaceDecorationColors } from '../../../../../../theme-core/src/site-styles/index';
|
|
1
2
|
import { resolveSurfaceForeground, type ResolvedSurfaceForeground } from '../../../../../../theme-core/src/surfaces/index';
|
|
2
3
|
import type { ThemeFooter, ThemeHeader } from '../../../../../../theme-core/src/schema';
|
|
3
4
|
import type { ThemeColorToken } from '../../../../../../theme-core/src/tokens/index';
|
|
@@ -7,3 +8,5 @@ export declare function resolveFooterRootForeground(footer: Partial<ThemeFooter>
|
|
|
7
8
|
export declare function resolveSurfaceForegroundStyles(value: unknown, context: TransformContext, options?: Readonly<{
|
|
8
9
|
fallbackToken?: string;
|
|
9
10
|
}>): Record<string, string>;
|
|
11
|
+
/** Decoration roles already resolved by the surface owner, shared with footer arrangements. */
|
|
12
|
+
export declare function surfaceInkStyles(foreground: ResolvedSurfaceForeground, palette: Parameters<typeof surfaceDecorationColors>[1]): Record<string, string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ThemeFooter } from '../../../../../theme-core/src/schema';
|
|
2
|
+
import { type TransformDefinition } from './core';
|
|
3
|
+
export declare const footerBrandArrangementTransform: TransformDefinition;
|
|
4
|
+
export declare const footerModuleInkStyleTransform: TransformDefinition;
|
|
5
|
+
/** A centred base without authored bar paint inherits its measured surface line. */
|
|
6
|
+
export declare function footerBottomBarBorderColorStyle(footer: Partial<ThemeFooter> | undefined): import("react").CSSProperties;
|
|
@@ -63,20 +63,9 @@ declare const footerBottomBarContainerClassSchema: z.ZodObject<{
|
|
|
63
63
|
}, z.core.$strip>;
|
|
64
64
|
export declare const footerBottomBarContainerClassTransform: TransformDefinition<z.infer<typeof footerBottomBarContainerClassSchema>>;
|
|
65
65
|
export declare const footerBottomBarStyleTransform: TransformDefinition;
|
|
66
|
-
declare const footerSplitMainClassSchema: z.ZodObject<{
|
|
67
|
-
base: z.ZodOptional<z.ZodString>;
|
|
68
|
-
reverseClass: z.ZodOptional<z.ZodString>;
|
|
69
|
-
}, z.core.$strip>;
|
|
70
|
-
export declare const footerSplitMainClassTransform: TransformDefinition<z.infer<typeof footerSplitMainClassSchema>>;
|
|
71
66
|
declare const footerLogoClassSchema: z.ZodObject<{
|
|
72
67
|
base: z.ZodOptional<z.ZodString>;
|
|
73
|
-
requireExplicitShow: z.ZodOptional<z.ZodBoolean>;
|
|
74
68
|
}, z.core.$strip>;
|
|
75
69
|
export declare const footerLogoClassTransform: TransformDefinition<z.infer<typeof footerLogoClassSchema>>;
|
|
76
|
-
declare const footerLogoMediaClassSchema: z.ZodObject<{
|
|
77
|
-
base: z.ZodOptional<z.ZodString>;
|
|
78
|
-
}, z.core.$strip>;
|
|
79
|
-
export declare const footerLogoMediaClassTransform: TransformDefinition<z.infer<typeof footerLogoMediaClassSchema>>;
|
|
80
|
-
export declare const footerLogoTextVisibleTransform: TransformDefinition;
|
|
81
70
|
export declare const layoutTransforms: TransformDefinition[];
|
|
82
71
|
export {};
|