@riverbankcms/sdk 0.62.2 → 0.64.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 +11 -0
- package/dist/_dts/api/src/accessAdmin.d.ts +71 -2
- package/dist/_dts/api/src/aiEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/billing.d.ts +46 -10
- package/dist/_dts/api/src/bookingClosures.d.ts +106 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +2 -0
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +18 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +27 -1
- package/dist/_dts/api/src/calendar.d.ts +11 -1
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +12 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -0
- package/dist/_dts/api/src/contentVersionHistory.d.ts +52 -0
- package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +45 -0
- package/dist/_dts/api/src/courses.d.ts +3 -0
- package/dist/_dts/api/src/endpoints.d.ts +133 -6
- package/dist/_dts/api/src/index.d.ts +12 -6
- package/dist/_dts/api/src/sdkConfig/contracts.d.ts +29 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +13 -1
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +31 -7
- package/dist/_dts/api/src/siteMembers.d.ts +10 -1
- package/dist/_dts/api/src/siteOnboarding.d.ts +4 -0
- package/dist/_dts/api/src/siteOperations.d.ts +10 -0
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +62 -12
- package/dist/_dts/api/src/types.d.ts +4 -2
- package/dist/_dts/api/src/url.d.ts +3 -3
- package/dist/_dts/billing/src/plans/registry.d.ts +1 -0
- package/dist/_dts/billing/src/plans/types.d.ts +9 -0
- package/dist/_dts/block-form/src/FormRenderer.d.ts +38 -0
- package/dist/_dts/block-form/src/backend/adapter.d.ts +7 -0
- package/dist/_dts/block-form/src/backend/hooks/useRepeaterBackend.d.ts +34 -0
- package/dist/_dts/block-form/src/backend/hooks.d.ts +66 -0
- package/dist/_dts/block-form/src/backend/index.d.ts +12 -0
- package/dist/_dts/block-form/src/backend/rhf-backend.d.ts +34 -0
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +60 -0
- package/dist/_dts/block-form/src/backend/types.d.ts +137 -0
- package/dist/_dts/block-form/src/backend/useBackendWatch.d.ts +22 -0
- package/dist/_dts/block-form/src/backend/utils/getErrorMessage.d.ts +1 -0
- package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +70 -0
- package/dist/_dts/block-form/src/client/blockDraftSaveability.d.ts +1 -0
- package/dist/_dts/block-form/src/client/index.d.ts +30 -0
- package/dist/_dts/block-form/src/context/BlockContext.d.ts +29 -0
- package/dist/_dts/block-form/src/context/DisplayLabelResolverContext.d.ts +33 -0
- package/dist/_dts/block-form/src/context/FieldPreviewResolverContext.d.ts +30 -0
- package/dist/_dts/block-form/src/context/ImageResolveContext.d.ts +1 -0
- package/dist/_dts/block-form/src/context/index.d.ts +4 -0
- package/dist/_dts/block-form/src/fields/props.d.ts +48 -0
- package/dist/_dts/block-form/src/fields/types.d.ts +223 -0
- package/dist/_dts/block-form/src/index.d.ts +22 -0
- package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +37 -0
- package/dist/_dts/block-form/src/manifest/canonicalValidation.d.ts +5 -0
- package/dist/_dts/block-form/src/manifest/filterSdkTabs.d.ts +44 -0
- package/dist/_dts/block-form/src/manifest/manifestFormAdapter.d.ts +61 -0
- package/dist/_dts/block-form/src/manifest/mergeManifestWithSdkOptions.d.ts +24 -0
- package/dist/_dts/block-form/src/palette/PaletteContext.d.ts +11 -0
- package/dist/_dts/block-form/src/registry/schemas.d.ts +105 -0
- package/dist/_dts/block-form/src/registry/widgets.d.ts +59 -0
- package/dist/_dts/block-form/src/sdk-config/SdkConfigContext.d.ts +110 -0
- package/dist/_dts/block-form/src/sdk-config/hooks.d.ts +21 -0
- package/dist/_dts/block-form/src/sdk-config/index.d.ts +2 -0
- package/dist/_dts/block-form/src/shared/disclosure.d.ts +1 -0
- package/dist/_dts/block-form/src/shared/hooks/index.d.ts +2 -0
- package/dist/_dts/block-form/src/shared/hooks/useCoarsePointer.d.ts +5 -0
- package/dist/_dts/block-form/src/shared/hooks/useContainerWidth.d.ts +6 -0
- package/dist/_dts/block-form/src/utils/VisibilityWrapper.d.ts +25 -0
- package/dist/_dts/block-form/src/utils/computeWatchedPath.d.ts +18 -0
- package/dist/_dts/block-form/src/utils/evaluateVisibility.d.ts +9 -0
- package/dist/_dts/block-form/src/utils/fieldHelpers.d.ts +94 -0
- package/dist/_dts/block-form/src/utils/resolvePromotedFields.d.ts +22 -0
- package/dist/_dts/block-form/src/utils/slug.d.ts +3 -0
- package/dist/_dts/block-form/src/utils/typeGuards.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/BackgroundColorWidget/BackgroundColorField.d.ts +10 -0
- package/dist/_dts/block-form/src/widgets/BackgroundColorWidget/BackgroundColorWidget.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/BackgroundColorWidget/index.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientField.d.ts +13 -0
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +17 -0
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/index.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/BooleanField/BooleanField.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/BooleanField/booleanFieldDefaults.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/BooleanField/booleanFieldSchema.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/BooleanField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/BoxStyleWidget/BoxStyleWidget.d.ts +17 -0
- package/dist/_dts/block-form/src/widgets/BoxStyleWidget/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/ContentTypeSelectField/contentTypeSelectFieldDefaults.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/ContentTypeSelectField/contentTypeSelectFieldSchema.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/DateField/DateField.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/DateField/dateFieldDefaults.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/DateField/dateFieldSchema.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +32 -0
- package/dist/_dts/block-form/src/widgets/DateField/index.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/DateTimeField/DateTimeField.d.ts +30 -0
- package/dist/_dts/block-form/src/widgets/DateTimeField/dateTimeFieldDefaults.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/DateTimeField/dateTimeFieldSchema.d.ts +11 -0
- package/dist/_dts/block-form/src/widgets/DateTimeField/index.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/DateTimeField/utils/dateTimeUtils.d.ts +22 -0
- package/dist/_dts/block-form/src/widgets/DateTimeField/utils/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/EntryPickerField/entryPickerFieldDefaults.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/EntryPickerField/entryPickerFieldSchema.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/Field.d.ts +21 -0
- package/dist/_dts/block-form/src/widgets/FieldFrame.d.ts +32 -0
- package/dist/_dts/block-form/src/widgets/FieldSettingsModal/FieldSettingsModal.d.ts +34 -0
- package/dist/_dts/block-form/src/widgets/FieldSettingsModal/index.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/GroupField/GroupField.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/GroupField/groupFieldDefaults.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/GroupField/groupFieldSchema.d.ts +10 -0
- package/dist/_dts/block-form/src/widgets/GroupField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/LinkField/linkFieldDefaults.d.ts +10 -0
- package/dist/_dts/block-form/src/widgets/LinkField/linkFieldSchema.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/MediaField/mediaFieldDefaults.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/MediaField/mediaFieldSchema.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/ModalGroupField/ModalGroupField.d.ts +17 -0
- package/dist/_dts/block-form/src/widgets/ModalGroupField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/ModalGroupField/modalFieldDefaults.d.ts +18 -0
- package/dist/_dts/block-form/src/widgets/ModalGroupField/modalFieldSchema.d.ts +14 -0
- package/dist/_dts/block-form/src/widgets/NumberField/NumberField.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/NumberField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/NumberField/numberFieldDefaults.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/NumberField/numberFieldSchema.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/PresetOrCustomField/PresetOrCustomField.d.ts +11 -0
- package/dist/_dts/block-form/src/widgets/PresetOrCustomField/index.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/PresetOrCustomField/presetOrCustomFieldDefaults.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/PresetOrCustomField/presetOrCustomFieldSchema.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/PresetOrCustomField/types.d.ts +37 -0
- package/dist/_dts/block-form/src/widgets/ReferenceField/referenceFieldDefaults.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/ReferenceField/referenceFieldSchema.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/RepeaterField.d.ts +26 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterDragHandle.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterError.d.ts +11 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterHeader.d.ts +10 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterLayoutGrid.d.ts +27 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +19 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +16 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowContent.d.ts +19 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterTabbedEditDialog.d.ts +16 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailCard.d.ts +26 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailGrid.d.ts +20 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/index.d.ts +11 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/layoutGridDomain.d.ts +34 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/layoutGridCapacityDecision.d.ts +22 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useLayoutGridCapacity.d.ts +20 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useLinearRepeaterDnd.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterPointerDragCapability.d.ts +10 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterRowErrors.d.ts +12 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterVisibility.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useResolvedItemLabel.d.ts +12 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/repeaterFieldDefaults.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/repeaterFieldSchema.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildItemLabel.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/createDefaultItem.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/getRepeaterItemFieldGroups.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/getRepeaterItemFields.d.ts +22 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/index.d.ts +10 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/layoutGridCapacityContext.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterDndDomain.d.ts +43 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterPresentation.d.ts +24 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/resolveThumbnail.d.ts +12 -0
- package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldDefaults.d.ts +20 -0
- package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldSchema.d.ts +16 -0
- package/dist/_dts/block-form/src/widgets/SdkSelectField/SdkSelectField.d.ts +11 -0
- package/dist/_dts/block-form/src/widgets/SdkSelectField/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/SelectField/SelectField.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/SelectField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/SelectField/selectFieldDefaults.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/SelectField/selectFieldSchema.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/SelectWidget.d.ts +34 -0
- package/dist/_dts/block-form/src/widgets/SettingsModal/SettingsModal.d.ts +17 -0
- package/dist/_dts/block-form/src/widgets/SettingsModal/index.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/SliderField/SliderField.d.ts +16 -0
- package/dist/_dts/block-form/src/widgets/SliderField/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/SlugField/SlugField.d.ts +39 -0
- package/dist/_dts/block-form/src/widgets/SlugField/hooks/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/SlugField/hooks/useSlugAutoGeneration.d.ts +29 -0
- package/dist/_dts/block-form/src/widgets/SlugField/index.d.ts +5 -0
- package/dist/_dts/block-form/src/widgets/SlugField/slugFieldDefaults.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/SlugField/slugFieldSchema.d.ts +14 -0
- package/dist/_dts/block-form/src/widgets/SlugField/utils/index.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/SlugField/utils/pathUtils.d.ts +30 -0
- package/dist/_dts/block-form/src/widgets/SlugField/utils/slugUtils.d.ts +17 -0
- package/dist/_dts/block-form/src/widgets/TabGroupField/TabGroupField.d.ts +13 -0
- package/dist/_dts/block-form/src/widgets/TabGroupField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/TabGroupField/tabGroupFieldSchema.d.ts +25 -0
- package/dist/_dts/block-form/src/widgets/TabGroupField/types.d.ts +46 -0
- package/dist/_dts/block-form/src/widgets/TextField/TextField.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/TextField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/TextField/textFieldDefaults.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/TextField/textFieldSchema.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/TextInputWidget.d.ts +20 -0
- package/dist/_dts/block-form/src/widgets/TimeField/TimeField.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/TimeField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/TimeField/timeFieldDefaults.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/TimeField/timeFieldSchema.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/ToggleWidget.d.ts +16 -0
- package/dist/_dts/block-form/src/widgets/UrlField/UrlField.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/UrlField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/UrlField/urlFieldDefaults.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/UrlField/urlFieldSchema.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/constants.d.ts +58 -0
- package/dist/_dts/block-form/src/widgets/groupFieldHelpers.d.ts +61 -0
- package/dist/_dts/block-form/src/widgets/index.d.ts +20 -0
- package/dist/_dts/block-form/src/widgets/selectValueMapping.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/types/modalConfig.d.ts +18 -0
- package/dist/_dts/block-form/src/widgets/utils/readNumericUiConfig.d.ts +10 -0
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +4 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/blog-post.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/columns.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/event-details.d.ts +25 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +6 -6
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/products/shared.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/card.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/ctaRow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/feedbackCallout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/sectionState.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/view.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/FieldValidationMessage.d.ts +19 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/TerminalPanel.d.ts +8 -2
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/themeColorResolution.d.ts +7 -0
- package/dist/_dts/calendar/src/grid.d.ts +60 -0
- package/dist/_dts/calendar/src/group.d.ts +14 -0
- package/dist/_dts/calendar/src/index.d.ts +6 -0
- package/dist/_dts/calendar/src/lane-packing.d.ts +28 -0
- package/dist/_dts/calendar/src/timetable.d.ts +90 -0
- package/dist/_dts/calendar/src/timezone.d.ts +19 -0
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +24 -0
- package/dist/_dts/content-editor/src/index.d.ts +2 -4
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +1 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +1 -0
- package/dist/_dts/core/src/branded.d.ts +18 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +1192 -234
- package/dist/_dts/db/src/schemas/forms.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/index.d.ts +7 -7
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +1 -2
- package/dist/_dts/editor-blocks/src/widgets/link/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/composePageFromBlocks.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/index.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +31 -8
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +6 -5
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/aiProposalProjection.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/index.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +72 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/layout/PreviewLayoutContext.d.ts +6 -5
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +12 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +10 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +7 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeButton.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +49 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeEditableSurface.d.ts +6 -0
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +15 -2
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +8 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeControlStyles.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +9 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +8 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +49 -0
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +18 -0
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +5 -0
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +17 -0
- package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +6 -0
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +3 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +77 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +45 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +21 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +30 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +9 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +50 -0
- package/dist/_dts/sdk/src/cli/merge-remote/stableJson.d.ts +3 -0
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +85 -0
- package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +30 -0
- package/dist/_dts/sdk/src/cli/sync/executor.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +4 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/adapter.d.ts +23 -0
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +8 -0
- package/dist/_dts/site-commands/src/commands.d.ts +1944 -0
- package/dist/_dts/site-commands/src/domain.d.ts +104 -0
- package/dist/_dts/site-commands/src/guards.d.ts +1 -0
- package/dist/_dts/site-commands/src/index.d.ts +9 -0
- package/dist/_dts/site-commands/src/metadata.d.ts +412 -0
- package/dist/_dts/site-commands/src/planner.d.ts +51 -0
- package/dist/_dts/site-commands/src/refContributions.d.ts +10 -0
- package/dist/_dts/site-commands/src/refs.d.ts +75 -0
- package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +10 -0
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +2 -21
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +3 -67
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +4 -62
- package/dist/_dts/theme-core/src/site-styles/appearancePresets.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +24 -0
- package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +94 -0
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +59 -0
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/headerCtaVariants.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +155 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignAuthority.d.ts +7 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +25 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +15 -1
- package/dist/_dts/theme-core/src/site-styles/records.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +96 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +1 -2
- package/dist/_dts/theme-core/src/siteChrome.d.ts +44 -2
- package/dist/_dts/theme-core/src/tokens/colorTokenParts.d.ts +13 -0
- package/dist/_dts/theme-core/src/tokens/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +29 -0
- package/dist/_dts/theme-core/src/utils/tokenOrColor.d.ts +27 -1
- package/dist/cli/index.mjs +5049 -932
- package/dist/cli/init-docs/content/cli-reference.md +18 -0
- package/dist/client/bookings.mjs +544 -393
- package/dist/client/client.mjs +5189 -4144
- package/dist/client/hooks.mjs +3233 -2540
- package/dist/client/rendering/client.mjs +4649 -3597
- package/dist/client/rendering/islands.mjs +19533 -13480
- package/dist/client/rendering.mjs +5218 -4171
- package/dist/preview-next/before-render.mjs +161 -6
- package/dist/preview-next/client/runtime.mjs +5676 -3565
- package/dist/preview-next/editor-base.css +31 -0
- package/dist/preview-next/middleware.mjs +154 -6
- package/dist/server/components.mjs +3333 -2575
- package/dist/server/config-validation.mjs +3447 -2754
- package/dist/server/config.mjs +3450 -2757
- package/dist/server/data.mjs +3233 -2540
- package/dist/server/index.mjs +730 -543
- package/dist/server/next.mjs +3651 -2893
- package/dist/server/page-converter.mjs +2512 -2031
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3333 -2575
- package/dist/server/rendering.mjs +3352 -2594
- package/dist/server/routing.mjs +3351 -2640
- package/dist/server/server.mjs +3262 -2569
- package/dist/server/theme-bridge.mjs +1260 -767
- package/dist/server/theme.mjs +623 -498
- package/dist/styles/index.css +33 -0
- package/package.json +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/colorResolution.d.ts +0 -13
- package/dist/_dts/content-editor/src/ai/patch/allowed.d.ts +0 -2
- package/dist/_dts/content-editor/src/ai/patch/diff.d.ts +0 -17
- package/dist/_dts/content-editor/src/ai/patch/schema.d.ts +0 -49
- package/dist/_dts/preview-next/src/client/blocks/overlay.d.ts +0 -30
- package/dist/_dts/theme-core/src/site-styles/siteChromeAppearancePresets.d.ts +0 -67
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type RepeaterGridItemInput } from '@riverbankcms/blocks';
|
|
3
|
+
import type { RepeaterFieldConfig, FieldConfig } from '../../../fields/types';
|
|
4
|
+
import type { FormBackend } from '../../../backend/types';
|
|
5
|
+
import type { RepeaterPresentationConfig } from '../utils';
|
|
6
|
+
export interface RepeaterLayoutGridProps {
|
|
7
|
+
config: RepeaterFieldConfig;
|
|
8
|
+
backend: FormBackend;
|
|
9
|
+
basePath: string;
|
|
10
|
+
items: Array<{
|
|
11
|
+
id: string;
|
|
12
|
+
}>;
|
|
13
|
+
minItems: number;
|
|
14
|
+
onMove: (from: number, to: number) => void;
|
|
15
|
+
onRemove: (index: number) => void;
|
|
16
|
+
renderChild: (field: FieldConfig, path: string) => ReactNode;
|
|
17
|
+
presentation: Extract<RepeaterPresentationConfig, {
|
|
18
|
+
mode: 'layoutGrid';
|
|
19
|
+
}>;
|
|
20
|
+
onCapacityContextChange?: (context: RepeaterLayoutGridCapacityContext) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface RepeaterLayoutGridCapacityContext {
|
|
23
|
+
items: RepeaterGridItemInput[];
|
|
24
|
+
columns: number;
|
|
25
|
+
maxRows?: number;
|
|
26
|
+
}
|
|
27
|
+
export declare function RepeaterLayoutGrid({ config, backend, basePath, items, minItems, onMove, onRemove, renderChild, presentation, onCapacityContextChange, }: RepeaterLayoutGridProps): ReactNode;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Repeater list - DnD context wrapper for sortable items
|
|
3
|
+
*/
|
|
4
|
+
import type { ReactNode } from 'react';
|
|
5
|
+
import type { RepeaterFieldConfig, FieldConfig } from '../../../fields/types';
|
|
6
|
+
import type { FormBackend } from '../../../backend/types';
|
|
7
|
+
export interface RepeaterListProps {
|
|
8
|
+
config: RepeaterFieldConfig;
|
|
9
|
+
backend: FormBackend;
|
|
10
|
+
basePath: string;
|
|
11
|
+
items: Array<{
|
|
12
|
+
id: string;
|
|
13
|
+
}>;
|
|
14
|
+
minItems: number;
|
|
15
|
+
onMove: (from: number, to: number) => void;
|
|
16
|
+
onRemove: (index: number) => void;
|
|
17
|
+
renderChild: (field: FieldConfig, path: string) => ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare function RepeaterList({ config, backend, basePath, items, minItems, onMove, onRemove, renderChild, }: RepeaterListProps): ReactNode;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Repeater row - sortable item with disclosure
|
|
3
|
+
* Handles drag-drop, disclosure state, and coordinates child rendering
|
|
4
|
+
*
|
|
5
|
+
* Routes non-content item fields into a settings modal in the row header.
|
|
6
|
+
*/
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
|
+
import type { RepeaterFieldConfig, FieldConfig } from '../../../fields/types';
|
|
9
|
+
import type { FormBackend } from '../../../backend/types';
|
|
10
|
+
export interface RepeaterRowProps {
|
|
11
|
+
id: string;
|
|
12
|
+
index: number;
|
|
13
|
+
config: RepeaterFieldConfig;
|
|
14
|
+
backend: FormBackend;
|
|
15
|
+
basePath: string;
|
|
16
|
+
itemsLength: number;
|
|
17
|
+
minItems: number;
|
|
18
|
+
onMove: (from: number, to: number) => void;
|
|
19
|
+
onRemove: (index: number) => void;
|
|
20
|
+
renderChild: (field: FieldConfig, path: string) => ReactNode;
|
|
21
|
+
canDrag: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function RepeaterRow({ id, index, config, backend, basePath, itemsLength, minItems, onMove, onRemove, renderChild, canDrag, }: RepeaterRowProps): ReactNode;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Repeater row action buttons - move up/down, delete
|
|
3
|
+
*/
|
|
4
|
+
import type { ReactNode } from 'react';
|
|
5
|
+
export interface RepeaterRowActionsProps {
|
|
6
|
+
index: number;
|
|
7
|
+
itemsLength: number;
|
|
8
|
+
minItems: number;
|
|
9
|
+
onMoveUp: () => void;
|
|
10
|
+
onMoveDown: () => void;
|
|
11
|
+
onRemove: () => void;
|
|
12
|
+
showReorderActions?: boolean;
|
|
13
|
+
disableMoveUp?: boolean;
|
|
14
|
+
disableMoveDown?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function RepeaterRowActions({ index, itemsLength, minItems, onMoveUp, onMoveDown, onRemove, showReorderActions, disableMoveUp, disableMoveDown, }: RepeaterRowActionsProps): ReactNode;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Repeater row content - renders the fields for a single item
|
|
3
|
+
* Pure field rendering, no drag-drop awareness
|
|
4
|
+
*/
|
|
5
|
+
import type { ReactNode } from 'react';
|
|
6
|
+
import type { RepeaterFieldConfig, FieldConfig } from '../../../fields/types';
|
|
7
|
+
import type { FormBackend } from '../../../backend/types';
|
|
8
|
+
export interface RepeaterRowContentProps {
|
|
9
|
+
config: RepeaterFieldConfig;
|
|
10
|
+
index: number;
|
|
11
|
+
basePath: string;
|
|
12
|
+
backend: FormBackend;
|
|
13
|
+
renderChild: (field: FieldConfig, path: string) => ReactNode;
|
|
14
|
+
/** Field IDs to exclude from rendering (used for settings routing) */
|
|
15
|
+
excludeFieldIds?: Set<string>;
|
|
16
|
+
/** Optional className for wrapper layout/padding overrides */
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function RepeaterRowContent({ config, index, basePath, backend, renderChild, excludeFieldIds, className, }: RepeaterRowContentProps): ReactNode;
|
package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterTabbedEditDialog.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type RepeaterEditTab = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
type RepeaterTabbedEditDialogProps = {
|
|
8
|
+
open: boolean;
|
|
9
|
+
onOpenChange: (open: boolean) => void;
|
|
10
|
+
title: string;
|
|
11
|
+
activeTab: string;
|
|
12
|
+
onActiveTabChange: (tab: string) => void;
|
|
13
|
+
tabs: RepeaterEditTab[];
|
|
14
|
+
};
|
|
15
|
+
export declare function RepeaterTabbedEditDialog({ open, onOpenChange, title, activeTab, onActiveTabChange, tabs, }: RepeaterTabbedEditDialogProps): ReactNode;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { FieldConfig, RepeaterFieldConfig } from '../../../fields/types';
|
|
3
|
+
import type { FormBackend } from '../../../backend/types';
|
|
4
|
+
import { type RepeaterPresentationConfig } from '../utils';
|
|
5
|
+
export interface RepeaterThumbnailCardProps {
|
|
6
|
+
index: number;
|
|
7
|
+
config: RepeaterFieldConfig;
|
|
8
|
+
backend: FormBackend;
|
|
9
|
+
basePath: string;
|
|
10
|
+
itemsLength: number;
|
|
11
|
+
minItems: number;
|
|
12
|
+
onMove: (from: number, to: number) => void;
|
|
13
|
+
onRemove: (index: number) => void;
|
|
14
|
+
renderChild: (field: FieldConfig, path: string) => ReactNode;
|
|
15
|
+
presentation: Extract<RepeaterPresentationConfig, {
|
|
16
|
+
mode: 'thumbnailGrid' | 'layoutGrid';
|
|
17
|
+
}>;
|
|
18
|
+
showReorderActions?: boolean;
|
|
19
|
+
renderDragHandle?: () => ReactNode;
|
|
20
|
+
hiddenDetailFieldIds?: Set<string>;
|
|
21
|
+
onMoveUp?: () => void;
|
|
22
|
+
onMoveDown?: () => void;
|
|
23
|
+
disableMoveUp?: boolean;
|
|
24
|
+
disableMoveDown?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare function RepeaterThumbnailCard({ index, config, backend, basePath, itemsLength, minItems, onMove, onRemove, renderChild, presentation, showReorderActions, renderDragHandle, hiddenDetailFieldIds, onMoveUp, onMoveDown, disableMoveUp, disableMoveDown, }: RepeaterThumbnailCardProps): ReactNode;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { RepeaterFieldConfig, FieldConfig } from '../../../fields/types';
|
|
3
|
+
import type { FormBackend } from '../../../backend/types';
|
|
4
|
+
import type { RepeaterPresentationConfig } from '../utils';
|
|
5
|
+
export interface RepeaterThumbnailGridProps {
|
|
6
|
+
config: RepeaterFieldConfig;
|
|
7
|
+
backend: FormBackend;
|
|
8
|
+
basePath: string;
|
|
9
|
+
items: Array<{
|
|
10
|
+
id: string;
|
|
11
|
+
}>;
|
|
12
|
+
minItems: number;
|
|
13
|
+
onMove: (from: number, to: number) => void;
|
|
14
|
+
onRemove: (index: number) => void;
|
|
15
|
+
renderChild: (field: FieldConfig, path: string) => ReactNode;
|
|
16
|
+
presentation: Extract<RepeaterPresentationConfig, {
|
|
17
|
+
mode: 'thumbnailGrid';
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
export declare function RepeaterThumbnailGrid({ config, backend, basePath, items, minItems, onMove, onRemove, renderChild, presentation, }: RepeaterThumbnailGridProps): ReactNode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { RepeaterHeader } from './RepeaterHeader';
|
|
2
|
+
export { RepeaterError } from './RepeaterError';
|
|
3
|
+
export { RepeaterDragHandle } from './RepeaterDragHandle';
|
|
4
|
+
export { RepeaterList } from './RepeaterList';
|
|
5
|
+
export { RepeaterRow } from './RepeaterRow';
|
|
6
|
+
export { RepeaterRowActions } from './RepeaterRowActions';
|
|
7
|
+
export { RepeaterRowContent } from './RepeaterRowContent';
|
|
8
|
+
export { RepeaterLayoutGrid } from './RepeaterLayoutGrid';
|
|
9
|
+
export type { RepeaterLayoutGridCapacityContext } from './RepeaterLayoutGrid';
|
|
10
|
+
export { RepeaterThumbnailGrid } from './RepeaterThumbnailGrid';
|
|
11
|
+
export { RepeaterTabbedEditDialog } from './RepeaterTabbedEditDialog';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { RepeaterGridDropTarget, RepeaterGridPlacement } from '@riverbankcms/blocks';
|
|
2
|
+
type Brand<TValue, TBrand extends string> = TValue & {
|
|
3
|
+
readonly __brand: TBrand;
|
|
4
|
+
};
|
|
5
|
+
export type GridColumns = Brand<number, 'GridColumns'>;
|
|
6
|
+
export type LayoutGridDragState = {
|
|
7
|
+
kind: 'idle';
|
|
8
|
+
} | {
|
|
9
|
+
kind: 'dragging';
|
|
10
|
+
activeId: string;
|
|
11
|
+
};
|
|
12
|
+
export type LayoutGridMoveIntent = {
|
|
13
|
+
kind: 'none';
|
|
14
|
+
reason: 'idle' | 'missing-over' | 'unknown-target' | 'invalid-target' | 'missing-active-placement' | 'same-position';
|
|
15
|
+
} | {
|
|
16
|
+
kind: 'move';
|
|
17
|
+
activeId: string;
|
|
18
|
+
toRow: number;
|
|
19
|
+
toColStart: number;
|
|
20
|
+
swapWithId?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare function toGridColumns(value: number): GridColumns;
|
|
23
|
+
export declare function createIdleLayoutGridDragState(): LayoutGridDragState;
|
|
24
|
+
export declare function createDraggingLayoutGridDragState(activeId: unknown): LayoutGridDragState;
|
|
25
|
+
export declare function getActiveLayoutGridDragId(dragState: LayoutGridDragState): string | null;
|
|
26
|
+
export declare function resolveLayoutGridMoveIntent(input: {
|
|
27
|
+
dragState: LayoutGridDragState;
|
|
28
|
+
overId: string | null;
|
|
29
|
+
dropTargetsById: ReadonlyMap<string, RepeaterGridDropTarget>;
|
|
30
|
+
itemDropTargetsById: ReadonlyMap<string, RepeaterGridDropTarget>;
|
|
31
|
+
placementsById: ReadonlyMap<string, RepeaterGridPlacement>;
|
|
32
|
+
}): LayoutGridMoveIntent;
|
|
33
|
+
export declare function buildLayoutGridOccupiedCells(placements: readonly RepeaterGridPlacement[], columns: GridColumns): Set<number>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { useRepeaterVisibility } from './useRepeaterVisibility';
|
|
2
|
+
export { useRepeaterRowErrors, type RowFieldError } from './useRepeaterRowErrors';
|
|
3
|
+
export { useResolvedItemLabel } from './useResolvedItemLabel';
|
|
4
|
+
export { useLayoutGridCapacity } from './useLayoutGridCapacity';
|
|
5
|
+
export { useLinearRepeaterDnd, type LinearRepeaterSortingStrategyKind } from './useLinearRepeaterDnd';
|
|
6
|
+
export { useRepeaterPointerDragCapability } from './useRepeaterPointerDragCapability';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { RepeaterFieldConfig } from '../../../fields/types';
|
|
2
|
+
import type { RepeaterLayoutGridCapacityContext } from '../components/RepeaterLayoutGrid';
|
|
3
|
+
import type { RepeaterPresentationConfig } from '../utils';
|
|
4
|
+
export type LayoutGridAddBlockedReason = 'missing-capacity-context' | 'invalid-span' | 'max-rows-reached';
|
|
5
|
+
export type LayoutGridAddDecision = {
|
|
6
|
+
canAdd: true;
|
|
7
|
+
nextPlacement: {
|
|
8
|
+
row: number;
|
|
9
|
+
colStart: number;
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
canAdd: false;
|
|
13
|
+
reason: LayoutGridAddBlockedReason;
|
|
14
|
+
};
|
|
15
|
+
type ResolveLayoutGridAddDecisionInput = {
|
|
16
|
+
config: RepeaterFieldConfig;
|
|
17
|
+
presentation: RepeaterPresentationConfig;
|
|
18
|
+
layoutGridCapacityContext: RepeaterLayoutGridCapacityContext | null;
|
|
19
|
+
itemType?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function resolveLayoutGridAddDecision({ config, presentation, layoutGridCapacityContext, itemType, }: ResolveLayoutGridAddDecisionInput): LayoutGridAddDecision;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RepeaterFieldConfig } from '../../../fields/types';
|
|
2
|
+
import type { RepeaterPresentationConfig } from '../utils';
|
|
3
|
+
import type { RepeaterLayoutGridCapacityContext } from '../components/RepeaterLayoutGrid';
|
|
4
|
+
type UseLayoutGridCapacityInput = {
|
|
5
|
+
config: RepeaterFieldConfig;
|
|
6
|
+
presentation: RepeaterPresentationConfig;
|
|
7
|
+
isPolymorphic: boolean;
|
|
8
|
+
};
|
|
9
|
+
type UseLayoutGridCapacityResult = {
|
|
10
|
+
onLayoutGridCapacityContextChange: (next: RepeaterLayoutGridCapacityContext) => void;
|
|
11
|
+
canAppendLayoutGridDefaultItem: (itemType?: string) => boolean;
|
|
12
|
+
getNextLayoutGridPlacement: (itemType?: string) => {
|
|
13
|
+
row: number;
|
|
14
|
+
colStart: number;
|
|
15
|
+
} | null;
|
|
16
|
+
polymorphicTypeCanAdd: Map<string, boolean>;
|
|
17
|
+
layoutGridAddDisabled: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare function useLayoutGridCapacity({ config, presentation, isPolymorphic, }: UseLayoutGridCapacityInput): UseLayoutGridCapacityResult;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { closestCenter, useSensors, type DragEndEvent } from '@dnd-kit/core';
|
|
2
|
+
import { type SortingStrategy } from '@dnd-kit/sortable';
|
|
3
|
+
import { useRepeaterPointerDragCapability } from './useRepeaterPointerDragCapability';
|
|
4
|
+
export type LinearRepeaterSortingStrategyKind = 'verticalList' | 'rectGrid';
|
|
5
|
+
interface UseLinearRepeaterDndInput {
|
|
6
|
+
itemIds: readonly string[];
|
|
7
|
+
sortingStrategy: LinearRepeaterSortingStrategyKind;
|
|
8
|
+
activationDistance?: number;
|
|
9
|
+
onMove: (fromIndex: number, toIndex: number) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface UseLinearRepeaterDndResult {
|
|
12
|
+
containerRef: ReturnType<typeof useRepeaterPointerDragCapability>['containerRef'];
|
|
13
|
+
breakpoint: ReturnType<typeof useRepeaterPointerDragCapability>['breakpoint'];
|
|
14
|
+
pointerDragCapability: ReturnType<typeof useRepeaterPointerDragCapability>['pointerDragCapability'];
|
|
15
|
+
canUsePointerDrag: boolean;
|
|
16
|
+
sensors: ReturnType<typeof useSensors>;
|
|
17
|
+
collisionDetection: typeof closestCenter;
|
|
18
|
+
sortingStrategy: SortingStrategy;
|
|
19
|
+
sortableItemIds: string[];
|
|
20
|
+
handleDragEnd: (event: DragEndEvent) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function useLinearRepeaterDnd(input: UseLinearRepeaterDndInput): UseLinearRepeaterDndResult;
|
|
23
|
+
export {};
|
package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterPointerDragCapability.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { resolveRepeaterGridBreakpointForWidth } from '@riverbankcms/blocks';
|
|
3
|
+
import { type RepeaterPointerDragCapability } from '../utils';
|
|
4
|
+
export interface UseRepeaterPointerDragCapabilityResult {
|
|
5
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
6
|
+
breakpoint: ReturnType<typeof resolveRepeaterGridBreakpointForWidth>;
|
|
7
|
+
pointerDragCapability: RepeaterPointerDragCapability;
|
|
8
|
+
canUsePointerDrag: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function useRepeaterPointerDragCapability(itemCount: number): UseRepeaterPointerDragCapabilityResult;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook to collect validation errors for a repeater row
|
|
3
|
+
*/
|
|
4
|
+
import type { RepeaterFieldConfig } from '../../../fields/types';
|
|
5
|
+
import type { FormBackend } from '../../../backend/types';
|
|
6
|
+
export type RowFieldError = {
|
|
7
|
+
fieldId: string;
|
|
8
|
+
path: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
value: unknown;
|
|
11
|
+
};
|
|
12
|
+
export declare function useRepeaterRowErrors(field: RepeaterFieldConfig, index: number, backend: FormBackend, basePath: string): RowFieldError[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook to handle repeater field visibility based on visibleWhen conditions
|
|
3
|
+
*/
|
|
4
|
+
import type { RepeaterFieldConfig } from '../../../fields/types';
|
|
5
|
+
import type { FormBackend } from '../../../backend/types';
|
|
6
|
+
export declare function useRepeaterVisibility(field: RepeaterFieldConfig, backend: FormBackend, path: string): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RepeaterFieldConfig } from '../../../fields/types';
|
|
2
|
+
import type { FormBackend } from '../../../backend/types';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves a display label for a repeater item.
|
|
5
|
+
*
|
|
6
|
+
* When the repeater's `itemLabelSource` points to a field type that has a
|
|
7
|
+
* registered DisplayLabelResolver (e.g. entryPicker), this hook resolves the
|
|
8
|
+
* stored value to a human-readable string asynchronously. While resolution is
|
|
9
|
+
* in-flight or if no resolver exists, the sync fallback from `buildItemLabel`
|
|
10
|
+
* is returned.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useResolvedItemLabel(config: RepeaterFieldConfig, index: number, backend: FormBackend, basePath: string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RepeaterField default value builder
|
|
3
|
+
* Server-safe - no React, no browser APIs
|
|
4
|
+
*/
|
|
5
|
+
import type { RepeaterFieldConfig } from '../../fields/types';
|
|
6
|
+
import type { DefaultValueContext } from '../GroupField/groupFieldDefaults';
|
|
7
|
+
export declare function getRepeaterFieldDefault(field: RepeaterFieldConfig, ctx: DefaultValueContext): Array<Record<string, unknown>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RepeaterField validation schema builder
|
|
3
|
+
* Server-safe - no React, no browser APIs
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
import type { RepeaterFieldConfig } from '../../fields/types';
|
|
7
|
+
import type { SchemaContext } from '../GroupField/groupFieldSchema';
|
|
8
|
+
export declare function buildRepeaterFieldSchema(field: RepeaterFieldConfig, ctx: SchemaContext): z.ZodTypeAny;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build the display label for a repeater item
|
|
3
|
+
* Uses itemLabelSource if specified, otherwise falls back to index
|
|
4
|
+
*/
|
|
5
|
+
import type { RepeaterFieldConfig } from '../../../fields/types';
|
|
6
|
+
import type { FormBackend } from '../../../backend/types';
|
|
7
|
+
export declare function buildItemLabel(field: RepeaterFieldConfig, index: number, backend: FormBackend, basePath: string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build a summary preview text for a repeater item
|
|
3
|
+
* Shows first 2 non-hidden, non-label-source field values
|
|
4
|
+
*/
|
|
5
|
+
import type { RepeaterFieldConfig } from '../../../fields/types';
|
|
6
|
+
import type { FormBackend } from '../../../backend/types';
|
|
7
|
+
export declare function buildSummary(field: RepeaterFieldConfig, index: number, backend: FormBackend, basePath: string): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create a default item for a repeater field
|
|
3
|
+
* Reads default values from field configs directly
|
|
4
|
+
*/
|
|
5
|
+
import type { RepeaterFieldConfig } from '../../../fields/types';
|
|
6
|
+
export declare function createDefaultItem(field: RepeaterFieldConfig, itemType?: string): Record<string, unknown>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RepeaterFieldConfig, FieldConfig } from '../../../fields/types';
|
|
2
|
+
import type { FormBackend } from '../../../backend/types';
|
|
3
|
+
export type RepeaterItemFieldGroups = {
|
|
4
|
+
contentFields: FieldConfig[];
|
|
5
|
+
settingsFields: FieldConfig[];
|
|
6
|
+
settingsFieldIds: Set<string>;
|
|
7
|
+
};
|
|
8
|
+
export declare function getRepeaterItemFieldGroups(config: RepeaterFieldConfig, backend: FormBackend, basePath: string, index: number): RepeaterItemFieldGroups;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get fields for a repeater item based on repeater configuration.
|
|
3
|
+
*
|
|
4
|
+
* Handles both monomorphic repeaters (fields defined on config) and
|
|
5
|
+
* polymorphic repeaters (fields defined per item type).
|
|
6
|
+
*/
|
|
7
|
+
import type { RepeaterFieldConfig, FieldConfig } from '../../../fields/types';
|
|
8
|
+
import type { FormBackend } from '../../../backend/types';
|
|
9
|
+
/**
|
|
10
|
+
* Get the fields for a specific repeater item.
|
|
11
|
+
*
|
|
12
|
+
* For monomorphic repeaters, returns config.fields.
|
|
13
|
+
* For polymorphic repeaters, looks up the item's _type and returns
|
|
14
|
+
* the fields from the corresponding itemType schema.
|
|
15
|
+
*
|
|
16
|
+
* @param config - Repeater field configuration
|
|
17
|
+
* @param backend - Form backend for reading values
|
|
18
|
+
* @param basePath - Base path to the repeater array
|
|
19
|
+
* @param index - Index of the item in the array
|
|
20
|
+
* @returns Array of field configs for this item
|
|
21
|
+
*/
|
|
22
|
+
export declare function getRepeaterItemFields(config: RepeaterFieldConfig, backend: FormBackend, basePath: string, index: number): FieldConfig[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { createDefaultItem } from './createDefaultItem';
|
|
2
|
+
export { buildItemLabel } from './buildItemLabel';
|
|
3
|
+
export { buildSummary } from './buildSummary';
|
|
4
|
+
export { getRepeaterItemFields } from './getRepeaterItemFields';
|
|
5
|
+
export { getRepeaterItemFieldGroups } from './getRepeaterItemFieldGroups';
|
|
6
|
+
export { areLayoutGridCapacityContextsEqual } from './layoutGridCapacityContext';
|
|
7
|
+
export { handleLinearRepeaterDragEnd, resolveLinearRepeaterMoveIntent, resolveRepeaterPointerDragCapability, type LinearRepeaterDragEndEvent, type LinearRepeaterMoveIntent, type RepeaterPointerDragCapability, } from './repeaterDndDomain';
|
|
8
|
+
export { resolveRepeaterPresentation } from './repeaterPresentation';
|
|
9
|
+
export { resolveRepeaterThumbnail } from './resolveThumbnail';
|
|
10
|
+
export type { RepeaterPresentationConfig, RepeaterCardDensity } from './repeaterPresentation';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { RepeaterGridBreakpoint } from '@riverbankcms/blocks';
|
|
2
|
+
export type RepeaterPointerDragCapability = {
|
|
3
|
+
kind: 'enabled';
|
|
4
|
+
breakpoint: RepeaterGridBreakpoint;
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'disabled';
|
|
7
|
+
breakpoint: RepeaterGridBreakpoint;
|
|
8
|
+
reason: 'insufficient-items' | 'small-breakpoint' | 'coarse-pointer';
|
|
9
|
+
};
|
|
10
|
+
export type LinearRepeaterMoveIntent = {
|
|
11
|
+
kind: 'none';
|
|
12
|
+
reason: 'missing-over' | 'same-item' | 'unknown-active' | 'unknown-over';
|
|
13
|
+
} | {
|
|
14
|
+
kind: 'move';
|
|
15
|
+
fromIndex: number;
|
|
16
|
+
toIndex: number;
|
|
17
|
+
};
|
|
18
|
+
export interface LinearRepeaterDragEndEvent {
|
|
19
|
+
active: {
|
|
20
|
+
id: unknown;
|
|
21
|
+
};
|
|
22
|
+
over: {
|
|
23
|
+
id: unknown;
|
|
24
|
+
} | null;
|
|
25
|
+
}
|
|
26
|
+
type LinearRepeaterPointerDragCapabilityInput = {
|
|
27
|
+
breakpoint: RepeaterGridBreakpoint;
|
|
28
|
+
coarsePointer: boolean;
|
|
29
|
+
itemCount: number;
|
|
30
|
+
};
|
|
31
|
+
interface LinearRepeaterMoveIntentInput {
|
|
32
|
+
activeId: unknown;
|
|
33
|
+
overId: unknown;
|
|
34
|
+
itemIds: readonly string[];
|
|
35
|
+
}
|
|
36
|
+
export declare function resolveRepeaterPointerDragCapability(input: LinearRepeaterPointerDragCapabilityInput): RepeaterPointerDragCapability;
|
|
37
|
+
export declare function resolveLinearRepeaterMoveIntent(input: LinearRepeaterMoveIntentInput): LinearRepeaterMoveIntent;
|
|
38
|
+
export declare function handleLinearRepeaterDragEnd(input: {
|
|
39
|
+
event: LinearRepeaterDragEndEvent;
|
|
40
|
+
itemIds: readonly string[];
|
|
41
|
+
onMove: (fromIndex: number, toIndex: number) => void;
|
|
42
|
+
}): LinearRepeaterMoveIntent;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { RepeaterFieldConfig } from '../../../fields/types';
|
|
2
|
+
import { type RepeaterGridColumnsFieldBindings } from '@riverbankcms/blocks';
|
|
3
|
+
export type RepeaterCardDensity = 'compact' | 'comfortable';
|
|
4
|
+
type RepeaterThumbnailPresentation = {
|
|
5
|
+
thumbnailField: string;
|
|
6
|
+
thumbnailAltField?: string;
|
|
7
|
+
thumbnailLabelField?: string;
|
|
8
|
+
thumbnailAspectRatio?: string;
|
|
9
|
+
density: RepeaterCardDensity;
|
|
10
|
+
};
|
|
11
|
+
export type RepeaterPresentationConfig = {
|
|
12
|
+
mode: 'stack';
|
|
13
|
+
} | ({
|
|
14
|
+
mode: 'thumbnailGrid';
|
|
15
|
+
} & RepeaterThumbnailPresentation) | ({
|
|
16
|
+
mode: 'layoutGrid';
|
|
17
|
+
columnsFields: RepeaterGridColumnsFieldBindings;
|
|
18
|
+
spanField: string;
|
|
19
|
+
rowField: string;
|
|
20
|
+
columnField: string;
|
|
21
|
+
maxRows?: number;
|
|
22
|
+
} & RepeaterThumbnailPresentation);
|
|
23
|
+
export declare function resolveRepeaterPresentation(config: RepeaterFieldConfig): RepeaterPresentationConfig;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ResolveImageUrlContext } from '@riverbankcms/blocks';
|
|
2
|
+
type ResolveRepeaterThumbnailOptions = {
|
|
3
|
+
siteId?: string;
|
|
4
|
+
imageResolveContext?: ResolveImageUrlContext;
|
|
5
|
+
};
|
|
6
|
+
export type ResolvedRepeaterThumbnail = {
|
|
7
|
+
src: string | null;
|
|
8
|
+
alt: string | null;
|
|
9
|
+
kind: 'image' | 'video' | 'unknown';
|
|
10
|
+
};
|
|
11
|
+
export declare function resolveRepeaterThumbnail(value: unknown, options?: ResolveRepeaterThumbnailOptions): ResolvedRepeaterThumbnail;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RichTextFieldConfig } from '../../fields/types';
|
|
2
|
+
/**
|
|
3
|
+
* Empty TipTap document structure
|
|
4
|
+
*/
|
|
5
|
+
export declare const EMPTY_RICH_TEXT_DOC: {
|
|
6
|
+
type: string;
|
|
7
|
+
content: {
|
|
8
|
+
type: string;
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Get default value for rich text field
|
|
13
|
+
* Returns empty TipTap document structure
|
|
14
|
+
*/
|
|
15
|
+
export declare function getRichTextFieldDefaultValue(_config: RichTextFieldConfig): {
|
|
16
|
+
type: string;
|
|
17
|
+
content: {
|
|
18
|
+
type: string;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { RichTextFieldConfig } from '../../fields/types';
|
|
3
|
+
/**
|
|
4
|
+
* Build Zod validation schema for rich text field
|
|
5
|
+
*
|
|
6
|
+
* Uses the shared rich text schema from @riverbankcms/blocks to ensure consistency
|
|
7
|
+
* between the form editor and block rendering validation.
|
|
8
|
+
*
|
|
9
|
+
* @param config - Rich text field configuration
|
|
10
|
+
* @returns Zod schema for rich text validation
|
|
11
|
+
*/
|
|
12
|
+
export declare function buildRichTextFieldSchema(config: RichTextFieldConfig): z.ZodUnion<readonly [z.ZodType<import("@riverbankcms/blocks").TipTapNode, unknown, z.core.$ZodTypeInternals<import("@riverbankcms/blocks").TipTapNode, unknown>>, z.ZodObject<{
|
|
13
|
+
doc: z.ZodType<import("@riverbankcms/blocks").TipTapNode, unknown, z.core.$ZodTypeInternals<import("@riverbankcms/blocks").TipTapNode, unknown>>;
|
|
14
|
+
}, z.core.$strip>]> | z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodType<import("@riverbankcms/blocks").TipTapNode, unknown, z.core.$ZodTypeInternals<import("@riverbankcms/blocks").TipTapNode, unknown>>, z.ZodObject<{
|
|
15
|
+
doc: z.ZodType<import("@riverbankcms/blocks").TipTapNode, unknown, z.core.$ZodTypeInternals<import("@riverbankcms/blocks").TipTapNode, unknown>>;
|
|
16
|
+
}, z.core.$strip>]>, z.ZodNull]>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SdkSelectField - SDK-aware select widget
|
|
3
|
+
*
|
|
4
|
+
* Extends SelectField to check for SDK-provided options first.
|
|
5
|
+
* Falls back to field-defined options when SDK options aren't available.
|
|
6
|
+
*
|
|
7
|
+
* Use `ui.widget: 'sdkSelect'` in field definitions to opt into this behavior.
|
|
8
|
+
*/
|
|
9
|
+
import type { FieldWidgetProps } from '../../fields/props';
|
|
10
|
+
import type { SelectFieldConfig } from '../../fields/types';
|
|
11
|
+
export declare function SdkSelectField({ path, backend, config }: FieldWidgetProps<string, SelectFieldConfig>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SdkSelectField } from './SdkSelectField';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SelectField - Dropdown selection widget using new FieldWidgetProps pattern with @riverbankcms/ui components
|
|
3
|
+
* Used for enums, block variants, and other single-choice selections
|
|
4
|
+
*/
|
|
5
|
+
import type { FieldWidgetProps } from '../../fields/props';
|
|
6
|
+
import type { SelectFieldConfig } from '../../fields/types';
|
|
7
|
+
export declare function SelectField({ path, backend, config }: FieldWidgetProps<string | string[] | null, SelectFieldConfig>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SelectField validation schema builder
|
|
3
|
+
* Server-safe - no React, no browser APIs
|
|
4
|
+
*/
|
|
5
|
+
import type { z } from 'zod';
|
|
6
|
+
import type { SelectFieldConfig } from '../../fields/types';
|
|
7
|
+
export declare function buildSelectFieldSchema(field: SelectFieldConfig): z.ZodTypeAny;
|