@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,285 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type ButtonColourTreatment, type ButtonGlobalSettings, type ButtonSystem, type ButtonVariant } from '../types';
|
|
3
|
-
import { type StyleTags } from '../../site-styles/styleTags';
|
|
4
|
-
/**
|
|
5
|
-
* Branded ID for a button personality entry in the curated library.
|
|
6
|
-
* Shape matches the `Brand<T, TBrand>` convention in `site-styles/types.ts`
|
|
7
|
-
* (kept structurally compatible until that alias is hoisted to a shared file).
|
|
8
|
-
* Use `asButtonPersonalityId` at the parse/construction boundary.
|
|
9
|
-
*/
|
|
10
|
-
export type ButtonPersonalityId<T extends string = string> = T & {
|
|
11
|
-
readonly __brand: 'ButtonPersonalityId';
|
|
12
|
-
};
|
|
13
|
-
export declare function asButtonPersonalityId<const T extends string>(value: T): ButtonPersonalityId<T>;
|
|
14
|
-
export declare const buttonPersonalityIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ButtonPersonalityId<string>, string>>;
|
|
15
|
-
/**
|
|
16
|
-
* A button personality is a complete `ButtonSystem` plus the tags that decide
|
|
17
|
-
* which curated site styles will accept it. The `name` and `description` are
|
|
18
|
-
* surfaced in the Style configurator UI.
|
|
19
|
-
*/
|
|
20
|
-
export type ButtonPersonality<TId extends ButtonPersonalityId = ButtonPersonalityId> = Readonly<{
|
|
21
|
-
id: TId;
|
|
22
|
-
name: string;
|
|
23
|
-
description: string;
|
|
24
|
-
tags: StyleTags;
|
|
25
|
-
buttonSystem: ButtonSystem;
|
|
26
|
-
}>;
|
|
27
|
-
export declare const buttonPersonalitySchema: z.ZodObject<{
|
|
28
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<ButtonPersonalityId<string>, string>>;
|
|
29
|
-
name: z.ZodString;
|
|
30
|
-
description: z.ZodString;
|
|
31
|
-
tags: z.ZodObject<{
|
|
32
|
-
tone: z.ZodOptional<z.ZodEnum<{
|
|
33
|
-
bold: "bold";
|
|
34
|
-
minimal: "minimal";
|
|
35
|
-
classic: "classic";
|
|
36
|
-
}>>;
|
|
37
|
-
energy: z.ZodOptional<z.ZodEnum<{
|
|
38
|
-
calm: "calm";
|
|
39
|
-
vibrant: "vibrant";
|
|
40
|
-
}>>;
|
|
41
|
-
motion: z.ZodOptional<z.ZodEnum<{
|
|
42
|
-
standard: "standard";
|
|
43
|
-
subtle: "subtle";
|
|
44
|
-
expressive: "expressive";
|
|
45
|
-
}>>;
|
|
46
|
-
era: z.ZodOptional<z.ZodEnum<{
|
|
47
|
-
editorial: "editorial";
|
|
48
|
-
modern: "modern";
|
|
49
|
-
organic: "organic";
|
|
50
|
-
technical: "technical";
|
|
51
|
-
retro: "retro";
|
|
52
|
-
}>>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
buttonSystem: z.ZodObject<{
|
|
55
|
-
global: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
56
|
-
cornerStyle: z.ZodEnum<{
|
|
57
|
-
square: "square";
|
|
58
|
-
rounded: "rounded";
|
|
59
|
-
pill: "pill";
|
|
60
|
-
}>;
|
|
61
|
-
cornerRadius: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
shadow: z.ZodOptional<z.ZodEnum<{
|
|
63
|
-
medium: "medium";
|
|
64
|
-
none: "none";
|
|
65
|
-
high: "high";
|
|
66
|
-
low: "low";
|
|
67
|
-
}>>;
|
|
68
|
-
textTransform: z.ZodEnum<{
|
|
69
|
-
none: "none";
|
|
70
|
-
lowercase: "lowercase";
|
|
71
|
-
uppercase: "uppercase";
|
|
72
|
-
capitalize: "capitalize";
|
|
73
|
-
}>;
|
|
74
|
-
fontWeight: z.ZodUnion<readonly [z.ZodLiteral<500>, z.ZodLiteral<600>, z.ZodLiteral<700>]>;
|
|
75
|
-
borderWidth: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
76
|
-
typography: z.ZodOptional<z.ZodEnum<{
|
|
77
|
-
heading: "heading";
|
|
78
|
-
body: "body";
|
|
79
|
-
}>>;
|
|
80
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
81
|
-
letterSpacing: z.ZodOptional<z.ZodEnum<{
|
|
82
|
-
tight: "tight";
|
|
83
|
-
normal: "normal";
|
|
84
|
-
loose: "loose";
|
|
85
|
-
}>>;
|
|
86
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
-
paddingPreset: z.ZodOptional<z.ZodEnum<{
|
|
88
|
-
default: "default";
|
|
89
|
-
compact: "compact";
|
|
90
|
-
spacious: "spacious";
|
|
91
|
-
}>>;
|
|
92
|
-
hoverTransform: z.ZodEnum<{
|
|
93
|
-
none: "none";
|
|
94
|
-
scale: "scale";
|
|
95
|
-
lift: "lift";
|
|
96
|
-
press: "press";
|
|
97
|
-
}>;
|
|
98
|
-
hoverColor: z.ZodEnum<{
|
|
99
|
-
none: "none";
|
|
100
|
-
token: "token";
|
|
101
|
-
brighten: "brighten";
|
|
102
|
-
darken: "darken";
|
|
103
|
-
saturate: "saturate";
|
|
104
|
-
}>;
|
|
105
|
-
hoverColorToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("..").OpaqueButtonColourToken, string>>>;
|
|
106
|
-
gradientStyle: z.ZodOptional<z.ZodEnum<{
|
|
107
|
-
linear: "linear";
|
|
108
|
-
radial: "radial";
|
|
109
|
-
conic: "conic";
|
|
110
|
-
}>>;
|
|
111
|
-
gradientAngle: z.ZodOptional<z.ZodNumber>;
|
|
112
|
-
gradientSharpness: z.ZodOptional<z.ZodEnum<{
|
|
113
|
-
medium: "medium";
|
|
114
|
-
hard: "hard";
|
|
115
|
-
smooth: "smooth";
|
|
116
|
-
}>>;
|
|
117
|
-
}, z.core.$strip>>;
|
|
118
|
-
variants: z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
119
|
-
id: z.ZodString;
|
|
120
|
-
name: z.ZodString;
|
|
121
|
-
enabled: z.ZodBoolean;
|
|
122
|
-
priority: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
123
|
-
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
124
|
-
type: z.ZodLiteral<"solid">;
|
|
125
|
-
colorToken: z.ZodPipe<z.ZodString, z.ZodTransform<import("..").OpaqueButtonColourToken, string>>;
|
|
126
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
127
|
-
type: z.ZodLiteral<"gradient">;
|
|
128
|
-
stops: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("..").OpaqueButtonColourToken, string>>>, z.ZodTransform<[import("..").OpaqueButtonColourToken, import("..").OpaqueButtonColourToken, ...import("..").OpaqueButtonColourToken[]], import("..").OpaqueButtonColourToken[]>>;
|
|
129
|
-
direction: z.ZodEnum<{
|
|
130
|
-
"to-r": "to-r";
|
|
131
|
-
"to-l": "to-l";
|
|
132
|
-
"to-t": "to-t";
|
|
133
|
-
"to-b": "to-b";
|
|
134
|
-
"to-tr": "to-tr";
|
|
135
|
-
"to-tl": "to-tl";
|
|
136
|
-
"to-br": "to-br";
|
|
137
|
-
"to-bl": "to-bl";
|
|
138
|
-
}>;
|
|
139
|
-
foregroundToken: z.ZodPipe<z.ZodString, z.ZodTransform<import("..").OpaqueButtonColourToken, string>>;
|
|
140
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
-
type: z.ZodLiteral<"surface">;
|
|
142
|
-
role: z.ZodLiteral<"link">;
|
|
143
|
-
}, z.core.$strip>], "type">;
|
|
144
|
-
borderRadius: z.ZodOptional<z.ZodString>;
|
|
145
|
-
shadow: z.ZodOptional<z.ZodObject<{
|
|
146
|
-
elevation: z.ZodEnum<{
|
|
147
|
-
medium: "medium";
|
|
148
|
-
none: "none";
|
|
149
|
-
high: "high";
|
|
150
|
-
low: "low";
|
|
151
|
-
}>;
|
|
152
|
-
softness: z.ZodNullable<z.ZodEnum<{
|
|
153
|
-
crisp: "crisp";
|
|
154
|
-
soft: "soft";
|
|
155
|
-
hard: "hard";
|
|
156
|
-
}>>;
|
|
157
|
-
position: z.ZodDefault<z.ZodEnum<{
|
|
158
|
-
bottom: "bottom";
|
|
159
|
-
"bottom-right": "bottom-right";
|
|
160
|
-
}>>;
|
|
161
|
-
colorToken: z.ZodOptional<z.ZodString>;
|
|
162
|
-
}, z.core.$strip>>;
|
|
163
|
-
border: z.ZodOptional<z.ZodObject<{
|
|
164
|
-
widthClass: z.ZodString;
|
|
165
|
-
}, z.core.$strip>>;
|
|
166
|
-
hoverBackgroundToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("..").OpaqueButtonColourToken, string>>>;
|
|
167
|
-
effects: z.ZodOptional<z.ZodObject<{
|
|
168
|
-
base: z.ZodOptional<z.ZodArray<z.ZodType<import("../../../../blocks/src/index").EffectApplication, unknown, z.core.$ZodTypeInternals<import("../../../../blocks/src/index").EffectApplication, unknown>>>>;
|
|
169
|
-
hover: z.ZodOptional<z.ZodArray<z.ZodType<import("../../../../blocks/src/index").EffectApplication, unknown, z.core.$ZodTypeInternals<import("../../../../blocks/src/index").EffectApplication, unknown>>>>;
|
|
170
|
-
active: z.ZodOptional<z.ZodArray<z.ZodType<import("../../../../blocks/src/index").EffectApplication, unknown, z.core.$ZodTypeInternals<import("../../../../blocks/src/index").EffectApplication, unknown>>>>;
|
|
171
|
-
focus: z.ZodOptional<z.ZodArray<z.ZodType<import("../../../../blocks/src/index").EffectApplication, unknown, z.core.$ZodTypeInternals<import("../../../../blocks/src/index").EffectApplication, unknown>>>>;
|
|
172
|
-
}, z.core.$strip>>;
|
|
173
|
-
sizes: z.ZodOptional<z.ZodObject<{
|
|
174
|
-
sm: z.ZodOptional<z.ZodObject<{
|
|
175
|
-
padding: z.ZodString;
|
|
176
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
177
|
-
}, z.core.$strip>>;
|
|
178
|
-
md: z.ZodOptional<z.ZodObject<{
|
|
179
|
-
padding: z.ZodString;
|
|
180
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
181
|
-
}, z.core.$strip>>;
|
|
182
|
-
lg: z.ZodOptional<z.ZodObject<{
|
|
183
|
-
padding: z.ZodString;
|
|
184
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
185
|
-
}, z.core.$strip>>;
|
|
186
|
-
xl: z.ZodOptional<z.ZodObject<{
|
|
187
|
-
padding: z.ZodString;
|
|
188
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
189
|
-
}, z.core.$strip>>;
|
|
190
|
-
}, z.core.$strip>>;
|
|
191
|
-
affordance: z.ZodOptional<z.ZodObject<{
|
|
192
|
-
iconId: z.ZodString;
|
|
193
|
-
}, z.core.$strip>>;
|
|
194
|
-
}, z.core.$strip>>>;
|
|
195
|
-
sizes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
196
|
-
sm: z.ZodObject<{
|
|
197
|
-
padding: z.ZodString;
|
|
198
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
199
|
-
}, z.core.$strip>;
|
|
200
|
-
md: z.ZodObject<{
|
|
201
|
-
padding: z.ZodString;
|
|
202
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
203
|
-
}, z.core.$strip>;
|
|
204
|
-
lg: z.ZodObject<{
|
|
205
|
-
padding: z.ZodString;
|
|
206
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
207
|
-
}, z.core.$strip>;
|
|
208
|
-
xl: z.ZodOptional<z.ZodObject<{
|
|
209
|
-
padding: z.ZodString;
|
|
210
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
211
|
-
}, z.core.$strip>>;
|
|
212
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
213
|
-
sm: {
|
|
214
|
-
padding: string;
|
|
215
|
-
fontSize?: string | undefined;
|
|
216
|
-
};
|
|
217
|
-
md: {
|
|
218
|
-
padding: string;
|
|
219
|
-
fontSize?: string | undefined;
|
|
220
|
-
};
|
|
221
|
-
lg: {
|
|
222
|
-
padding: string;
|
|
223
|
-
fontSize?: string | undefined;
|
|
224
|
-
};
|
|
225
|
-
xl: {
|
|
226
|
-
padding: string;
|
|
227
|
-
fontSize?: string | undefined;
|
|
228
|
-
};
|
|
229
|
-
}, {
|
|
230
|
-
sm: {
|
|
231
|
-
padding: string;
|
|
232
|
-
fontSize?: string | undefined;
|
|
233
|
-
};
|
|
234
|
-
md: {
|
|
235
|
-
padding: string;
|
|
236
|
-
fontSize?: string | undefined;
|
|
237
|
-
};
|
|
238
|
-
lg: {
|
|
239
|
-
padding: string;
|
|
240
|
-
fontSize?: string | undefined;
|
|
241
|
-
};
|
|
242
|
-
xl?: {
|
|
243
|
-
padding: string;
|
|
244
|
-
fontSize?: string | undefined;
|
|
245
|
-
} | undefined;
|
|
246
|
-
}>>>;
|
|
247
|
-
}, z.core.$strip>;
|
|
248
|
-
}, z.core.$strip>;
|
|
249
|
-
/**
|
|
250
|
-
* Helper for personality file modules to keep the call site short and
|
|
251
|
-
* type-safe. `as const satisfies ...` would also work but produces wider
|
|
252
|
-
* types at use sites.
|
|
253
|
-
*/
|
|
254
|
-
export declare function defineButtonPersonality<const TId extends string>(input: {
|
|
255
|
-
id: TId;
|
|
256
|
-
name: string;
|
|
257
|
-
description: string;
|
|
258
|
-
tags: StyleTags;
|
|
259
|
-
buttonSystem: ButtonSystemAuthoringInput;
|
|
260
|
-
}): ButtonPersonality<ButtonPersonalityId<TId>>;
|
|
261
|
-
type ButtonColourTreatmentAuthoringInput = Readonly<{
|
|
262
|
-
type: 'solid';
|
|
263
|
-
colorToken: string;
|
|
264
|
-
}> | Readonly<{
|
|
265
|
-
type: 'gradient';
|
|
266
|
-
stops: readonly [string, string, ...string[]];
|
|
267
|
-
direction: Extract<ButtonColourTreatment, {
|
|
268
|
-
type: 'gradient';
|
|
269
|
-
}>['direction'];
|
|
270
|
-
foregroundToken: string;
|
|
271
|
-
}> | Extract<ButtonColourTreatment, {
|
|
272
|
-
type: 'surface';
|
|
273
|
-
}>;
|
|
274
|
-
type ButtonVariantAuthoringInput = Omit<ButtonVariant, 'background' | 'hoverBackgroundToken'> & Readonly<{
|
|
275
|
-
background: ButtonColourTreatmentAuthoringInput;
|
|
276
|
-
hoverBackgroundToken?: string;
|
|
277
|
-
}>;
|
|
278
|
-
type ButtonGlobalSettingsAuthoringInput = Omit<ButtonGlobalSettings, 'hoverColorToken'> & Readonly<{
|
|
279
|
-
hoverColorToken?: string;
|
|
280
|
-
}>;
|
|
281
|
-
type ButtonSystemAuthoringInput = Omit<ButtonSystem, 'global' | 'variants'> & Readonly<{
|
|
282
|
-
global: ButtonGlobalSettingsAuthoringInput;
|
|
283
|
-
variants: readonly ButtonVariantAuthoringInput[];
|
|
284
|
-
}>;
|
|
285
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react';
|
|
2
|
-
import type { HydratedTheme } from '../schema';
|
|
3
|
-
export type ButtonSlot = 'primary' | 'secondary' | 'ghost' | 'link' | 'ctaGradient' | 'accent';
|
|
4
|
-
export type ButtonEmphasis = 'solid' | 'outline' | 'ghost' | 'link';
|
|
5
|
-
export type ButtonFill = 'flat' | 'gradient' | 'duotone';
|
|
6
|
-
export type ButtonSpec = {
|
|
7
|
-
id: string;
|
|
8
|
-
slot: ButtonSlot;
|
|
9
|
-
emphasis: ButtonEmphasis;
|
|
10
|
-
role: string;
|
|
11
|
-
fill: ButtonFill;
|
|
12
|
-
weight: number;
|
|
13
|
-
constraints?: {
|
|
14
|
-
minContrast?: number;
|
|
15
|
-
allowGradient?: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export type ButtonResolved = {
|
|
19
|
-
className: string;
|
|
20
|
-
style?: CSSProperties;
|
|
21
|
-
};
|
|
22
|
-
export declare function resolveButton(spec: ButtonSpec, theme: HydratedTheme, options?: {
|
|
23
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
24
|
-
}): ButtonResolved;
|
|
25
|
-
export declare function suggestButtons(theme: HydratedTheme, library: ButtonSpec[], max?: number): ButtonSpec[];
|
|
26
|
-
export declare function getButtonCornersClass(theme: HydratedTheme): string;
|
|
27
|
-
export declare function getButtonSizeClass(size: 'sm' | 'md' | 'lg' | 'xl'): string;
|