@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { type RichTextDoc } from '../../core/src/index';
|
|
2
3
|
import { type BlockRef, type BlocksRef, type CommandRef, type ContentEntryRef, type CourseRef, type PassProductRef, type MembershipProductRef, type BookingCustomerRef, type CustomerPassRef, type CustomerMembershipRef, type AppointmentBookingRef, type CourseEnrollmentRef, type EventRegistrationRef, type PassRedemptionRef, type OrderRef, type EventSeriesRef, type FormRef, type FooterRef, type MediaRef, type NavigationRef, type PageRef, type SiteStyleRef, type StaffRef, type TicketTypeRef, type VenueRef, type EventCategoryRef, type AppointmentServiceRef, type AppointmentResourceRef, type AppointmentAvailabilityRef, type SiteCommandSiteRef } from './refs';
|
|
3
4
|
export declare const navigationLocations: readonly ["main", "header", "footer"];
|
|
4
5
|
export type NavigationLocation = (typeof navigationLocations)[number];
|
|
@@ -43,8 +44,49 @@ export declare const applySiteStyleSelectionCommandSchema: z.ZodObject<{
|
|
|
43
44
|
kind: z.ZodLiteral<"set-site-style">;
|
|
44
45
|
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleRef, string>>;
|
|
45
46
|
}, z.core.$strict>, z.ZodObject<{
|
|
46
|
-
kind: z.ZodLiteral<"set-button-
|
|
47
|
-
|
|
47
|
+
kind: z.ZodLiteral<"set-button-style">;
|
|
48
|
+
buttonStyleSelection: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
|
+
styleId: z.ZodLiteral<"soft-pill">;
|
|
50
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
51
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52
|
+
styleId: z.ZodLiteral<"earth-pill">;
|
|
53
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
54
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55
|
+
styleId: z.ZodLiteral<"confident-chip">;
|
|
56
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
57
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
58
|
+
styleId: z.ZodLiteral<"editorial-link">;
|
|
59
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
60
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
61
|
+
styleId: z.ZodLiteral<"pebble">;
|
|
62
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
63
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
64
|
+
styleId: z.ZodLiteral<"ink-stamp">;
|
|
65
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
66
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
67
|
+
styleId: z.ZodLiteral<"flat-ink">;
|
|
68
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
69
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
70
|
+
styleId: z.ZodLiteral<"brushed-wash">;
|
|
71
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
72
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
73
|
+
styleId: z.ZodLiteral<"showtime-pill">;
|
|
74
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
75
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
76
|
+
styleId: z.ZodLiteral<"joy-stamp">;
|
|
77
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
78
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
79
|
+
styleId: z.ZodLiteral<"ornate-ritual">;
|
|
80
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
81
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
82
|
+
styleId: z.ZodLiteral<"quiet-arrow">;
|
|
83
|
+
parameters: z.ZodObject<{
|
|
84
|
+
secondaryTreatment: z.ZodEnum<{
|
|
85
|
+
outlined: "outlined";
|
|
86
|
+
"solid-accent": "solid-accent";
|
|
87
|
+
}>;
|
|
88
|
+
}, z.core.$strict>;
|
|
89
|
+
}, z.core.$strict>], "styleId">>;
|
|
48
90
|
}, z.core.$strict>, z.ZodObject<{
|
|
49
91
|
kind: z.ZodLiteral<"set-palette">;
|
|
50
92
|
command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
|
|
@@ -293,8 +335,8 @@ export declare const applySiteStyleSelectionCommandSchema: z.ZodObject<{
|
|
|
293
335
|
}, z.core.$strip>;
|
|
294
336
|
scale: z.ZodEnum<{
|
|
295
337
|
compact: "compact";
|
|
296
|
-
balanced: "balanced";
|
|
297
338
|
spacious: "spacious";
|
|
339
|
+
balanced: "balanced";
|
|
298
340
|
minorThird: "minorThird";
|
|
299
341
|
majorThird: "majorThird";
|
|
300
342
|
perfectFourth: "perfectFourth";
|
|
@@ -577,7 +619,7 @@ export declare const upsertFooterContentCommandSchema: z.ZodObject<{
|
|
|
577
619
|
type: z.ZodLiteral<"upsertFooterContent">;
|
|
578
620
|
ref: z.ZodPipe<z.ZodString, z.ZodTransform<FooterRef, string>>;
|
|
579
621
|
input: z.ZodObject<{
|
|
580
|
-
bottomText: z.ZodOptional<z.ZodNullable<z.
|
|
622
|
+
bottomText: z.ZodOptional<z.ZodNullable<z.ZodCustom<RichTextDoc, RichTextDoc>>>;
|
|
581
623
|
}, z.core.$strict>;
|
|
582
624
|
}, z.core.$strict>;
|
|
583
625
|
export declare const upsertContentEntryCommandSchema: z.ZodObject<{
|
|
@@ -824,8 +866,10 @@ export declare const upsertEventSeriesCommandSchema: z.ZodObject<{
|
|
|
824
866
|
}, z.core.$strict>>>;
|
|
825
867
|
content: z.ZodOptional<z.ZodObject<{
|
|
826
868
|
summary: z.ZodOptional<z.ZodString>;
|
|
827
|
-
body: z.ZodOptional<z.
|
|
828
|
-
image: z.ZodOptional<z.
|
|
869
|
+
body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RichTextDoc, RichTextDoc>]>>;
|
|
870
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
871
|
+
identifier: z.ZodString;
|
|
872
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
829
873
|
imageRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>;
|
|
830
874
|
mediaRefs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>>>;
|
|
831
875
|
contentEntryRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContentEntryRef, string>>>;
|
|
@@ -938,8 +982,10 @@ export declare const upsertCourseCommandSchema: z.ZodObject<{
|
|
|
938
982
|
}, z.core.$strict>>>;
|
|
939
983
|
content: z.ZodOptional<z.ZodObject<{
|
|
940
984
|
summary: z.ZodOptional<z.ZodString>;
|
|
941
|
-
body: z.ZodOptional<z.
|
|
942
|
-
image: z.ZodOptional<z.
|
|
985
|
+
body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RichTextDoc, RichTextDoc>]>>;
|
|
986
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
987
|
+
identifier: z.ZodString;
|
|
988
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
943
989
|
imageRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>;
|
|
944
990
|
mediaRefs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>>>;
|
|
945
991
|
contentEntryRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContentEntryRef, string>>>;
|
|
@@ -1378,8 +1424,49 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1378
1424
|
kind: z.ZodLiteral<"set-site-style">;
|
|
1379
1425
|
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleRef, string>>;
|
|
1380
1426
|
}, z.core.$strict>, z.ZodObject<{
|
|
1381
|
-
kind: z.ZodLiteral<"set-button-
|
|
1382
|
-
|
|
1427
|
+
kind: z.ZodLiteral<"set-button-style">;
|
|
1428
|
+
buttonStyleSelection: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1429
|
+
styleId: z.ZodLiteral<"soft-pill">;
|
|
1430
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1431
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1432
|
+
styleId: z.ZodLiteral<"earth-pill">;
|
|
1433
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1434
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1435
|
+
styleId: z.ZodLiteral<"confident-chip">;
|
|
1436
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1437
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1438
|
+
styleId: z.ZodLiteral<"editorial-link">;
|
|
1439
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1440
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1441
|
+
styleId: z.ZodLiteral<"pebble">;
|
|
1442
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1443
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1444
|
+
styleId: z.ZodLiteral<"ink-stamp">;
|
|
1445
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1446
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1447
|
+
styleId: z.ZodLiteral<"flat-ink">;
|
|
1448
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1449
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1450
|
+
styleId: z.ZodLiteral<"brushed-wash">;
|
|
1451
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1452
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1453
|
+
styleId: z.ZodLiteral<"showtime-pill">;
|
|
1454
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1455
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1456
|
+
styleId: z.ZodLiteral<"joy-stamp">;
|
|
1457
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1458
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1459
|
+
styleId: z.ZodLiteral<"ornate-ritual">;
|
|
1460
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1461
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1462
|
+
styleId: z.ZodLiteral<"quiet-arrow">;
|
|
1463
|
+
parameters: z.ZodObject<{
|
|
1464
|
+
secondaryTreatment: z.ZodEnum<{
|
|
1465
|
+
outlined: "outlined";
|
|
1466
|
+
"solid-accent": "solid-accent";
|
|
1467
|
+
}>;
|
|
1468
|
+
}, z.core.$strict>;
|
|
1469
|
+
}, z.core.$strict>], "styleId">>;
|
|
1383
1470
|
}, z.core.$strict>, z.ZodObject<{
|
|
1384
1471
|
kind: z.ZodLiteral<"set-palette">;
|
|
1385
1472
|
command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
|
|
@@ -1628,8 +1715,8 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1628
1715
|
}, z.core.$strip>;
|
|
1629
1716
|
scale: z.ZodEnum<{
|
|
1630
1717
|
compact: "compact";
|
|
1631
|
-
balanced: "balanced";
|
|
1632
1718
|
spacious: "spacious";
|
|
1719
|
+
balanced: "balanced";
|
|
1633
1720
|
minorThird: "minorThird";
|
|
1634
1721
|
majorThird: "majorThird";
|
|
1635
1722
|
perfectFourth: "perfectFourth";
|
|
@@ -1859,7 +1946,7 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1859
1946
|
type: z.ZodLiteral<"upsertFooterContent">;
|
|
1860
1947
|
ref: z.ZodPipe<z.ZodString, z.ZodTransform<FooterRef, string>>;
|
|
1861
1948
|
input: z.ZodObject<{
|
|
1862
|
-
bottomText: z.ZodOptional<z.ZodNullable<z.
|
|
1949
|
+
bottomText: z.ZodOptional<z.ZodNullable<z.ZodCustom<RichTextDoc, RichTextDoc>>>;
|
|
1863
1950
|
}, z.core.$strict>;
|
|
1864
1951
|
}, z.core.$strict>, z.ZodObject<{
|
|
1865
1952
|
type: z.ZodLiteral<"upsertContentEntry">;
|
|
@@ -2109,8 +2196,10 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2109
2196
|
}, z.core.$strict>>>;
|
|
2110
2197
|
content: z.ZodOptional<z.ZodObject<{
|
|
2111
2198
|
summary: z.ZodOptional<z.ZodString>;
|
|
2112
|
-
body: z.ZodOptional<z.
|
|
2113
|
-
image: z.ZodOptional<z.
|
|
2199
|
+
body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RichTextDoc, RichTextDoc>]>>;
|
|
2200
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
2201
|
+
identifier: z.ZodString;
|
|
2202
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
2114
2203
|
imageRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>;
|
|
2115
2204
|
mediaRefs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>>>;
|
|
2116
2205
|
contentEntryRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContentEntryRef, string>>>;
|
|
@@ -2220,8 +2309,10 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2220
2309
|
}, z.core.$strict>>>;
|
|
2221
2310
|
content: z.ZodOptional<z.ZodObject<{
|
|
2222
2311
|
summary: z.ZodOptional<z.ZodString>;
|
|
2223
|
-
body: z.ZodOptional<z.
|
|
2224
|
-
image: z.ZodOptional<z.
|
|
2312
|
+
body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RichTextDoc, RichTextDoc>]>>;
|
|
2313
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
2314
|
+
identifier: z.ZodString;
|
|
2315
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
2225
2316
|
imageRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>;
|
|
2226
2317
|
mediaRefs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>>>;
|
|
2227
2318
|
contentEntryRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContentEntryRef, string>>>;
|
|
@@ -2578,8 +2669,49 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
|
|
|
2578
2669
|
kind: z.ZodLiteral<"set-site-style">;
|
|
2579
2670
|
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleRef, string>>;
|
|
2580
2671
|
}, z.core.$strict>, z.ZodObject<{
|
|
2581
|
-
kind: z.ZodLiteral<"set-button-
|
|
2582
|
-
|
|
2672
|
+
kind: z.ZodLiteral<"set-button-style">;
|
|
2673
|
+
buttonStyleSelection: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2674
|
+
styleId: z.ZodLiteral<"soft-pill">;
|
|
2675
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2676
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2677
|
+
styleId: z.ZodLiteral<"earth-pill">;
|
|
2678
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2679
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2680
|
+
styleId: z.ZodLiteral<"confident-chip">;
|
|
2681
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2682
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2683
|
+
styleId: z.ZodLiteral<"editorial-link">;
|
|
2684
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2685
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2686
|
+
styleId: z.ZodLiteral<"pebble">;
|
|
2687
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2688
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2689
|
+
styleId: z.ZodLiteral<"ink-stamp">;
|
|
2690
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2691
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2692
|
+
styleId: z.ZodLiteral<"flat-ink">;
|
|
2693
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2694
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2695
|
+
styleId: z.ZodLiteral<"brushed-wash">;
|
|
2696
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2697
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2698
|
+
styleId: z.ZodLiteral<"showtime-pill">;
|
|
2699
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2700
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2701
|
+
styleId: z.ZodLiteral<"joy-stamp">;
|
|
2702
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2703
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2704
|
+
styleId: z.ZodLiteral<"ornate-ritual">;
|
|
2705
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2706
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2707
|
+
styleId: z.ZodLiteral<"quiet-arrow">;
|
|
2708
|
+
parameters: z.ZodObject<{
|
|
2709
|
+
secondaryTreatment: z.ZodEnum<{
|
|
2710
|
+
outlined: "outlined";
|
|
2711
|
+
"solid-accent": "solid-accent";
|
|
2712
|
+
}>;
|
|
2713
|
+
}, z.core.$strict>;
|
|
2714
|
+
}, z.core.$strict>], "styleId">>;
|
|
2583
2715
|
}, z.core.$strict>, z.ZodObject<{
|
|
2584
2716
|
kind: z.ZodLiteral<"set-palette">;
|
|
2585
2717
|
command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
|
|
@@ -2828,8 +2960,8 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
|
|
|
2828
2960
|
}, z.core.$strip>;
|
|
2829
2961
|
scale: z.ZodEnum<{
|
|
2830
2962
|
compact: "compact";
|
|
2831
|
-
balanced: "balanced";
|
|
2832
2963
|
spacious: "spacious";
|
|
2964
|
+
balanced: "balanced";
|
|
2833
2965
|
minorThird: "minorThird";
|
|
2834
2966
|
majorThird: "majorThird";
|
|
2835
2967
|
perfectFourth: "perfectFourth";
|
|
@@ -3059,7 +3191,7 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
|
|
|
3059
3191
|
type: z.ZodLiteral<"upsertFooterContent">;
|
|
3060
3192
|
ref: z.ZodPipe<z.ZodString, z.ZodTransform<FooterRef, string>>;
|
|
3061
3193
|
input: z.ZodObject<{
|
|
3062
|
-
bottomText: z.ZodOptional<z.ZodNullable<z.
|
|
3194
|
+
bottomText: z.ZodOptional<z.ZodNullable<z.ZodCustom<RichTextDoc, RichTextDoc>>>;
|
|
3063
3195
|
}, z.core.$strict>;
|
|
3064
3196
|
}, z.core.$strict>, z.ZodObject<{
|
|
3065
3197
|
type: z.ZodLiteral<"upsertContentEntry">;
|
|
@@ -3309,8 +3441,10 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
|
|
|
3309
3441
|
}, z.core.$strict>>>;
|
|
3310
3442
|
content: z.ZodOptional<z.ZodObject<{
|
|
3311
3443
|
summary: z.ZodOptional<z.ZodString>;
|
|
3312
|
-
body: z.ZodOptional<z.
|
|
3313
|
-
image: z.ZodOptional<z.
|
|
3444
|
+
body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RichTextDoc, RichTextDoc>]>>;
|
|
3445
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
3446
|
+
identifier: z.ZodString;
|
|
3447
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
3314
3448
|
imageRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>;
|
|
3315
3449
|
mediaRefs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>>>;
|
|
3316
3450
|
contentEntryRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContentEntryRef, string>>>;
|
|
@@ -3420,8 +3554,10 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
|
|
|
3420
3554
|
}, z.core.$strict>>>;
|
|
3421
3555
|
content: z.ZodOptional<z.ZodObject<{
|
|
3422
3556
|
summary: z.ZodOptional<z.ZodString>;
|
|
3423
|
-
body: z.ZodOptional<z.
|
|
3424
|
-
image: z.ZodOptional<z.
|
|
3557
|
+
body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RichTextDoc, RichTextDoc>]>>;
|
|
3558
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
3559
|
+
identifier: z.ZodString;
|
|
3560
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
3425
3561
|
imageRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>;
|
|
3426
3562
|
mediaRefs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<MediaRef, string>>>>>;
|
|
3427
3563
|
contentEntryRef: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContentEntryRef, string>>>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* A button variant may declare a trailing `affordance` icon (see
|
|
5
5
|
* `ButtonVariantAffordance`). The generated button CSS renders that icon as a
|
|
6
|
-
* masked `::after` pseudo-element, so the
|
|
6
|
+
* masked `::after` pseudo-element, so the theme supplies it to every
|
|
7
7
|
* button of the variant without per-node authoring.
|
|
8
8
|
*
|
|
9
9
|
* Icons live in the `@riverbankcms/blocks` registry, but the button CSS is
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* the *affordance-eligible* icon path data (arrows/chevrons — the action-oriented
|
|
12
12
|
* subset). The `d` values below are duplicated verbatim from the matching entries
|
|
13
13
|
* in `blocks/src/system/icons/svg.tsx`; ids match the registry ids exactly so a
|
|
14
|
-
* node-level `trailingIcon` and a
|
|
14
|
+
* node-level `trailingIcon` and a theme-owned `affordance` share one id space.
|
|
15
15
|
*
|
|
16
16
|
* Keep this set intentionally tiny. It is not the full CTA icon set — only the
|
|
17
17
|
* shapes that read as a trailing affordance.
|
|
@@ -15,7 +15,6 @@ export interface ButtonVariantCore {
|
|
|
15
15
|
export interface ButtonCoreSettings {
|
|
16
16
|
readonly corners: 'square' | 'soft' | 'rounded' | 'pill';
|
|
17
17
|
readonly shadow: 'none' | 'low' | 'medium' | 'high';
|
|
18
|
-
readonly borderWidth: 'none' | 'thin' | 'medium' | 'thick';
|
|
19
18
|
readonly fontWeight?: number;
|
|
20
19
|
readonly textTransform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize';
|
|
21
20
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ButtonEffectApplication } from './types';
|
|
2
|
+
export type ButtonUnsupportedEffectReason = 'alpha_requires_surface' | 'changes_foreground' | 'changes_border' | 'changes_shadow_colour' | 'changes_element_opacity' | 'unresolved_background_overlay' | 'not_button_effect';
|
|
2
3
|
export type ButtonEffectPolicy = Readonly<{
|
|
3
4
|
classification: 'colour-transition';
|
|
4
5
|
transition: Readonly<{
|
|
@@ -9,6 +10,8 @@ export type ButtonEffectPolicy = Readonly<{
|
|
|
9
10
|
}>;
|
|
10
11
|
}> | Readonly<{
|
|
11
12
|
classification: 'non-colour';
|
|
13
|
+
}> | Readonly<{
|
|
14
|
+
classification: 'decorative-colour';
|
|
12
15
|
}> | Readonly<{
|
|
13
16
|
classification: 'unsupported-colour' | 'unsupported-background-overlay' | 'not-button';
|
|
14
17
|
reason: ButtonUnsupportedEffectReason;
|
|
@@ -101,22 +104,24 @@ export declare const BUTTON_EFFECT_POLICIES: {
|
|
|
101
104
|
readonly classification: "non-colour";
|
|
102
105
|
};
|
|
103
106
|
readonly 'border-glow': {
|
|
104
|
-
readonly classification: "
|
|
107
|
+
readonly classification: "unsupported-colour";
|
|
108
|
+
readonly reason: "changes_shadow_colour";
|
|
105
109
|
};
|
|
106
110
|
readonly 'drop-shadow': {
|
|
107
|
-
readonly classification: "
|
|
111
|
+
readonly classification: "decorative-colour";
|
|
108
112
|
};
|
|
109
113
|
readonly 'inner-shadow': {
|
|
110
|
-
readonly classification: "
|
|
114
|
+
readonly classification: "decorative-colour";
|
|
111
115
|
};
|
|
112
116
|
readonly 'neumorphic-shadow': {
|
|
113
|
-
readonly classification: "
|
|
117
|
+
readonly classification: "decorative-colour";
|
|
114
118
|
};
|
|
115
119
|
readonly 'outer-glow': {
|
|
116
|
-
readonly classification: "
|
|
120
|
+
readonly classification: "unsupported-colour";
|
|
121
|
+
readonly reason: "changes_shadow_colour";
|
|
117
122
|
};
|
|
118
123
|
readonly 'retro-3d-shadow': {
|
|
119
|
-
readonly classification: "
|
|
124
|
+
readonly classification: "decorative-colour";
|
|
120
125
|
};
|
|
121
126
|
readonly 'scale-up': {
|
|
122
127
|
readonly classification: "non-colour";
|
|
@@ -137,11 +142,19 @@ export declare const BUTTON_EFFECT_POLICIES: {
|
|
|
137
142
|
readonly classification: "non-colour";
|
|
138
143
|
};
|
|
139
144
|
readonly 'sketchy-border': {
|
|
140
|
-
readonly classification: "
|
|
145
|
+
readonly classification: "decorative-colour";
|
|
141
146
|
};
|
|
142
147
|
readonly 'pulse-animation': {
|
|
143
|
-
readonly classification: "
|
|
148
|
+
readonly classification: "unsupported-colour";
|
|
149
|
+
readonly reason: "changes_element_opacity";
|
|
144
150
|
};
|
|
145
151
|
};
|
|
152
|
+
export type ButtonEffectOptionsValidation = Readonly<{
|
|
153
|
+
ok: true;
|
|
154
|
+
}> | Readonly<{
|
|
155
|
+
ok: false;
|
|
156
|
+
option: string;
|
|
157
|
+
}>;
|
|
158
|
+
export declare function validateButtonEffectOptions(effect: ButtonEffectApplication): ButtonEffectOptionsValidation;
|
|
146
159
|
export declare function getButtonEffectPolicy(effectId: string): ButtonEffectPolicy | null;
|
|
147
160
|
export declare function classifyButtonEffectId(effectId: string): ButtonEffectClassification;
|
|
@@ -20,8 +20,7 @@ export declare const fadeBackgroundEffect: EffectPreset;
|
|
|
20
20
|
/**
|
|
21
21
|
* Reduce opacity on hover (simple opacity reduction)
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
* This is useful for default button styles that need simple hover feedback.
|
|
23
|
+
* Navigation-link effect that reduces opacity by a percentage (default 15%).
|
|
25
24
|
*/
|
|
26
25
|
export declare const opacityReduceEffect: EffectPreset;
|
|
27
26
|
/**
|
|
@@ -8,7 +8,6 @@ export declare const borderColorChangeEffect: EffectPreset;
|
|
|
8
8
|
/**
|
|
9
9
|
* Sketchy/hand-drawn border effect
|
|
10
10
|
*
|
|
11
|
-
* Creates an imperfect, hand-drawn appearance using
|
|
12
|
-
* filters, and slight rotation to simulate hand-drawn lines.
|
|
11
|
+
* Creates an imperfect, hand-drawn appearance using slight rotations.
|
|
13
12
|
*/
|
|
14
13
|
export declare const sketchyBorderEffect: EffectPreset;
|
|
@@ -57,8 +57,10 @@ export declare const animatedGradientBorderFillEffect: EffectPreset;
|
|
|
57
57
|
* Creates an animated underline that grows from one side on hover.
|
|
58
58
|
* Uses ::after pseudo-element positioned at the bottom of the button.
|
|
59
59
|
*
|
|
60
|
+
* The underline inherits `currentColor`, so it cannot create a second button
|
|
61
|
+
* colour authority or drift from the canonical foreground.
|
|
62
|
+
*
|
|
60
63
|
* Options:
|
|
61
|
-
* - colorToken: Color token for the border (default: neutral-400)
|
|
62
64
|
* - height: Height of the border in pixels (default: 1)
|
|
63
65
|
* - origin: Transform origin - 'left', 'center', or 'right' (default: left)
|
|
64
66
|
*/
|
|
@@ -31,8 +31,8 @@ export declare const neumorphicShadowEffect: EffectPreset;
|
|
|
31
31
|
/**
|
|
32
32
|
* Outer glow effect
|
|
33
33
|
*
|
|
34
|
-
* Creates an outer glow using box-shadow with no
|
|
35
|
-
*
|
|
34
|
+
* Creates an outer glow around a navigation link using box-shadow with no
|
|
35
|
+
* offset.
|
|
36
36
|
*/
|
|
37
37
|
export declare const outerGlowEffect: EffectPreset;
|
|
38
38
|
/**
|
|
@@ -4,10 +4,10 @@ import type { Theme } from '../../schema';
|
|
|
4
4
|
import type { InteractiveElementConfig } from '../../interactive/types';
|
|
5
5
|
import type { InteractiveElementType } from '../../interactive/types';
|
|
6
6
|
/**
|
|
7
|
-
* Valid effect preset IDs
|
|
7
|
+
* Valid generic interactive-effect preset IDs.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Button variants deliberately use the narrower `ButtonEffectApplication`
|
|
10
|
+
* contract from `buttons/types.ts`; this registry also serves navigation.
|
|
11
11
|
*/
|
|
12
12
|
export type EffectId = 'darken-background' | 'lighten-background' | 'fade-background' | 'opacity-reduce' | 'animated-gradient' | 'background-on-hover' | 'background-on-hover-alpha' | 'border-glow' | 'drop-shadow' | 'inner-shadow' | 'neumorphic-shadow' | 'outer-glow' | 'retro-3d-shadow' | 'scale-up' | 'scale-down' | 'lift' | 'press-down' | 'pop' | 'aurora-glow' | 'cosmic-stardust' | 'gradient-border-fill' | 'animated-gradient-border-fill' | 'border-bottom-grow' | 'gradient-text' | 'text-color-change' | 'border-color-change' | 'sketchy-border' | 'pulse-animation' | 'nav-underline' | 'nav-frosted-base' | 'nav-frosted-hover' | 'nav-frosted-active';
|
|
13
13
|
/**
|
|
@@ -66,9 +66,10 @@ export interface CustomizableOption {
|
|
|
66
66
|
options?: unknown[];
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
|
-
* Effect preset - a reusable CSS generator for
|
|
69
|
+
* Effect preset - a reusable CSS generator for interactive-element effects.
|
|
70
70
|
*
|
|
71
|
-
*
|
|
71
|
+
* The generic registry serves navigation and button emitters. Button persistence
|
|
72
|
+
* is governed by the closed `ButtonEffectApplication` schema, not this catalog.
|
|
72
73
|
* They must use theme tokens (not hardcoded colors) and declare which category they belong to.
|
|
73
74
|
*/
|
|
74
75
|
export interface EffectPreset {
|
|
@@ -89,13 +90,13 @@ export interface EffectPreset {
|
|
|
89
90
|
/**
|
|
90
91
|
* Which interactive element types can use this effect
|
|
91
92
|
*
|
|
92
|
-
* If undefined, the
|
|
93
|
+
* If undefined, the generic emitter supports all interactive element types.
|
|
93
94
|
* Use this to restrict effects that only make sense for certain elements.
|
|
94
95
|
*
|
|
95
96
|
* Examples:
|
|
96
97
|
* - 'button' only: darken-background, lighten-background (require solid background)
|
|
97
98
|
* - 'nav-link' only: nav-underline, nav-frosted
|
|
98
|
-
* - both: scale-up
|
|
99
|
+
* - both: scale-up
|
|
99
100
|
*/
|
|
100
101
|
applicableTo?: InteractiveElementType[];
|
|
101
102
|
/**
|
|
@@ -128,14 +129,3 @@ export interface EffectPreset {
|
|
|
128
129
|
*/
|
|
129
130
|
isApplicable?: (buttonConfig: ButtonVariant | InteractiveElementConfig) => boolean;
|
|
130
131
|
}
|
|
131
|
-
/**
|
|
132
|
-
* Reference to an effect preset with customization options
|
|
133
|
-
*
|
|
134
|
-
* This is what's stored in ButtonPreset.effects and ButtonVariant.effects
|
|
135
|
-
*/
|
|
136
|
-
export interface EffectReference {
|
|
137
|
-
/** Effect preset ID (type-safe) */
|
|
138
|
-
effectId: EffectId;
|
|
139
|
-
/** User-provided customization options */
|
|
140
|
-
options?: Record<string, unknown>;
|
|
141
|
-
}
|
|
@@ -2,8 +2,8 @@ import type { Theme } from '../schema';
|
|
|
2
2
|
import type { ButtonSystem } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Class the `button` runtime node adds when it renders its own trailing icon,
|
|
5
|
-
* so a node-level icon suppresses the
|
|
6
|
-
*
|
|
5
|
+
* so a node-level icon suppresses the theme's CSS `::after` affordance.
|
|
6
|
+
* Shared so generator and renderer can't drift.
|
|
7
7
|
*/
|
|
8
8
|
export declare const AFFORDANCE_SUPPRESS_CLASS = "rb-affordance-off";
|
|
9
9
|
export interface GenerateButtonCssOptions {
|
|
@@ -3,11 +3,11 @@ import { type ButtonSystem } from './types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Generate default button system from theme settings.
|
|
5
5
|
*
|
|
6
|
-
* Creates 4 sized variants when theme.buttons is not defined:
|
|
7
|
-
* 1. Primary - primary
|
|
8
|
-
* 2. Secondary - neutral
|
|
9
|
-
* 3. Outline -
|
|
10
|
-
* 4. Ghost -
|
|
6
|
+
* Creates 4 sized canonical variants when theme.buttons is not defined:
|
|
7
|
+
* 1. Primary - solid primary treatment
|
|
8
|
+
* 2. Secondary - solid neutral treatment
|
|
9
|
+
* 3. Outline - surface treatment with a border
|
|
10
|
+
* 4. Ghost - surface treatment without a border
|
|
11
11
|
*
|
|
12
12
|
* All four are sized variants — they inherit padding/fontSize from the theme's
|
|
13
13
|
* `sizes` config (or the system defaults) so they're consistent at any size.
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Complete button system including types, schemas, presets, and CSS variable generation.
|
|
5
5
|
*/
|
|
6
6
|
export * from './types';
|
|
7
|
+
export * from './parseThemeForPersistence';
|
|
7
8
|
export * from './classNames';
|
|
8
9
|
export * from './generateButtonCss';
|
|
9
10
|
export * from './resolveButtonColourStates';
|
|
@@ -11,8 +12,4 @@ export * from './affordanceIcons';
|
|
|
11
12
|
export * from './generateDefaultButtonSystem';
|
|
12
13
|
export * from './constants';
|
|
13
14
|
export * from './presets';
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './effects/types';
|
|
16
|
-
export * from './effects/registry';
|
|
17
|
-
export * from './effects/presets/transform';
|
|
18
|
-
export * from './core';
|
|
15
|
+
export * from './styles';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type Theme } from '../schema';
|
|
2
|
+
import type { ZodIssue } from 'zod';
|
|
3
|
+
import { type ButtonColourContractError } from './resolveButtonColourStates';
|
|
4
|
+
export type ThemeButtonColourContractError = Readonly<{
|
|
5
|
+
kind: 'invalid-button-colour-contract';
|
|
6
|
+
variantId: string;
|
|
7
|
+
cause: ButtonColourContractError;
|
|
8
|
+
}>;
|
|
9
|
+
export type ThemePersistenceValidationError = Readonly<{
|
|
10
|
+
kind: 'invalid-theme-schema';
|
|
11
|
+
issues: readonly ZodIssue[];
|
|
12
|
+
}> | ThemeButtonColourContractError;
|
|
13
|
+
declare const validatedThemeForPersistenceBrand: unique symbol;
|
|
14
|
+
/**
|
|
15
|
+
* A schema-parsed Theme whose button variants all compile against its palette.
|
|
16
|
+
*
|
|
17
|
+
* The brand is intentionally phantom: validation does not mutate themes or add
|
|
18
|
+
* persistence-only data to the JSON document.
|
|
19
|
+
*/
|
|
20
|
+
export type ValidatedThemeForPersistence = Theme & {
|
|
21
|
+
readonly [validatedThemeForPersistenceBrand]: true;
|
|
22
|
+
};
|
|
23
|
+
export type ThemeButtonColourContractResult = Readonly<{
|
|
24
|
+
ok: true;
|
|
25
|
+
value: ValidatedThemeForPersistence;
|
|
26
|
+
}> | Readonly<{
|
|
27
|
+
ok: false;
|
|
28
|
+
error: ThemePersistenceValidationError;
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* Proves that every persisted button variant compiles against the theme's
|
|
32
|
+
* concrete palette. Public rendering may still recover from malformed
|
|
33
|
+
* external/runtime input, but persistence boundaries must reject it.
|
|
34
|
+
*/
|
|
35
|
+
export declare function parseThemeForPersistence(value: unknown): ThemeButtonColourContractResult;
|
|
36
|
+
export {};
|