@riverbankcms/sdk 0.129.0 → 0.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -266
- package/dist/{PreviewEditorSidebar-B43CJ0g_.mjs → PreviewEditorSidebar-DiEpbOdw.mjs} +313 -239
- package/dist/{PreviewEditorUI-DHirVkeM.mjs → PreviewEditorUI-C6MvxnIa.mjs} +3 -3
- package/dist/{PreviewQueryProvider-B1kbhaJD.mjs → PreviewQueryProvider-C2rnoPz6.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-BJumZy1B.mjs → SdkPreviewModeRuntime-DRXA_m5L.mjs} +208 -211
- package/dist/{SiteChromeCustomizeContext-D9SlpwEj.mjs → SiteChromeCustomizeContext-BTHdv5_-.mjs} +6222 -6190
- package/dist/_dts/ai/src/contracts/commandExposure.d.ts +1 -1
- package/dist/_dts/ai/src/contracts/proposalPrimitives.d.ts +52 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +9438 -33588
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +32572 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +21 -9
- package/dist/_dts/api/src/bookingConfig.d.ts +4 -46
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +13 -11
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -5
- package/dist/_dts/api/src/endpoints.d.ts +14 -21
- package/dist/_dts/api/src/eventManagementContracts.d.ts +76 -0
- package/dist/_dts/api/src/index.d.ts +5 -3
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +22 -47
- package/dist/_dts/api/src/sdk-event-management.d.ts +53 -0
- package/dist/_dts/api/src/sdk-event-schedule.d.ts +8 -6
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +112 -20
- package/dist/_dts/api/src/sdkContracts.d.ts +74 -115
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +35 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +4517 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +18 -29
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +23 -37
- package/dist/_dts/blocks/src/contracts/index.d.ts +2 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +6 -8
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +36 -14
- package/dist/_dts/blocks/src/index.d.ts +5 -3
- package/dist/_dts/blocks/src/lib/media.d.ts +9 -539
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -90
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +37 -4
- package/dist/_dts/blocks/src/system/blocks/site-footer-nav-groups-layout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +3 -0
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +5 -5
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +8 -6
- package/dist/_dts/blocks/src/system/customize/serializeBackgroundOverride.d.ts +3 -0
- package/dist/_dts/blocks/src/system/fields/background.d.ts +2 -20
- package/dist/_dts/blocks/src/system/fields/backgroundContent.d.ts +17 -0
- package/dist/_dts/blocks/src/system/fields/backgroundContentAudit.d.ts +20 -0
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +5 -33
- package/dist/_dts/blocks/src/system/fragments/builder.d.ts +1 -0
- package/dist/_dts/blocks/src/system/fragments/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/helpers/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +10 -45
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +7 -4
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/writeCanonicalization.d.ts +4 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +123 -55
- package/dist/_dts/blocks/src/system/registry.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +2 -37
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +61 -24
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +30 -12
- package/dist/_dts/blocks/src/system/runtime/header/enhanceHeaderSection.d.ts +3 -5
- package/dist/_dts/blocks/src/system/runtime/header/headerScrollRuntime.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/header/runtimeContract.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/view.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.frame.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.server.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.pass-contract.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.state.d.ts +3 -3
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/registry/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/registry/core.d.ts +4 -1
- package/dist/_dts/blocks/src/system/transforms/registry/headerRuntime.d.ts +3 -0
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +0 -3
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +41 -43
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +4 -2
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +2 -17
- package/dist/_dts/content-editor/src/FooterNavigationLayoutControl.d.ts +5 -0
- package/dist/_dts/content-editor/src/footerComposer.d.ts +2 -1
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +21 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +2 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +11 -1
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +26 -0
- package/dist/_dts/content-model/src/templates/defaults.d.ts +7 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +2 -2
- package/dist/_dts/core/src/booking-time-zone.d.ts +6 -0
- package/dist/_dts/core/src/footer-composition-types.d.ts +4 -4
- package/dist/_dts/core/src/footer-navigation-layout.d.ts +4 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +38 -18
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/FooterSidebarDisclosure.d.ts +8 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +15 -17
- package/dist/_dts/preview-next/src/client/preview/PreviewFooterEditorPanel.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +6 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +7 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeCustomizeTypes.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +12 -11
- package/dist/_dts/preview-next/src/client/preview/siteChromeSelectionRows.d.ts +53 -0
- package/dist/_dts/preview-next/src/client/preview/siteStyleAccess.d.ts +1 -6
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +6 -15
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +4 -6
- package/dist/_dts/sdk/src/config/types.d.ts +5 -4
- package/dist/_dts/sdk/src/config/validation.d.ts +2 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -41
- package/dist/_dts/sdk/src/next/catch-all-theme-admission.d.ts +23 -0
- package/dist/_dts/sdk/src/next/index.d.ts +8 -6
- package/dist/_dts/sdk/src/next/resolveTheme.d.ts +1 -2
- package/dist/_dts/sdk/src/next/types.d.ts +10 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -16
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +5 -3
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +4 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +11 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blockOverrides.d.ts +1 -1
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +184 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +96 -0
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +78 -0
- package/dist/_dts/theme-core/src/buttons/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/buttons/parseThemeForPersistence.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +9 -57
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +6 -3
- package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +8 -7
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +11 -0
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -0
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +5 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +51 -4
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/lib/media.d.ts +583 -10
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +5117 -1433
- package/dist/_dts/theme-core/src/palette/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/schema.d.ts +5079 -2005
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +6 -14
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +29 -102
- package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +3 -76
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -7
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipelineHelpers.d.ts +17 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +281 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutResolution.d.ts +13 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyles.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutTypes.d.ts +142 -0
- package/dist/_dts/theme-core/src/site-styles/headerNavStyles.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +7 -4
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/imageSurfaceBackground.d.ts +14 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +14 -41
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +23 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +8 -6
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +1 -1
- package/dist/client/{CourseRegistrationWizard-xRmA7REV.mjs → CourseRegistrationWizard-Bvtz9G9g.mjs} +5 -5
- package/dist/client/{DiscountCodeDisclosure-B9vriL5C.mjs → DiscountCodeDisclosure-Ur-Xx1U_.mjs} +1 -1
- package/dist/client/{EventCombined.client-BgVnVTlz.mjs → EventCombined.client-EhscD4U6.mjs} +2 -2
- package/dist/client/{EventListing.client-CqdsO7jO.mjs → EventListing.client-Bn26cFTY.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CKPxot9M.mjs → LeafletStaticMap-BUw9Ntzr.mjs} +1 -1
- package/dist/client/{StepIndicator-DGCYuBJ1.mjs → StepIndicator-BfbdiVQI.mjs} +2 -2
- package/dist/client/{accordion-BfN5Eqd-.mjs → accordion-CjIeof73.mjs} +1 -1
- package/dist/client/{bookingForm-DOvCpBFP.mjs → bookingForm-DwEeovf_.mjs} +5 -5
- package/dist/client/bookings.mjs +1028 -1038
- package/dist/client/{carousel-DPNmiH0f.mjs → carousel-BMrfgOba.mjs} +1 -1
- package/dist/client/{cart--egVXlrR.mjs → cart-rXEdxTdb.mjs} +3 -3
- package/dist/client/{checkout-DywWtMcq.mjs → checkout-D3JlSzh3.mjs} +3 -3
- package/dist/client/client.mjs +18324 -18224
- package/dist/client/{courseRegistration-Dk9qFVwt.mjs → courseRegistration-DO5XvMAA.mjs} +2 -2
- package/dist/client/{eventCalendar-Bkz2HjlS.mjs → eventCalendar-DO6rTqCn.mjs} +4 -4
- package/dist/client/{eventCombined-D4kipYWg.mjs → eventCombined-bJ3i_ovU.mjs} +2 -2
- package/dist/client/{eventDetails-Dz_5ix2Q.mjs → eventDetails-CCbrXE7o.mjs} +3 -3
- package/dist/client/{eventListing-D0vm-zST.mjs → eventListing-Bdlt9YTm.mjs} +2 -2
- package/dist/client/{eventRegistration-Cw1E4Q4p.mjs → eventRegistration-B02lt6iY.mjs} +6 -6
- package/dist/client/{form-C2Zf1n3K.mjs → form-DrUBAAox.mjs} +1 -1
- package/dist/client/{headerSection-CP05gzdc.mjs → headerSection-MzqvHL6T.mjs} +151 -104
- package/dist/client/hooks.mjs +4550 -4211
- package/dist/client/{locationMap-Cl3x9PYJ.mjs → locationMap-DG8BxTBm.mjs} +2 -2
- package/dist/client/{newsletterForm-DyEJoClm.mjs → newsletterForm-BzO-Td3p.mjs} +1 -1
- package/dist/client/{pricing-DGuNR1W4.mjs → pricing-NgK7ozkg.mjs} +1 -1
- package/dist/client/{productDetail-Cq-HrGew.mjs → productDetail-CfQ7rhVK.mjs} +3 -3
- package/dist/client/{productList-DbB3jwqd.mjs → productList-C23rOLUi.mjs} +3 -3
- package/dist/client/{propsDecoder-CiTuhUwY.mjs → propsDecoder-CAZdhwjs.mjs} +2166 -2157
- package/dist/client/rendering/client.mjs +3606 -4078
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +15969 -15843
- package/dist/client/{scrollToBlock-CShkRqab.mjs → scrollToBlock-DSSqVQr1.mjs} +1 -1
- package/dist/client/{shop-Cu4Ib-ZA.mjs → shop-BMToKLK7.mjs} +34 -23
- package/dist/client/{shop-commerce-BzpsOdh7.mjs → shop-commerce-DB4JRKmp.mjs} +4 -4
- package/dist/client/{shop-commerce-store-DaE7Fhj8.mjs → shop-commerce-store-BOqSIOuc.mjs} +1 -1
- package/dist/client/{shopShared-cF0c20vB.mjs → shopShared-B6SK9DZv.mjs} +9 -3
- package/dist/client/{useEventFilters-QZ3HMgaJ.mjs → useEventFilters-CULOa4nB.mjs} +2 -2
- package/dist/client/{usePolling-BKf0GcE-.mjs → usePolling-BGG_8-jl.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +16 -27
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +16 -27
- package/dist/{previewAuthStore-BesgU5Xu.mjs → previewAuthStore-_GXFRg2W.mjs} +16 -27
- package/dist/{sdk-runtime-CfZd5pAm.mjs → sdk-runtime-hhSOMShR.mjs} +2 -2
- package/dist/{separator-DkTe68HE.mjs → separator-flRaFc14.mjs} +1 -1
- package/dist/server/components.mjs +17802 -17875
- package/dist/server/config-validation.mjs +4729 -4416
- package/dist/server/config.mjs +4733 -4420
- package/dist/server/data.mjs +4533 -4211
- package/dist/server/date-time.mjs +22 -13
- package/dist/server/index.mjs +17 -28
- package/dist/server/manifest.mjs +4966 -0
- package/dist/server/next.mjs +17635 -17676
- package/dist/server/page-converter.mjs +3759 -4386
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +18960 -19049
- package/dist/server/rendering.mjs +17848 -17902
- package/dist/server/routing.mjs +4776 -4323
- package/dist/server/server.mjs +4609 -4264
- package/dist/server/theme-bridge.mjs +1361 -1850
- package/dist/server/theme.mjs +736 -605
- package/dist/styles/index.css +22 -3
- package/package.json +9 -12
- package/dist/_dts/api/src/event-presentation.d.ts +0 -14
- package/dist/_dts/blocks/src/definitions.d.ts +0 -14
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +0 -66
- package/dist/_dts/sdk/src/cli/canonical-entry-policy.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/commands/audit.d.ts +0 -101
- package/dist/_dts/sdk/src/cli/commands/block.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/commands/compare.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/commands/content-type.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/content.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/delete.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/commands/entry.d.ts +0 -55
- package/dist/_dts/sdk/src/cli/commands/env.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/identifiers.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/commands/manifest.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/media-validation.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/migrate.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/navigation.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/page.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +0 -50
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +0 -70
- package/dist/_dts/sdk/src/cli/commands/pull-scope-diff.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +0 -19
- package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +0 -42
- package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/push/execute/media.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/commands/push/execute/metadata.d.ts +0 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/reporting.d.ts +0 -7
- package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/commands/push/filter.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/commands/push/normalizeLocalContent.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +0 -83
- package/dist/_dts/sdk/src/cli/commands/push/scopes/eventCategories.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/events.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/push/scopes/pushScopeGeneric.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +0 -87
- package/dist/_dts/sdk/src/cli/commands/push/scopes/venues.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +0 -34
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +0 -54
- package/dist/_dts/sdk/src/cli/commands/push.d.ts +0 -40
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +0 -60
- package/dist/_dts/sdk/src/cli/commands/verify.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +0 -44
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +0 -47
- package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +0 -5
- package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/content/media-manifest.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -488
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +0 -142
- package/dist/_dts/sdk/src/cli/env-scope.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/env.d.ts +0 -71
- package/dist/_dts/sdk/src/cli/errors.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/helpers/ai-runtime.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/helpers.d.ts +0 -399
- package/dist/_dts/sdk/src/cli/index.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/init-docs/constants.d.ts +0 -16
- package/dist/_dts/sdk/src/cli/init-docs/index.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/init-docs/templates.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/init-docs/zod-to-markdown.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/load-config.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/identifiers.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/media/local-media.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +0 -91
- package/dist/_dts/sdk/src/cli/media/portable.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/media/rich-text.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/media/value-utils.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/media/write-guard.d.ts +0 -52
- package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +0 -45
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +0 -9
- package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +0 -36
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/merge-remote/sharedBaseSnapshots.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergePlan.d.ts +0 -27
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergeReport.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/migrations/entries.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +0 -73
- package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/output.d.ts +0 -133
- package/dist/_dts/sdk/src/cli/program.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/push-config.d.ts +0 -49
- package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +0 -51
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +0 -170
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +0 -21
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +0 -65
- package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +0 -57
- package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +0 -82
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +0 -97
- package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/diff.d.ts +0 -222
- package/dist/_dts/sdk/src/cli/sync/executor.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/sync/mapper.d.ts +0 -41
- package/dist/_dts/sdk/src/cli/sync/media-sync.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/media.d.ts +0 -158
- package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/sync/validation.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/utils/checksum.d.ts +0 -1
- package/dist/_dts/sdk/src/client/management/blocks.d.ts +0 -19
- package/dist/_dts/sdk/src/client/management/catalog.d.ts +0 -10
- package/dist/_dts/sdk/src/client/management/entries.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/eventCategories.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/events.d.ts +0 -7
- package/dist/_dts/sdk/src/client/management/footer.d.ts +0 -9
- package/dist/_dts/sdk/src/client/management/forms.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/http.d.ts +0 -79
- package/dist/_dts/sdk/src/client/management/identifiers.d.ts +0 -11
- package/dist/_dts/sdk/src/client/management/index.d.ts +0 -41
- package/dist/_dts/sdk/src/client/management/media.d.ts +0 -72
- package/dist/_dts/sdk/src/client/management/navigation.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pages.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pull.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/settings-branding.d.ts +0 -32
- package/dist/_dts/sdk/src/client/management/settings.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/theme.d.ts +0 -8
- package/dist/_dts/sdk/src/client/management/types.d.ts +0 -1069
- package/dist/_dts/sdk/src/client/management/venues.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/webhooks.d.ts +0 -3
- package/dist/_dts/sdk/src/test/env.d.ts +0 -4
- package/dist/_dts/site-commands/src/adapter.d.ts +0 -23
- package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +0 -100
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +0 -8
- package/dist/_dts/site-commands/src/commandContract.d.ts +0 -1277
- package/dist/_dts/site-commands/src/commandDomain.d.ts +0 -20
- package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +0 -7
- package/dist/_dts/site-commands/src/commandValidation.d.ts +0 -10
- package/dist/_dts/site-commands/src/commands.d.ts +0 -1983
- package/dist/_dts/site-commands/src/domain.d.ts +0 -104
- package/dist/_dts/site-commands/src/eventCommandContent.d.ts +0 -11
- package/dist/_dts/site-commands/src/exposure.d.ts +0 -41
- package/dist/_dts/site-commands/src/guards.d.ts +0 -1
- package/dist/_dts/site-commands/src/index.d.ts +0 -18
- package/dist/_dts/site-commands/src/metadata.d.ts +0 -555
- package/dist/_dts/site-commands/src/pagePaths.d.ts +0 -6
- package/dist/_dts/site-commands/src/planner.d.ts +0 -58
- package/dist/_dts/site-commands/src/refContributions.d.ts +0 -11
- package/dist/_dts/site-commands/src/refs.d.ts +0 -90
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +0 -405
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +0 -46
- package/dist/_dts/site-commands/src/stableJson.d.ts +0 -5
- package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +0 -10
- package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +0 -21
- package/dist/_dts/theme-core/src/data.d.ts +0 -12
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +0 -841
- package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +0 -4
- package/dist/cli/index.mjs +0 -162988
- package/dist/cli/init-docs/content/agents-section.md +0 -67
- package/dist/cli/init-docs/content/cli-reference.md +0 -1238
- package/dist/cli/init-docs/content/content-management.md +0 -792
- package/dist/cli/init-docs/content/context-brand.md +0 -125
- package/dist/cli/init-docs/content/context-brief.md +0 -77
- package/dist/cli/init-docs/content/context-knowledge.md +0 -111
- package/dist/cli/init-docs/content/getting-started.md +0 -171
- package/dist/cli/init-docs/content/site-workflows-readme.md +0 -96
- package/dist/cli/init-docs/content/workflow-add-block.md +0 -299
- package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +0 -83
- package/dist/cli/init-docs/content/workflow-block-extensions.md +0 -370
- package/dist/cli/init-docs/content/workflow-cmsify-page.md +0 -357
- package/dist/cli/init-docs/content/workflow-content-types.md +0 -330
- package/dist/cli/init-docs/content/workflow-create-page.md +0 -212
- package/dist/cli/init-docs/content/workflow-custom-block.md +0 -470
- package/dist/cli/init-docs/content/workflow-editor-workflows.md +0 -130
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +0 -158
- package/dist/cli/init-docs/content/workflow-preview-mode.md +0 -252
- package/dist/cli/init-docs/content/workflow-publish.md +0 -285
- package/dist/cli/init-docs/content/workflow-remote-setup.md +0 -51
- package/dist/cli/init-docs/content/workflow-templates.md +0 -381
- /package/dist/_dts/{sdk/src/cli/utils/mime.d.ts → media-core/src/mimeType.d.ts} +0 -0
|
@@ -1,34 +1,25 @@
|
|
|
1
1
|
import type { Theme } from '../../../../blocks/src/index';
|
|
2
2
|
import type { ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
|
|
3
|
-
import type { FooterLookId, HeaderLayoutId,
|
|
4
|
-
import {
|
|
3
|
+
import type { FooterLookId, HeaderLayoutId, HeaderLogoContext, HeaderStyleId, SiteChromeSurface } from '../../../../theme-core/src/site-styles/index';
|
|
4
|
+
import { type CuratedSiteStyle, type SelectionFallbackWarning, type SiteThemeSelectionsResult, type SiteStyleId } from '../../../../theme-core/src/site-styles/previewCompiler';
|
|
5
5
|
export type SiteStylePreviewSelection = Readonly<{
|
|
6
6
|
siteStyleId: SiteStyleId;
|
|
7
7
|
buttonStyleSelection: ButtonStyleSelection;
|
|
8
8
|
palette: Theme['palette'];
|
|
9
9
|
typography: Theme['typography'];
|
|
10
|
-
headerLayoutId
|
|
11
|
-
headerStyleId
|
|
12
|
-
headerLookId: HeaderLookId | null;
|
|
13
|
-
footerLookId: FooterLookId | null;
|
|
14
|
-
}>;
|
|
15
|
-
export type SiteStyleChromePreviewSelection = Readonly<{
|
|
16
|
-
headerLookId: HeaderLookId | null;
|
|
10
|
+
headerLayoutId: HeaderLayoutId;
|
|
11
|
+
headerStyleId: HeaderStyleId;
|
|
17
12
|
footerLookId: FooterLookId | null;
|
|
18
13
|
}>;
|
|
19
14
|
export type SiteStylePreviewPlan = Readonly<{
|
|
20
15
|
themeOverlay: Theme;
|
|
21
|
-
resolvedSelections:
|
|
22
|
-
headerLayoutId: HeaderLayoutId;
|
|
23
|
-
headerStyleId: HeaderStyleId;
|
|
24
|
-
}>;
|
|
25
|
-
chromeSelection: SiteStyleChromePreviewSelection;
|
|
16
|
+
resolvedSelections: SiteThemeSelectionsResult['resolvedSelections'];
|
|
26
17
|
warnings: ReadonlyArray<SelectionFallbackWarning>;
|
|
27
18
|
}>;
|
|
28
19
|
type SiteStylePreviewPlanCommonInput = Readonly<{
|
|
29
20
|
siteStyle: CuratedSiteStyle;
|
|
30
21
|
selection: SiteStylePreviewSelection;
|
|
31
|
-
|
|
22
|
+
headerLogoContext?: HeaderLogoContext;
|
|
32
23
|
}>;
|
|
33
24
|
export type SiteStylePreviewPlanInput = SiteStylePreviewPlanCommonInput & (Readonly<{
|
|
34
25
|
compilation: Readonly<{
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import type { Theme } from '../../../../blocks/src/index';
|
|
2
2
|
import type { ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
|
|
3
|
-
import type { FooterLookId,
|
|
3
|
+
import type { FooterLookId, HeaderLayoutStyleSelection, HeaderLogoContext } from '../../../../theme-core/src/site-styles/index';
|
|
4
4
|
import type { SelectionSnapshot } from './StyleConfigurator.state';
|
|
5
5
|
export type StyleConfiguratorInitialSelections = Readonly<{
|
|
6
6
|
selectionVersion?: number | null;
|
|
7
7
|
selectionUpdatedAt?: string | null;
|
|
8
8
|
buttonStyleSelection: ButtonStyleSelection | null;
|
|
9
|
-
|
|
10
|
-
headerStyleId?: HeaderStyleId | null;
|
|
11
|
-
headerLookId?: HeaderLookId | null;
|
|
9
|
+
headerSelection?: HeaderLayoutStyleSelection | null;
|
|
12
10
|
footerLookId?: FooterLookId | null;
|
|
13
11
|
}>;
|
|
14
12
|
type StyleConfiguratorSnapshotInput = Readonly<{
|
|
15
13
|
theme?: Theme | null;
|
|
16
14
|
initialSelections: StyleConfiguratorInitialSelections;
|
|
17
|
-
|
|
15
|
+
headerLogoContext?: HeaderLogoContext;
|
|
18
16
|
}>;
|
|
19
17
|
/**
|
|
20
18
|
* The parsed theme is the complete palette authority for preview.
|
|
@@ -22,6 +20,6 @@ type StyleConfiguratorSnapshotInput = Readonly<{
|
|
|
22
20
|
export declare function resolveStyleConfiguratorInitialSnapshot(input: Readonly<{
|
|
23
21
|
theme?: Theme | null;
|
|
24
22
|
initialSelections: StyleConfiguratorSnapshotInput['initialSelections'];
|
|
25
|
-
|
|
23
|
+
headerLogoContext?: HeaderLogoContext;
|
|
26
24
|
}>): SelectionSnapshot | null;
|
|
27
25
|
export {};
|
|
@@ -62,6 +62,7 @@ export type LoaderWhenValue = boolean | LoaderParamBinding;
|
|
|
62
62
|
export interface SdkConfigLoader {
|
|
63
63
|
endpoint: SdkLoaderEndpoint;
|
|
64
64
|
params: Record<string, LoaderParamValue>;
|
|
65
|
+
requiredParams?: readonly string[];
|
|
65
66
|
mode?: 'server' | 'client';
|
|
66
67
|
when?: LoaderWhenValue;
|
|
67
68
|
}
|
|
@@ -276,7 +277,7 @@ export type BlockFieldExtensionsMap = Record<string, BlockFieldExtension>;
|
|
|
276
277
|
/**
|
|
277
278
|
* Sync behavior configuration for CLI push operations.
|
|
278
279
|
*
|
|
279
|
-
* Controls how the
|
|
280
|
+
* Controls how the Riverbank CLI handles content synchronization.
|
|
280
281
|
* Status changes (draft/published) are synced based on local file status.
|
|
281
282
|
*/
|
|
282
283
|
export interface SyncConfig {
|
|
@@ -314,7 +315,7 @@ export interface DeployConfig {
|
|
|
314
315
|
* Top-level SDK site configuration.
|
|
315
316
|
*
|
|
316
317
|
* This is the complete configuration that SDK sites define in their
|
|
317
|
-
* `riverbank.config.ts` file and use it via the
|
|
318
|
+
* `riverbank.config.ts` file and use it via the Riverbank CLI.
|
|
318
319
|
*
|
|
319
320
|
* @example
|
|
320
321
|
* ```typescript
|
|
@@ -501,7 +502,7 @@ export interface RiverbankSiteConfig {
|
|
|
501
502
|
/**
|
|
502
503
|
* Sync behavior configuration for CLI push operations.
|
|
503
504
|
*
|
|
504
|
-
* Controls how the
|
|
505
|
+
* Controls how the Riverbank CLI handles content synchronization when
|
|
505
506
|
* pushing content from local files to the CMS.
|
|
506
507
|
* Status (draft/published) is synced based on local file status.
|
|
507
508
|
*
|
|
@@ -567,7 +568,7 @@ export interface RiverbankSiteConfig {
|
|
|
567
568
|
/**
|
|
568
569
|
* Dashboard configuration for CMS UI behavior.
|
|
569
570
|
*
|
|
570
|
-
* This is stored in `sites.sdk_config` and can be pushed via the
|
|
571
|
+
* This is stored in `sites.sdk_config` and can be pushed via the Riverbank CLI.
|
|
571
572
|
* It allows per-site customization of what the dashboard shows (navigation,
|
|
572
573
|
* experimental features, etc.).
|
|
573
574
|
*/
|
|
@@ -258,6 +258,7 @@ export declare const sdkConfigLoaderSchema: z.ZodObject<{
|
|
|
258
258
|
}>>;
|
|
259
259
|
}, z.core.$strip>;
|
|
260
260
|
}, z.core.$strip>]>>;
|
|
261
|
+
requiredParams: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
261
262
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
262
263
|
server: "server";
|
|
263
264
|
client: "client";
|
|
@@ -324,6 +325,7 @@ export declare const sdkDataLoadersSchema: z.ZodOptional<z.ZodRecord<z.ZodString
|
|
|
324
325
|
}>>;
|
|
325
326
|
}, z.core.$strip>;
|
|
326
327
|
}, z.core.$strip>]>>;
|
|
328
|
+
requiredParams: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
327
329
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
328
330
|
server: "server";
|
|
329
331
|
client: "client";
|
|
@@ -9,6 +9,7 @@ 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
11
|
import type { SiteFooterContent as BlocksSiteFooterContent } from '../../../blocks/src/system/blocks/site-footer';
|
|
12
|
+
import type { CardStylesContent as BlocksCardStylesContent, ContainerStylesContent as BlocksContainerStylesContent, SectionStylesContent as BlocksSectionStylesContent } from '../../../blocks/src/index';
|
|
12
13
|
type UnknownRecord = Record<string, unknown>;
|
|
13
14
|
type ImageMedia = Omit<Media, 'type'> & {
|
|
14
15
|
type: 'image';
|
|
@@ -16,47 +17,9 @@ type ImageMedia = Omit<Media, 'type'> & {
|
|
|
16
17
|
type StandardAspectRatio = 'auto' | '16/9' | '4/3' | '1/1' | '3/4' | '9/16';
|
|
17
18
|
export type SemanticSpacing = 'none' | 'compact' | 'cozy' | 'medium' | 'comfortable' | 'spacious';
|
|
18
19
|
export type ImageColSize = '1/4' | '1/3' | '2/5' | '1/2' | '2/3';
|
|
19
|
-
export type SectionStylesContent =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
color?: string | null;
|
|
23
|
-
gradient?: string | null;
|
|
24
|
-
image?: Media | null;
|
|
25
|
-
objectFit?: 'fill' | 'fit' | 'original' | 'custom' | null;
|
|
26
|
-
scale?: string | null;
|
|
27
|
-
position?: string | null;
|
|
28
|
-
opacity?: number | null;
|
|
29
|
-
overlay?: {
|
|
30
|
-
type?: 'none' | 'color' | 'gradient' | null;
|
|
31
|
-
color?: string | null;
|
|
32
|
-
gradient?: string | null;
|
|
33
|
-
opacity?: number | null;
|
|
34
|
-
} | null;
|
|
35
|
-
textColor?: string | null;
|
|
36
|
-
headingColor?: string | null;
|
|
37
|
-
} | null;
|
|
38
|
-
spacing?: string | null;
|
|
39
|
-
} | null;
|
|
40
|
-
export type CardStylesContent = {
|
|
41
|
-
background?: Record<string, unknown> | null;
|
|
42
|
-
border?: {
|
|
43
|
-
enabled?: boolean | null;
|
|
44
|
-
width?: 'none' | '1' | '2' | '3' | null;
|
|
45
|
-
colorToken?: string | null;
|
|
46
|
-
} | null;
|
|
47
|
-
spacing?: string | null;
|
|
48
|
-
raised?: boolean | null;
|
|
49
|
-
rounded?: string | null;
|
|
50
|
-
cardVariant?: string | null;
|
|
51
|
-
treatment?: 'accent-quote' | 'editorial-rule' | 'soft-panel' | 'editorial-serif-quote' | 'editorial-open' | null;
|
|
52
|
-
} | null;
|
|
53
|
-
export type ContainerStylesContent = {
|
|
54
|
-
background?: Record<string, unknown> | null;
|
|
55
|
-
spacing?: string | null;
|
|
56
|
-
raised?: boolean | null;
|
|
57
|
-
rounded?: string | null;
|
|
58
|
-
fullWidth?: boolean | null;
|
|
59
|
-
} | null;
|
|
20
|
+
export type SectionStylesContent = BlocksSectionStylesContent;
|
|
21
|
+
export type CardStylesContent = BlocksCardStylesContent;
|
|
22
|
+
export type ContainerStylesContent = BlocksContainerStylesContent;
|
|
60
23
|
export type CtaIconName = 'ArrowRight' | 'ArrowLeft' | 'ChevronRight' | 'ChevronLeft' | 'ChevronUp' | 'ChevronDown' | 'ExternalLink' | 'Download' | 'Upload' | 'Mail' | 'Phone' | 'Play' | 'ShoppingCart' | 'Calendar' | 'MapPin' | 'Info' | 'Plus' | 'Minus' | 'Check' | 'X';
|
|
61
24
|
export type SemanticIconId = 'protection-trust' | 'confidentiality' | 'care-support' | 'partnership' | 'warmth' | 'community' | 'personal-guidance' | 'conversation' | 'friendly-welcome' | 'insight-learning' | 'natural-wellbeing' | 'growth' | 'gentle-care' | 'special-touch' | 'ideas' | 'direction' | 'focus' | 'quality' | 'highlight' | 'verified-quality' | 'learning' | 'training' | 'programmes-dates' | 'place' | 'products' | 'packages' | 'time' | 'practical-service' | 'at-home' | 'worldwide' | 'professional-service';
|
|
62
25
|
export type BlockIconValue = {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Theme } from '../contracts';
|
|
2
|
+
import type { LoadContentResult } from '../rendering/helpers/loadContent';
|
|
3
|
+
import type { SdkRenderingMode } from '../rendering/renderingMode';
|
|
4
|
+
import type { ResolveThemeResult } from './resolveTheme';
|
|
5
|
+
export type CatchAllRenderingAdmission = Readonly<{
|
|
6
|
+
kind: 'overrides-only';
|
|
7
|
+
content: LoadContentResult;
|
|
8
|
+
rendering: Extract<SdkRenderingMode, {
|
|
9
|
+
kind: 'overrides-only';
|
|
10
|
+
}>;
|
|
11
|
+
}> | Readonly<{
|
|
12
|
+
kind: 'not-found';
|
|
13
|
+
}> | Readonly<{
|
|
14
|
+
kind: 'themed';
|
|
15
|
+
content: LoadContentResult;
|
|
16
|
+
theme: Theme;
|
|
17
|
+
warning?: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function admitCatchAllRendering(input: Readonly<{
|
|
20
|
+
content: LoadContentResult;
|
|
21
|
+
rendering: SdkRenderingMode;
|
|
22
|
+
resolveTheme: () => Promise<ResolveThemeResult>;
|
|
23
|
+
}>): Promise<CatchAllRenderingAdmission>;
|
|
@@ -38,6 +38,8 @@
|
|
|
38
38
|
* @packageDocumentation
|
|
39
39
|
*/
|
|
40
40
|
export { createCatchAllPage, InvalidCatchAllRenderingOptionsError, } from './catch-all';
|
|
41
|
+
export { MISSING_SDK_THEME_ERROR_CODE, MissingSdkThemeError, } from '../rendering/themeAdmission';
|
|
42
|
+
export type { MissingSdkThemeReason } from '../rendering/themeAdmission';
|
|
41
43
|
export { RiverbankContentLoadError, SdkContentLoadError, classifyContentLoadError, isSdkContentLoadError, toContentLoadFailureLogFields, type CatchAllContentLoadFailureContext, type CatchAllRequestContext, type ClassifiedContentLoadError, type SdkContentLoadFailure, type SdkContentLoadFailureKind, type SdkContentLoadNotFound, } from './content-load-failure';
|
|
42
44
|
export type { CreateCatchAllPageOptions, CreateCatchAllPageResult, CatchAllPageProps, CatchAllContext, ThemeSwitchConfigV1, ThemeResolverContext, } from './types';
|
|
43
45
|
export type { SdkOverrideOnlyRendering, SdkOverrideOnlyRuntime, SdkRenderingMode, } from '../rendering/renderingMode';
|
|
@@ -66,13 +68,13 @@ export interface ISRConfig {
|
|
|
66
68
|
/**
|
|
67
69
|
* Get ISR configuration based on the current environment.
|
|
68
70
|
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* import { getISRConfig } from '@riverbankcms/sdk/next';
|
|
71
|
+
* Do not use the returned value directly in a Next.js route-segment config
|
|
72
|
+
* export. Next statically analyzes those exports and requires a literal such as
|
|
73
|
+
* `export const revalidate = 300`.
|
|
73
74
|
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
75
|
+
* @deprecated Next.js route-segment config must be statically analyzable, which
|
|
76
|
+
* was this helper's intended use. Export a literal `revalidate` value and use
|
|
77
|
+
* the SDK preview integration for request-bound preview rendering instead.
|
|
76
78
|
*
|
|
77
79
|
* @returns ISR configuration with revalidate interval and preview flag
|
|
78
80
|
*/
|
|
@@ -24,11 +24,10 @@ export type ThemeOptionsForResolver = {
|
|
|
24
24
|
} | {};
|
|
25
25
|
export interface ResolveThemeInput {
|
|
26
26
|
config: Pick<RiverbankSiteConfig, 'themeSource' | 'activeTheme'>;
|
|
27
|
-
contentTheme: Theme;
|
|
27
|
+
contentTheme: Theme | null;
|
|
28
28
|
searchParams: DataLoaderSearchParams;
|
|
29
29
|
isDevelopment: boolean;
|
|
30
30
|
themeOptions: ThemeOptionsForResolver;
|
|
31
31
|
context: ThemeResolverContext;
|
|
32
32
|
}
|
|
33
|
-
export declare const MISSING_LOCAL_THEME_ERROR_MESSAGE = "[createCatchAllPage] config.themeSource is 'local' but no local theme was provided. Provide { theme }, { themes }, or { getTheme }, or set config.themeSource to 'cms'.";
|
|
34
33
|
export declare function resolveTheme(input: ResolveThemeInput): Promise<ResolveThemeResult>;
|
|
@@ -202,6 +202,16 @@ type CreateCatchAllPageBaseOptions = {
|
|
|
202
202
|
* Defaults to `config.liveUrl` or `config.previewUrl` based on preview mode.
|
|
203
203
|
*/
|
|
204
204
|
siteUrl?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Controls whether the server page reads Next.js `searchParams`.
|
|
207
|
+
*
|
|
208
|
+
* Reading that prop opts the entire route into dynamic rendering in Next.js.
|
|
209
|
+
* Set this to `ignore` for ISR routes that do not use query parameters for
|
|
210
|
+
* server-rendered themes, data loaders, redirects, or metadata.
|
|
211
|
+
*
|
|
212
|
+
* @default 'dynamic'
|
|
213
|
+
*/
|
|
214
|
+
searchParamsMode?: 'dynamic' | 'ignore';
|
|
205
215
|
/**
|
|
206
216
|
* Intercept before rendering to implement maintenance mode, access control, etc.
|
|
207
217
|
*
|
|
@@ -268,7 +268,7 @@ export type SiteRouteRecord = {
|
|
|
268
268
|
publishedAt?: string | null;
|
|
269
269
|
};
|
|
270
270
|
export type SiteBookingOfferingPresetSummary = ApiSiteBookingOfferingPresetSummary;
|
|
271
|
-
type SiteSelectionResponse = Pick<ApiSiteBySlugResponse, 'theme' | 'themeId' | 'selectionId' | 'selectionVersion' | 'selectionUpdatedAt' | 'selectionButtonStyleSelection' | '
|
|
271
|
+
type SiteSelectionResponse = Pick<ApiSiteBySlugResponse, 'theme' | 'themeId' | 'selectionId' | 'selectionVersion' | 'selectionUpdatedAt' | 'selectionButtonStyleSelection' | 'selectionHeaderSelection' | 'selectionFooterLookId'>;
|
|
272
272
|
export type SiteResponse = SiteSelectionResponse & {
|
|
273
273
|
site: {
|
|
274
274
|
id: string;
|
|
@@ -625,21 +625,7 @@ export type PublicProductsResponse = {
|
|
|
625
625
|
}>;
|
|
626
626
|
}>;
|
|
627
627
|
};
|
|
628
|
-
export type PublicPassesResponse =
|
|
629
|
-
passes: Array<{
|
|
630
|
-
id: string;
|
|
631
|
-
productUseCase: 'event_pass' | 'appointment_package';
|
|
632
|
-
name: string;
|
|
633
|
-
description: string | null;
|
|
634
|
-
price: number;
|
|
635
|
-
currency: string;
|
|
636
|
-
creditsTotal: number;
|
|
637
|
-
pricePerCredit: number;
|
|
638
|
-
validDays: number | null;
|
|
639
|
-
eligibleCategoryIds: string[];
|
|
640
|
-
eligibleCategoryNames: string[];
|
|
641
|
-
}>;
|
|
642
|
-
};
|
|
628
|
+
export type PublicPassesResponse = APIEndpoints['listPublicPasses']['response'];
|
|
643
629
|
export type PublicMembershipsResponse = {
|
|
644
630
|
memberships: Array<{
|
|
645
631
|
id: string;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { buildMenu, buildFooterMenu, buildFooterMenuForRole, buildLogo } from '../../navigation';
|
|
7
7
|
import type { RiverbankClient, SiteResponse } from '../../client/types';
|
|
8
|
+
import type { Theme } from '../../contracts';
|
|
8
9
|
import { type SdkThemeRuntime } from '../themeRuntime';
|
|
9
10
|
import { type SdkOverrideOnlyRendering } from '../renderingMode';
|
|
10
11
|
export type CustomHeaderData = {
|
|
@@ -22,10 +23,10 @@ export type CustomFooterData = {
|
|
|
22
23
|
routes: SiteResponse['routes'];
|
|
23
24
|
};
|
|
24
25
|
export type HeaderData = CustomHeaderData & {
|
|
25
|
-
theme:
|
|
26
|
+
theme: Theme;
|
|
26
27
|
};
|
|
27
28
|
export type FooterData = CustomFooterData & {
|
|
28
|
-
theme:
|
|
29
|
+
theme: Theme;
|
|
29
30
|
};
|
|
30
31
|
type LayoutCommonProps = {
|
|
31
32
|
siteData?: SiteResponse;
|
|
@@ -102,7 +102,7 @@ export type PageContentResult = {
|
|
|
102
102
|
page: PageProps['page'];
|
|
103
103
|
runtimeBoundaries?: PageProps['runtimeBoundaries'];
|
|
104
104
|
/** Site theme for styling */
|
|
105
|
-
theme: Theme;
|
|
105
|
+
theme: Theme | null;
|
|
106
106
|
/** Site ID */
|
|
107
107
|
siteId: string;
|
|
108
108
|
/** Declarative custom blocks stored in DB (if any) */
|
|
@@ -151,7 +151,7 @@ export type EntryContentResult = {
|
|
|
151
151
|
contentEntry: Record<string, unknown>;
|
|
152
152
|
};
|
|
153
153
|
/** Site theme for styling (useful if rendering with SDK components) */
|
|
154
|
-
theme: Theme;
|
|
154
|
+
theme: Theme | null;
|
|
155
155
|
/** Site ID */
|
|
156
156
|
siteId: string;
|
|
157
157
|
/** Declarative custom blocks stored in DB (if any) */
|
|
@@ -213,7 +213,7 @@ export type PageSurfaceContentResult = {
|
|
|
213
213
|
pageSurface: Record<string, unknown>;
|
|
214
214
|
subject: PageSurfaceContentData['subject'];
|
|
215
215
|
};
|
|
216
|
-
theme: Theme;
|
|
216
|
+
theme: Theme | null;
|
|
217
217
|
siteId: string;
|
|
218
218
|
customBlocks?: SdkCustomBlock[];
|
|
219
219
|
site: SiteData;
|
|
@@ -256,6 +256,7 @@ export declare function isPageSurfaceContent(result: LoadContentResult): result
|
|
|
256
256
|
* });
|
|
257
257
|
*
|
|
258
258
|
* if (isPageContent(content)) {
|
|
259
|
+
* if (!content.theme) throw new MissingSdkThemeError(content.siteId, 'cms_theme_absent');
|
|
259
260
|
* return <Page {...content} />;
|
|
260
261
|
* }
|
|
261
262
|
*
|
|
@@ -284,6 +285,7 @@ export declare function isPageSurfaceContent(result: LoadContentResult): result
|
|
|
284
285
|
* }
|
|
285
286
|
* }
|
|
286
287
|
*
|
|
288
|
+
* if (!content.theme) throw new MissingSdkThemeError(content.siteId, 'cms_theme_absent');
|
|
287
289
|
* return <Page {...content} />;
|
|
288
290
|
* ```
|
|
289
291
|
*
|
|
@@ -5,7 +5,7 @@ import type { SdkCustomBlock } from '../../config/types';
|
|
|
5
5
|
export type RuntimeSdkConfig = NonNullable<SiteResponse['sdkConfig']>;
|
|
6
6
|
export type SiteData = SiteResponse['site'];
|
|
7
7
|
export type SiteRenderSupport = Readonly<{
|
|
8
|
-
theme: Theme;
|
|
8
|
+
theme: Theme | null;
|
|
9
9
|
site: SiteData;
|
|
10
10
|
sdkConfig: RuntimeSdkConfig | null;
|
|
11
11
|
bookingOfferingPresets: readonly SiteBookingOfferingPresetSummary[];
|
|
@@ -58,7 +58,7 @@ type PageSuccessState = {
|
|
|
58
58
|
page: PageProps['page'];
|
|
59
59
|
runtimeBoundaries?: PageProps['runtimeBoundaries'];
|
|
60
60
|
entry: null;
|
|
61
|
-
theme: Theme;
|
|
61
|
+
theme: Theme | null;
|
|
62
62
|
siteId: string;
|
|
63
63
|
resolvedData: ResolvedBlockData;
|
|
64
64
|
supabaseUrl?: string;
|
|
@@ -73,7 +73,7 @@ type EntrySuccessState = {
|
|
|
73
73
|
type: 'entry';
|
|
74
74
|
page: null;
|
|
75
75
|
entry: ContentEntryData;
|
|
76
|
-
theme: Theme;
|
|
76
|
+
theme: Theme | null;
|
|
77
77
|
siteId: string;
|
|
78
78
|
resolvedData: null;
|
|
79
79
|
};
|
|
@@ -116,6 +116,7 @@ export declare function isEntryContentResult(result: UseContentResult): result i
|
|
|
116
116
|
* if (content.error) return <div>Error: {content.error.message}</div>;
|
|
117
117
|
*
|
|
118
118
|
* if (isPageContentResult(content)) {
|
|
119
|
+
* if (!content.theme) return <div>This site needs a theme before it can be displayed.</div>;
|
|
119
120
|
* return <Page page={content.page} theme={content.theme} siteId={content.siteId} resolvedData={content.resolvedData} />;
|
|
120
121
|
* }
|
|
121
122
|
*
|
|
@@ -145,6 +146,7 @@ export declare function isEntryContentResult(result: UseContentResult): result i
|
|
|
145
146
|
* }
|
|
146
147
|
* }
|
|
147
148
|
*
|
|
149
|
+
* if (!content.theme) return <MissingTheme />;
|
|
148
150
|
* return <Page {...content} />;
|
|
149
151
|
* ```
|
|
150
152
|
*/
|
|
@@ -9,6 +9,8 @@ export type { PageProps } from './components/Page';
|
|
|
9
9
|
export { Layout } from './components/Layout';
|
|
10
10
|
export type { LayoutProps, HeaderData, FooterData, CustomHeaderData, CustomFooterData, } from './components/Layout';
|
|
11
11
|
export { UnsupportedOverrideOnlyLayoutChromeError } from './components/Layout';
|
|
12
|
+
export { MISSING_SDK_THEME_ERROR_CODE, MissingSdkThemeError, } from './themeAdmission';
|
|
13
|
+
export type { MissingSdkThemeReason } from './themeAdmission';
|
|
12
14
|
export type { SdkThemeResponsiveMode, SdkThemeRuntime } from './themeRuntime';
|
|
13
15
|
export type { SdkOverrideOnlyRendering, SdkOverrideOnlyRuntime, SdkRenderingMode, } from './renderingMode';
|
|
14
16
|
export { Block } from './components/Block';
|
|
@@ -147,7 +147,12 @@ export type PublicPassProduct = {
|
|
|
147
147
|
validDays: number | null;
|
|
148
148
|
eligibleCategoryIds: string[];
|
|
149
149
|
eligibleCategoryNames: string[];
|
|
150
|
-
}
|
|
150
|
+
} & ({
|
|
151
|
+
purchaseAvailability: 'purchasable';
|
|
152
|
+
} | {
|
|
153
|
+
purchaseAvailability: 'display_only';
|
|
154
|
+
unavailabilityReason: 'online_payments_unavailable';
|
|
155
|
+
});
|
|
151
156
|
export type PublicMembershipProduct = {
|
|
152
157
|
id: string;
|
|
153
158
|
name: string;
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
export { Page } from './components/Page.server';
|
|
6
6
|
export type { PageProps } from './components/Page.server';
|
|
7
7
|
export { Layout, UnsupportedOverrideOnlyLayoutChromeError, } from './components/Layout';
|
|
8
|
+
export { MISSING_SDK_THEME_ERROR_CODE, MissingSdkThemeError, } from './themeAdmission';
|
|
9
|
+
export type { MissingSdkThemeReason } from './themeAdmission';
|
|
8
10
|
export type { LayoutProps, HeaderData, FooterData, CustomHeaderData, CustomFooterData, } from './components/Layout';
|
|
9
11
|
export type { SdkThemeResponsiveMode, SdkThemeRuntime } from './themeRuntime';
|
|
10
12
|
export type { SdkOverrideOnlyRendering, SdkOverrideOnlyRuntime, SdkRenderingMode, } from './renderingMode';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Theme } from '../contracts';
|
|
2
|
+
export declare const MISSING_SDK_THEME_ERROR_CODE: "missing_sdk_theme";
|
|
3
|
+
export type MissingSdkThemeReason = 'cms_theme_absent' | 'local_theme_absent';
|
|
4
|
+
export declare class MissingSdkThemeError extends Error {
|
|
5
|
+
readonly siteId: string;
|
|
6
|
+
readonly reason: MissingSdkThemeReason;
|
|
7
|
+
readonly themeKey?: string | undefined;
|
|
8
|
+
readonly code: "missing_sdk_theme";
|
|
9
|
+
constructor(siteId: string, reason?: MissingSdkThemeReason, themeKey?: string | undefined);
|
|
10
|
+
}
|
|
11
|
+
export declare function requireSdkTheme(theme: Theme | null | undefined, siteId: string, reason?: MissingSdkThemeReason): Theme;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BlockThemeOverride, type Theme } from './schema';
|
|
2
2
|
import type { HeadingDecorationOverride, VisibleHeadingDecoration } from "./site-styles/types";
|
|
3
3
|
export declare function normalizeBlockKind(blockKind: string): string;
|
|
4
4
|
export type EffectiveHeadingDecoration = Readonly<{
|