@riverbankcms/sdk 0.104.1 → 0.107.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 +84 -51
- package/dist/{PreviewEditorSidebar-CmaPXdKu.mjs → PreviewEditorSidebar-DpAbAl08.mjs} +1811 -1179
- package/dist/{PreviewEditorUI-C5xRTh2b.mjs → PreviewEditorUI-O7cn6Xxv.mjs} +3 -3
- package/dist/{PreviewQueryProvider-CStABBUh.mjs → PreviewQueryProvider-D0tnKl0t.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-Eks51NcN.mjs → SdkPreviewModeRuntime-CVB7urtl.mjs} +3244 -528
- package/dist/{SiteChromeCustomizeContext-Bt8zb3qu.mjs → SiteChromeCustomizeContext-C_sizso-.mjs} +4945 -3010
- package/dist/_dts/ai/src/contracts/proposals.d.ts +32945 -1329
- package/dist/_dts/api/src/bookingConfig.d.ts +2 -0
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +6 -15
- package/dist/_dts/api/src/courses.d.ts +68 -10
- package/dist/_dts/api/src/endpoints.d.ts +29 -0
- package/dist/_dts/api/src/index.d.ts +124 -124
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +9 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +116 -6
- package/dist/_dts/api/src/siteOperations.d.ts +1 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +26 -4
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +31 -46
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +36 -4
- package/dist/_dts/blocks/src/definitions.d.ts +1 -1
- package/dist/_dts/blocks/src/portal/types.d.ts +25 -7
- package/dist/_dts/blocks/src/primitives/layout/Grid.d.ts +12 -8
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +7 -0
- package/dist/_dts/blocks/src/system/blocks/events/recurring-schedule-projection.d.ts +52 -0
- package/dist/_dts/blocks/src/system/blocks/events/recurring-schedule.d.ts +22 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/layout.d.ts +11 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +45 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +10 -0
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +4 -1
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +9 -0
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +8 -2
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +8 -8
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +24 -24
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +29 -0
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +7 -1
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/events.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +2 -5
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +1 -0
- package/dist/_dts/blocks/src/system/fragments/library/newsletterForm.d.ts +2 -2
- package/dist/_dts/blocks/src/system/fragments/library/testimonialsCarousel.d.ts +12 -0
- package/dist/_dts/blocks/src/system/node/fragments/styledCard.d.ts +3 -0
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/blockComposition.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +90 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +45 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/buttonAffordance.d.ts +33 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/view.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-page-surface-scope.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +9 -18
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +106 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/RecurringSchedule.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +32 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCapacity.d.ts +32 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +11 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/svg.d.ts +84 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +3 -40
- package/dist/_dts/blocks/src/system/transforms/registry/formatting.d.ts +14 -0
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +11 -0
- package/dist/_dts/core/src/branded.d.ts +49 -0
- package/dist/_dts/core/src/dated-offering-settlement.d.ts +47 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +44 -0
- package/dist/_dts/core/src/index.d.ts +49 -47
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +1469 -14
- package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +4 -1
- package/dist/_dts/media-core/src/index.d.ts +2 -1
- package/dist/_dts/media-core/src/storagePathDomain.d.ts +47 -0
- package/dist/_dts/media-core/src/url.d.ts +1 -21
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +4 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +3 -9
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +7 -11
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -9
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +2 -6
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +5 -9
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +81 -43
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.typography.d.ts +61 -0
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +7 -17
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +15 -8
- package/dist/_dts/preview-next/src/client/preview/typographyFontCatalog.d.ts +57 -0
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +4 -7
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +24 -10
- package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +3 -3
- package/dist/_dts/sdk/src/cli/sync/media.d.ts +16 -2
- package/dist/_dts/sdk/src/client/management/blocks.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/index.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +132 -23
- package/dist/_dts/sdk/src/client/types.d.ts +2 -0
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -0
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +25 -5
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +17 -0
- package/dist/_dts/sdk/src/data/dataLoaderValue.d.ts +36 -0
- package/dist/_dts/sdk/src/data/defineOwnDataProperty.d.ts +2 -0
- package/dist/_dts/sdk/src/data/executeCodeLoaders.d.ts +36 -40
- package/dist/_dts/sdk/src/data/index.d.ts +3 -3
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +54 -0
- package/dist/_dts/sdk/src/data/types.d.ts +43 -78
- package/dist/_dts/sdk/src/next/index.d.ts +1 -0
- package/dist/_dts/sdk/src/next/redirect-destination.d.ts +1 -1
- package/dist/_dts/sdk/src/next/resolveTheme.d.ts +2 -1
- package/dist/_dts/sdk/src/next/types.d.ts +10 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -8
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +9 -4
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +6 -10
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
- package/dist/_dts/sdk/src/server.d.ts +4 -3
- package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +2 -2
- package/dist/_dts/site-commands/src/commands.d.ts +921 -30
- package/dist/_dts/theme-core/src/ThemeScope.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/affordanceIcons.d.ts +29 -0
- package/dist/_dts/theme-core/src/buttons/generateButtonCss.d.ts +6 -0
- package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +5 -1
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/personalities/flat-ink.d.ts +20 -0
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +22 -0
- package/dist/_dts/theme-core/src/buttons/personalities/quiet-arrow.d.ts +17 -0
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +6 -2
- package/dist/_dts/theme-core/src/buttons/types.d.ts +43 -5
- package/dist/_dts/theme-core/src/data.d.ts +12 -0
- package/dist/_dts/theme-core/src/fonts/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/fonts/types.d.ts +6 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/gradients/types.d.ts +27 -3
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +87 -39
- package/dist/_dts/theme-core/src/palette/colors.d.ts +12 -0
- package/dist/_dts/theme-core/src/palette/curated/brand-led.d.ts +22 -4
- package/dist/_dts/theme-core/src/palette/curated/high-contrast.d.ts +6 -3
- package/dist/_dts/theme-core/src/palette/curated/index.d.ts +31 -224
- package/dist/_dts/theme-core/src/palette/curated/soft-natural.d.ts +8 -4
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +14 -12
- package/dist/_dts/theme-core/src/palette/curated/warm-dark.d.ts +4 -2
- package/dist/_dts/theme-core/src/palette/curated/warm-neutral.d.ts +8 -4
- package/dist/_dts/theme-core/src/palette/editorState.d.ts +33 -3
- package/dist/_dts/theme-core/src/palette/index.d.ts +0 -3
- package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +12 -6
- package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +20 -57
- package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +29 -4
- package/dist/_dts/theme-core/src/palette/selection.d.ts +6 -4
- package/dist/_dts/theme-core/src/palette/themePaletteCompatibility.d.ts +3 -4
- package/dist/_dts/theme-core/src/runtime/themeCssVarNames.d.ts +1 -0
- package/dist/_dts/theme-core/src/schema.d.ts +229 -30
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +218 -158
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +5 -6
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +218 -158
- package/dist/_dts/theme-core/src/site-styles/compositionBudget.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +208 -49
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +8 -2
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +6 -2
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +56 -1
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +24 -1
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +14 -48
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +10 -23
- package/dist/_dts/theme-core/src/site-styles/siteStyleThemeCompiler.d.ts +1 -2
- package/dist/_dts/theme-core/src/site-styles/siteStyleTypography.d.ts +456 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +52 -3
- package/dist/_dts/theme-core/src/status/index.d.ts +0 -1
- package/dist/_dts/theme-core/src/surfaces/foregroundContract.d.ts +19 -0
- package/dist/_dts/theme-core/src/surfaces/foregroundRoles.d.ts +9 -0
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +2 -0
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/cli/index.mjs +4146 -1602
- package/dist/client/{DiscountCodeDisclosure-Dit2aItR.mjs → DiscountCodeDisclosure-BwGkvmVH.mjs} +1 -1
- package/dist/client/{EventCombined.client-BnREyCjf.mjs → EventCombined.client-JnWE6Hzc.mjs} +4 -4
- package/dist/client/{EventListing.client-0uHld51x.mjs → EventListing.client-DQewc_kg.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DJcvSfmj.mjs → LeafletStaticMap-DPAU3SFt.mjs} +1 -1
- package/dist/client/{MagicLinkForm-EAsIktfw.mjs → MagicLinkForm-D4kpWCbW.mjs} +2 -2
- package/dist/client/{StepIndicator-CRR17tYI.mjs → StepIndicator-CBlkb4rA.mjs} +2 -2
- package/dist/client/{accordion-B47HIuuH.mjs → accordion-DAIBVpTS.mjs} +1 -1
- package/dist/client/{bookingForm-I1E-8F9P.mjs → bookingForm-DZ-4l5_1.mjs} +7 -7
- package/dist/client/bookings.mjs +360 -95
- package/dist/client/{buttons-BbPn8OKA.mjs → buttons-DJgynGHQ.mjs} +243 -43
- package/dist/client/{carousel-OlM7SyBs.mjs → carousel-D-SLfX8r.mjs} +1 -1
- package/dist/client/{cart-BKpG5jz6.mjs → cart-CEgbgJhX.mjs} +3 -3
- package/dist/client/{checkout-Dmmr6qoU.mjs → checkout-CXWrCRAA.mjs} +3 -3
- package/dist/client/client.mjs +6019 -1494
- package/dist/client/{colorStyles-DuW4Fjqd.mjs → colorStyles-jZS6KfkP.mjs} +46 -5
- package/dist/client/{colorTokenParts-dT8MISgJ.mjs → colorTokenParts-CMugwvX_.mjs} +3 -1
- package/dist/client/{courseRegistration-CflZiqGk.mjs → courseRegistration-DVmLrRVz.mjs} +56 -21
- package/dist/client/{eventCalendar-BvoLWcp-.mjs → eventCalendar-DCuyPY_c.mjs} +173 -5
- package/dist/client/{eventCombined-DsrO8t_t.mjs → eventCombined-kP2CA2D4.mjs} +2 -2
- package/dist/client/{eventDetails-C3hxgcJm.mjs → eventDetails-DU0LeF5e.mjs} +4 -4
- package/dist/client/{eventListing-C-hb237X.mjs → eventListing-CcHF87BI.mjs} +2 -2
- package/dist/client/{eventRegistration-B0gyzDGi.mjs → eventRegistration-DJnR0yFH.mjs} +8 -8
- package/dist/client/{form-C_RUi6oJ.mjs → form-CH1lCusH.mjs} +2 -2
- package/dist/client/{headerSection-IKQiD2U0.mjs → headerSection-CBPFZoku.mjs} +3 -3
- package/dist/client/hooks.mjs +3645 -1857
- package/dist/client/{locationMap-8ZBrMzRJ.mjs → locationMap-Cx1hBg5n.mjs} +3 -3
- package/dist/client/{media-CZJKL7fi.mjs → media-DHtSxS5V.mjs} +61 -56
- package/dist/client/{newsletterForm-CYk3ucwj.mjs → newsletterForm-1ZL_ti9u.mjs} +3 -3
- package/dist/client/{pricing-B5GmvfIH.mjs → pricing-BIbzmV0G.mjs} +1 -1
- package/dist/client/{productDetail-BjS2Dqzo.mjs → productDetail-BTh5gHBV.mjs} +3 -3
- package/dist/client/{productList-BOHvC8My.mjs → productList-Cc7OMrqN.mjs} +3 -3
- package/dist/client/{propsDecoder-WS6UEJwZ.mjs → propsDecoder-oR-M-ISN.mjs} +228 -60
- package/dist/client/rendering/client.mjs +3231 -1477
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +6889 -1927
- package/dist/client/{shop-CON03-wN.mjs → shop-CQ_YbCnn.mjs} +8 -8
- package/dist/client/{shop-commerce-DlqrFgH8.mjs → shop-commerce-BM-AoD3M.mjs} +6 -6
- package/dist/client/{shop-commerce-store-l74-Kne6.mjs → shop-commerce-store-DFMQhU5p.mjs} +1 -1
- package/dist/client/{shopShared-CQheEXSg.mjs → shopShared-D0SKO2Cu.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-v6OluyWl.mjs → useDiscountCodeUi-CrG4_ARt.mjs} +1 -1
- package/dist/client/{useEventFilters-BqSTcNOf.mjs → useEventFilters-CxK8Fekl.mjs} +6 -6
- package/dist/client/{usePolling-DMfADjIF.mjs → usePolling-jcVryNgZ.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +40 -1
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +40 -1
- package/dist/{previewAuthStore-CfquDtTh.mjs → previewAuthStore-BPcJPzdz.mjs} +40 -1
- package/dist/{sdk-runtime-BUmJ0DaT.mjs → sdk-runtime-C39Rsk-x.mjs} +2 -2
- package/dist/{separator-Dd-JYok7.mjs → separator-BoMSQnsP.mjs} +1 -1
- package/dist/server/components.mjs +6345 -2084
- package/dist/server/config-validation.mjs +3420 -1856
- package/dist/server/config.mjs +3420 -1856
- package/dist/server/data.mjs +4067 -1923
- package/dist/server/index.mjs +46 -4
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next.mjs +7239 -2147
- package/dist/server/page-converter.mjs +3189 -1619
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +6540 -2058
- package/dist/server/rendering.mjs +7339 -2377
- package/dist/server/routing.mjs +3373 -1101
- package/dist/server/server.mjs +4307 -2002
- package/dist/server/theme-bridge.mjs +9844 -7325
- package/dist/server/theme.mjs +300 -47
- package/dist/styles/index.css +1863 -94
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/sectionForegroundStyles.d.ts +0 -2
- package/dist/_dts/preview-next/src/client/preview/typographySelectionInput.d.ts +0 -16
- package/dist/_dts/theme-core/src/palette/legacyRuntimeProjection.d.ts +0 -55
- package/dist/_dts/theme-core/src/palette/legacySelection.d.ts +0 -34
- package/dist/_dts/theme-core/src/palette/paletteCompatibilityTransition.d.ts +0 -232
- package/dist/_dts/theme-core/src/site-styles/typographyPresets.d.ts +0 -219
- package/dist/_dts/theme-core/src/status/contextualColors.d.ts +0 -6
|
@@ -3,7 +3,7 @@ import type { Theme } from "./schema";
|
|
|
3
3
|
import { type ThemeResponsiveMode } from "./responsiveMode";
|
|
4
4
|
type Props = {
|
|
5
5
|
theme: Theme;
|
|
6
|
-
children
|
|
6
|
+
children?: React.ReactNode;
|
|
7
7
|
themeId?: string;
|
|
8
8
|
responsiveMode?: ThemeResponsiveMode;
|
|
9
9
|
/** Additional className to apply to the theme-scope wrapper */
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Affordance icon path data for CSS-emitted button affordances.
|
|
3
|
+
*
|
|
4
|
+
* A button variant may declare a trailing `affordance` icon (see
|
|
5
|
+
* `ButtonVariantAffordance`). The generated button CSS renders that icon as a
|
|
6
|
+
* masked `::after` pseudo-element, so the personality supplies it to every
|
|
7
|
+
* button of the variant without per-node authoring.
|
|
8
|
+
*
|
|
9
|
+
* Icons live in the `@riverbankcms/blocks` registry, but the button CSS is
|
|
10
|
+
* generated here in theme-core, so this module carries a small, curated copy of
|
|
11
|
+
* the *affordance-eligible* icon path data (arrows/chevrons — the action-oriented
|
|
12
|
+
* subset). The `d` values below are duplicated verbatim from the matching entries
|
|
13
|
+
* in `blocks/src/system/icons/svg.tsx`; ids match the registry ids exactly so a
|
|
14
|
+
* node-level `trailingIcon` and a personality `affordance` share one id space.
|
|
15
|
+
*
|
|
16
|
+
* Keep this set intentionally tiny. It is not the full CTA icon set — only the
|
|
17
|
+
* shapes that read as a trailing affordance.
|
|
18
|
+
*/
|
|
19
|
+
/** Registry icon id → the SVG path `d` fragments composing that icon. */
|
|
20
|
+
export declare const AFFORDANCE_ICON_PATHS: Readonly<Record<string, readonly string[]>>;
|
|
21
|
+
export type AffordanceIconId = keyof typeof AFFORDANCE_ICON_PATHS;
|
|
22
|
+
export declare function isAffordanceIconId(value: string): value is AffordanceIconId;
|
|
23
|
+
/**
|
|
24
|
+
* Build a `data:image/svg+xml,...` URL for an affordance icon, suitable for use
|
|
25
|
+
* as a CSS `mask-image`. The stroke is painted solid black so the mask's alpha
|
|
26
|
+
* traces the icon outline; the visible colour is supplied separately by the
|
|
27
|
+
* `::after` rule's `background-color`. Returns `null` for unknown ids.
|
|
28
|
+
*/
|
|
29
|
+
export declare function affordanceIconMaskUrl(iconId: string): string | null;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { Theme } from '../schema';
|
|
2
2
|
import type { ButtonSystem } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Class the `button` runtime node adds when it renders its own trailing icon,
|
|
5
|
+
* so a node-level icon suppresses the personality's CSS `::after` affordance
|
|
6
|
+
* (node overrides personality). Shared so generator and renderer can't drift.
|
|
7
|
+
*/
|
|
8
|
+
export declare const AFFORDANCE_SUPPRESS_CLASS = "rb-affordance-off";
|
|
3
9
|
export interface GenerateButtonCssOptions {
|
|
4
10
|
themeId: string;
|
|
5
11
|
theme: Theme;
|
|
@@ -14,9 +14,13 @@ import type { ButtonSystem } from './types';
|
|
|
14
14
|
*
|
|
15
15
|
* Variants use theme settings for:
|
|
16
16
|
* - Border radius (via global.cornerStyle / theme.corners)
|
|
17
|
-
* - Shadow (via global.shadow / theme.shadow.elevation)
|
|
18
17
|
* - Border width for outline (from theme.border.width)
|
|
19
18
|
*
|
|
19
|
+
* Buttons are flat by default: the generated system declares no `global.shadow`,
|
|
20
|
+
* so the theme's general shadow ramp (used for cards/surfaces) no longer nudges
|
|
21
|
+
* every site's buttons into a drop shadow. A shadow appears only when a button
|
|
22
|
+
* personality explicitly asks for one.
|
|
23
|
+
*
|
|
20
24
|
* @param theme - Theme configuration
|
|
21
25
|
* @returns ButtonSystem with 4 default sized variants
|
|
22
26
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flat Ink — a solid ink primary, a hairline ghost secondary, and a single
|
|
3
|
+
* amber accent climax, all completely flat (no drop shadow) with a modest
|
|
4
|
+
* radius. Reads as grounded, editorial and clinician-precise: the Fulcrum
|
|
5
|
+
* physiotherapy voice. The primary shifts to the secondary (moss) on hover and
|
|
6
|
+
* every variant lifts 2px; the amber accent is meant to be used sparingly as
|
|
7
|
+
* the page's one conversion climax.
|
|
8
|
+
*/
|
|
9
|
+
export declare const flatInk: Readonly<{
|
|
10
|
+
id: import("./types").ButtonPersonalityId<"flat-ink">;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
tags: Readonly<Partial<Readonly<{
|
|
14
|
+
tone: import("../../../../blocks/src/index").StyleTone;
|
|
15
|
+
energy: import("../../../../blocks/src/index").StyleEnergy;
|
|
16
|
+
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
17
|
+
era: import("../../../../blocks/src/index").StyleEra;
|
|
18
|
+
}>>>;
|
|
19
|
+
buttonSystem: import("../../../../blocks/src/index").ButtonSystem;
|
|
20
|
+
}>;
|
|
@@ -75,6 +75,17 @@ export declare const buttonPersonalities: readonly [Readonly<{
|
|
|
75
75
|
era: import("../../../../blocks/src/index").StyleEra;
|
|
76
76
|
}>>>;
|
|
77
77
|
buttonSystem: import("../../../../blocks/src/index").ButtonSystem;
|
|
78
|
+
}>, Readonly<{
|
|
79
|
+
id: ButtonPersonalityId<"flat-ink">;
|
|
80
|
+
name: string;
|
|
81
|
+
description: string;
|
|
82
|
+
tags: Readonly<Partial<Readonly<{
|
|
83
|
+
tone: import("../../../../blocks/src/index").StyleTone;
|
|
84
|
+
energy: import("../../../../blocks/src/index").StyleEnergy;
|
|
85
|
+
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
86
|
+
era: import("../../../../blocks/src/index").StyleEra;
|
|
87
|
+
}>>>;
|
|
88
|
+
buttonSystem: import("../../../../blocks/src/index").ButtonSystem;
|
|
78
89
|
}>, Readonly<{
|
|
79
90
|
id: ButtonPersonalityId<"brushed-wash">;
|
|
80
91
|
name: string;
|
|
@@ -119,6 +130,17 @@ export declare const buttonPersonalities: readonly [Readonly<{
|
|
|
119
130
|
era: import("../../../../blocks/src/index").StyleEra;
|
|
120
131
|
}>>>;
|
|
121
132
|
buttonSystem: import("../../../../blocks/src/index").ButtonSystem;
|
|
133
|
+
}>, Readonly<{
|
|
134
|
+
id: ButtonPersonalityId<"quiet-arrow">;
|
|
135
|
+
name: string;
|
|
136
|
+
description: string;
|
|
137
|
+
tags: Readonly<Partial<Readonly<{
|
|
138
|
+
tone: import("../../../../blocks/src/index").StyleTone;
|
|
139
|
+
energy: import("../../../../blocks/src/index").StyleEnergy;
|
|
140
|
+
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
141
|
+
era: import("../../../../blocks/src/index").StyleEra;
|
|
142
|
+
}>>>;
|
|
143
|
+
buttonSystem: import("../../../../blocks/src/index").ButtonSystem;
|
|
122
144
|
}>];
|
|
123
145
|
type UnbrandedButtonPersonalityId<TValue> = TValue extends infer TRaw & {
|
|
124
146
|
readonly __brand: 'ButtonPersonalityId';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quiet Arrow — wide, flat editorial buttons for grounded service businesses.
|
|
3
|
+
* Primary and secondary keep stable semantic colours; surrounding surfaces are
|
|
4
|
+
* responsible for contrast rather than reversing the button roles.
|
|
5
|
+
*/
|
|
6
|
+
export declare const quietArrow: Readonly<{
|
|
7
|
+
id: import("./types").ButtonPersonalityId<"quiet-arrow">;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
tags: Readonly<Partial<Readonly<{
|
|
11
|
+
tone: import("../../../../blocks/src/index").StyleTone;
|
|
12
|
+
energy: import("../../../../blocks/src/index").StyleEnergy;
|
|
13
|
+
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
14
|
+
era: import("../../../../blocks/src/index").StyleEra;
|
|
15
|
+
}>>>;
|
|
16
|
+
buttonSystem: import("../../../../blocks/src/index").ButtonSystem;
|
|
17
|
+
}>;
|
|
@@ -59,12 +59,12 @@ export declare const buttonPersonalitySchema: z.ZodObject<{
|
|
|
59
59
|
pill: "pill";
|
|
60
60
|
}>;
|
|
61
61
|
cornerRadius: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
shadow: z.ZodEnum<{
|
|
62
|
+
shadow: z.ZodOptional<z.ZodEnum<{
|
|
63
63
|
medium: "medium";
|
|
64
64
|
none: "none";
|
|
65
65
|
high: "high";
|
|
66
66
|
low: "low";
|
|
67
|
-
}
|
|
67
|
+
}>>;
|
|
68
68
|
textTransform: z.ZodEnum<{
|
|
69
69
|
none: "none";
|
|
70
70
|
lowercase: "lowercase";
|
|
@@ -200,6 +200,10 @@ export declare const buttonPersonalitySchema: z.ZodObject<{
|
|
|
200
200
|
fontSize: z.ZodOptional<z.ZodString>;
|
|
201
201
|
}, z.core.$strip>>;
|
|
202
202
|
}, z.core.$strip>>;
|
|
203
|
+
affordance: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
iconId: z.ZodString;
|
|
205
|
+
colorToken: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strip>>;
|
|
203
207
|
}, z.core.$strip>>;
|
|
204
208
|
sizes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
205
209
|
sm: z.ZodObject<{
|
|
@@ -95,6 +95,26 @@ export interface ButtonBorder {
|
|
|
95
95
|
widthClass: string;
|
|
96
96
|
colorToken: string;
|
|
97
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Optional trailing affordance icon carried by a button variant.
|
|
100
|
+
*
|
|
101
|
+
* When set, the generated button CSS emits a themed trailing icon (a masked
|
|
102
|
+
* SVG in `colorToken`, or `currentColor` when the token is omitted) after the
|
|
103
|
+
* label — so a personality can supply an affordance (e.g. a CTA arrow) to every
|
|
104
|
+
* button of that variant without per-node authoring. Entirely optional: variants
|
|
105
|
+
* that omit `affordance` are byte-identical to before.
|
|
106
|
+
*
|
|
107
|
+
* `iconId` references the shared icon registry (the same id space a `button`
|
|
108
|
+
* node's `trailingIcon` prop uses, e.g. `'ArrowRight'`). Only a small curated set
|
|
109
|
+
* of affordance-eligible ids is emittable as CSS (see `AFFORDANCE_ICON_PATHS`);
|
|
110
|
+
* unknown ids emit no icon.
|
|
111
|
+
*/
|
|
112
|
+
export interface ButtonVariantAffordance {
|
|
113
|
+
/** Registry icon id, e.g. `'ArrowRight'`. */
|
|
114
|
+
iconId: string;
|
|
115
|
+
/** Optional palette token for the icon colour. Omit to inherit the button text colour. */
|
|
116
|
+
colorToken?: string;
|
|
117
|
+
}
|
|
98
118
|
export declare const cornerStyleSchema: z.ZodEnum<{
|
|
99
119
|
square: "square";
|
|
100
120
|
rounded: "rounded";
|
|
@@ -236,12 +256,12 @@ export declare const buttonGlobalSettingsSchema: z.ZodObject<{
|
|
|
236
256
|
pill: "pill";
|
|
237
257
|
}>;
|
|
238
258
|
cornerRadius: z.ZodOptional<z.ZodNumber>;
|
|
239
|
-
shadow: z.ZodEnum<{
|
|
259
|
+
shadow: z.ZodOptional<z.ZodEnum<{
|
|
240
260
|
medium: "medium";
|
|
241
261
|
none: "none";
|
|
242
262
|
high: "high";
|
|
243
263
|
low: "low";
|
|
244
|
-
}
|
|
264
|
+
}>>;
|
|
245
265
|
textTransform: z.ZodEnum<{
|
|
246
266
|
none: "none";
|
|
247
267
|
lowercase: "lowercase";
|
|
@@ -329,6 +349,10 @@ export declare const buttonBorderSchema: z.ZodObject<{
|
|
|
329
349
|
widthClass: z.ZodString;
|
|
330
350
|
colorToken: z.ZodString;
|
|
331
351
|
}, z.core.$strip>;
|
|
352
|
+
export declare const buttonVariantAffordanceSchema: z.ZodObject<{
|
|
353
|
+
iconId: z.ZodString;
|
|
354
|
+
colorToken: z.ZodOptional<z.ZodString>;
|
|
355
|
+
}, z.core.$strip>;
|
|
332
356
|
/**
|
|
333
357
|
* Per-variant size overrides schema — every entry is optional.
|
|
334
358
|
*
|
|
@@ -445,6 +469,10 @@ export declare const buttonVariantSchema: z.ZodObject<{
|
|
|
445
469
|
fontSize: z.ZodOptional<z.ZodString>;
|
|
446
470
|
}, z.core.$strip>>;
|
|
447
471
|
}, z.core.$strip>>;
|
|
472
|
+
affordance: z.ZodOptional<z.ZodObject<{
|
|
473
|
+
iconId: z.ZodString;
|
|
474
|
+
colorToken: z.ZodOptional<z.ZodString>;
|
|
475
|
+
}, z.core.$strip>>;
|
|
448
476
|
}, z.core.$strip>;
|
|
449
477
|
export declare const buttonSystemSchema: z.ZodObject<{
|
|
450
478
|
global: z.ZodObject<{
|
|
@@ -454,12 +482,12 @@ export declare const buttonSystemSchema: z.ZodObject<{
|
|
|
454
482
|
pill: "pill";
|
|
455
483
|
}>;
|
|
456
484
|
cornerRadius: z.ZodOptional<z.ZodNumber>;
|
|
457
|
-
shadow: z.ZodEnum<{
|
|
485
|
+
shadow: z.ZodOptional<z.ZodEnum<{
|
|
458
486
|
medium: "medium";
|
|
459
487
|
none: "none";
|
|
460
488
|
high: "high";
|
|
461
489
|
low: "low";
|
|
462
|
-
}
|
|
490
|
+
}>>;
|
|
463
491
|
textTransform: z.ZodEnum<{
|
|
464
492
|
none: "none";
|
|
465
493
|
lowercase: "lowercase";
|
|
@@ -595,6 +623,10 @@ export declare const buttonSystemSchema: z.ZodObject<{
|
|
|
595
623
|
fontSize: z.ZodOptional<z.ZodString>;
|
|
596
624
|
}, z.core.$strip>>;
|
|
597
625
|
}, z.core.$strip>>;
|
|
626
|
+
affordance: z.ZodOptional<z.ZodObject<{
|
|
627
|
+
iconId: z.ZodString;
|
|
628
|
+
colorToken: z.ZodOptional<z.ZodString>;
|
|
629
|
+
}, z.core.$strip>>;
|
|
598
630
|
}, z.core.$strip>>;
|
|
599
631
|
sizes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
600
632
|
sm: z.ZodObject<{
|
|
@@ -653,7 +685,11 @@ export type Priority = 1 | 2 | 3;
|
|
|
653
685
|
export interface ButtonGlobalSettings {
|
|
654
686
|
cornerStyle: CornerStyle;
|
|
655
687
|
cornerRadius?: number;
|
|
656
|
-
|
|
688
|
+
/**
|
|
689
|
+
* Family-level shadow inherited by variants without their own override.
|
|
690
|
+
* Optional and flat-by-default: omit for no shadow. See the schema JSDoc.
|
|
691
|
+
*/
|
|
692
|
+
shadow?: ShadowSize;
|
|
657
693
|
textTransform: TextTransform;
|
|
658
694
|
fontWeight: FontWeight;
|
|
659
695
|
/** @deprecated See JSDoc on `buttonGlobalSettingsSchema.borderWidth`. */
|
|
@@ -711,6 +747,8 @@ export interface ButtonVariant {
|
|
|
711
747
|
effects?: VariantEffects;
|
|
712
748
|
/** Per-variant size overrides. See VariantSizeOverrides. */
|
|
713
749
|
sizes?: VariantSizeOverrides;
|
|
750
|
+
/** Optional trailing affordance icon (e.g. a CTA arrow). See ButtonVariantAffordance. */
|
|
751
|
+
affordance?: ButtonVariantAffordance;
|
|
714
752
|
}
|
|
715
753
|
export interface ButtonSystem {
|
|
716
754
|
global: ButtonGlobalSettings;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme data exports (no React components)
|
|
3
|
+
*
|
|
4
|
+
* This module exports only pure data and types - no React dependencies.
|
|
5
|
+
* Use this for server-side code or integration tests.
|
|
6
|
+
*/
|
|
7
|
+
export * from './schema';
|
|
8
|
+
export { mockThemes } from './mock-themes/all';
|
|
9
|
+
export { modernMinimalTheme } from './mock-themes/modern-minimal';
|
|
10
|
+
export { classicProfessionalTheme } from './mock-themes/classic-professional';
|
|
11
|
+
export { vibrantCreativeTheme } from './mock-themes/vibrant-creative';
|
|
12
|
+
export type { CornerStyle, ShadowSize, TextTransform, FontWeight, HoverTransform, HoverColor, GradientStyle, GradientSharpness, GradientDirection, ButtonVariant, ButtonSystem, } from './buttons/types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { detectFontFormatFromBytes, detectFontSourceFormatFromFilename, FONT_TOO_LARGE_MESSAGE, FONT_UPLOAD_ACCEPT, getFontUploadValidationMessage, MAX_FONT_UPLOAD_BYTES, normalizeUserFontFilename, SUPPORTED_FONT_FORMAT_LABEL, UNSUPPORTED_FONT_MESSAGE, validateFontUploadFile, type FontByteFormatDecision, type FontFilenameFormatDecision, type FontUploadFileLike, type KnownFontSourceFormat, type SanitizedFontFilename, type SupportedFontExtension, type SupportedFontSourceFormat, } from './uploadFormat';
|
|
2
|
-
export { type SiteFont, type SiteFontFile, SITE_FONTS_BUCKET, getSiteFontsStorageUrl, generateFontFaceCss, generateFontFaceForFile, generateFontFaceForVariableFont, } from './types';
|
|
2
|
+
export { type SiteFont, type SiteFontFile, SITE_FONTS_BUCKET, buildFontPreviewUrl, getSiteFontsStorageUrl, generateFontFaceCss, generateFontFaceForFile, generateFontFaceForVariableFont, } from './types';
|
|
@@ -23,6 +23,12 @@ export declare const SITE_FONTS_BUCKET = "site-fonts";
|
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
25
|
export declare function getSiteFontsStorageUrl(supabaseUrl: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* Build a lightweight Google Fonts stylesheet URL for a family-name preview.
|
|
28
|
+
* The text subset keeps catalog rows cheap while still rendering the name in
|
|
29
|
+
* the typeface being chosen.
|
|
30
|
+
*/
|
|
31
|
+
export declare function buildFontPreviewUrl(family: string): string;
|
|
26
32
|
/**
|
|
27
33
|
* Individual font file within a font family
|
|
28
34
|
*/
|