@riverbankcms/sdk 0.107.0 → 0.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -1
- package/dist/{PreviewEditorSidebar-DpAbAl08.mjs → PreviewEditorSidebar-DWqwfy3_.mjs} +48 -28
- package/dist/{PreviewEditorUI-O7cn6Xxv.mjs → PreviewEditorUI-B7OL4sfR.mjs} +10 -9
- package/dist/{PreviewQueryProvider-D0tnKl0t.mjs → PreviewQueryProvider-D0y2l8JN.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CVB7urtl.mjs → SdkPreviewModeRuntime-D8Gt9Gbe.mjs} +633 -220
- package/dist/{SiteChromeCustomizeContext-C_sizso-.mjs → SiteChromeCustomizeContext-DUpalEdL.mjs} +5764 -1556
- package/dist/_dts/ai/src/contracts/proposals.d.ts +15383 -11388
- package/dist/_dts/api/src/blocks.d.ts +41 -7
- package/dist/_dts/api/src/bookingAdjustments.d.ts +5 -0
- package/dist/_dts/api/src/bookingOperations.d.ts +4 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +177 -127
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +6 -6
- package/dist/_dts/api/src/cache-tags.d.ts +3 -0
- package/dist/_dts/api/src/common/envelope.d.ts +7 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +19 -1
- package/dist/_dts/api/src/courses.d.ts +1 -0
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/endpoints.d.ts +134 -0
- package/dist/_dts/api/src/footer-settings.d.ts +1 -0
- package/dist/_dts/api/src/footerSettings.d.ts +8 -0
- package/dist/_dts/api/src/index.d.ts +7 -4
- package/dist/_dts/api/src/navigation/contracts.d.ts +3 -3
- package/dist/_dts/api/src/participantMessaging.d.ts +18 -12
- package/dist/_dts/api/src/previewContentContract.d.ts +4 -0
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +309 -1
- package/dist/_dts/api/src/siteBanner.d.ts +2 -2
- package/dist/_dts/api/src/siteInfrastructure.d.ts +13 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +144 -60
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +35 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +74 -28
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientField.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +3 -4
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -4
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/layout/Section.d.ts +0 -1
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/audio-player.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +1 -22
- package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +1 -22
- package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +50 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +9 -48
- package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +3 -0
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +16 -6
- package/dist/_dts/blocks/src/system/defineBlock.d.ts +9 -1
- package/dist/_dts/blocks/src/system/fields/ctas.d.ts +8 -0
- package/dist/_dts/blocks/src/system/icons/registry.d.ts +2 -1
- package/dist/_dts/blocks/src/system/icons/social.d.ts +5 -0
- package/dist/_dts/blocks/src/system/icons/svg.d.ts +1 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +33 -2
- package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +13 -0
- package/dist/_dts/blocks/src/system/node/fragments/footerNav.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/fragments/styledContainer.d.ts +4 -4
- package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +3 -12
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +2 -2
- package/dist/_dts/blocks/src/system/types/link.d.ts +3 -3
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +27 -8
- package/dist/_dts/content-editor/src/footerComposer.d.ts +56 -0
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +5 -5
- package/dist/_dts/content-editor/src/index.d.ts +2 -0
- package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +3 -1
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +20 -36
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +5 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +11 -0
- package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +31 -0
- package/dist/_dts/content-model/src/content-types/scaffold.d.ts +58 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/sentinels.d.ts +36 -0
- package/dist/_dts/content-model/src/definitions/shared.d.ts +3 -0
- package/dist/_dts/content-model/src/index.d.ts +3 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +8 -0
- package/dist/_dts/core/src/branded.d.ts +3 -0
- package/dist/_dts/core/src/editor-state.d.ts +4 -0
- package/dist/_dts/core/src/footer-composition.d.ts +143 -0
- package/dist/_dts/core/src/index.d.ts +2 -0
- package/dist/_dts/core/src/public-profile.d.ts +73 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +221 -205
- package/dist/_dts/db/src/schemas/forms.d.ts +10 -10
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +5 -0
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockReorder.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
- package/dist/_dts/media-core/src/fileMimeDetection.d.ts +16 -0
- package/dist/_dts/media-core/src/fileStorage.d.ts +8 -0
- package/dist/_dts/media-core/src/storagePathDomain.d.ts +2 -0
- package/dist/_dts/media-core/src/uploadVerificationContract.d.ts +3 -0
- package/dist/_dts/path-utils/src/index.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewErrorMessages.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/audit.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/compare.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +18 -0
- package/dist/_dts/sdk/src/cli/commands/entry.d.ts +15 -0
- package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +3 -0
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +12 -1
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/commands/verify.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/helpers.d.ts +22 -1
- package/dist/_dts/sdk/src/cli/index.d.ts +4 -0
- package/dist/_dts/sdk/src/cli/output.d.ts +88 -0
- package/dist/_dts/sdk/src/cli/program.d.ts +29 -0
- package/dist/_dts/sdk/src/cli/push-config.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/blocks.d.ts +14 -1
- package/dist/_dts/sdk/src/client/management/catalog.d.ts +10 -0
- package/dist/_dts/sdk/src/client/management/http.d.ts +7 -1
- package/dist/_dts/sdk/src/client/management/index.d.ts +2 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +58 -20
- package/dist/_dts/sdk/src/config/content-types.d.ts +2 -0
- package/dist/_dts/sdk/src/config/content-validation.d.ts +4 -0
- package/dist/_dts/sdk/src/date-time/index.d.ts +68 -0
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -2
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +900 -827
- package/dist/_dts/theme-core/src/accordions/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/core.d.ts +15 -46
- package/dist/_dts/theme-core/src/buttons/effectClassification.d.ts +147 -0
- package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +2 -3
- package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +11 -0
- package/dist/_dts/theme-core/src/buttons/personalities/two-tone-pill.d.ts +17 -0
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +45 -33
- package/dist/_dts/theme-core/src/buttons/presets.d.ts +4 -25
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +100 -0
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +16 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +104 -86
- package/dist/_dts/theme-core/src/cards/types.d.ts +16 -16
- package/dist/_dts/theme-core/src/footer/mode.d.ts +15 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/gradients/presets.d.ts +200 -8
- package/dist/_dts/theme-core/src/gradients/utils.d.ts +6 -2
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +117 -150
- package/dist/_dts/theme-core/src/mock-themes/modern-minimal.d.ts +1 -1
- package/dist/_dts/theme-core/src/navigation/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -2
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +5 -8
- package/dist/_dts/theme-core/src/palette/index.d.ts +0 -1
- package/dist/_dts/theme-core/src/schema.d.ts +1264 -138
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +10 -10
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +12 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +13 -6
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +29 -8
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +2 -2
- package/dist/cli/index.mjs +68552 -66955
- package/dist/cli/init-docs/content/cli-reference.md +50 -7
- package/dist/cli/init-docs/content/content-management.md +7 -4
- package/dist/cli/init-docs/content/workflow-publish.md +5 -1
- package/dist/client/{DiscountCodeDisclosure-BwGkvmVH.mjs → DiscountCodeDisclosure-DU1ygxU2.mjs} +1 -1
- package/dist/client/{EventCombined.client-JnWE6Hzc.mjs → EventCombined.client-DB5zagCo.mjs} +3 -3
- package/dist/client/{EventListing.client-DQewc_kg.mjs → EventListing.client-CTX9JHBL.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DPAU3SFt.mjs → LeafletStaticMap-BYImhgiB.mjs} +1 -1
- package/dist/client/{MagicLinkForm-D4kpWCbW.mjs → MagicLinkForm-CRkw_M3l.mjs} +2 -2
- package/dist/client/{StepIndicator-CBlkb4rA.mjs → StepIndicator-BnmVBJJh.mjs} +2 -2
- package/dist/client/{accordion-DAIBVpTS.mjs → accordion-CeGreumd.mjs} +1 -1
- package/dist/client/{bookingForm-DZ-4l5_1.mjs → bookingForm-CSzFNrpN.mjs} +6 -6
- package/dist/client/bookings.mjs +637 -328
- package/dist/client/{buttons-DJgynGHQ.mjs → buttons-DoFV7KDL.mjs} +618 -306
- package/dist/client/{carousel-D-SLfX8r.mjs → carousel-B2jDtogf.mjs} +1 -1
- package/dist/client/{cart-CEgbgJhX.mjs → cart-D-jZ-vaY.mjs} +3 -3
- package/dist/client/{checkout-CXWrCRAA.mjs → checkout-Dza-LA7N.mjs} +3 -3
- package/dist/client/client.mjs +2497 -1216
- package/dist/client/{colorStyles-jZS6KfkP.mjs → colorStyles-CrgzoXsm.mjs} +1 -30
- package/dist/client/{courseRegistration-DVmLrRVz.mjs → courseRegistration-TYkNychb.mjs} +7 -7
- package/dist/client/{eventCalendar-DCuyPY_c.mjs → eventCalendar-BI_90SsT.mjs} +5 -5
- package/dist/client/{eventCombined-kP2CA2D4.mjs → eventCombined-mNrpryE9.mjs} +2 -2
- package/dist/client/{eventDetails-DU0LeF5e.mjs → eventDetails-D4GVlCIY.mjs} +3 -3
- package/dist/client/{eventListing-CcHF87BI.mjs → eventListing-YhKN018y.mjs} +2 -2
- package/dist/client/{eventRegistration-DJnR0yFH.mjs → eventRegistration-CdHGtilr.mjs} +7 -7
- package/dist/client/foregroundContract-xICPq59x.mjs +31 -0
- package/dist/client/{form-CH1lCusH.mjs → form-AcAL45rA.mjs} +2 -2
- package/dist/client/{headerSection-CBPFZoku.mjs → headerSection-uEC52ueD.mjs} +3 -3
- package/dist/client/hooks.mjs +1249 -841
- package/dist/client/{locationMap-Cx1hBg5n.mjs → locationMap-_wJDSUYe.mjs} +3 -3
- package/dist/client/{media-DHtSxS5V.mjs → media-BK0O3b-U.mjs} +3 -2
- package/dist/client/{newsletterForm-1ZL_ti9u.mjs → newsletterForm-DrArsb2B.mjs} +2 -2
- package/dist/client/{pricing-BIbzmV0G.mjs → pricing-BSYVghwo.mjs} +1 -1
- package/dist/client/{productDetail-BTh5gHBV.mjs → productDetail-Dyk90sMs.mjs} +3 -3
- package/dist/client/{productList-Cc7OMrqN.mjs → productList-BCKThwAI.mjs} +3 -3
- package/dist/client/{propsDecoder-oR-M-ISN.mjs → propsDecoder-CkXxkdSR.mjs} +96 -33
- package/dist/client/rendering/client.mjs +1278 -523
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2308 -1028
- package/dist/client/{shop-CQ_YbCnn.mjs → shop-DeltVH10.mjs} +6 -6
- package/dist/client/{shop-commerce-BM-AoD3M.mjs → shop-commerce-BD9Jsm2Z.mjs} +6 -6
- package/dist/client/{shop-commerce-store-DFMQhU5p.mjs → shop-commerce-store-CmXD6FDS.mjs} +1 -1
- package/dist/client/{shopShared-D0SKO2Cu.mjs → shopShared-B8v-lH_F.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CrG4_ARt.mjs → useDiscountCodeUi-DbWJN8ld.mjs} +1 -1
- package/dist/client/{useEventFilters-CxK8Fekl.mjs → useEventFilters-EJIMUnqT.mjs} +46 -69
- package/dist/client/{usePolling-jcVryNgZ.mjs → usePolling-Cmh14fc7.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +213 -0
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +213 -0
- package/dist/{previewAuthStore-BPcJPzdz.mjs → previewAuthStore-CTO7CRPk.mjs} +213 -0
- package/dist/{sdk-runtime-C39Rsk-x.mjs → sdk-runtime-Dou0GAav.mjs} +2 -2
- package/dist/{separator-BoMSQnsP.mjs → separator-CI5wZNXT.mjs} +1 -1
- package/dist/server/components.mjs +2370 -1132
- package/dist/server/config-validation.mjs +1256 -842
- package/dist/server/config.mjs +1256 -843
- package/dist/server/data.mjs +1249 -841
- package/dist/server/date-time.mjs +386 -0
- package/dist/server/index.mjs +214 -1
- package/dist/server/navigation.mjs +9 -3
- package/dist/server/next.mjs +3421 -1949
- package/dist/server/page-converter.mjs +1236 -659
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2074 -1060
- package/dist/server/rendering.mjs +2370 -1132
- package/dist/server/routing.mjs +1543 -1062
- package/dist/server/server.mjs +1464 -843
- package/dist/server/theme-bridge.mjs +1581 -474
- package/dist/server/theme.mjs +614 -305
- package/dist/styles/index.css +12 -1
- package/package.json +7 -1
- package/dist/_dts/theme-core/src/buttons/presets/types.d.ts +0 -88
- package/dist/_dts/theme-core/src/buttons/utils/contrast.d.ts +0 -38
- package/dist/_dts/theme-core/src/palette/themePaletteCompatibility.d.ts +0 -57
package/dist/styles/index.css
CHANGED
|
@@ -948,6 +948,12 @@
|
|
|
948
948
|
.rb-lg-hidden {
|
|
949
949
|
display: none;
|
|
950
950
|
}
|
|
951
|
+
.rb-lg-flex-row {
|
|
952
|
+
flex-direction: row;
|
|
953
|
+
}
|
|
954
|
+
.rb-lg-items-center {
|
|
955
|
+
align-items: center;
|
|
956
|
+
}
|
|
951
957
|
}
|
|
952
958
|
}
|
|
953
959
|
|
|
@@ -7410,6 +7416,11 @@
|
|
|
7410
7416
|
flex-wrap: wrap;
|
|
7411
7417
|
}
|
|
7412
7418
|
|
|
7419
|
+
/* Text-style CTA actions belong to the section foreground contract. */
|
|
7420
|
+
:where(.theme-scope) [data-block="cta-full"] .cta-row .button-link {
|
|
7421
|
+
color: var(--rb-surface-link-color, var(--rb-surface-text-color, rgb(var(--tb-primary))));
|
|
7422
|
+
}
|
|
7423
|
+
|
|
7413
7424
|
|
|
7414
7425
|
|
|
7415
7426
|
/* =============================================================================
|
|
@@ -12324,7 +12335,7 @@
|
|
|
12324
12335
|
[data-block="feature-cards"][data-block-composition="asymmetric-emphasis"]
|
|
12325
12336
|
.rb-feature-card {
|
|
12326
12337
|
height: auto;
|
|
12327
|
-
overflow:
|
|
12338
|
+
overflow: visible;
|
|
12328
12339
|
border: 0;
|
|
12329
12340
|
border-radius: 0;
|
|
12330
12341
|
background: transparent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riverbankcms/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.109.0",
|
|
4
4
|
"description": "Riverbank CMS SDK for headless content consumption",
|
|
5
5
|
"main": "./dist/server/index.mjs",
|
|
6
6
|
"module": "./dist/server/index.mjs",
|
|
@@ -70,6 +70,12 @@
|
|
|
70
70
|
"react-server": "./dist/server/data.mjs",
|
|
71
71
|
"import": "./dist/server/data.mjs"
|
|
72
72
|
},
|
|
73
|
+
"./date-time": {
|
|
74
|
+
"types": "./dist/_dts/sdk/src/date-time/index.d.ts",
|
|
75
|
+
"browser": "./dist/server/date-time.mjs",
|
|
76
|
+
"react-server": "./dist/server/date-time.mjs",
|
|
77
|
+
"import": "./dist/server/date-time.mjs"
|
|
78
|
+
},
|
|
73
79
|
"./metadata": {
|
|
74
80
|
"types": "./dist/_dts/sdk/src/metadata/index.d.ts",
|
|
75
81
|
"react-server": "./dist/server/metadata.mjs",
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import type { EffectReference } from '../effects/types';
|
|
2
|
-
/**
|
|
3
|
-
* Button background treatment types
|
|
4
|
-
*/
|
|
5
|
-
export type ButtonBackground = {
|
|
6
|
-
type: 'solid';
|
|
7
|
-
colorToken: string;
|
|
8
|
-
} | {
|
|
9
|
-
type: 'gradient';
|
|
10
|
-
stops: string[];
|
|
11
|
-
direction: GradientDirection;
|
|
12
|
-
} | {
|
|
13
|
-
type: 'transparent';
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Gradient direction
|
|
17
|
-
*/
|
|
18
|
-
export type GradientDirection = 'to-r' | 'to-l' | 'to-t' | 'to-b' | 'to-br' | 'to-bl' | 'to-tr' | 'to-tl';
|
|
19
|
-
/**
|
|
20
|
-
* Border radius options (Tailwind classes)
|
|
21
|
-
*/
|
|
22
|
-
export type BorderRadius = 'rounded-none' | 'rounded-sm' | 'rounded' | 'rounded-md' | 'rounded-lg' | 'rounded-xl' | 'rounded-2xl' | 'rounded-3xl' | 'rounded-full';
|
|
23
|
-
/**
|
|
24
|
-
* Shadow options (Tailwind classes)
|
|
25
|
-
*/
|
|
26
|
-
export type Shadow = 'shadow-none' | 'shadow-sm' | 'shadow' | 'shadow-md' | 'shadow-lg' | 'shadow-xl' | 'shadow-2xl';
|
|
27
|
-
/**
|
|
28
|
-
* Border width options (Tailwind classes)
|
|
29
|
-
*/
|
|
30
|
-
export type BorderWidth = 'border' | 'border-2' | 'border-[3px]';
|
|
31
|
-
/**
|
|
32
|
-
* Button border configuration
|
|
33
|
-
*/
|
|
34
|
-
export interface ButtonBorder {
|
|
35
|
-
widthClass: BorderWidth;
|
|
36
|
-
colorToken: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Button preset - high-level button configuration
|
|
40
|
-
*
|
|
41
|
-
* A button preset defines the complete appearance of a button:
|
|
42
|
-
* - Background treatment (solid/gradient using tokens)
|
|
43
|
-
* - Text color, shape, shadow
|
|
44
|
-
* - Composable effects for different states
|
|
45
|
-
*
|
|
46
|
-
* All colors use theme tokens so changing the palette updates all buttons.
|
|
47
|
-
*/
|
|
48
|
-
export interface ButtonPreset {
|
|
49
|
-
/** Unique identifier */
|
|
50
|
-
id: string;
|
|
51
|
-
/** Display name */
|
|
52
|
-
name: string;
|
|
53
|
-
/** Background treatment (uses theme tokens) */
|
|
54
|
-
background: ButtonBackground;
|
|
55
|
-
/** Text color token (e.g., 'white', 'text-900', 'primary-100') */
|
|
56
|
-
textColorToken: string;
|
|
57
|
-
/** Border radius (Tailwind class) */
|
|
58
|
-
borderRadius: BorderRadius;
|
|
59
|
-
/** Shadow (Tailwind class) */
|
|
60
|
-
shadow: Shadow;
|
|
61
|
-
/** Optional border */
|
|
62
|
-
border?: ButtonBorder;
|
|
63
|
-
/** Optional padding override (CSS shorthand, defaults to "0.5rem 1rem") */
|
|
64
|
-
padding?: string;
|
|
65
|
-
/** Optional font size override (Tailwind text size class like "text-sm", "text-base", "text-lg") */
|
|
66
|
-
fontSize?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Composable effects for different states
|
|
69
|
-
*
|
|
70
|
-
* - base: Always applied (for persistent effects like cosmic glow)
|
|
71
|
-
* - hover: Applied on :hover
|
|
72
|
-
* - active: Applied on :active
|
|
73
|
-
* - focus: Applied on :focus
|
|
74
|
-
*/
|
|
75
|
-
effects: {
|
|
76
|
-
base?: EffectReference[];
|
|
77
|
-
hover?: EffectReference[];
|
|
78
|
-
active?: EffectReference[];
|
|
79
|
-
focus?: EffectReference[];
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Fields that users cannot change
|
|
83
|
-
*
|
|
84
|
-
* These are locked by the preset author to maintain design integrity.
|
|
85
|
-
* Examples: ['background', 'borderRadius', 'effects.base[0].preset']
|
|
86
|
-
*/
|
|
87
|
-
lockedFields?: string[];
|
|
88
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { Theme } from '../../schema';
|
|
2
|
-
/**
|
|
3
|
-
* Calculate contrast ratio between two colors
|
|
4
|
-
* https://www.w3.org/TR/WCAG20/#contrast-ratiodef
|
|
5
|
-
*
|
|
6
|
-
* Returns a ratio from 1:1 (no contrast) to 21:1 (maximum contrast)
|
|
7
|
-
* WCAG AA requires 4.5:1 for normal text, 3:1 for large text
|
|
8
|
-
*/
|
|
9
|
-
export declare function getContrastRatio(hex1: string, hex2: string): number;
|
|
10
|
-
/**
|
|
11
|
-
* Check if contrast ratio meets WCAG AA standard (4.5:1)
|
|
12
|
-
*/
|
|
13
|
-
export declare function hasGoodContrast(hex1: string, hex2: string): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Select appropriate text color based on background color and theme mode
|
|
16
|
-
*
|
|
17
|
-
* Logic:
|
|
18
|
-
* - Light theme: Try white → text color → black
|
|
19
|
-
* - Dark theme: Try background → text color → white
|
|
20
|
-
*
|
|
21
|
-
* Returns the color token name that has sufficient contrast
|
|
22
|
-
*/
|
|
23
|
-
export declare function selectTextColorToken(backgroundHex: string, theme: Theme, isLightTheme: boolean): string;
|
|
24
|
-
/**
|
|
25
|
-
* Get contrasting text color for a button background
|
|
26
|
-
*
|
|
27
|
-
* This function returns theme-aware text colors using the neutral scale,
|
|
28
|
-
* which is guaranteed to exist in every theme and harmonizes with the design.
|
|
29
|
-
*
|
|
30
|
-
* Uses neutral-50 (lightest) for dark backgrounds and neutral-950 (darkest)
|
|
31
|
-
* for light backgrounds. This ensures excellent contrast while respecting
|
|
32
|
-
* the theme's neutral palette (warm/cool tinting).
|
|
33
|
-
*
|
|
34
|
-
* For solid backgrounds with primary/secondary/neutral colors:
|
|
35
|
-
* - Dark backgrounds (shade >= 500): neutral-50 (very light)
|
|
36
|
-
* - Light backgrounds (shade < 500): neutral-950 (very dark)
|
|
37
|
-
*/
|
|
38
|
-
export declare function getContrastingTextColorToken(backgroundToken: string, theme: Theme): string;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { type PaletteTokenName } from '../tokens/themeColorTokens';
|
|
2
|
-
import { type PaletteColors, type PaletteMode } from './colors';
|
|
3
|
-
import type { PaletteOverrides } from './curated';
|
|
4
|
-
/**
|
|
5
|
-
* The persisted Theme palette boundary. It deliberately stays narrower than
|
|
6
|
-
* the full Theme schema so consumers do not need to depend on another package
|
|
7
|
-
* just to interpret current sparse palette entries.
|
|
8
|
-
*/
|
|
9
|
-
export type ThemePaletteCompatibilityInput = Readonly<{
|
|
10
|
-
palette?: Readonly<{
|
|
11
|
-
colors: readonly Readonly<{
|
|
12
|
-
name: string;
|
|
13
|
-
hex: string;
|
|
14
|
-
}>[];
|
|
15
|
-
meta?: Readonly<{
|
|
16
|
-
mode?: unknown;
|
|
17
|
-
}> | null;
|
|
18
|
-
}> | null;
|
|
19
|
-
}>;
|
|
20
|
-
export type ThemePaletteCompatibilityError = Readonly<{
|
|
21
|
-
kind: 'missing-palette';
|
|
22
|
-
}> | Readonly<{
|
|
23
|
-
kind: 'invalid-mode';
|
|
24
|
-
}> | Readonly<{
|
|
25
|
-
kind: 'unknown-role';
|
|
26
|
-
role: string;
|
|
27
|
-
}> | Readonly<{
|
|
28
|
-
kind: 'duplicate-role';
|
|
29
|
-
role: PaletteTokenName;
|
|
30
|
-
}> | Readonly<{
|
|
31
|
-
kind: 'invalid-color';
|
|
32
|
-
role: PaletteTokenName;
|
|
33
|
-
value: string;
|
|
34
|
-
}> | Readonly<{
|
|
35
|
-
kind: 'invalid-complete-palette';
|
|
36
|
-
}>;
|
|
37
|
-
export type CompatibleThemePalette = Readonly<{
|
|
38
|
-
kind: 'complete';
|
|
39
|
-
colors: PaletteColors;
|
|
40
|
-
mode: PaletteMode;
|
|
41
|
-
}> | Readonly<{
|
|
42
|
-
kind: 'partial';
|
|
43
|
-
overrides: PaletteOverrides;
|
|
44
|
-
mode: PaletteMode;
|
|
45
|
-
}>;
|
|
46
|
-
export type ParseCompatibleThemePaletteResult = Readonly<{
|
|
47
|
-
ok: true;
|
|
48
|
-
palette: CompatibleThemePalette;
|
|
49
|
-
}> | Readonly<{
|
|
50
|
-
ok: false;
|
|
51
|
-
error: ThemePaletteCompatibilityError;
|
|
52
|
-
}>;
|
|
53
|
-
/**
|
|
54
|
-
* Parses current complete Theme palettes and sparse editor payloads. Historical
|
|
55
|
-
* migration-only completion lives in historicalThemePalette.ts.
|
|
56
|
-
*/
|
|
57
|
-
export declare function parseCompatibleThemePalette(theme: ThemePaletteCompatibilityInput): ParseCompatibleThemePaletteResult;
|