@riverbankcms/sdk 0.109.0 → 0.118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PreviewEditorSidebar-DWqwfy3_.mjs → PreviewEditorSidebar-BBcK1DjD.mjs} +178 -117
- package/dist/{PreviewEditorUI-B7OL4sfR.mjs → PreviewEditorUI-CuBFoYes.mjs} +3 -4
- package/dist/{PreviewQueryProvider-D0y2l8JN.mjs → PreviewQueryProvider-nKUT4TL-.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-D8Gt9Gbe.mjs → SdkPreviewModeRuntime-BWIO_Dsi.mjs} +2789 -34525
- package/dist/{SiteChromeCustomizeContext-DUpalEdL.mjs → SiteChromeCustomizeContext-CciG60M5.mjs} +88526 -57212
- package/dist/_dts/ai/src/contracts/proposals.d.ts +6939 -727
- package/dist/_dts/ai/src/designer/themePatch.d.ts +1 -1
- package/dist/_dts/api/src/bookingAdjustments.d.ts +30 -36
- package/dist/_dts/api/src/bookingRecords.d.ts +6 -74
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +3 -3
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +5 -5
- package/dist/_dts/api/src/contentRuntime.d.ts +9 -2
- package/dist/_dts/api/src/courses.d.ts +30 -15
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +4 -4
- package/dist/_dts/api/src/endpoints.d.ts +49 -4
- package/dist/_dts/api/src/event-presentation.d.ts +4 -0
- package/dist/_dts/api/src/index.d.ts +3 -3
- package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +2 -2
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +2 -2
- package/dist/_dts/api/src/sdkContracts.d.ts +108 -18
- package/dist/_dts/api/src/siteBanner.d.ts +8 -8
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/siteOperations.d.ts +12 -20
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +32 -4
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +6 -6
- package/dist/_dts/api/src/webhooks.d.ts +98 -1
- package/dist/_dts/billing/src/site-arrangements.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldDefaults.d.ts +3 -12
- package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldSchema.d.ts +1 -5
- package/dist/_dts/blocks/src/bindings/index.d.ts +1 -10
- package/dist/_dts/blocks/src/client/course-registration.d.ts +4 -1
- package/dist/_dts/blocks/src/client.d.ts +4 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -4
- package/dist/_dts/blocks/src/index.d.ts +6 -7
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +2 -4
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/recurring-schedule.d.ts +5 -4
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +2 -8
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +2 -15
- package/dist/_dts/blocks/src/system/blocks/intro.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +66 -66
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +4 -17
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/single-button.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +0 -3
- package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +35 -0
- package/dist/_dts/blocks/src/system/fields/button.d.ts +10 -21
- package/dist/_dts/blocks/src/system/fields/ctas.d.ts +2 -1
- package/dist/_dts/blocks/src/system/fragments/index.d.ts +0 -1
- package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +9 -5
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +19 -2
- package/dist/_dts/blocks/src/system/manifest/richTextSchema.d.ts +8 -70
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +1 -0
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +6 -0
- package/dist/_dts/blocks/src/system/node/schema.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +18 -18
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +9 -9
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +1 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/buttonAffordance.d.ts +5 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/ErrorStep.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/PaymentFailedStep.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/VerifyingTimeoutStep.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.contract.d.ts +326 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.planning.d.ts +27 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/file-download.d.ts +2 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/richText-coerce.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +6 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +7 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +4 -2
- package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +17 -1
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +1 -1
- package/dist/_dts/content-editor/src/index.d.ts +12 -12
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +3 -2
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +19 -4
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +3 -15
- package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +2 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
- package/dist/_dts/content-model/src/templates/defaults.d.ts +1 -21
- package/dist/_dts/core/src/editor-state.d.ts +14 -1
- package/dist/_dts/core/src/footer-composition.d.ts +2 -1
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/rich-text.d.ts +16 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +367 -69
- package/dist/_dts/editor/src/index.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/rich-text/utils.d.ts +3 -5
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/blockDraftBaselineSeed.d.ts +15 -0
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +3 -7
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +12 -0
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/block-editor/utils.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/index.d.ts +6 -5
- package/dist/_dts/editor-blocks/src/widgets/button/context.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
- package/dist/_dts/media-core/src/contentMediaAudit.d.ts +104 -0
- package/dist/_dts/media-core/src/contentMediaAuditFieldAdapter.d.ts +8 -0
- package/dist/_dts/media-core/src/contentMediaSnapshotAudit.d.ts +22 -0
- package/dist/_dts/media-core/src/index.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/index.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/ButtonStylePicker.d.ts +16 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewDesignOpenRequestContext.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +5 -11
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +5 -6
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +6 -7
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +7 -9
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +4 -11
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +7 -7
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +0 -8
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +1 -11
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +1 -5
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +2 -3
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +3 -4
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +3 -5
- package/dist/_dts/sdk/src/bookings/index.d.ts +5 -4
- package/dist/_dts/sdk/src/bookings/types.d.ts +3 -3
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +18 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +2 -16
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +3 -2
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +8 -5
- package/dist/_dts/sdk/src/client/management/events.d.ts +2 -1
- package/dist/_dts/sdk/src/client/management/index.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +38 -10
- package/dist/_dts/sdk/src/config/typed-entries.d.ts +7 -7
- package/dist/_dts/sdk/src/config/validation.d.ts +7 -7
- package/dist/_dts/sdk/src/contracts/content.d.ts +5 -15
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +24 -40
- package/dist/_dts/sdk/src/contracts/theme.d.ts +2 -18
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/three-pass-converter.d.ts +4 -4
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +1 -2
- package/dist/_dts/sdk/src/rendering/helpers/index.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -13
- package/dist/_dts/sdk/src/theme/index.d.ts +0 -29
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/sdk/src/webhooks/index.d.ts +1 -1
- package/dist/_dts/sdk/src/webhooks/verify.d.ts +3 -3
- package/dist/_dts/site-commands/src/commands.d.ts +160 -24
- package/dist/_dts/theme-core/src/buttons/affordanceIcons.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/core.d.ts +0 -1
- package/dist/_dts/theme-core/src/buttons/effectClassification.d.ts +22 -9
- package/dist/_dts/theme-core/src/buttons/effects/presets/background.d.ts +1 -2
- package/dist/_dts/theme-core/src/buttons/effects/presets/border.d.ts +1 -2
- package/dist/_dts/theme-core/src/buttons/effects/presets/overlay.d.ts +3 -1
- package/dist/_dts/theme-core/src/buttons/effects/presets/shadow.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +8 -18
- package/dist/_dts/theme-core/src/buttons/generateButtonCss.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/index.d.ts +2 -5
- package/dist/_dts/theme-core/src/buttons/parseThemeForPersistence.d.ts +36 -0
- package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +80 -0
- package/dist/_dts/theme-core/src/buttons/styles/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/defineStaticButtonStyleRecipe.d.ts +49 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +67 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +649 -0
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +753 -0
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +69 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +1638 -93
- package/dist/_dts/theme-core/src/cards/types.d.ts +13 -13
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +969 -69
- package/dist/_dts/theme-core/src/navigation/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/recommend/generateThemes.d.ts +0 -1
- package/dist/_dts/theme-core/src/schema.d.ts +1100 -116
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +26 -24
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +14 -14
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +19 -153
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerCtaVariants.d.ts +3 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +8 -9
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +4 -4
- package/dist/_dts/ui/src/palette/hex.d.ts +3 -3
- package/dist/cli/index.mjs +7368 -6668
- package/dist/cli/init-docs/content/cli-reference.md +40 -1
- package/dist/cli/init-docs/content/content-management.md +6 -0
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +1 -1
- package/dist/client/{DiscountCodeDisclosure-DU1ygxU2.mjs → DiscountCodeDisclosure-DIWj-P9v.mjs} +1 -1
- package/dist/client/{EventCombined.client-DB5zagCo.mjs → EventCombined.client-De8YWBSr.mjs} +2 -3
- package/dist/client/{EventListing.client-CTX9JHBL.mjs → EventListing.client-seHTjimY.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BYImhgiB.mjs → LeafletStaticMap-BmQxFcJW.mjs} +1 -1
- package/dist/client/{MagicLinkForm-CRkw_M3l.mjs → MagicLinkForm-OoJAIUIj.mjs} +1 -2
- package/dist/client/{StepIndicator-BnmVBJJh.mjs → StepIndicator-CiZ8kdPk.mjs} +2 -2
- package/dist/client/{accordion-CeGreumd.mjs → accordion-6lnN__XJ.mjs} +1 -1
- package/dist/client/{bookingForm-CSzFNrpN.mjs → bookingForm-5uyqhONU.mjs} +6 -7
- package/dist/client/bookings.mjs +9179 -5865
- package/dist/client/{carousel-B2jDtogf.mjs → carousel-Dtnifil_.mjs} +1 -1
- package/dist/client/{cart-D-jZ-vaY.mjs → cart-5Tc5S7NV.mjs} +3 -3
- package/dist/client/{checkout-Dza-LA7N.mjs → checkout-CYKKN5Hr.mjs} +3 -3
- package/dist/client/client.mjs +3252 -3361
- package/dist/client/{colorTokenParts-CMugwvX_.mjs → colorStyles-BWpj_h4C.mjs} +118 -1
- package/dist/client/{courseRegistration-TYkNychb.mjs → courseRegistration-CxCBybB4.mjs} +100 -37
- package/dist/client/{eventCalendar-BI_90SsT.mjs → eventCalendar-Xj2jZS9X.mjs} +4 -5
- package/dist/client/{eventCombined-mNrpryE9.mjs → eventCombined-CgcMoOgM.mjs} +2 -2
- package/dist/client/{eventDetails-D4GVlCIY.mjs → eventDetails-CEAH8Edc.mjs} +3 -3
- package/dist/client/{eventListing-YhKN018y.mjs → eventListing-qyPVQ0wP.mjs} +2 -2
- package/dist/client/{eventRegistration-CdHGtilr.mjs → eventRegistration-DDu79CtL.mjs} +6 -7
- package/dist/client/{form-AcAL45rA.mjs → form-Bc7JKI7I.mjs} +1 -2
- package/dist/client/{headerSection-uEC52ueD.mjs → headerSection-vTku_LEl.mjs} +2 -3
- package/dist/client/hooks.mjs +1774 -2273
- package/dist/client/{locationMap-_wJDSUYe.mjs → locationMap-Bg7X4Jna.mjs} +8 -5
- package/dist/client/{media-BK0O3b-U.mjs → media-CNE1Z-wb.mjs} +1 -2
- package/dist/client/{newsletterForm-DrArsb2B.mjs → newsletterForm-lpylVdp5.mjs} +1 -2
- package/dist/client/{pricing-BSYVghwo.mjs → pricing-DE8fjJiT.mjs} +1 -1
- package/dist/client/{productDetail-Dyk90sMs.mjs → productDetail-D7Bo2RMH.mjs} +3 -3
- package/dist/client/{productList-BCKThwAI.mjs → productList-VjnZqiqN.mjs} +3 -3
- package/dist/client/{propsDecoder-CkXxkdSR.mjs → propsDecoder-DreFXjNP.mjs} +4256 -443
- package/dist/client/rendering/client.mjs +21776 -21970
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +3092 -3322
- package/dist/client/{shop-DeltVH10.mjs → shop-IRsHHbf7.mjs} +5 -6
- package/dist/client/{shop-commerce-BD9Jsm2Z.mjs → shop-commerce-gnI8PieZ.mjs} +27 -11
- package/dist/client/{shop-commerce-store-CmXD6FDS.mjs → shop-commerce-store-BTbrhObn.mjs} +1 -1
- package/dist/client/{shopShared-B8v-lH_F.mjs → shopShared-D6KS2_qk.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-DbWJN8ld.mjs → useDiscountCodeUi-DCccGCxV.mjs} +1 -1
- package/dist/client/{useEventFilters-EJIMUnqT.mjs → useEventFilters-eGs3rPZQ.mjs} +24 -126
- package/dist/client/{usePolling-Cmh14fc7.mjs → usePolling-CvSU2sur.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +94 -6
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +94 -6
- package/dist/{previewAuthStore-CTO7CRPk.mjs → previewAuthStore-DN7vcRsv.mjs} +94 -6
- package/dist/{sdk-runtime-Dou0GAav.mjs → sdk-runtime-vW8QbyPN.mjs} +2 -2
- package/dist/{separator-CI5wZNXT.mjs → separator-DJ4bkeY3.mjs} +1 -1
- package/dist/server/components.mjs +5194 -5568
- package/dist/server/config-template-validation.mjs +4 -23
- package/dist/server/config-validation.mjs +1774 -2273
- package/dist/server/config.mjs +2043 -2508
- package/dist/server/data.mjs +1774 -2273
- package/dist/server/index.mjs +95 -7
- package/dist/server/next/revalidate.mjs +53 -1
- package/dist/server/next.mjs +5337 -5632
- package/dist/server/page-converter.mjs +1833 -2307
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +6713 -4874
- package/dist/server/rendering.mjs +5203 -5586
- package/dist/server/routing.mjs +2199 -2698
- package/dist/server/server.mjs +1885 -2355
- package/dist/server/theme-bridge.mjs +1986 -2222
- package/dist/server/theme.mjs +2367 -1581
- package/dist/server/webhooks.mjs +54 -2
- package/package.json +1 -1
- package/dist/_dts/blocks/src/primitives/content/components/Button.d.ts +0 -40
- package/dist/_dts/blocks/src/system/fragments/library/footerBottomText.d.ts +0 -19
- package/dist/_dts/media-core/src/legacyMediaValue.d.ts +0 -11
- package/dist/_dts/theme-core/src/buttons/personalities/brushed-wash.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/earth-pill.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/flat-ink.d.ts +0 -20
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +0 -172
- package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/joy-stamp.d.ts +0 -22
- package/dist/_dts/theme-core/src/buttons/personalities/ornate-ritual.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/quiet-arrow.d.ts +0 -17
- package/dist/_dts/theme-core/src/buttons/personalities/showtime-pill.d.ts +0 -17
- package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/two-tone-pill.d.ts +0 -17
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +0 -285
- package/dist/_dts/theme-core/src/styles/buttons.d.ts +0 -27
- package/dist/_dts/theme-core/src/styles/buttonsLibrary.d.ts +0 -2
- package/dist/_dts/theme-core/src/styles/glow.d.ts +0 -3
- package/dist/client/buttons-DoFV7KDL.mjs +0 -2115
- package/dist/client/colorStyles-CrgzoXsm.mjs +0 -99
- package/dist/client/foregroundContract-xICPq59x.mjs +0 -31
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
import type { BooleanFieldDefinition, ContentTypeSelectFieldDefinition, DateFieldDefinition, DateTimeFieldDefinition, EntryPickerFieldDefinition, FileFieldDefinition, FieldDefinition, GroupFieldDefinition, InlineTextFieldDefinition, LinkFieldDefinition, MediaFieldDefinition, ModalFieldDefinition, NumberFieldDefinition, PresetOrCustomFieldDefinition, ReferenceFieldDefinition, RepeaterFieldDefinition, RichTextFieldDefinition, SelectFieldDefinition, SlugFieldDefinition, TabGroupFieldDefinition, TextFieldDefinition, TimeFieldDefinition, UrlFieldDefinition } from './field-definitions';
|
|
34
|
-
import type { InlineText, LinkValue, Media, TipTapNode } from '../contracts';
|
|
34
|
+
import type { InlineText, LinkValue, Media, RichTextDoc, TipTapNode } from '../contracts';
|
|
35
35
|
import type { ContentTypeConfig, EntryConfig } from './content-types';
|
|
36
|
-
export type { TipTapNode, Media, LinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, } from '../contracts';
|
|
36
|
+
export type { TipTapNode, RichTextDoc, Media, LinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, } from '../contracts';
|
|
37
37
|
/**
|
|
38
38
|
* Infers the data object shape from tabGroup tabs (flattens all tab fields).
|
|
39
39
|
* TabGroup fields flatten all their tab fields into a single data object.
|
|
@@ -64,7 +64,7 @@ export type FieldValueType<F extends FieldDefinition> = F extends {
|
|
|
64
64
|
type: 'number';
|
|
65
65
|
} ? number : F extends {
|
|
66
66
|
type: 'richText';
|
|
67
|
-
} ?
|
|
67
|
+
} ? RichTextDoc : F extends {
|
|
68
68
|
type: 'inlineText';
|
|
69
69
|
} ? InlineText : F extends {
|
|
70
70
|
type: 'media';
|
|
@@ -95,7 +95,7 @@ export type FieldValueType<F extends FieldDefinition> = F extends {
|
|
|
95
95
|
type: 'select';
|
|
96
96
|
} ? string : F extends {
|
|
97
97
|
type: 'entryPicker';
|
|
98
|
-
} ? string | null : F extends TextFieldDefinition ? string : F extends BooleanFieldDefinition ? boolean : F extends NumberFieldDefinition ? number : F extends RichTextFieldDefinition ?
|
|
98
|
+
} ? string | null : F extends TextFieldDefinition ? string : F extends BooleanFieldDefinition ? boolean : F extends NumberFieldDefinition ? number : F extends RichTextFieldDefinition ? RichTextDoc : F extends InlineTextFieldDefinition ? InlineText : F extends MediaFieldDefinition ? Media | null : F extends FileFieldDefinition ? Media | null : F extends LinkFieldDefinition ? LinkValue | null : F extends DateFieldDefinition ? string : F extends TimeFieldDefinition ? string : F extends DateTimeFieldDefinition ? string : F extends SlugFieldDefinition ? string : F extends UrlFieldDefinition ? string : F extends ReferenceFieldDefinition ? string : F extends PresetOrCustomFieldDefinition ? string : F extends ContentTypeSelectFieldDefinition ? string : F extends SelectFieldDefinition & {
|
|
99
99
|
multiple: true;
|
|
100
100
|
} ? string[] : F extends SelectFieldDefinition ? string : F extends EntryPickerFieldDefinition ? string | null : F extends GroupFieldDefinition & {
|
|
101
101
|
schema: {
|
|
@@ -243,21 +243,21 @@ export declare const tiptap: {
|
|
|
243
243
|
*
|
|
244
244
|
* @returns An empty TipTap document node
|
|
245
245
|
*/
|
|
246
|
-
empty():
|
|
246
|
+
empty(): RichTextDoc;
|
|
247
247
|
/**
|
|
248
248
|
* Create a TipTap document with a single paragraph.
|
|
249
249
|
*
|
|
250
250
|
* @param text - The paragraph text content
|
|
251
251
|
* @returns A TipTap document with one paragraph
|
|
252
252
|
*/
|
|
253
|
-
paragraph(text: string):
|
|
253
|
+
paragraph(text: string): RichTextDoc;
|
|
254
254
|
/**
|
|
255
255
|
* Create a TipTap document with custom content nodes.
|
|
256
256
|
*
|
|
257
257
|
* @param content - Array of TipTap nodes to include in the document
|
|
258
258
|
* @returns A TipTap document wrapping the content
|
|
259
259
|
*/
|
|
260
|
-
doc(content: TipTapNode[]):
|
|
260
|
+
doc(content: TipTapNode[]): RichTextDoc;
|
|
261
261
|
/**
|
|
262
262
|
* Create a heading node.
|
|
263
263
|
*
|
|
@@ -158,8 +158,8 @@ export declare const loaderParamBindingSchema: z.ZodObject<{
|
|
|
158
158
|
}, z.core.$strip>>>;
|
|
159
159
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
160
160
|
value: "value";
|
|
161
|
-
collection: "collection";
|
|
162
161
|
context: "context";
|
|
162
|
+
collection: "collection";
|
|
163
163
|
}>>;
|
|
164
164
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
165
165
|
string: "string";
|
|
@@ -181,8 +181,8 @@ export declare const loaderParamValueSchema: z.ZodUnion<readonly [z.ZodString, z
|
|
|
181
181
|
}, z.core.$strip>>>;
|
|
182
182
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
183
183
|
value: "value";
|
|
184
|
-
collection: "collection";
|
|
185
184
|
context: "context";
|
|
185
|
+
collection: "collection";
|
|
186
186
|
}>>;
|
|
187
187
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
188
188
|
string: "string";
|
|
@@ -205,8 +205,8 @@ export declare const loaderWhenValueSchema: z.ZodUnion<readonly [z.ZodBoolean, z
|
|
|
205
205
|
}, z.core.$strip>>>;
|
|
206
206
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
207
207
|
value: "value";
|
|
208
|
-
collection: "collection";
|
|
209
208
|
context: "context";
|
|
209
|
+
collection: "collection";
|
|
210
210
|
}>>;
|
|
211
211
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
212
212
|
string: "string";
|
|
@@ -248,8 +248,8 @@ export declare const sdkConfigLoaderSchema: z.ZodObject<{
|
|
|
248
248
|
}, z.core.$strip>>>;
|
|
249
249
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
250
250
|
value: "value";
|
|
251
|
-
collection: "collection";
|
|
252
251
|
context: "context";
|
|
252
|
+
collection: "collection";
|
|
253
253
|
}>>;
|
|
254
254
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
255
255
|
string: "string";
|
|
@@ -272,8 +272,8 @@ export declare const sdkConfigLoaderSchema: z.ZodObject<{
|
|
|
272
272
|
}, z.core.$strip>>>;
|
|
273
273
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
274
274
|
value: "value";
|
|
275
|
-
collection: "collection";
|
|
276
275
|
context: "context";
|
|
276
|
+
collection: "collection";
|
|
277
277
|
}>>;
|
|
278
278
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
279
279
|
string: "string";
|
|
@@ -314,8 +314,8 @@ export declare const sdkDataLoadersSchema: z.ZodOptional<z.ZodRecord<z.ZodString
|
|
|
314
314
|
}, z.core.$strip>>>;
|
|
315
315
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
316
316
|
value: "value";
|
|
317
|
-
collection: "collection";
|
|
318
317
|
context: "context";
|
|
318
|
+
collection: "collection";
|
|
319
319
|
}>>;
|
|
320
320
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
321
321
|
string: "string";
|
|
@@ -338,8 +338,8 @@ export declare const sdkDataLoadersSchema: z.ZodOptional<z.ZodRecord<z.ZodString
|
|
|
338
338
|
}, z.core.$strip>>>;
|
|
339
339
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
340
340
|
value: "value";
|
|
341
|
-
collection: "collection";
|
|
342
341
|
context: "context";
|
|
342
|
+
collection: "collection";
|
|
343
343
|
}>>;
|
|
344
344
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
345
345
|
string: "string";
|
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Public SDK content contracts.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* `@riverbankcms/blocks`.
|
|
4
|
+
* SDK consumers import these contracts from the SDK. Internally, rich text
|
|
5
|
+
* aliases the dependency-free core contract used by the runtime validator.
|
|
7
6
|
*/
|
|
8
7
|
import type React from 'react';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
attrs?: Record<string, unknown>;
|
|
12
|
-
};
|
|
13
|
-
export type TipTapNode = {
|
|
14
|
-
type: string;
|
|
15
|
-
content?: TipTapNode[];
|
|
16
|
-
text?: string;
|
|
17
|
-
attrs?: Record<string, unknown>;
|
|
18
|
-
marks?: TipTapMark[];
|
|
19
|
-
};
|
|
8
|
+
import type { RichTextDoc } from '../../../core/src/index';
|
|
9
|
+
export type { RichTextDoc, TipTapMark, TipTapNode } from '../../../core/src/index';
|
|
20
10
|
export type InlineTextAccentTone = 'accent' | 'brand' | 'contrast';
|
|
21
11
|
export type InlineTextHighlightTone = 'soft' | 'accent' | 'brand';
|
|
22
12
|
export type InlineTextMark = Readonly<{
|
|
@@ -126,7 +116,7 @@ export type RichTextPrimitiveProps = {
|
|
|
126
116
|
as?: React.ElementType;
|
|
127
117
|
className?: string;
|
|
128
118
|
path?: string;
|
|
129
|
-
doc?:
|
|
119
|
+
doc?: RichTextDoc | null;
|
|
130
120
|
variant?: RichTextVariant;
|
|
131
121
|
blockData?: Record<string, unknown> | null;
|
|
132
122
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { TipTapNode, TipTapMark, InlineText, InlineTextAccentTone, InlineTextHighlightTone, InlineTextMark, InlineTextRun, Media, LinkValue, InternalRouteOnlyLinkValue, InternalResolvedLinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, RichTextPrimitiveProps, RichTextVariant, } from './content';
|
|
1
|
+
export type { TipTapNode, TipTapMark, RichTextDoc, InlineText, InlineTextAccentTone, InlineTextHighlightTone, InlineTextMark, InlineTextRun, Media, LinkValue, InternalRouteOnlyLinkValue, InternalResolvedLinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, RichTextPrimitiveProps, RichTextVariant, } from './content';
|
|
2
2
|
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CartContent, CardStylesContent, CheckoutContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent, CourseDetailsContent, CourseRegistrationContent, CtaFullContent, DisplayMode, EmbedContent, EventCalendarContent, EventDetailsContent, EventLayout, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FaqItem, FilterAutoShow, FormBlockContent, GiftingContent, HeroContent, HeroCta, HeroCtaInput, HeroMedia, ImageColSize, ImageGalleryContent, LocationMapContent, LayoutAlign, LayoutWidth, MediaTextAlignment, MediaTextAspectRatio, MediaTextContent, MediaTextImagePosition, NewsletterSignupContent, NewsletterSignupPreset, ProductDetailContent, ProductListContent, RecurringScheduleContent, SectionStylesContent, SemanticIconId, SemanticSpacing, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, StackContentAlignment, StackImagePosition, SystemBlockContentByFullKind, SystemBlockContentByKind, SystemBlockContentFor, SystemBlockShortKind, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, ThumbnailPadding, ThumbnailShape, VideoGridContent, WeekStart, BlockIconValue, FeatureCardIconTreatment, } from './system-block-content';
|
|
3
3
|
export type { PageOutline, PageRuntimeBoundary, BlockOutline, RouteMap, RouteMapEntry, OccurrenceContextData, EntrySubrouteContextData, } from './page';
|
|
4
4
|
export type { Theme, ThemeTokens } from './theme';
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* These are SDK-owned copies for SDK consumers so override typing does not
|
|
5
5
|
* require importing internal blocks package types.
|
|
6
6
|
*/
|
|
7
|
-
import type { InlineText, LinkValue, Media
|
|
8
|
-
import type { Brand, EventCategoryId, VenueId } from '../../../core/src/index';
|
|
7
|
+
import type { InlineText, LinkValue, Media } from './content';
|
|
8
|
+
import type { Brand, EventCategoryId, RichTextDoc, VenueId } from '../../../core/src/index';
|
|
9
9
|
type UnknownRecord = Record<string, unknown>;
|
|
10
10
|
type ImageMedia = Omit<Media, 'type'> & {
|
|
11
11
|
type: 'image';
|
|
@@ -68,18 +68,7 @@ export type BlockIconValue = {
|
|
|
68
68
|
styleGuideVersionId: Brand<string, 'SiteIconStyleGuideVersionId'>;
|
|
69
69
|
};
|
|
70
70
|
export type FeatureCardIconTreatment = 'plain' | 'soft-badge' | 'utility-badge';
|
|
71
|
-
export type RichTextDoc
|
|
72
|
-
type: 'doc';
|
|
73
|
-
content?: Array<{
|
|
74
|
-
type: string;
|
|
75
|
-
content?: Array<{
|
|
76
|
-
type: string;
|
|
77
|
-
text?: string;
|
|
78
|
-
[key: string]: unknown;
|
|
79
|
-
}>;
|
|
80
|
-
[key: string]: unknown;
|
|
81
|
-
}>;
|
|
82
|
-
};
|
|
71
|
+
export type { RichTextDoc } from '../../../core/src/index';
|
|
83
72
|
export type BlogListingContent = {
|
|
84
73
|
/**
|
|
85
74
|
* First-class layout selector for current blog listings.
|
|
@@ -107,20 +96,20 @@ export type BodyTextAlignment = 'left' | 'center';
|
|
|
107
96
|
export type BodyTextContent = {
|
|
108
97
|
variant?: 'prose' | 'intro' | 'narrow' | null;
|
|
109
98
|
heading?: string | null;
|
|
110
|
-
body:
|
|
99
|
+
body: RichTextDoc;
|
|
111
100
|
alignment?: BodyTextAlignment | null;
|
|
112
101
|
};
|
|
113
102
|
export type BlockCtaContent = {
|
|
114
103
|
label?: string | null;
|
|
115
104
|
href?: string | null;
|
|
116
105
|
link?: unknown;
|
|
117
|
-
variant?:
|
|
106
|
+
variant?: ButtonVariant | null;
|
|
118
107
|
size?: string | null;
|
|
119
108
|
};
|
|
120
109
|
export type IntroContent = {
|
|
121
110
|
variant?: 'centered-copy' | 'statement-copy' | 'statement-media' | 'media-copy' | null;
|
|
122
111
|
title?: string | null;
|
|
123
|
-
body:
|
|
112
|
+
body: RichTextDoc;
|
|
124
113
|
media?: Media | null;
|
|
125
114
|
imagePosition?: 'left' | 'right' | null;
|
|
126
115
|
gap?: SemanticSpacing | null;
|
|
@@ -185,7 +174,7 @@ export type CourseRegistrationContent = {
|
|
|
185
174
|
waitlistMessage?: string | null;
|
|
186
175
|
membershipMessage?: string | null;
|
|
187
176
|
buttonText?: string | null;
|
|
188
|
-
buttonVariant?:
|
|
177
|
+
buttonVariant?: ButtonVariant | null;
|
|
189
178
|
_sectionStyles?: SectionStylesContent;
|
|
190
179
|
};
|
|
191
180
|
export type CtaFullContent = {
|
|
@@ -193,10 +182,7 @@ export type CtaFullContent = {
|
|
|
193
182
|
title: string;
|
|
194
183
|
content?: unknown;
|
|
195
184
|
_sectionStyles?: SectionStylesContent;
|
|
196
|
-
ctas?:
|
|
197
|
-
label?: string | null;
|
|
198
|
-
href?: string | null;
|
|
199
|
-
}>;
|
|
185
|
+
ctas?: BlockCtaContent[] | null;
|
|
200
186
|
};
|
|
201
187
|
export type EmbedContent = {
|
|
202
188
|
heading?: string | null;
|
|
@@ -218,7 +204,7 @@ export type DisplayMode = 'combined' | 'calendar' | 'list' | 'timetable' | 'week
|
|
|
218
204
|
export type FilterAutoShow = 'auto' | 'always' | 'never';
|
|
219
205
|
export type CalendarTabViews = 'both' | 'month' | 'week';
|
|
220
206
|
export type CalendarView = 'month' | 'week';
|
|
221
|
-
export type ButtonVariant = 'primary' | 'secondary' | 'outline' | '
|
|
207
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'accent';
|
|
222
208
|
export type CardVariantRole = 'default' | 'alternative';
|
|
223
209
|
export type LegacyCardVariantRoleAlias = 'variant1' | 'variant2';
|
|
224
210
|
export type EventCardVariantInput = CardVariantRole | LegacyCardVariantRoleAlias;
|
|
@@ -300,7 +286,7 @@ export type EventRegistrationContent = {
|
|
|
300
286
|
successMessage?: string | null;
|
|
301
287
|
waitlistMessage?: string | null;
|
|
302
288
|
buttonText?: string | null;
|
|
303
|
-
buttonVariant?:
|
|
289
|
+
buttonVariant?: ButtonVariant | null;
|
|
304
290
|
_sectionStyles?: SectionStylesContent;
|
|
305
291
|
};
|
|
306
292
|
export type EventSpotlightContent = {
|
|
@@ -364,14 +350,14 @@ export type FeatureCard = {
|
|
|
364
350
|
aspectRatio?: StandardAspectRatio | null;
|
|
365
351
|
icon?: BlockIconValue | SemanticIconId | null;
|
|
366
352
|
title: string;
|
|
367
|
-
body?:
|
|
353
|
+
body?: RichTextDoc | null;
|
|
368
354
|
ctas?: BlockCtaContent[] | null;
|
|
369
355
|
};
|
|
370
356
|
export type FeatureCardsContent = {
|
|
371
357
|
variant?: 'cards' | 'editorial-diptych' | 'editorial-pathways' | null;
|
|
372
358
|
eyebrow?: string | null;
|
|
373
359
|
title?: string | null;
|
|
374
|
-
description?:
|
|
360
|
+
description?: RichTextDoc | null;
|
|
375
361
|
columns?: '2' | '3' | '4' | null;
|
|
376
362
|
cardMarker?: 'icons' | 'numbers' | 'none' | null;
|
|
377
363
|
_iconTreatment?: FeatureCardIconTreatment | null;
|
|
@@ -381,7 +367,7 @@ export type FeatureCardsContent = {
|
|
|
381
367
|
export type HeroCta = {
|
|
382
368
|
label: string;
|
|
383
369
|
link: LinkValue;
|
|
384
|
-
variant?:
|
|
370
|
+
variant?: ButtonVariant;
|
|
385
371
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
386
372
|
iconLeft?: string;
|
|
387
373
|
iconRight?: string;
|
|
@@ -453,7 +439,7 @@ export type MediaTextContent = {
|
|
|
453
439
|
carouselAutoplayDelay?: '3000' | '5000' | '7000' | '10000' | null;
|
|
454
440
|
carouselArrowVisibility?: 'always' | 'hover' | 'never' | null;
|
|
455
441
|
showDots?: boolean | null;
|
|
456
|
-
text:
|
|
442
|
+
text: RichTextDoc;
|
|
457
443
|
wrapTextInCard?: boolean | null;
|
|
458
444
|
_textCardStyles?: unknown;
|
|
459
445
|
};
|
|
@@ -465,7 +451,7 @@ export type NewsletterSignupContent = {
|
|
|
465
451
|
preset: NewsletterSignupPreset;
|
|
466
452
|
includePhone?: boolean | null;
|
|
467
453
|
buttonLabel?: string | null;
|
|
468
|
-
buttonVariant?:
|
|
454
|
+
buttonVariant?: ButtonVariant | null;
|
|
469
455
|
successMessage?: string | null;
|
|
470
456
|
privacyNote?: string | null;
|
|
471
457
|
tags?: string | null;
|
|
@@ -474,11 +460,11 @@ export type NewsletterSignupContent = {
|
|
|
474
460
|
export type RecurringScheduleContent = {
|
|
475
461
|
eyebrow?: string | null;
|
|
476
462
|
heading?: string | null;
|
|
477
|
-
description?:
|
|
463
|
+
description?: RichTextDoc | null;
|
|
478
464
|
showVenue?: boolean | null;
|
|
479
|
-
buttonVariant?:
|
|
465
|
+
buttonVariant?: ButtonVariant | null;
|
|
480
466
|
buttonText?: string | null;
|
|
481
|
-
seeAllButtonVariant?:
|
|
467
|
+
seeAllButtonVariant?: ButtonVariant | null;
|
|
482
468
|
seeAllUrl?: LinkValue | null;
|
|
483
469
|
seeAllLabel?: string | null;
|
|
484
470
|
emptyMessage?: string | null;
|
|
@@ -509,7 +495,7 @@ export type ShopContent = {
|
|
|
509
495
|
showDescriptions?: boolean | null;
|
|
510
496
|
showValidityPeriod?: boolean | null;
|
|
511
497
|
showPricePerCredit?: boolean | null;
|
|
512
|
-
buttonVariant?:
|
|
498
|
+
buttonVariant?: ButtonVariant | null;
|
|
513
499
|
passesHeading?: string | null;
|
|
514
500
|
membershipsHeading?: string | null;
|
|
515
501
|
buyButtonText?: string | null;
|
|
@@ -550,10 +536,9 @@ export type CheckoutContent = {
|
|
|
550
536
|
emptyStateText?: string | null;
|
|
551
537
|
_sectionStyles?: SectionStylesContent;
|
|
552
538
|
};
|
|
553
|
-
export type SiteFooterContent = {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
};
|
|
539
|
+
export type SiteFooterContent = Readonly<{
|
|
540
|
+
showBusinessAddress?: boolean | null;
|
|
541
|
+
}>;
|
|
557
542
|
export type SiteHeaderMode = 'default' | 'hidden';
|
|
558
543
|
export type SiteHeaderContent = Readonly<{
|
|
559
544
|
mode?: SiteHeaderMode | null;
|
|
@@ -652,7 +637,7 @@ export type FileDownloadContent = {
|
|
|
652
637
|
title?: string | null;
|
|
653
638
|
description?: string | null;
|
|
654
639
|
buttonLabel?: string | null;
|
|
655
|
-
buttonVariant?:
|
|
640
|
+
buttonVariant?: ButtonVariant | null;
|
|
656
641
|
};
|
|
657
642
|
export type AppointmentBookingContent = {
|
|
658
643
|
formId: string;
|
|
@@ -703,7 +688,7 @@ export type SingleButtonContent = {
|
|
|
703
688
|
button?: {
|
|
704
689
|
label?: string | null;
|
|
705
690
|
link?: LinkValue | null;
|
|
706
|
-
variant?:
|
|
691
|
+
variant?: ButtonVariant | null;
|
|
707
692
|
} | null;
|
|
708
693
|
};
|
|
709
694
|
export type GiftingContent = {
|
|
@@ -766,4 +751,3 @@ export type SystemBlockContentByKind = SystemBlockContentByFullKind & {
|
|
|
766
751
|
[K in keyof SystemBlockContentByFullKind as StripBlockPrefix<K & string>]: SystemBlockContentByFullKind[K];
|
|
767
752
|
};
|
|
768
753
|
export type SystemBlockContentFor<K extends string> = K extends keyof SystemBlockContentByKind ? SystemBlockContentByKind[K] : UnknownRecord;
|
|
769
|
-
export {};
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* The SDK keeps the full theme schema intentionally broad so consumers don't
|
|
5
|
-
* couple to the underlying blocks package, while still exposing the pieces the
|
|
6
|
-
* SDK runtime genuinely reads.
|
|
7
|
-
*/
|
|
8
|
-
export type Theme = {
|
|
9
|
-
header?: {
|
|
10
|
-
variant?: 'classic' | 'centered' | 'transparent' | 'floating';
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
};
|
|
13
|
-
footer?: {
|
|
14
|
-
mode?: 'default' | 'blocks' | 'default+blocks' | 'none';
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
};
|
|
17
|
-
[key: string]: unknown;
|
|
18
|
-
};
|
|
1
|
+
/** The SDK consumes the same canonical theme contract as Riverbank rendering. */
|
|
2
|
+
export type { Theme } from '../../../theme-core/src/index';
|
|
19
3
|
export declare const colorTokens: readonly ["background/base", "background/elevated", "surface/base", "surface/subtle", "surface/inverted", "content/primary", "content/secondary", "accent/primary", "accent/secondary", "border/base"];
|
|
20
4
|
export declare const typographyTokens: readonly ["display/hero", "display/section", "heading/large", "heading/medium", "heading/small", "body/normal", "body/small", "caption"];
|
|
21
5
|
export declare const spacingTokens: readonly ["none", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl"];
|
|
@@ -21,9 +21,9 @@ export declare const fieldTypeEnum: z.ZodEnum<{
|
|
|
21
21
|
select: "select";
|
|
22
22
|
link: "link";
|
|
23
23
|
media: "media";
|
|
24
|
+
repeater: "repeater";
|
|
24
25
|
group: "group";
|
|
25
26
|
richText: "richText";
|
|
26
|
-
repeater: "repeater";
|
|
27
27
|
}>;
|
|
28
28
|
/**
|
|
29
29
|
* Combined field schema supporting all field types.
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* This approach ensures CSS rules reference classNames that actually exist
|
|
11
11
|
* in the layout by applying patches programmatically between passes.
|
|
12
12
|
*/
|
|
13
|
-
import { parseRichTextInlineMarkdown, parseRichTextParagraphInlineMarkdown
|
|
13
|
+
import { parseRichTextInlineMarkdown, parseRichTextParagraphInlineMarkdown } from '../../../blocks/src/index';
|
|
14
|
+
import { type RichTextDoc } from '../../../blocks/src/system/manifest/richTextSchema';
|
|
14
15
|
import type { HtmlToManifestInput, HtmlToManifestOutput, ConversionResult, ConverterOptions } from './types';
|
|
15
16
|
import { DEFAULT_MANIFEST_MODEL } from './constants';
|
|
16
17
|
export { DEFAULT_MANIFEST_MODEL };
|
|
@@ -21,15 +22,14 @@ export { DEFAULT_MANIFEST_MODEL };
|
|
|
21
22
|
* current paragraph as TipTap hardBreak nodes for line-oriented content such as
|
|
22
23
|
* addresses and opening hours.
|
|
23
24
|
*/
|
|
24
|
-
declare function stringToTipTapDoc(text: string):
|
|
25
|
+
declare function stringToTipTapDoc(text: string): RichTextDoc;
|
|
25
26
|
/**
|
|
26
27
|
* Coerce a richText defaultValue to TipTap format.
|
|
27
28
|
* Handles:
|
|
28
29
|
* - Plain strings → TipTap doc with paragraphs
|
|
29
30
|
* - Already valid TipTap docs → pass through
|
|
30
|
-
* - Legacy { doc: {...} } wrapper → unwrap
|
|
31
31
|
*/
|
|
32
|
-
declare function coerceRichTextDefaultValue(value: unknown):
|
|
32
|
+
declare function coerceRichTextDefaultValue(value: unknown): RichTextDoc | null;
|
|
33
33
|
export declare function convertHtmlToManifest(input: HtmlToManifestInput, options: ConverterOptions): Promise<ConversionResult>;
|
|
34
34
|
/**
|
|
35
35
|
* Validate HTML-to-manifest output structure.
|
|
@@ -319,7 +319,7 @@ export type SiteResponse = {
|
|
|
319
319
|
* payloads without these columns still satisfy the type — consumers fall
|
|
320
320
|
* back to the site style's defaults when null.
|
|
321
321
|
*/
|
|
322
|
-
|
|
322
|
+
selectionButtonStyleSelection?: import('../../../theme-core/src/buttons/index').ButtonStyleSelection | null;
|
|
323
323
|
runtimePaletteState?: RuntimePaletteState | null;
|
|
324
324
|
selectionHeaderLayoutId?: string | null;
|
|
325
325
|
selectionHeaderStyleId?: string | null;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* the SDK's public type surface must remain SDK-owned so consumers don't need
|
|
6
6
|
* to install `@riverbankcms/blocks`.
|
|
7
7
|
*/
|
|
8
|
-
import { applyBindings as blocksApplyBindings, applyBindingsToContent as blocksApplyBindingsToContent,
|
|
8
|
+
import { applyBindings as blocksApplyBindings, applyBindingsToContent as blocksApplyBindingsToContent, getPath as blocksGetPath, applyTransform as blocksApplyTransform, extractFirstParagraph as blocksExtractFirstParagraph, isBindingDescriptorLike as blocksIsBindingDescriptorLike, isRecord as blocksIsRecord } from '../../../../blocks/src/bindings/index';
|
|
9
9
|
import type { BindingSource, BindingDescriptor, BindingInput, BindingContext } from '../../contracts';
|
|
10
10
|
export type { BindingSource, BindingDescriptor, BindingInput, BindingMap, BindingContext } from '../../contracts';
|
|
11
11
|
export declare const TRANSFORMS: {
|
|
@@ -19,7 +19,6 @@ export declare const isRecord: typeof blocksIsRecord;
|
|
|
19
19
|
export declare const isBindingDescriptor: (value: unknown) => value is BindingDescriptor;
|
|
20
20
|
export declare const isBindingDescriptorLike: typeof blocksIsBindingDescriptorLike;
|
|
21
21
|
export declare const normalizeBindingInput: (value: BindingInput) => BindingDescriptor | null;
|
|
22
|
-
export declare const normalizeBindingOutput: typeof blocksNormalizeBindingOutput;
|
|
23
22
|
export declare const applyBindings: typeof blocksApplyBindings;
|
|
24
23
|
export declare const applyBindingsToContent: typeof blocksApplyBindingsToContent;
|
|
25
24
|
export declare const resolveBindingValue: (descriptor: BindingDescriptor, context: BindingContext) => unknown;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export { loadPage } from './loadPage';
|
|
5
5
|
export type { LoadPageParams, LoadPageResult } from './loadPage';
|
|
6
|
-
export { applyBindings
|
|
6
|
+
export { applyBindings } from './bindings';
|
|
7
7
|
export type { BindingContext } from './bindings';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventScheduleScope as SystemEventScheduleScope, EventSurfacePreset as SystemEventSurfacePreset } from '../../contracts/system-block-content';
|
|
1
|
+
import type { EventScheduleScope as SystemEventScheduleScope, EventSurfacePreset as SystemEventSurfacePreset, RichTextDoc as SystemRichTextDoc } from '../../contracts/system-block-content';
|
|
2
2
|
import type { PublicTeamMemberSummary } from '../../../../api/src/index';
|
|
3
3
|
import type { BookingFlexibleBalanceConfig, BookingInstalmentPlanConfig, LocationCoordinates, PublicCoursePriceDisplay, PublicEventPriceDisplay, PublicEventPricing, PublicEventPricingType } from '../../../../core/src/index';
|
|
4
4
|
import type { AccordionIslandProps as BlocksAccordionIslandProps, BookingFormConfig as BlocksBookingFormConfig, BookingFormInteractiveIslandProps as BlocksBookingFormIslandProps, BookingFormService as BlocksBookingFormService, CarouselIslandProps as BlocksCarouselIslandProps, CourseRegistrationInteractiveIslandProps as BlocksCourseRegistrationIslandProps, CartDisplay as BlocksCartDisplay, CartInteractiveIslandProps as BlocksCartIslandProps, CartLineDisplay as BlocksCartLineDisplay, CheckoutDisplay as BlocksCheckoutDisplay, CheckoutInteractiveIslandProps as BlocksCheckoutIslandProps, EventCalendarInteractiveIslandProps as BlocksEventCalendarIslandProps, EventCombinedInteractiveIslandProps as BlocksEventCombinedIslandProps, EventDetailsContentEntry as BlocksEventDetailsContentEntry, EventDetailsIslandProps as BlocksEventDetailsIslandProps, EventDetailsOccurrenceContext as BlocksEventDetailsOccurrenceContext, LocationMapIslandProps as BlocksLocationMapIslandProps, EventRegistrationInteractiveIslandProps as BlocksEventRegistrationIslandProps, EventListingDisplay as BlocksEventListingDisplay, EventListingHydration as BlocksEventListingHydration, EventListingInteractiveIslandProps as BlocksEventListingIslandProps, PublicEvent as BlocksPublicEvent, FormInteractiveIslandProps as BlocksFormIslandProps, HeaderSectionIslandProps as BlocksHeaderSectionIslandProps, MembershipCardDisplay as BlocksMembershipCardDisplay, NewsletterFormInteractiveIslandProps as BlocksNewsletterFormIslandProps, PassCardDisplay as BlocksPassCardDisplay, PassesMembershipsDisplay as BlocksPassesMembershipsDisplay, ProductCardDisplay as BlocksProductCardDisplay, ProductDetailDisplay as BlocksProductDetailDisplay, ProductDetailInteractiveIslandProps as BlocksProductDetailIslandProps, ProductListDisplay as BlocksProductListDisplay, ProductListInteractiveIslandProps as BlocksProductListIslandProps, ProductVariantOptionDisplay as BlocksProductVariantOptionDisplay, ShopInteractiveIslandProps as BlocksShopIslandProps } from '../../../../blocks/src/contracts/index';
|
|
@@ -49,18 +49,7 @@ export type EventCategory = {
|
|
|
49
49
|
};
|
|
50
50
|
export type PricingType = PublicEventPricingType;
|
|
51
51
|
export type { PublicCoursePriceDisplay, PublicEventPriceDisplay, PublicEventPricing, };
|
|
52
|
-
export type RichTextDoc =
|
|
53
|
-
type: 'doc';
|
|
54
|
-
content?: Array<{
|
|
55
|
-
type: string;
|
|
56
|
-
content?: Array<{
|
|
57
|
-
type: string;
|
|
58
|
-
text?: string;
|
|
59
|
-
[key: string]: unknown;
|
|
60
|
-
}>;
|
|
61
|
-
[key: string]: unknown;
|
|
62
|
-
}>;
|
|
63
|
-
};
|
|
52
|
+
export type RichTextDoc = SystemRichTextDoc;
|
|
64
53
|
export type EventSurfacePreset = SystemEventSurfacePreset;
|
|
65
54
|
export type EventScheduleScope = Exclude<SystemEventScheduleScope, 'any'>;
|
|
66
55
|
export type AccessRestriction = 'none' | 'category';
|
|
@@ -7,32 +7,3 @@ import type { ZodTypeAny } from 'zod';
|
|
|
7
7
|
export type { Theme } from '../contracts';
|
|
8
8
|
export declare const themeSchema: ZodTypeAny;
|
|
9
9
|
export { loadLocalTheme, listLocalThemes, type LoadedTheme } from './loader';
|
|
10
|
-
/**
|
|
11
|
-
* Apply a Builder theme to the DOM by injecting CSS variables
|
|
12
|
-
*
|
|
13
|
-
* @param theme - The theme object from Riverbank CMS
|
|
14
|
-
* @param element - The element to apply the theme to (default: document.documentElement)
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* const site = await client.getSite({ slug: 'my-site' });
|
|
19
|
-
* applyTheme(site.theme);
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function applyTheme(theme: Record<string, unknown>, element?: HTMLElement): void;
|
|
23
|
-
/**
|
|
24
|
-
* Create a theme object with type-safe defaults
|
|
25
|
-
*
|
|
26
|
-
* @param partial - Partial theme configuration
|
|
27
|
-
* @returns Complete theme object
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* const customTheme = createTheme({
|
|
32
|
-
* colors: {
|
|
33
|
-
* primary: '#007bff',
|
|
34
|
-
* },
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export declare function createTheme(partial?: Record<string, unknown>): Record<string, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Webhook utilities for Riverbank SDK
|
|
3
3
|
*/
|
|
4
|
-
export { SUPPORTED_WEBHOOK_EVENTS, verifyWebhookSignature, parseWebhookPayload, RIVERBANK_SIGNATURE_PREFIX, WebhookPayloadSchema, WebhookEventSchema, normalizeRevalidationPath, parseRevalidationPath, unwrapRevalidationPath, type RevalidationPath, type RevalidationPathParseError, type RevalidationPathParseResult, type WebhookEvent, type WebhookPayload, type ParseWebhookResult, } from './verify';
|
|
4
|
+
export { SUPPORTED_WEBHOOK_EVENTS, verifyWebhookSignature, parseWebhookPayload, RIVERBANK_SIGNATURE_PREFIX, WebhookPayloadSchema, WebhookEventSchema, EventsUpdatedDataSchema, normalizeRevalidationPath, parseRevalidationPath, unwrapRevalidationPath, type RevalidationPath, type RevalidationPathParseError, type RevalidationPathParseResult, type WebhookEvent, type WebhookPayload, type EventsUpdatedData, type ParseWebhookResult, } from './verify';
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides framework-agnostic webhook signature verification and payload parsing.
|
|
5
5
|
*/
|
|
6
|
-
import { type EmptyWebhookData, type EntryPathChangedData, type EntryPublishedData, type EntryRemovedData, type NavigationUpdatedData, type PagePathChangedData, type PagePublishedData, type PageRemovedData, type RevalidationPath, type RevalidationPathParseError, type RevalidationPathParseResult, type WebhookEvent, type WebhookPayload } from '../../../api/src/webhooks';
|
|
7
|
-
export { EmptyWebhookDataSchema as EmptyDataSchema, EntryPathChangedDataSchema, EntryPublishedDataSchema, EntryRemovedDataSchema, NavigationUpdatedDataSchema, PagePathChangedDataSchema, PagePublishedDataSchema, PageRemovedDataSchema, RIVERBANK_SIGNATURE_PREFIX, SUPPORTED_WEBHOOK_EVENTS, WebhookEventSchema, WebhookPayloadSchema, normalizeRevalidationPath, parseRevalidationPath, unwrapRevalidationPath, } from '../../../api/src/webhooks';
|
|
8
|
-
export type { EmptyWebhookData as EmptyData, RevalidationPath, RevalidationPathParseError, RevalidationPathParseResult, EntryPathChangedData, EntryPublishedData, EntryRemovedData, NavigationUpdatedData, PagePathChangedData, PagePublishedData, PageRemovedData, WebhookEvent, WebhookPayload, };
|
|
6
|
+
import { type EmptyWebhookData, type EntryPathChangedData, type EntryPublishedData, type EntryRemovedData, type NavigationUpdatedData, type PagePathChangedData, type PagePublishedData, type PageRemovedData, type RevalidationPath, type RevalidationPathParseError, type RevalidationPathParseResult, type WebhookEvent, type WebhookPayload, type EventsUpdatedData } from '../../../api/src/webhooks';
|
|
7
|
+
export { EmptyWebhookDataSchema as EmptyDataSchema, EntryPathChangedDataSchema, EntryPublishedDataSchema, EntryRemovedDataSchema, EventsUpdatedDataSchema, NavigationUpdatedDataSchema, PagePathChangedDataSchema, PagePublishedDataSchema, PageRemovedDataSchema, RIVERBANK_SIGNATURE_PREFIX, SUPPORTED_WEBHOOK_EVENTS, WebhookEventSchema, WebhookPayloadSchema, normalizeRevalidationPath, parseRevalidationPath, unwrapRevalidationPath, } from '../../../api/src/webhooks';
|
|
8
|
+
export type { EmptyWebhookData as EmptyData, RevalidationPath, RevalidationPathParseError, RevalidationPathParseResult, EntryPathChangedData, EntryPublishedData, EntryRemovedData, EventsUpdatedData, NavigationUpdatedData, PagePathChangedData, PagePublishedData, PageRemovedData, WebhookEvent, WebhookPayload, };
|
|
9
9
|
/**
|
|
10
10
|
* Type-safe webhook payload with discriminated data based on event type.
|
|
11
11
|
*/
|