@riverbankcms/sdk 0.62.4 → 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 +64 -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/bookingConfig.d.ts +2 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +26 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +12 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +1 -0
- package/dist/_dts/api/src/courses.d.ts +3 -0
- package/dist/_dts/api/src/endpoints.d.ts +23 -0
- package/dist/_dts/api/src/index.d.ts +8 -5
- 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/siteOnboarding.d.ts +4 -0
- package/dist/_dts/api/src/siteOperations.d.ts +10 -0
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +29 -0
- package/dist/_dts/api/src/types.d.ts +2 -1
- 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/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/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/index.d.ts +1 -4
- 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 +750 -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/preview/PreviewEditorSidebar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/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 +3 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +1 -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 +1 -0
- 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/cli/index.mjs +3997 -548
- package/dist/cli/init-docs/content/cli-reference.md +18 -0
- package/dist/client/bookings.mjs +25 -25
- package/dist/client/client.mjs +2560 -2487
- package/dist/client/hooks.mjs +2288 -2194
- package/dist/client/rendering/client.mjs +296 -108
- package/dist/client/rendering/islands.mjs +18257 -13071
- package/dist/client/rendering.mjs +788 -713
- package/dist/preview-next/before-render.mjs +23 -0
- package/dist/preview-next/client/runtime.mjs +2219 -2076
- package/dist/preview-next/middleware.mjs +23 -0
- package/dist/server/components.mjs +410 -306
- package/dist/server/config-validation.mjs +2516 -2422
- package/dist/server/config.mjs +2516 -2422
- package/dist/server/data.mjs +2288 -2194
- package/dist/server/index.mjs +599 -537
- package/dist/server/next.mjs +2517 -2413
- package/dist/server/page-converter.mjs +42 -10
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +410 -306
- package/dist/server/rendering.mjs +410 -306
- package/dist/server/routing.mjs +2302 -2288
- package/dist/server/server.mjs +2306 -2212
- package/dist/server/theme-bridge.mjs +14 -4
- package/package.json +2 -1
- 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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BoxStyleWidget - Modal dialog for section/container/card styling
|
|
3
|
+
*
|
|
4
|
+
* Similar to ModalGroupField but specialized for box styling contexts.
|
|
5
|
+
* Supports future enhancement for tabs when both section and container styles exist.
|
|
6
|
+
*
|
|
7
|
+
* Configuration via config.ui.modalConfig:
|
|
8
|
+
* - buttonLabel: Text for trigger button (default: based on config.label)
|
|
9
|
+
* - description: Helper text in dialog header
|
|
10
|
+
* - buttonVariant: 'default' | 'outline' (default: 'outline')
|
|
11
|
+
* - showCustomizedIndicator: Show "(customized)" badge (default: true)
|
|
12
|
+
* - maxWidth: Dialog max width class (default: 'max-w-3xl')
|
|
13
|
+
*/
|
|
14
|
+
import type { ReactNode } from 'react';
|
|
15
|
+
import type { FieldWidgetProps } from '../../fields/props';
|
|
16
|
+
import type { GroupFieldConfig } from '../../fields/types';
|
|
17
|
+
export declare function BoxStyleWidget({ path, backend, config, renderChild, }: FieldWidgetProps<Record<string, unknown>, GroupFieldConfig>): ReactNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BoxStyleWidget } from './BoxStyleWidget';
|
package/dist/_dts/block-form/src/widgets/ContentTypeSelectField/contentTypeSelectFieldSchema.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ContentTypeSelectFieldConfig } from '../../fields/types';
|
|
3
|
+
import type { SchemaContext } from '../GroupField';
|
|
4
|
+
export declare function buildContentTypeSelectFieldSchema(field: ContentTypeSelectFieldConfig, _ctx: SchemaContext): z.ZodTypeAny;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DateField - Date picker input widget
|
|
3
|
+
*
|
|
4
|
+
* Uses DatePickerPopover for calendar-based date selection.
|
|
5
|
+
*/
|
|
6
|
+
import type { ReactNode } from 'react';
|
|
7
|
+
import type { FieldWidgetProps } from '../../fields/props';
|
|
8
|
+
import type { DateFieldConfig } from '../../fields/types';
|
|
9
|
+
export interface DateFieldProps extends FieldWidgetProps<string | null, DateFieldConfig> {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* DateField - Renders a date picker field
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <DateField
|
|
17
|
+
* path="publishDate"
|
|
18
|
+
* backend={backend}
|
|
19
|
+
* config={{ id: 'publishDate', type: 'date', label: 'Publish Date' }}
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function DateField({ path, backend, config }: DateFieldProps): ReactNode;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Date Field - Validation Schema
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import type { DateFieldConfig } from '../../fields/types';
|
|
6
|
+
/**
|
|
7
|
+
* Build Zod validation schema for Date field
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildDateFieldSchema(field: DateFieldConfig): z.ZodTypeAny;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { Calendar } from '@riverbankcms/ui';
|
|
3
|
+
export type DateParseResult = Date | null;
|
|
4
|
+
export declare function parseDateValue(value: unknown): DateParseResult;
|
|
5
|
+
export type DatePickerPopoverRenderArgs = {
|
|
6
|
+
selectedDate: DateParseResult;
|
|
7
|
+
setDate: (date: DateParseResult) => void;
|
|
8
|
+
close: () => void;
|
|
9
|
+
};
|
|
10
|
+
export type DatePickerTriggerRenderArgs = {
|
|
11
|
+
selectedDate: DateParseResult;
|
|
12
|
+
open: boolean;
|
|
13
|
+
openPopover: () => void;
|
|
14
|
+
closePopover: () => void;
|
|
15
|
+
togglePopover: () => void;
|
|
16
|
+
buttonLabel: string;
|
|
17
|
+
placeholder: string;
|
|
18
|
+
};
|
|
19
|
+
export type DatePickerPopoverProps = {
|
|
20
|
+
selectedDate: DateParseResult;
|
|
21
|
+
onSelectDate: (date: DateParseResult) => void;
|
|
22
|
+
onOpenChange?: (open: boolean) => void;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
formatButtonLabel: (date: Date) => string;
|
|
25
|
+
closeOnSelect?: boolean;
|
|
26
|
+
renderExtras?: (args: DatePickerPopoverRenderArgs) => ReactNode;
|
|
27
|
+
renderFooter?: (args: DatePickerPopoverRenderArgs) => ReactNode;
|
|
28
|
+
renderTrigger?: (args: DatePickerTriggerRenderArgs) => ReactNode;
|
|
29
|
+
open?: boolean;
|
|
30
|
+
disabled?: React.ComponentProps<typeof Calendar>['disabled'];
|
|
31
|
+
};
|
|
32
|
+
export declare function DatePickerPopover({ selectedDate, onSelectDate, onOpenChange, placeholder, formatButtonLabel, closeOnSelect, renderExtras, renderFooter, renderTrigger, open: controlledOpen, disabled, }: DatePickerPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DateField } from './DateField';
|
|
2
|
+
export { buildDateFieldSchema } from './dateFieldSchema';
|
|
3
|
+
export { getDateFieldDefault } from './dateFieldDefaults';
|
|
4
|
+
export { DatePickerPopover, parseDateValue, type DateParseResult, type DatePickerPopoverProps, } from './datePickerPopover';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DateTimeField - Combined date and time picker widget
|
|
3
|
+
*
|
|
4
|
+
* Provides a calendar picker with time input and manual date entry.
|
|
5
|
+
* Stores values as ISO 8601 strings.
|
|
6
|
+
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
8
|
+
import type { FieldWidgetProps } from '../../fields/props';
|
|
9
|
+
import type { DateTimeFieldConfig } from '../../fields/types';
|
|
10
|
+
export interface DateTimeFieldProps extends FieldWidgetProps<string | null, DateTimeFieldConfig> {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* DateTimeField - Renders a combined date and time picker
|
|
14
|
+
*
|
|
15
|
+
* Features:
|
|
16
|
+
* - Calendar picker with button trigger
|
|
17
|
+
* - Manual date entry in dd/MM/yyyy format
|
|
18
|
+
* - Time picker in calendar popover
|
|
19
|
+
* - Stores as ISO 8601 string
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <DateTimeField
|
|
24
|
+
* path="publishedAt"
|
|
25
|
+
* backend={backend}
|
|
26
|
+
* config={{ id: 'publishedAt', type: 'datetime', label: 'Published At' }}
|
|
27
|
+
* />
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare function DateTimeField({ path, backend, config }: DateTimeFieldProps): ReactNode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DateTime Field - Validation Schema
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import type { DateTimeFieldConfig } from '../../fields/types';
|
|
6
|
+
/**
|
|
7
|
+
* Build Zod validation schema for DateTime field
|
|
8
|
+
*
|
|
9
|
+
* Validates ISO 8601 date-time strings
|
|
10
|
+
*/
|
|
11
|
+
export declare function buildDateTimeFieldSchema(field: DateTimeFieldConfig): z.ZodTypeAny;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DateTimeField } from './DateTimeField';
|
|
2
|
+
export { buildDateTimeFieldSchema } from './dateTimeFieldSchema';
|
|
3
|
+
export { getDateTimeFieldDefault } from './dateTimeFieldDefaults';
|
|
4
|
+
export { applyTime, formatDisplayDate, parseDisplayDate, DISPLAY_DATE_FORMAT } from './utils';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DateTime Field Utilities
|
|
3
|
+
*
|
|
4
|
+
* Utilities for parsing, formatting, and manipulating date-time values.
|
|
5
|
+
*/
|
|
6
|
+
export declare const DISPLAY_DATE_FORMAT = "dd/MM/yyyy";
|
|
7
|
+
/**
|
|
8
|
+
* Apply time components to a date, returning a new Date object
|
|
9
|
+
*/
|
|
10
|
+
export declare function applyTime(base: Date, hours: number, minutes: number): Date;
|
|
11
|
+
/**
|
|
12
|
+
* Format a date as dd/MM/yyyy
|
|
13
|
+
*/
|
|
14
|
+
export declare function formatDisplayDate(date: Date): string;
|
|
15
|
+
/**
|
|
16
|
+
* Parse a date string in dd/MM/yyyy format
|
|
17
|
+
*
|
|
18
|
+
* @param value - The input string to parse
|
|
19
|
+
* @param fallback - Optional date to use for time components
|
|
20
|
+
* @returns Parsed Date or null if invalid
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseDisplayDate(value: string, fallback?: Date): Date | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { applyTime, formatDisplayDate, parseDisplayDate, DISPLAY_DATE_FORMAT } from './dateTimeUtils';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type FieldFrameProps, type FieldFrameRenderProps, type FieldFrameMessageProps } from './FieldFrame';
|
|
3
|
+
export type WidgetFieldProps = Omit<FieldFrameProps, 'label'> & {
|
|
4
|
+
/** Optional id applied to the control element. */
|
|
5
|
+
id?: string;
|
|
6
|
+
/** Field label displayed above the control. */
|
|
7
|
+
label: string | ReactNode;
|
|
8
|
+
/** Render-prop child allowing access to the generated control id. */
|
|
9
|
+
children: (props: FieldFrameRenderProps) => ReactNode;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Backwards-compatible wrapper around FieldFrame. Maintains the historic WidgetField
|
|
13
|
+
* API while delegating all layout and messaging behaviour to the shared frame.
|
|
14
|
+
*/
|
|
15
|
+
export declare function WidgetField(props: WidgetFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export type WidgetFieldMessageProps = FieldFrameMessageProps;
|
|
17
|
+
/**
|
|
18
|
+
* Utility helper for widgets that render their own control container (e.g. boolean toggle)
|
|
19
|
+
* but still need consistent spacing for error/hint copy.
|
|
20
|
+
*/
|
|
21
|
+
export declare function WidgetFieldMessage(props: WidgetFieldMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type FieldFrameRenderProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
descriptionId?: string;
|
|
5
|
+
messageId?: string;
|
|
6
|
+
};
|
|
7
|
+
export type FieldFrameProps = {
|
|
8
|
+
id?: string;
|
|
9
|
+
fieldPath?: string;
|
|
10
|
+
label?: ReactNode;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
labelClassName?: string;
|
|
13
|
+
description?: ReactNode;
|
|
14
|
+
descriptionClassName?: string;
|
|
15
|
+
hint?: ReactNode;
|
|
16
|
+
error?: ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
beforeControl?: ReactNode;
|
|
19
|
+
afterControl?: ReactNode;
|
|
20
|
+
children: (props: FieldFrameRenderProps) => ReactNode;
|
|
21
|
+
};
|
|
22
|
+
export declare function FieldFrame(props: FieldFrameProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export type FieldFrameMessageProps = {
|
|
24
|
+
id: string;
|
|
25
|
+
error?: ReactNode;
|
|
26
|
+
hint?: ReactNode;
|
|
27
|
+
};
|
|
28
|
+
export declare function FieldFrameMessage({ id, error, hint }: FieldFrameMessageProps): import("react/jsx-runtime").JSX.Element | null;
|
|
29
|
+
export declare function FieldLabelText({ label, required, }: {
|
|
30
|
+
label: ReactNode;
|
|
31
|
+
required?: boolean;
|
|
32
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FieldSettingsModal - Reusable modal for non-content nested fields.
|
|
3
|
+
*
|
|
4
|
+
* Used by nested container widgets (group/repeater) to keep content fields
|
|
5
|
+
* inline while moving display/behavior/style fields into a compact settings UI.
|
|
6
|
+
*/
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
|
+
import type { FieldConfig } from '../../fields/types';
|
|
9
|
+
import type { FormBackend } from '../../backend/types';
|
|
10
|
+
export type FieldSettingsModalProps = {
|
|
11
|
+
/** Fields to render in the modal */
|
|
12
|
+
fields: FieldConfig[];
|
|
13
|
+
/** Base path for field values */
|
|
14
|
+
basePath: string;
|
|
15
|
+
/** Form backend for reading values */
|
|
16
|
+
backend: FormBackend;
|
|
17
|
+
/** Function to render each child field */
|
|
18
|
+
renderChild: (field: FieldConfig, path: string) => ReactNode;
|
|
19
|
+
/** Title shown in modal header */
|
|
20
|
+
title?: string;
|
|
21
|
+
/** Description shown below title */
|
|
22
|
+
description?: string;
|
|
23
|
+
/** Tooltip text for the trigger button */
|
|
24
|
+
tooltip?: string;
|
|
25
|
+
/** Button size variant */
|
|
26
|
+
size?: 'sm' | 'default' | 'icon';
|
|
27
|
+
/** Additional class for the trigger button */
|
|
28
|
+
className?: string;
|
|
29
|
+
/** Maximum width class for modal content */
|
|
30
|
+
maxWidth?: string;
|
|
31
|
+
/** Height class for modal content */
|
|
32
|
+
height?: string;
|
|
33
|
+
};
|
|
34
|
+
export declare function FieldSettingsModal({ fields, basePath, backend, renderChild, title, description, tooltip, size, className, maxWidth, height, }: FieldSettingsModalProps): ReactNode;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GroupField - Container widget for nested object fields
|
|
3
|
+
*
|
|
4
|
+
* Supports two layout modes via config.ui.layout:
|
|
5
|
+
* - 'stack' (default): Vertical stack of fields
|
|
6
|
+
* - 'grid': Grid layout with configurable columns and row grouping
|
|
7
|
+
*
|
|
8
|
+
* Grid layout features:
|
|
9
|
+
* - ui.columns (2-4): Number of grid columns (default 2)
|
|
10
|
+
* - ui.row on child fields: Group fields into named rows
|
|
11
|
+
* - ui.colSpan on child fields: Span multiple columns (1-4)
|
|
12
|
+
*
|
|
13
|
+
* Also supports:
|
|
14
|
+
* - 'disclosure' preset: Collapsible accordion with error indicators
|
|
15
|
+
* - flattenInRepeater: For cleaner repeater item structures
|
|
16
|
+
* - ui.intent on child fields: non-content fields can be shown in a settings modal
|
|
17
|
+
*
|
|
18
|
+
* Note: For modal-based groups, use ModalGroupField widget (type: 'group', ui.widget: 'modal')
|
|
19
|
+
*/
|
|
20
|
+
import type { ReactNode } from 'react';
|
|
21
|
+
import type { FieldWidgetProps } from '../../fields/props';
|
|
22
|
+
import type { GroupFieldConfig } from '../../fields/types';
|
|
23
|
+
export declare function GroupField({ path, backend, config, renderChild, }: FieldWidgetProps<Record<string, unknown>, GroupFieldConfig>): ReactNode;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GroupField default value builder
|
|
3
|
+
* Server-safe - no React, no browser APIs
|
|
4
|
+
*/
|
|
5
|
+
import type { GroupFieldConfig, FieldConfig } from '../../fields/types';
|
|
6
|
+
export type DefaultValueContext = {
|
|
7
|
+
resolve: (field: FieldConfig) => unknown;
|
|
8
|
+
};
|
|
9
|
+
export declare function getGroupFieldDefault(field: GroupFieldConfig, ctx: DefaultValueContext): Record<string, unknown>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GroupField validation schema builder
|
|
3
|
+
* Server-safe - no React, no browser APIs
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
import type { GroupFieldConfig, FieldConfig } from '../../fields/types';
|
|
7
|
+
export type SchemaContext = {
|
|
8
|
+
getFieldSchema: (field: FieldConfig) => z.ZodTypeAny;
|
|
9
|
+
};
|
|
10
|
+
export declare function buildGroupFieldSchema(field: GroupFieldConfig, ctx: SchemaContext): z.ZodTypeAny;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LinkField Default Value
|
|
3
|
+
*
|
|
4
|
+
* Server-safe default value builder for LinkField.
|
|
5
|
+
*/
|
|
6
|
+
import type { LinkFieldConfig } from '../../fields/types';
|
|
7
|
+
/**
|
|
8
|
+
* Get default value for LinkField
|
|
9
|
+
*/
|
|
10
|
+
export declare function getLinkFieldDefault(field: LinkFieldConfig): unknown;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MediaFieldConfig } from '../../fields/types';
|
|
2
|
+
/**
|
|
3
|
+
* Build Zod validation schema for media field
|
|
4
|
+
* Validates media object structure or null
|
|
5
|
+
*/
|
|
6
|
+
export declare function buildMediaFieldSchema(config: MediaFieldConfig): import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ModalGroupField - Generic modal dialog for grouped fields
|
|
3
|
+
*
|
|
4
|
+
* Renders as a button that opens a modal dialog containing nested fields.
|
|
5
|
+
* Button label, description, and behavior are configurable via config.ui.modalConfig.
|
|
6
|
+
*
|
|
7
|
+
* Configuration options (config.ui.modalConfig):
|
|
8
|
+
* - buttonLabel: Text for the trigger button
|
|
9
|
+
* - description: Helper text shown in dialog header
|
|
10
|
+
* - buttonVariant: 'default' | 'outline' (default: 'outline')
|
|
11
|
+
* - showCustomizedIndicator: Show "(customized)" when values exist (default: true)
|
|
12
|
+
* - maxWidth: Dialog max width class (default: 'max-w-3xl')
|
|
13
|
+
*/
|
|
14
|
+
import type { ReactNode } from 'react';
|
|
15
|
+
import type { FieldWidgetProps } from '../../fields/props';
|
|
16
|
+
import type { GroupFieldConfig, ModalFieldConfig } from '../../fields/types';
|
|
17
|
+
export declare function ModalGroupField({ path, backend, config, renderChild, }: FieldWidgetProps<Record<string, unknown>, GroupFieldConfig | ModalFieldConfig>): ReactNode;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ModalGroupField default value builder
|
|
3
|
+
* Server-safe - no React, no browser APIs
|
|
4
|
+
*
|
|
5
|
+
* Modal fields are structurally identical to group fields - they just render differently in the UI.
|
|
6
|
+
*/
|
|
7
|
+
import type { GroupFieldConfig, FieldConfig } from '../../fields/types';
|
|
8
|
+
export type DefaultValueContext = {
|
|
9
|
+
resolve: (field: FieldConfig) => unknown;
|
|
10
|
+
};
|
|
11
|
+
/** Modal field can have fields nested under schema.fields (ModalFieldDefinition) or directly as fields (GroupFieldConfig) */
|
|
12
|
+
type ModalFieldInput = GroupFieldConfig & {
|
|
13
|
+
schema?: {
|
|
14
|
+
fields?: FieldConfig[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare function getModalFieldDefault(field: ModalFieldInput, ctx: DefaultValueContext): Record<string, unknown>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ModalGroupField validation schema builder
|
|
3
|
+
* Server-safe - no React, no browser APIs
|
|
4
|
+
*
|
|
5
|
+
* Modal fields are structurally identical to group fields - they just render differently in the UI.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
import type { FieldConfig, ModalFieldConfig } from '../../fields/types';
|
|
9
|
+
export type SchemaContext = {
|
|
10
|
+
getFieldSchema: (field: FieldConfig) => z.ZodTypeAny;
|
|
11
|
+
};
|
|
12
|
+
type ModalFieldInput = ModalFieldConfig;
|
|
13
|
+
export declare function buildModalFieldSchema(field: ModalFieldInput, ctx: SchemaContext): z.ZodTypeAny;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NumberField - Number input widget
|
|
3
|
+
* Pure UI component with no validation or default value logic
|
|
4
|
+
*/
|
|
5
|
+
import type { FieldWidgetProps } from '../../fields/props';
|
|
6
|
+
import type { NumberFieldConfig } from '../../fields/types';
|
|
7
|
+
export declare function NumberField({ path, backend, config }: FieldWidgetProps<number, NumberFieldConfig>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NumberField validation schema builder
|
|
3
|
+
* Server-safe - no React, no browser APIs
|
|
4
|
+
*/
|
|
5
|
+
import type { z } from 'zod';
|
|
6
|
+
import type { NumberFieldConfig } from '../../fields/types';
|
|
7
|
+
export declare function buildNumberFieldSchema(field: NumberFieldConfig): z.ZodTypeAny;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PresetOrCustomField - Widget that combines preset selection with custom text input
|
|
3
|
+
*
|
|
4
|
+
* Provides a dropdown of preset options with a "Custom..." option that reveals
|
|
5
|
+
* a text input field for entering custom values.
|
|
6
|
+
*
|
|
7
|
+
* Useful for fields like: scale presets, spacing presets, duration presets, etc.
|
|
8
|
+
*/
|
|
9
|
+
import type { FieldWidgetProps } from '../../fields/props';
|
|
10
|
+
import type { PresetOrCustomFieldConfig } from './types';
|
|
11
|
+
export declare function PresetOrCustomField({ path, backend, config, }: FieldWidgetProps<string, PresetOrCustomFieldConfig>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { PresetOrCustomField } from './PresetOrCustomField';
|
|
2
|
+
export type { PresetOrCustomFieldConfig, PresetOption } from './types';
|
|
3
|
+
export { buildPresetOrCustomFieldSchema } from './presetOrCustomFieldSchema';
|
|
4
|
+
export { getPresetOrCustomFieldDefault } from './presetOrCustomFieldDefaults';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { BaseFieldConfig } from '../../fields/types';
|
|
2
|
+
/**
|
|
3
|
+
* Preset option for PresetOrCustomField
|
|
4
|
+
*/
|
|
5
|
+
export interface PresetOption {
|
|
6
|
+
/** Value to store when this preset is selected */
|
|
7
|
+
value: string;
|
|
8
|
+
/** Display label for this preset */
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* PresetOrCustomField configuration
|
|
13
|
+
*/
|
|
14
|
+
export interface PresetOrCustomFieldConfig extends BaseFieldConfig {
|
|
15
|
+
type: 'presetOrCustom';
|
|
16
|
+
/** Preset options to show in dropdown */
|
|
17
|
+
presets: PresetOption[];
|
|
18
|
+
/** Custom input configuration */
|
|
19
|
+
customInput?: {
|
|
20
|
+
/** Placeholder for custom input field */
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
/** Regex pattern for validation */
|
|
23
|
+
pattern?: string;
|
|
24
|
+
/** Help text shown when custom mode is active */
|
|
25
|
+
helpText?: string;
|
|
26
|
+
};
|
|
27
|
+
ui?: {
|
|
28
|
+
/** Hide the entire field */
|
|
29
|
+
hidden?: boolean;
|
|
30
|
+
/** Hide the field label */
|
|
31
|
+
hideLabel?: boolean;
|
|
32
|
+
/** Label for preset dropdown (default: "Preset") */
|
|
33
|
+
presetLabel?: string;
|
|
34
|
+
/** Label for custom input (default: "Custom value") */
|
|
35
|
+
customLabel?: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RepeaterField - Array field widget with drag-drop reordering
|
|
3
|
+
*
|
|
4
|
+
* Supports both monomorphic (single schema) and polymorphic (multiple item types) repeaters.
|
|
5
|
+
* Uses FieldWidgetProps pattern with renderChild for nested field rendering.
|
|
6
|
+
*/
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
|
+
import type { FieldWidgetProps, RenderChildField } from '../../fields/props';
|
|
9
|
+
import type { RepeaterFieldConfig } from '../../fields/types';
|
|
10
|
+
export interface RepeaterFieldProps extends FieldWidgetProps<unknown, RepeaterFieldConfig> {
|
|
11
|
+
renderChild: RenderChildField;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* RepeaterField - Renders an array of items with add/remove/reorder capabilities
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <RepeaterField
|
|
19
|
+
* path="items"
|
|
20
|
+
* backend={backend}
|
|
21
|
+
* config={repeaterConfig}
|
|
22
|
+
* renderChild={(field, path) => <TextField path={path} backend={backend} config={field} />}
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function RepeaterField({ path, backend, config, renderChild }: RepeaterFieldProps): ReactNode;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export type RepeaterDragHandleTone = 'dark' | 'subtle';
|
|
3
|
+
export interface RepeaterDragHandleProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
placement?: 'inline' | 'overlay';
|
|
5
|
+
tone?: RepeaterDragHandleTone;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const RepeaterDragHandle: import("react").ForwardRefExoticComponent<RepeaterDragHandleProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Repeater field error display
|
|
3
|
+
*/
|
|
4
|
+
import type { ReactNode } from 'react';
|
|
5
|
+
export interface RepeaterErrorProps {
|
|
6
|
+
error?: {
|
|
7
|
+
message?: string;
|
|
8
|
+
};
|
|
9
|
+
fieldPath?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function RepeaterError({ error, fieldPath }: RepeaterErrorProps): ReactNode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Repeater field header - displays label and description
|
|
3
|
+
*/
|
|
4
|
+
import type { ReactNode } from 'react';
|
|
5
|
+
export interface RepeaterHeaderProps {
|
|
6
|
+
label: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function RepeaterHeader({ label, description, required }: RepeaterHeaderProps): ReactNode;
|