@riverbankcms/sdk 0.95.0 → 0.98.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 +47 -5
- package/dist/{PreviewEditorSidebar-6FQYKOSB.mjs → PreviewEditorSidebar-CG3SSJND.mjs} +3 -3
- package/dist/{PreviewEditorUI-NPO2XMFB.mjs → PreviewEditorUI-RHNGKAAU.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-OV5PNJBB.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +10 -10
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +35 -1
- package/dist/_dts/api/src/bookingOperations.d.ts +246 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +109 -40
- package/dist/_dts/api/src/endpoints.d.ts +80 -0
- package/dist/_dts/api/src/index.d.ts +3 -2
- package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +10 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +7 -1
- package/dist/_dts/block-form/src/client/index.d.ts +1 -1
- package/dist/_dts/block-form/src/fields/types.d.ts +9 -1
- package/dist/_dts/block-form/src/registry/schemas.d.ts +4 -0
- package/dist/_dts/block-form/src/registry/widgets.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/InlineTextField/InlineTextField.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/InlineTextField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/InlineTextField/inlineTextFieldDefaults.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/InlineTextField/inlineTextFieldSchema.d.ts +3 -0
- package/dist/_dts/blocks/src/PageRenderer.d.ts +2 -1
- package/dist/_dts/blocks/src/bindings/index.d.ts +1 -0
- package/dist/_dts/blocks/src/bindings/types.d.ts +1 -4
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +7 -0
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +12 -12
- package/dist/_dts/blocks/src/index.d.ts +2 -0
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +2 -29631
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +2 -29614
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +2 -29634
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +2 -29627
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +2 -29585
- package/dist/_dts/blocks/src/system/blocks/events/shared/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/layout.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +2 -29677
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +2 -29655
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +220 -0
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +2 -29655
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +2 -29685
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -29761
- package/dist/_dts/blocks/src/system/blocks/weekly-slot-availability.d.ts +34 -0
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +1 -0
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/prefetchBlockData.d.ts +4 -1
- package/dist/_dts/blocks/src/system/fragments/library/heroCopy.d.ts +9 -0
- package/dist/_dts/blocks/src/system/inlineText.d.ts +78 -0
- package/dist/_dts/blocks/src/system/manifest/derivedContent.d.ts +3 -1
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +15 -3
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +188 -7
- package/dist/_dts/blocks/src/system/node/builder.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/schema.d.ts +13 -0
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAppointmentCheckoutVerification.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +8 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +133 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/renderInlineText.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.client.controller.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.client.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.client.state.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.server.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/weekly-slot-availability.view.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +31 -1
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +5 -0
- package/dist/_dts/blocks/src/utils/date-formatting.d.ts +1 -1
- package/dist/_dts/content-editor/src/index.d.ts +1 -0
- package/dist/_dts/content-editor/src/primitives/PreviewInlineTextEditor.d.ts +9 -0
- package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +1 -1
- package/dist/_dts/content-model/src/templates/bindingTypeCompatibility.d.ts +1 -1
- package/dist/_dts/content-model/src/templates/defaults.d.ts +30 -0
- package/dist/_dts/content-model/src/templates/types.d.ts +3 -6
- package/dist/_dts/core/src/branded.d.ts +8 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +505 -2
- package/dist/_dts/editor/src/inline/FloatingToolbar.d.ts +18 -0
- package/dist/_dts/editor/src/inline/InlineTextEditor.d.ts +18 -1
- package/dist/_dts/editor/src/inline/InlineTextEditorStyles.d.ts +1 -0
- package/dist/_dts/editor/src/inline/domParse.d.ts +3 -0
- package/dist/_dts/editor/src/inline/presentation.d.ts +48 -0
- package/dist/_dts/editor/src/inline/selection.d.ts +12 -0
- package/dist/_dts/editor-blocks/src/widgets/index.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/widgets/inline-text/InlineTextField.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/inline-text/index.d.ts +1 -0
- package/dist/_dts/field-primitives/src/bindings/index.d.ts +8 -0
- package/dist/_dts/path-utils/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/commands/content.d.ts +56 -0
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +4 -0
- package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +15 -0
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +4 -7
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +5 -1
- package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +9 -3
- package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +56 -0
- package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +34 -0
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +14 -0
- package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +46 -0
- package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +4 -0
- package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +29 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +16 -14
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +8 -4
- package/dist/_dts/sdk/src/cli/env-scope.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/helpers.d.ts +6 -7
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +22 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +3 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +78 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +36 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +23 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +29 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +48 -0
- package/dist/_dts/sdk/src/cli/push-config.d.ts +13 -2
- package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +51 -0
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +21 -0
- package/dist/_dts/sdk/src/cli/sync/diff.d.ts +3 -6
- package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +39 -0
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +1 -0
- package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +1 -1
- package/dist/_dts/sdk/src/client/types.d.ts +18 -2
- package/dist/_dts/sdk/src/config/field-definitions.d.ts +8 -3
- package/dist/_dts/sdk/src/config/typed-entries.d.ts +5 -3
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -0
- package/dist/_dts/sdk/src/contracts/bindings.d.ts +4 -7
- package/dist/_dts/sdk/src/contracts/content.d.ts +18 -0
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +16 -2
- package/dist/_dts/sdk/src/next/route-outcome-proxy.d.ts +3 -3
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +174 -78
- package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +4 -3
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +52 -1
- package/dist/_dts/sdk/src/rendering/hooks/usePage.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +18 -66
- package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/cards/types.d.ts +15 -15
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +42 -42
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/schema.d.ts +44 -44
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +16 -16
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +1 -1
- package/dist/{chunk-4A6NWO3X.mjs → chunk-6WDBXCPX.mjs} +73 -12
- package/dist/{chunk-VZBSD4AJ.mjs → chunk-DBRI3PQF.mjs} +2281 -322
- package/dist/{chunk-PJPFTVZG.mjs → chunk-H24OU7WG.mjs} +106 -4
- package/dist/{chunk-K2SJTZMX.mjs → chunk-PKDPQHB5.mjs} +2 -2
- package/dist/{chunk-VTPPVAOL.mjs → chunk-QPXE2OUZ.mjs} +1 -1
- package/dist/{chunk-7ED5UNHL.mjs → chunk-V2BYFSPW.mjs} +109 -0
- package/dist/cli/index.mjs +4182 -1165
- package/dist/cli/init-docs/content/cli-reference.md +72 -5
- package/dist/cli/init-docs/content/content-management.md +22 -0
- package/dist/cli/init-docs/content/getting-started.md +8 -0
- package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +3 -1
- package/dist/cli/init-docs/content/workflow-preview-mode.md +6 -0
- package/dist/cli/init-docs/content/workflow-remote-setup.md +51 -0
- package/dist/client/{accordion-LGO4IO5U.mjs → accordion-Q2BDNL53.mjs} +1 -1
- package/dist/client/{bookingForm-MWLS4LGU.mjs → bookingForm-ZMP4P7EK.mjs} +16 -6
- package/dist/client/bookings.mjs +98 -18
- package/dist/client/{carousel-6AHNP5HA.mjs → carousel-LW3UXPWO.mjs} +1 -1
- package/dist/client/{cart-CIXGYAZB.mjs → cart-Z6D3KS6K.mjs} +5 -5
- package/dist/client/{checkout-OTX6O3DN.mjs → checkout-YMT2QJQM.mjs} +5 -5
- package/dist/client/{chunk-Y2PMKCXO.mjs → chunk-26ZBRXFR.mjs} +9 -3
- package/dist/client/{chunk-MYCXAKWP.mjs → chunk-DRRQ7QSL.mjs} +2 -2
- package/dist/client/{chunk-TREIML53.mjs → chunk-ET2MDQQT.mjs} +4 -4
- package/dist/client/{chunk-AVBQSUIS.mjs → chunk-HBQEAOG4.mjs} +1 -1
- package/dist/client/{chunk-INRIT6DP.mjs → chunk-IEOECM7U.mjs} +62 -43
- package/dist/client/{chunk-TNGL2WJF.mjs → chunk-KDP7ZRZV.mjs} +16 -0
- package/dist/client/{chunk-V67AT7ZW.mjs → chunk-R4XK3CKR.mjs} +18 -1
- package/dist/client/{chunk-R3NQTBWE.mjs → chunk-SK2BMD22.mjs} +2 -2
- package/dist/client/{chunk-HOP7MKAZ.mjs → chunk-XNTHVZ25.mjs} +1 -1
- package/dist/client/client.mjs +5172 -4177
- package/dist/client/{courseRegistration-2LU6C3JL.mjs → courseRegistration-DGKCMC77.mjs} +4 -4
- package/dist/client/{eventCalendar-OKUSISBZ.mjs → eventCalendar-74Z2NNFM.mjs} +7 -7
- package/dist/client/{eventCombined-CMF6CD4S.mjs → eventCombined-GK2ODOX2.mjs} +7 -7
- package/dist/client/{eventDetails-XYWH7WXI.mjs → eventDetails-MONAGT3N.mjs} +7 -7
- package/dist/client/{eventListing-EK5DJTAH.mjs → eventListing-SKGAO6PS.mjs} +7 -7
- package/dist/client/{eventRegistration-XDOSICV6.mjs → eventRegistration-6KISGXRD.mjs} +7 -7
- package/dist/client/{form-J6GOHKYG.mjs → form-FXPRTXHI.mjs} +2 -2
- package/dist/client/{headerSection-C5SYJTRW.mjs → headerSection-7NAN5WNB.mjs} +2 -2
- package/dist/client/hooks.mjs +1681 -1337
- package/dist/client/{locationMap-QSQIFVVT.mjs → locationMap-UERN74U4.mjs} +2 -2
- package/dist/client/{newsletterForm-47VXJRWK.mjs → newsletterForm-SGWXMJ7U.mjs} +2 -2
- package/dist/client/{productDetail-5U6ISCC2.mjs → productDetail-HN3HWZQZ.mjs} +5 -5
- package/dist/client/{productList-XDZUMR3P.mjs → productList-YT22Z5UR.mjs} +5 -5
- package/dist/client/rendering/client.mjs +4796 -4288
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +2120 -1106
- package/dist/client/{shop-ZSZKIY3R.mjs → shop-TKEDNWUS.mjs} +5 -5
- package/dist/preview-next/before-render.mjs +109 -0
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/middleware.mjs +109 -0
- package/dist/{sdk-runtime-PHNM7MRD.mjs → sdk-runtime-LWNYCQF2.mjs} +6 -6
- package/dist/server/components.mjs +3777 -2981
- package/dist/server/config-template-validation.mjs +35 -22
- package/dist/server/config-validation.mjs +1883 -1565
- package/dist/server/config.mjs +1883 -1565
- package/dist/server/data.mjs +1667 -1334
- package/dist/server/index.mjs +208 -9
- package/dist/server/next/middleware.mjs +2 -2
- package/dist/server/next.mjs +4077 -3060
- package/dist/server/page-converter.mjs +1481 -1279
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3806 -2993
- package/dist/server/rendering.mjs +4000 -3060
- package/dist/server/routing.mjs +1737 -1357
- package/dist/server/server.mjs +2918 -2276
- package/dist/server/theme-bridge.mjs +43 -0
- package/dist/styles/index.css +44 -0
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-PBEFH5AL.mjs +0 -8
|
@@ -10,7 +10,7 @@ export type { ManifestAdapterOptions, ManifestAdapterResult, ManifestFormSource,
|
|
|
10
10
|
export { createManifestValidation } from '../manifest/manifestFormAdapter';
|
|
11
11
|
export { formatPublishBlockedMessage, formatRecoveryConflictSummary, formatRecoveryConflictTitle, deriveBlockDraftSaveability, formatUnfinishedBlocksSummary, getResolvedBlockManifest, isResolvedBlockManifest, recoveryConflictCopy, shouldShowBlockFieldValidation, unfinishedBlockCopy, validateBlockManifest, validateBlockManifestIssues, validateBlockManifestValues, } from './blockDraftSaveability';
|
|
12
12
|
export type { BlockDraftSaveability, BlockDraftValidationIssue, BlockManifestResolution, BlockManifestValidationMode, } from './blockDraftSaveability';
|
|
13
|
-
export type { BaseFieldConfig, FieldConfig, TextFieldConfig, NumberFieldConfig, RichTextFieldConfig, MediaFieldConfig, FileFieldConfig, BooleanFieldConfig, DateFieldConfig, TimeFieldConfig, DateTimeFieldConfig, SlugFieldConfig, UrlFieldConfig, LinkFieldConfig, SelectFieldConfig, ReferenceFieldConfig, GroupFieldConfig, RepeaterFieldConfig, ButtonFieldConfig, ContentTypeSelectFieldConfig, EntryPickerFieldConfig, } from '../fields/types';
|
|
13
|
+
export type { BaseFieldConfig, FieldConfig, TextFieldConfig, InlineTextFieldConfig, NumberFieldConfig, RichTextFieldConfig, MediaFieldConfig, FileFieldConfig, BooleanFieldConfig, DateFieldConfig, TimeFieldConfig, DateTimeFieldConfig, SlugFieldConfig, UrlFieldConfig, LinkFieldConfig, SelectFieldConfig, ReferenceFieldConfig, GroupFieldConfig, RepeaterFieldConfig, ButtonFieldConfig, ContentTypeSelectFieldConfig, EntryPickerFieldConfig, } from '../fields/types';
|
|
14
14
|
export { createManifestFormAdapter } from '../manifest/manifestFormAdapter';
|
|
15
15
|
export { evaluateVisibility } from '../utils/evaluateVisibility';
|
|
16
16
|
export type { VisibilityValueReader } from '../utils/evaluateVisibility';
|
|
@@ -55,6 +55,14 @@ export interface NumberFieldConfig extends BaseFieldConfig {
|
|
|
55
55
|
export interface RichTextFieldConfig extends BaseFieldConfig {
|
|
56
56
|
type: 'richText';
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Constrained inline styled text for heading-like fields.
|
|
60
|
+
*/
|
|
61
|
+
export interface InlineTextFieldConfig extends BaseFieldConfig {
|
|
62
|
+
type: 'inlineText';
|
|
63
|
+
maxLength?: number;
|
|
64
|
+
plainTextField?: string;
|
|
65
|
+
}
|
|
58
66
|
/**
|
|
59
67
|
* Media field configuration
|
|
60
68
|
*/
|
|
@@ -238,4 +246,4 @@ export interface EntryPickerFieldConfig extends BaseFieldConfig {
|
|
|
238
246
|
/**
|
|
239
247
|
* Union of all field configuration types
|
|
240
248
|
*/
|
|
241
|
-
export type FieldConfig = TextFieldConfig | NumberFieldConfig | RichTextFieldConfig | MediaFieldConfig | FileFieldConfig | BooleanFieldConfig | DateFieldConfig | TimeFieldConfig | DateTimeFieldConfig | SlugFieldConfig | UrlFieldConfig | LinkFieldConfig | SelectFieldConfig | ReferenceFieldConfig | GroupFieldConfig | ModalFieldConfig | RepeaterFieldConfig | ButtonFieldConfig | TabGroupFieldConfig | PresetOrCustomFieldConfig | ContentTypeSelectFieldConfig | EntryPickerFieldConfig;
|
|
249
|
+
export type FieldConfig = TextFieldConfig | NumberFieldConfig | RichTextFieldConfig | InlineTextFieldConfig | MediaFieldConfig | FileFieldConfig | BooleanFieldConfig | DateFieldConfig | TimeFieldConfig | DateTimeFieldConfig | SlugFieldConfig | UrlFieldConfig | LinkFieldConfig | SelectFieldConfig | ReferenceFieldConfig | GroupFieldConfig | ModalFieldConfig | RepeaterFieldConfig | ButtonFieldConfig | TabGroupFieldConfig | PresetOrCustomFieldConfig | ContentTypeSelectFieldConfig | EntryPickerFieldConfig;
|
|
@@ -33,6 +33,8 @@ import { buildLinkFieldSchema } from '../widgets/LinkField/linkFieldSchema';
|
|
|
33
33
|
import { getLinkFieldDefault } from '../widgets/LinkField/linkFieldDefaults';
|
|
34
34
|
import { buildRichTextFieldSchema } from '../widgets/RichTextField/richTextFieldSchema';
|
|
35
35
|
import { getRichTextFieldDefaultValue } from '../widgets/RichTextField/richTextFieldDefaults';
|
|
36
|
+
import { buildInlineTextFieldSchema } from '../widgets/InlineTextField/inlineTextFieldSchema';
|
|
37
|
+
import { getInlineTextFieldDefaultValue } from '../widgets/InlineTextField/inlineTextFieldDefaults';
|
|
36
38
|
import { buildMediaFieldSchema } from '../widgets/MediaField/mediaFieldSchema';
|
|
37
39
|
import { getMediaFieldDefaultValue } from '../widgets/MediaField/mediaFieldDefaults';
|
|
38
40
|
import { buildTabGroupFieldSchema, getTabGroupFieldDefault } from '../widgets/TabGroupField/tabGroupFieldSchema';
|
|
@@ -62,6 +64,7 @@ export declare const SCHEMA_BUILDERS: {
|
|
|
62
64
|
readonly slug: typeof buildSlugFieldSchema;
|
|
63
65
|
readonly link: typeof buildLinkFieldSchema;
|
|
64
66
|
readonly richText: typeof buildRichTextFieldSchema;
|
|
67
|
+
readonly inlineText: typeof buildInlineTextFieldSchema;
|
|
65
68
|
readonly media: typeof buildMediaFieldSchema;
|
|
66
69
|
readonly file: typeof buildMediaFieldSchema;
|
|
67
70
|
readonly tabGroup: typeof buildTabGroupFieldSchema;
|
|
@@ -85,6 +88,7 @@ export declare const DEFAULT_VALUE_BUILDERS: {
|
|
|
85
88
|
readonly slug: typeof getSlugFieldDefault;
|
|
86
89
|
readonly link: typeof getLinkFieldDefault;
|
|
87
90
|
readonly richText: typeof getRichTextFieldDefaultValue;
|
|
91
|
+
readonly inlineText: typeof getInlineTextFieldDefaultValue;
|
|
88
92
|
readonly media: typeof getMediaFieldDefaultValue;
|
|
89
93
|
readonly file: typeof getMediaFieldDefaultValue;
|
|
90
94
|
readonly tabGroup: typeof getTabGroupFieldDefault;
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
import type { FieldWidgetComponent } from '../fields/props';
|
|
40
40
|
export declare const WIDGET_COMPONENTS: {
|
|
41
41
|
readonly text: FieldWidgetComponent;
|
|
42
|
+
readonly inlineText: FieldWidgetComponent;
|
|
42
43
|
readonly number: FieldWidgetComponent;
|
|
43
44
|
readonly select: FieldWidgetComponent;
|
|
44
45
|
readonly sdkSelect: FieldWidgetComponent;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type InlineText } from '../../../../blocks/src/index';
|
|
2
|
+
import type { FieldWidgetProps } from '../../fields/props';
|
|
3
|
+
import type { InlineTextFieldConfig } from '../../fields/types';
|
|
4
|
+
export declare function InlineTextField({ path, backend, config, }: FieldWidgetProps<InlineText, InlineTextFieldConfig>): import("react").JSX.Element;
|
|
@@ -172,6 +172,7 @@ interface PageRendererProps {
|
|
|
172
172
|
blockOverrides?: BlockOverrides;
|
|
173
173
|
sdkConfig?: SdkConfigForRenderer | null;
|
|
174
174
|
customBlocks?: SdkCustomBlock[];
|
|
175
|
+
previewAuthoring?: ResolverContext['previewAuthoring'];
|
|
175
176
|
}
|
|
176
|
-
export default function PageRenderer({ theme, page, usePlaceholders, dataContext, wrapBlock, registry, themeTokens: providedThemeTokens, routeMap, blockOverrides, sdkConfig, customBlocks, }: PageRendererProps): React.JSX.Element;
|
|
177
|
+
export default function PageRenderer({ theme, page, usePlaceholders, dataContext, wrapBlock, registry, themeTokens: providedThemeTokens, routeMap, blockOverrides, sdkConfig, customBlocks, previewAuthoring, }: PageRendererProps): React.JSX.Element;
|
|
177
178
|
export {};
|
|
@@ -88,6 +88,7 @@ export declare function getPath(source: Record<string, unknown>, path: string):
|
|
|
88
88
|
* Applies a transform function to a value.
|
|
89
89
|
*/
|
|
90
90
|
export declare function applyTransform(name: string | undefined, value: unknown): unknown;
|
|
91
|
+
export declare function textToInlineText(value: unknown): unknown;
|
|
91
92
|
/**
|
|
92
93
|
* Extracts the first paragraph text from a TipTap/ProseMirror document.
|
|
93
94
|
*
|
|
@@ -49,15 +49,12 @@ export type BindingContext<TFields extends Record<string, unknown> = Record<stri
|
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* Available transform function names.
|
|
52
|
-
*
|
|
53
|
-
* Keep in sync with:
|
|
54
|
-
* - @riverbankcms/sdk `BINDING_TRANSFORMS`
|
|
55
|
-
* - @riverbankcms/content-model `TEMPLATE_BINDING_TRANSFORMS`
|
|
56
52
|
*/
|
|
57
53
|
export declare const TRANSFORMS: {
|
|
58
54
|
readonly RICHTEXT_FIRST_PARAGRAPH: "richtext.firstParagraph";
|
|
59
55
|
readonly DATE_FORMAT_SHORT: "date.formatShort";
|
|
60
56
|
readonly DATE_FORMAT_LONG: "date.formatLong";
|
|
57
|
+
readonly TEXT_INLINE_TEXT: "text.inlineText";
|
|
61
58
|
};
|
|
62
59
|
export declare const BINDING_SOURCES: BindingSource[];
|
|
63
60
|
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import { buildThemeRuntime as buildThemeRuntimeImpl } from '../../../theme-core/src/runtime/buildThemeRuntime';
|
|
2
3
|
import type { Theme } from '../../../theme-core/src/schema';
|
|
4
|
+
import { renderBlock as renderBlockImpl } from '../system/componentFactory';
|
|
3
5
|
export type SiteChromeThemeConfigOverride = Readonly<{
|
|
4
6
|
header?: Partial<NonNullable<Theme['header']>>;
|
|
5
7
|
footer?: Partial<NonNullable<Theme['footer']>>;
|
|
@@ -16,6 +18,11 @@ export type SiteChromeRenderModel = Readonly<{
|
|
|
16
18
|
}>;
|
|
17
19
|
export type SiteChromeBlockRenderOptions = Readonly<{
|
|
18
20
|
themeConfigOverrideMode?: 'apply' | 'ignore';
|
|
21
|
+
deps?: SiteChromeBlockRenderDeps;
|
|
22
|
+
}>;
|
|
23
|
+
export type SiteChromeBlockRenderDeps = Readonly<{
|
|
24
|
+
buildThemeRuntime: typeof buildThemeRuntimeImpl;
|
|
25
|
+
renderBlock: typeof renderBlockImpl;
|
|
19
26
|
}>;
|
|
20
27
|
export declare function renderSiteChromeBlock(model: SiteChromeRenderModel, surface: 'header' | 'footer', theme: Theme, options?: SiteChromeBlockRenderOptions): ReactNode;
|
|
21
28
|
export declare function SiteChromeBlockRenderer({ model, surface, theme, }: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { AnyBlockRuntimeDefinition, BlockRenderKind, BlockRuntimeDefinition, ClientOwnedBlockRuntime, Codec, DecodeIssue, DecodeResult, InteractiveBlockRenderKind, InteractiveBlockRuntime, InteractiveRuntimeContracts, ProgressiveBlockRender, ProgressiveBlockRuntime, RuntimeContractsFor, RuntimeDisplay, RuntimeHydration, RuntimeKind, RuntimeRender, RuntimeSource, StaticBlockRuntime, StaticRuntimeContracts, } from './runtime';
|
|
2
2
|
export type { InteractiveIslandProps } from './islands';
|
|
3
|
+
export type { PublicEvent } from '../system/blocks/events/shared/types';
|
|
3
4
|
export type { AccordionIslandProps, CarouselIslandProps, EventDetailsContentEntry, EventDetailsIslandProps, EventDetailsOccurrenceContext, HeaderSectionIslandProps, LocationMapIslandProps, } from './non-block-islands';
|
|
4
5
|
export type { BookingFormConfig, BookingFormDisplay, BookingFormHydration, BookingFormInteractiveIslandProps, BookingFormService, CourseRegistrationDisplay, CourseRegistrationHydration, CourseRegistrationInteractiveIslandProps, CartDisplay, CartHydration, CartInteractiveIslandProps, CartLineDisplay, CheckoutDisplay, CheckoutHydration, CheckoutInteractiveIslandProps, EventCalendarDisplay, EventCalendarHydration, EventCalendarInteractiveIslandProps, EventCombinedDisplay, EventCombinedHydration, EventCombinedInteractiveIslandProps, EventRegistrationDisplay, EventRegistrationHydration, EventRegistrationInteractiveIslandProps, EventListingDisplay, EventListingHydration, EventListingInteractiveIslandProps, FormDisplay, FormHydration, FormInteractiveIslandProps, MembershipCardDisplay, NewsletterFormDisplay, NewsletterFormHydration, NewsletterFormInteractiveIslandProps, PassCardDisplay, PassesMembershipsDisplay, PassesMembershipsHydration, ProductCardDisplay, ProductDetailDisplay, ProductDetailInteractiveIslandProps, ProductDetailHydration, ProductListDisplay, ProductListInteractiveIslandProps, ProductListHydration, ProductVariantOptionDisplay, ShopInteractiveIslandProps, } from './proof-block-islands';
|
|
5
6
|
export { accordionIslandPropsCodec, carouselIslandPropsCodec, eventDetailsIslandPropsCodec, headerSectionIslandPropsCodec, locationMapIslandPropsCodec, } from './non-block-islands';
|
|
@@ -359,7 +359,7 @@ export declare const proofBlockIslandCodecs: {
|
|
|
359
359
|
showMap: boolean;
|
|
360
360
|
showCapacity: boolean;
|
|
361
361
|
orientation: import("..").CardOrientation;
|
|
362
|
-
events: readonly import("
|
|
362
|
+
events: readonly import(".").PublicEvent[];
|
|
363
363
|
}>;
|
|
364
364
|
hydration: Readonly<{
|
|
365
365
|
siteId: string;
|
|
@@ -405,7 +405,7 @@ export declare const proofBlockIslandCodecs: {
|
|
|
405
405
|
showMap: boolean;
|
|
406
406
|
showCapacity: boolean;
|
|
407
407
|
orientation: import("..").CardOrientation;
|
|
408
|
-
events: readonly import("
|
|
408
|
+
events: readonly import(".").PublicEvent[];
|
|
409
409
|
}>;
|
|
410
410
|
hydration: Readonly<{
|
|
411
411
|
siteId: string;
|
|
@@ -442,7 +442,7 @@ export declare const proofBlockIslandCodecs: {
|
|
|
442
442
|
kind: "event-calendar";
|
|
443
443
|
displayMode: import("..").DisplayMode;
|
|
444
444
|
className: string | null;
|
|
445
|
-
events: readonly import("
|
|
445
|
+
events: readonly import(".").PublicEvent[];
|
|
446
446
|
listLayout: import("..").EventLayout;
|
|
447
447
|
listColumns: import("..").ColumnOption;
|
|
448
448
|
eventsPerPage: import("../system/runtime/nodes/events/shared/listOptions").EventPageSize;
|
|
@@ -492,7 +492,7 @@ export declare const proofBlockIslandCodecs: {
|
|
|
492
492
|
kind: "event-calendar";
|
|
493
493
|
displayMode: import("..").DisplayMode;
|
|
494
494
|
className: string | null;
|
|
495
|
-
events: readonly import("
|
|
495
|
+
events: readonly import(".").PublicEvent[];
|
|
496
496
|
listLayout: import("..").EventLayout;
|
|
497
497
|
listColumns: import("..").ColumnOption;
|
|
498
498
|
eventsPerPage: import("../system/runtime/nodes/events/shared/listOptions").EventPageSize;
|
|
@@ -993,7 +993,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
993
993
|
display: Readonly<{
|
|
994
994
|
kind: "event-combined";
|
|
995
995
|
className: string | null;
|
|
996
|
-
events: readonly import("
|
|
996
|
+
events: readonly import(".").PublicEvent[];
|
|
997
997
|
listLayout: import("..").EventLayout;
|
|
998
998
|
listColumns: import("..").ColumnOption;
|
|
999
999
|
eventsPerPage: import("../system/runtime/nodes/events/shared/listOptions").EventPageSize;
|
|
@@ -1042,7 +1042,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1042
1042
|
display: Readonly<{
|
|
1043
1043
|
kind: "event-combined";
|
|
1044
1044
|
className: string | null;
|
|
1045
|
-
events: readonly import("
|
|
1045
|
+
events: readonly import(".").PublicEvent[];
|
|
1046
1046
|
listLayout: import("..").EventLayout;
|
|
1047
1047
|
listColumns: import("..").ColumnOption;
|
|
1048
1048
|
eventsPerPage: import("../system/runtime/nodes/events/shared/listOptions").EventPageSize;
|
|
@@ -1429,7 +1429,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1429
1429
|
showMap: boolean;
|
|
1430
1430
|
showCapacity: boolean;
|
|
1431
1431
|
orientation: import("..").CardOrientation;
|
|
1432
|
-
events: readonly import("
|
|
1432
|
+
events: readonly import(".").PublicEvent[];
|
|
1433
1433
|
}>;
|
|
1434
1434
|
hydration: Readonly<{
|
|
1435
1435
|
siteId: string;
|
|
@@ -1475,7 +1475,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1475
1475
|
showMap: boolean;
|
|
1476
1476
|
showCapacity: boolean;
|
|
1477
1477
|
orientation: import("..").CardOrientation;
|
|
1478
|
-
events: readonly import("
|
|
1478
|
+
events: readonly import(".").PublicEvent[];
|
|
1479
1479
|
}>;
|
|
1480
1480
|
hydration: Readonly<{
|
|
1481
1481
|
siteId: string;
|
|
@@ -1512,7 +1512,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1512
1512
|
kind: "event-calendar";
|
|
1513
1513
|
displayMode: import("..").DisplayMode;
|
|
1514
1514
|
className: string | null;
|
|
1515
|
-
events: readonly import("
|
|
1515
|
+
events: readonly import(".").PublicEvent[];
|
|
1516
1516
|
listLayout: import("..").EventLayout;
|
|
1517
1517
|
listColumns: import("..").ColumnOption;
|
|
1518
1518
|
eventsPerPage: import("../system/runtime/nodes/events/shared/listOptions").EventPageSize;
|
|
@@ -1562,7 +1562,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1562
1562
|
kind: "event-calendar";
|
|
1563
1563
|
displayMode: import("..").DisplayMode;
|
|
1564
1564
|
className: string | null;
|
|
1565
|
-
events: readonly import("
|
|
1565
|
+
events: readonly import(".").PublicEvent[];
|
|
1566
1566
|
listLayout: import("..").EventLayout;
|
|
1567
1567
|
listColumns: import("..").ColumnOption;
|
|
1568
1568
|
eventsPerPage: import("../system/runtime/nodes/events/shared/listOptions").EventPageSize;
|
|
@@ -2100,7 +2100,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
2100
2100
|
slug: string;
|
|
2101
2101
|
contentTypeSlug: string;
|
|
2102
2102
|
}> | null;
|
|
2103
|
-
events?: readonly import("
|
|
2103
|
+
events?: readonly import(".").PublicEvent[] | null;
|
|
2104
2104
|
showVenue?: boolean;
|
|
2105
2105
|
showMap?: boolean;
|
|
2106
2106
|
showOtherDates?: boolean;
|
|
@@ -2125,7 +2125,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
2125
2125
|
slug: string;
|
|
2126
2126
|
contentTypeSlug: string;
|
|
2127
2127
|
}> | null;
|
|
2128
|
-
events?: readonly import("
|
|
2128
|
+
events?: readonly import(".").PublicEvent[] | null;
|
|
2129
2129
|
showVenue?: boolean;
|
|
2130
2130
|
showMap?: boolean;
|
|
2131
2131
|
showOtherDates?: boolean;
|
|
@@ -44,6 +44,8 @@ export type { HeroContent, HeroMedia } from './system/blocks/hero';
|
|
|
44
44
|
export { bodyTextManifest } from './system/blocks/body-text';
|
|
45
45
|
export type { BodyTextContent } from './system/blocks/body-text';
|
|
46
46
|
export { createRichTextDocFromMarkdown, parseRichTextInlineMarkdown, parseRichTextParagraphInlineMarkdown, } from './system/manifest/richTextSchema';
|
|
47
|
+
export { applyInlineTextMarkToRange, coerceInlineTextWithFallback, inlineTextEqual, inlineTextAccentTones, inlineTextHighlightTones, inlineTextMarksEqual, inlineTextSchema, inlineTextToPlainText, isInlineTextEmpty, normalizeInlineText, normalizeInlineTextMarks, parseInlineTextFromUnknown, plainTextToInlineText, removeInlineTextMarkFromRange, replaceInlineTextRange, truncateInlineText, type InlineText, type InlineTextAccentTone, type InlineTextHighlightTone, type InlineTextMark, type InlineTextParseError, type InlineTextParseResult, type InlineTextRun, } from './system/inlineText';
|
|
48
|
+
export { renderInlineText } from './system/runtime/nodes/renderInlineText';
|
|
47
49
|
export type { RichTextHardBreakNode, RichTextInlineNode, RichTextTextNode, TipTapNode, } from './system/manifest/richTextSchema';
|
|
48
50
|
export { createManifestValidator } from './system/manifest/validation';
|
|
49
51
|
export { singleButtonManifest } from './system/blocks/single-button';
|
|
@@ -8,6 +8,8 @@ export type TextProps = PrimitiveProps & {
|
|
|
8
8
|
path?: string;
|
|
9
9
|
linkedEntryField?: PreviewLinkedEntryFieldBinding;
|
|
10
10
|
maxLength?: number;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
ariaLabel?: string;
|
|
11
13
|
blockData?: Record<string, unknown> | null;
|
|
12
14
|
};
|
|
13
15
|
export type RichTextPrimitiveProps = {
|
|
@@ -17,6 +19,8 @@ export type RichTextPrimitiveProps = {
|
|
|
17
19
|
linkedEntryField?: PreviewLinkedEntryFieldBinding;
|
|
18
20
|
doc?: TipTapNode | null;
|
|
19
21
|
variant?: RichTextVariant;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
ariaLabel?: string;
|
|
20
24
|
blockData?: Record<string, unknown> | null;
|
|
21
25
|
};
|
|
22
26
|
export type RichTextVariant = "full" | "inline" | "limited" | "media" | "notes";
|