@riverbankcms/sdk 0.62.4 → 0.67.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/aiPlayground.d.ts +18 -11
- package/dist/_dts/api/src/apiEndpointTypes.d.ts +12 -0
- 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/bookingOperations.d.ts +1 -1
- 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 +48 -0
- package/dist/_dts/api/src/index.d.ts +8 -5
- package/dist/_dts/api/src/sdkConfig/contracts.d.ts +29 -40
- package/dist/_dts/api/src/sdkContracts.d.ts +14 -2
- package/dist/_dts/api/src/siteMembers.d.ts +1 -1
- package/dist/_dts/api/src/siteOnboarding.d.ts +4 -0
- package/dist/_dts/api/src/siteOperations.d.ts +11 -1
- 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 +10 -1
- 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 +1 -1
- 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/node/validation-constants.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/transforms/registry/formatting.d.ts +1 -0
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +2 -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 +900 -69
- 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/pageDesignRuntimePreview.d.ts +7 -3
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
- 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/execute/footer.d.ts +33 -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 +18 -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/env.d.ts +2 -1
- 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 +22 -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/commandKeys.d.ts +13 -0
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +114 -0
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +63 -0
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +50 -0
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +57 -0
- package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +7 -0
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +57 -0
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +83 -0
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +83 -0
- package/dist/_dts/sdk/src/cli/sync/executor.d.ts +11 -28
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +1 -1
- package/dist/_dts/sdk/src/config/dashboard-validation.d.ts +0 -48
- package/dist/_dts/sdk/src/config/types.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 +2341 -0
- package/dist/_dts/site-commands/src/domain.d.ts +104 -0
- package/dist/_dts/site-commands/src/exposure.d.ts +41 -0
- package/dist/_dts/site-commands/src/guards.d.ts +1 -0
- package/dist/_dts/site-commands/src/index.d.ts +10 -0
- package/dist/_dts/site-commands/src/metadata.d.ts +503 -0
- package/dist/_dts/site-commands/src/planner.d.ts +58 -0
- package/dist/_dts/site-commands/src/refContributions.d.ts +10 -0
- package/dist/_dts/site-commands/src/refs.d.ts +87 -0
- package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +10 -0
- package/dist/_dts/theme-core/src/palette/utils/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/palette/utils/onColor.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +83 -0
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +89 -12
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +8 -2
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +9 -6
- package/dist/_dts/ui/src/callout.d.ts +1 -1
- package/dist/cli/index.mjs +6446 -1220
- package/dist/cli/init-docs/content/cli-reference.md +18 -0
- package/dist/client/bookings.mjs +25 -25
- package/dist/client/client.mjs +3157 -2858
- package/dist/client/hooks.mjs +2608 -2326
- package/dist/client/rendering/client.mjs +505 -176
- package/dist/client/rendering/islands.mjs +18329 -13012
- package/dist/client/rendering.mjs +1204 -903
- package/dist/preview-next/before-render.mjs +84 -13
- package/dist/preview-next/client/runtime.mjs +3149 -2452
- package/dist/preview-next/middleware.mjs +84 -13
- package/dist/server/components.mjs +936 -631
- package/dist/server/config-validation.mjs +2838 -2556
- package/dist/server/config.mjs +2838 -2556
- package/dist/server/data.mjs +2608 -2326
- package/dist/server/index.mjs +676 -552
- package/dist/server/next.mjs +3043 -2738
- package/dist/server/page-converter.mjs +201 -51
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +936 -631
- package/dist/server/rendering.mjs +936 -631
- package/dist/server/routing.mjs +2701 -2426
- package/dist/server/server.mjs +2626 -2344
- package/dist/server/theme-bridge.mjs +169 -52
- 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
- package/dist/_dts/path-utils/src/index.d.ts +0 -8
- package/dist/_dts/path-utils/src/redirectPaths.d.ts +0 -26
- package/dist/_dts/path-utils/src/safeAppPath.d.ts +0 -26
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type Result } from '@riverbankcms/core';
|
|
2
|
+
import { type SiteCommand, type SiteCommandBatch, type SiteCommandOf, type SiteCommandType } from './commands';
|
|
3
|
+
import { type CommandRisk, type LifecycleIntent, type SiteCommandCapabilityGap, type SiteCommandIdempotencyKey, type SiteCommandMetadata, type SiteCommandValidationError } from './domain';
|
|
4
|
+
import { type ResourceRef } from './refs';
|
|
5
|
+
type PlannedSiteCommandCommon = Readonly<{
|
|
6
|
+
metadata: SiteCommandMetadata;
|
|
7
|
+
lifecycleIntent: LifecycleIntent;
|
|
8
|
+
provides: readonly ResourceRef[];
|
|
9
|
+
requires: readonly ResourceRef[];
|
|
10
|
+
idempotencyKey: SiteCommandIdempotencyKey;
|
|
11
|
+
}>;
|
|
12
|
+
export type PlannedSiteCommandFor<TType extends SiteCommandType> = PlannedSiteCommandCommon & Readonly<{
|
|
13
|
+
command: SiteCommandOf<TType>;
|
|
14
|
+
}>;
|
|
15
|
+
export type PlannedSiteCommand = PlannedSiteCommandFor<SiteCommandType>;
|
|
16
|
+
export type SiteCommandPlan = Readonly<{
|
|
17
|
+
batch: SiteCommandBatch;
|
|
18
|
+
commands: readonly PlannedSiteCommand[];
|
|
19
|
+
capabilityGaps: readonly SiteCommandCapabilityGap[];
|
|
20
|
+
}>;
|
|
21
|
+
export type PlannedSiteCommandOf<TType extends SiteCommandType> = {
|
|
22
|
+
[TCommandType in TType]: PlannedSiteCommandFor<TCommandType>;
|
|
23
|
+
}[TType];
|
|
24
|
+
export type SiteCommandPlanFor<TType extends SiteCommandType> = Omit<SiteCommandPlan, 'commands'> & Readonly<{
|
|
25
|
+
commands: readonly PlannedSiteCommandOf<TType>[];
|
|
26
|
+
}>;
|
|
27
|
+
export type PlannedSiteCommandDispatcher<TResult> = <TType extends SiteCommandType>(plannedCommand: PlannedSiteCommandFor<TType>) => TResult;
|
|
28
|
+
export type SiteCommandMatcher<TResult> = <TType extends SiteCommandType>(command: SiteCommandOf<TType>) => TResult;
|
|
29
|
+
export declare function parseCommandBatch(input: unknown): Result<SiteCommandBatch, readonly SiteCommandValidationError[]>;
|
|
30
|
+
export declare function planCommandBatch(batch: SiteCommandBatch): Result<SiteCommandPlan, readonly SiteCommandValidationError[]>;
|
|
31
|
+
export declare function matchSiteCommand<TResult>(command: SiteCommand, match: SiteCommandMatcher<TResult>): TResult;
|
|
32
|
+
export declare function dispatchPlannedSiteCommand<TResult>(plannedCommand: PlannedSiteCommand, dispatch: PlannedSiteCommandDispatcher<TResult>): TResult;
|
|
33
|
+
export declare function matchPlannedSiteCommand<TResult>(plannedCommand: PlannedSiteCommand, match: PlannedSiteCommandDispatcher<TResult>): TResult;
|
|
34
|
+
export declare function parseAndPlanCommandBatch(input: unknown): Result<SiteCommandPlan, readonly SiteCommandValidationError[]>;
|
|
35
|
+
export declare function parseAndPlanCommandBatchForTypes<TType extends SiteCommandType>(input: unknown, allowedTypes: readonly TType[]): Result<SiteCommandPlanFor<TType>, readonly SiteCommandValidationError[]>;
|
|
36
|
+
export declare function narrowSiteCommandPlan<TType extends SiteCommandType>(plan: SiteCommandPlan, allowedTypes: readonly TType[]): Result<SiteCommandPlanFor<TType>, readonly SiteCommandValidationError[]>;
|
|
37
|
+
export declare function deriveIdempotencyKey(input: Readonly<{
|
|
38
|
+
batch: Pick<SiteCommandBatch, 'batchRef' | 'target'>;
|
|
39
|
+
command: Pick<SiteCommand, 'type' | 'ref'>;
|
|
40
|
+
metadata: Pick<SiteCommandMetadata, 'idempotencyStrategy'>;
|
|
41
|
+
}>): SiteCommandIdempotencyKey;
|
|
42
|
+
export type DryRunReport = Readonly<{
|
|
43
|
+
status: 'dry_run_passed' | 'dry_run_passed_with_gaps';
|
|
44
|
+
commandCount: number;
|
|
45
|
+
mutationCount: number;
|
|
46
|
+
publishCount: number;
|
|
47
|
+
unpublishCount: number;
|
|
48
|
+
seedCount: number;
|
|
49
|
+
riskSummary: Readonly<Record<CommandRisk, number>>;
|
|
50
|
+
executionOrder: readonly Readonly<{
|
|
51
|
+
ref: string;
|
|
52
|
+
type: SiteCommandType;
|
|
53
|
+
}>[];
|
|
54
|
+
resolvedRefs: readonly ResourceRef[];
|
|
55
|
+
capabilityGaps: readonly SiteCommandCapabilityGap[];
|
|
56
|
+
}>;
|
|
57
|
+
export declare function createDryRunReport<TType extends SiteCommandType>(plan: SiteCommandPlan | SiteCommandPlanFor<TType>): DryRunReport;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SiteCommand } from './commands';
|
|
2
|
+
export type RefContribution = Readonly<{
|
|
3
|
+
ref: string;
|
|
4
|
+
field: string;
|
|
5
|
+
}>;
|
|
6
|
+
export type CommandRefContributions = Readonly<{
|
|
7
|
+
provides: readonly RefContribution[];
|
|
8
|
+
requires: readonly RefContribution[];
|
|
9
|
+
}>;
|
|
10
|
+
export declare function commandRefContributions(command: SiteCommand): CommandRefContributions;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { type Brand, type Result } from '@riverbankcms/core';
|
|
2
|
+
export declare const resourceKinds: readonly ["site-style", "media", "page", "block", "blocks", "nav", "form", "footer", "content", "staff", "venue", "event", "course", "ticket", "pass", "membership", "customer", "customer-pass", "customer-membership", "appointment", "course-enrollment", "event-registration", "pass-redemption", "order", "appointment-service", "appointment-resource", "availability"];
|
|
3
|
+
export type ResourceKind = (typeof resourceKinds)[number];
|
|
4
|
+
export type CommandRef = Brand<`${string}:${string}`, 'SiteCommandRef:command'>;
|
|
5
|
+
export type SiteStyleRef = Brand<`site-style:${string}`, 'SiteCommandResourceRef:site-style'>;
|
|
6
|
+
export type MediaRef = Brand<`media:${string}`, 'SiteCommandResourceRef:media'>;
|
|
7
|
+
export type PageRef = Brand<`page:${string}`, 'SiteCommandResourceRef:page'>;
|
|
8
|
+
export type BlockRef = Brand<`block:${string}`, 'SiteCommandResourceRef:block'>;
|
|
9
|
+
export type BlocksRef = Brand<`blocks:${string}`, 'SiteCommandResourceRef:blocks'>;
|
|
10
|
+
export type NavigationRef = Brand<`nav:${string}`, 'SiteCommandResourceRef:nav'>;
|
|
11
|
+
export type FormRef = Brand<`form:${string}`, 'SiteCommandResourceRef:form'>;
|
|
12
|
+
export type FooterRef = Brand<`footer:${string}`, 'SiteCommandResourceRef:footer'>;
|
|
13
|
+
export type ContentEntryRef = Brand<`content:${string}`, 'SiteCommandResourceRef:content'>;
|
|
14
|
+
export type StaffRef = Brand<`staff:${string}`, 'SiteCommandResourceRef:staff'>;
|
|
15
|
+
export type VenueRef = Brand<`venue:${string}`, 'SiteCommandResourceRef:venue'>;
|
|
16
|
+
export type EventSeriesRef = Brand<`event:${string}`, 'SiteCommandResourceRef:event'>;
|
|
17
|
+
export type CourseRef = Brand<`course:${string}`, 'SiteCommandResourceRef:course'>;
|
|
18
|
+
export type TicketTypeRef = Brand<`ticket:${string}`, 'SiteCommandResourceRef:ticket'>;
|
|
19
|
+
export type PassProductRef = Brand<`pass:${string}`, 'SiteCommandResourceRef:pass'>;
|
|
20
|
+
export type MembershipProductRef = Brand<`membership:${string}`, 'SiteCommandResourceRef:membership'>;
|
|
21
|
+
export type BookingCustomerRef = Brand<`customer:${string}`, 'SiteCommandResourceRef:customer'>;
|
|
22
|
+
export type CustomerPassRef = Brand<`customer-pass:${string}`, 'SiteCommandResourceRef:customer-pass'>;
|
|
23
|
+
export type CustomerMembershipRef = Brand<`customer-membership:${string}`, 'SiteCommandResourceRef:customer-membership'>;
|
|
24
|
+
export type AppointmentBookingRef = Brand<`appointment:${string}`, 'SiteCommandResourceRef:appointment'>;
|
|
25
|
+
export type CourseEnrollmentRef = Brand<`course-enrollment:${string}`, 'SiteCommandResourceRef:course-enrollment'>;
|
|
26
|
+
export type EventRegistrationRef = Brand<`event-registration:${string}`, 'SiteCommandResourceRef:event-registration'>;
|
|
27
|
+
export type PassRedemptionRef = Brand<`pass-redemption:${string}`, 'SiteCommandResourceRef:pass-redemption'>;
|
|
28
|
+
export type OrderRef = Brand<`order:${string}`, 'SiteCommandResourceRef:order'>;
|
|
29
|
+
export type AppointmentServiceRef = Brand<`appointment-service:${string}`, 'SiteCommandResourceRef:appointment-service'>;
|
|
30
|
+
export type AppointmentResourceRef = Brand<`appointment-resource:${string}`, 'SiteCommandResourceRef:appointment-resource'>;
|
|
31
|
+
export type AppointmentAvailabilityRef = Brand<`availability:${string}`, 'SiteCommandResourceRef:availability'>;
|
|
32
|
+
export type SiteCommandSiteRef = Brand<`site:${string}`, 'SiteCommandSiteRef'>;
|
|
33
|
+
export type ResourceRefByKind = Readonly<{
|
|
34
|
+
'site-style': SiteStyleRef;
|
|
35
|
+
media: MediaRef;
|
|
36
|
+
page: PageRef;
|
|
37
|
+
block: BlockRef;
|
|
38
|
+
blocks: BlocksRef;
|
|
39
|
+
nav: NavigationRef;
|
|
40
|
+
form: FormRef;
|
|
41
|
+
footer: FooterRef;
|
|
42
|
+
content: ContentEntryRef;
|
|
43
|
+
staff: StaffRef;
|
|
44
|
+
venue: VenueRef;
|
|
45
|
+
event: EventSeriesRef;
|
|
46
|
+
course: CourseRef;
|
|
47
|
+
ticket: TicketTypeRef;
|
|
48
|
+
pass: PassProductRef;
|
|
49
|
+
membership: MembershipProductRef;
|
|
50
|
+
customer: BookingCustomerRef;
|
|
51
|
+
'customer-pass': CustomerPassRef;
|
|
52
|
+
'customer-membership': CustomerMembershipRef;
|
|
53
|
+
appointment: AppointmentBookingRef;
|
|
54
|
+
'course-enrollment': CourseEnrollmentRef;
|
|
55
|
+
'event-registration': EventRegistrationRef;
|
|
56
|
+
'pass-redemption': PassRedemptionRef;
|
|
57
|
+
order: OrderRef;
|
|
58
|
+
'appointment-service': AppointmentServiceRef;
|
|
59
|
+
'appointment-resource': AppointmentResourceRef;
|
|
60
|
+
availability: AppointmentAvailabilityRef;
|
|
61
|
+
}>;
|
|
62
|
+
export type ResourceRef = ResourceRefByKind[ResourceKind];
|
|
63
|
+
export type SiteCommandRef = CommandRef | ResourceRef;
|
|
64
|
+
export declare const commandRefPattern: RegExp;
|
|
65
|
+
export declare const siteCommandSiteRefPattern: RegExp;
|
|
66
|
+
export type RefParseError = Readonly<{
|
|
67
|
+
code: 'invalid_ref_format';
|
|
68
|
+
ref: string;
|
|
69
|
+
}> | Readonly<{
|
|
70
|
+
code: 'unknown_resource_kind';
|
|
71
|
+
ref: string;
|
|
72
|
+
kind: string;
|
|
73
|
+
}>;
|
|
74
|
+
export declare function isCommandRef(value: string): boolean;
|
|
75
|
+
export declare function createCommandRef(prefix: string, parts: readonly string[]): CommandRef;
|
|
76
|
+
export declare function createContentEntryRef(parts: readonly string[]): ContentEntryRef;
|
|
77
|
+
export declare function createPageRef(parts: readonly string[]): PageRef;
|
|
78
|
+
export declare function createBlockRef(parts: readonly string[]): BlockRef;
|
|
79
|
+
export declare function createBlocksRef(parts: readonly string[]): BlocksRef;
|
|
80
|
+
export declare function createNavigationRef(parts: readonly string[]): NavigationRef;
|
|
81
|
+
export declare function createFormRef(parts: readonly string[]): FormRef;
|
|
82
|
+
export declare function createFooterRef(parts: readonly string[]): FooterRef;
|
|
83
|
+
export declare function createSiteCommandSiteRef(parts: readonly string[]): SiteCommandSiteRef;
|
|
84
|
+
export declare function refSlug(ref: SiteCommandRef | string): string;
|
|
85
|
+
export declare function parseResourceRef(value: string): Result<ResourceRef, RefParseError>;
|
|
86
|
+
export declare function resourceKindOf(ref: ResourceRef): ResourceKind;
|
|
87
|
+
export declare function slugPart(value: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StaticExecutionGapCode } from './capabilityGaps';
|
|
2
|
+
import type { SiteCommand, SiteCommandOf } from './commands';
|
|
3
|
+
export type StaticExecutionGap = Readonly<{
|
|
4
|
+
code: StaticExecutionGapCode;
|
|
5
|
+
message: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function staticExecutionGapsForCommand(command: SiteCommand): readonly StaticExecutionGap[];
|
|
8
|
+
export declare function eventSeriesStaticExecutionGaps(command: SiteCommandOf<'upsertEventSeries'>): readonly StaticExecutionGap[];
|
|
9
|
+
export declare function eventTicketTypeStaticExecutionGaps(command: SiteCommandOf<'upsertEventTicketType'>): readonly StaticExecutionGap[];
|
|
10
|
+
export declare function courseStaticExecutionGaps(command: SiteCommandOf<'upsertCourse'>): readonly StaticExecutionGap[];
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { ExpandedPalette } from '../palette/expandPalette';
|
|
2
|
+
import type { SiteStyleSurfaceIntent } from './types';
|
|
3
|
+
export type AccessibleColorSurfaceIntent = Exclude<SiteStyleSurfaceIntent, 'hero-image'>;
|
|
4
|
+
export type ContrastPolicy = 'body-aa' | 'large-text-aa' | 'decorative';
|
|
5
|
+
export type ForegroundRole = 'heading' | 'text' | 'supporting';
|
|
6
|
+
export type AccessibleSurfaceToken = string & {
|
|
7
|
+
readonly __brand: 'AccessibleSurfaceToken';
|
|
8
|
+
};
|
|
9
|
+
export type ForegroundFallbackReason = 'supporting-token-unsafe';
|
|
10
|
+
export type ResolvedForeground = Readonly<{
|
|
11
|
+
kind: 'safe-token';
|
|
12
|
+
role: ForegroundRole;
|
|
13
|
+
token: AccessibleSurfaceToken;
|
|
14
|
+
hex: string;
|
|
15
|
+
contrastRatio: number;
|
|
16
|
+
}> | Readonly<{
|
|
17
|
+
kind: 'fallback-to-text';
|
|
18
|
+
role: Extract<ForegroundRole, 'supporting'>;
|
|
19
|
+
token: AccessibleSurfaceToken;
|
|
20
|
+
hex: string;
|
|
21
|
+
contrastRatio: number;
|
|
22
|
+
reason: ForegroundFallbackReason;
|
|
23
|
+
}>;
|
|
24
|
+
export type RejectedBackgroundCandidate = Readonly<{
|
|
25
|
+
kind: 'background-candidate';
|
|
26
|
+
token: string;
|
|
27
|
+
reason: 'missing-token';
|
|
28
|
+
}>;
|
|
29
|
+
export type RejectedForegroundCandidate = Readonly<{
|
|
30
|
+
kind: 'foreground-candidate';
|
|
31
|
+
role: ForegroundRole;
|
|
32
|
+
token: string;
|
|
33
|
+
}> & (Readonly<{
|
|
34
|
+
reason: 'missing-token';
|
|
35
|
+
}> | Readonly<{
|
|
36
|
+
reason: 'contrast-too-low';
|
|
37
|
+
contrastRatio: number;
|
|
38
|
+
}>);
|
|
39
|
+
export type RejectedSurfaceCandidate = RejectedBackgroundCandidate | RejectedForegroundCandidate;
|
|
40
|
+
export type ResolvedAccessibleSurface = Readonly<{
|
|
41
|
+
kind: 'resolved-accessible-surface';
|
|
42
|
+
surface: AccessibleColorSurfaceIntent;
|
|
43
|
+
background: Readonly<{
|
|
44
|
+
token: AccessibleSurfaceToken;
|
|
45
|
+
hex: string;
|
|
46
|
+
inherited: boolean;
|
|
47
|
+
}>;
|
|
48
|
+
heading: Extract<ResolvedForeground, {
|
|
49
|
+
kind: 'safe-token';
|
|
50
|
+
}>;
|
|
51
|
+
text: Extract<ResolvedForeground, {
|
|
52
|
+
kind: 'safe-token';
|
|
53
|
+
}>;
|
|
54
|
+
supporting: ResolvedForeground;
|
|
55
|
+
rejectedCandidates: readonly RejectedSurfaceCandidate[];
|
|
56
|
+
}>;
|
|
57
|
+
export type AccessibleSurfaceResolutionFailure = Readonly<{
|
|
58
|
+
kind: 'accessible-surface-resolution-failure';
|
|
59
|
+
surface: AccessibleColorSurfaceIntent;
|
|
60
|
+
reason: 'no-background-candidate' | 'no-safe-foreground-candidate';
|
|
61
|
+
rejectedCandidates: readonly RejectedSurfaceCandidate[];
|
|
62
|
+
}>;
|
|
63
|
+
export declare const contrastThresholdByPolicy: {
|
|
64
|
+
readonly 'body-aa': 4.5;
|
|
65
|
+
readonly 'large-text-aa': 3;
|
|
66
|
+
readonly decorative: 1;
|
|
67
|
+
};
|
|
68
|
+
export declare function toAccessibleColorSurfaceIntent(surface: SiteStyleSurfaceIntent): AccessibleColorSurfaceIntent | null;
|
|
69
|
+
export declare function resolveAccessibleSurface(input: Readonly<{
|
|
70
|
+
surface: AccessibleColorSurfaceIntent;
|
|
71
|
+
palette: ExpandedPalette;
|
|
72
|
+
policy?: ContrastPolicy;
|
|
73
|
+
}>): ResolvedAccessibleSurface | AccessibleSurfaceResolutionFailure;
|
|
74
|
+
export declare function resolveAccessibleSurfaceOrTerminalFallback(input: Readonly<{
|
|
75
|
+
surface: AccessibleColorSurfaceIntent;
|
|
76
|
+
palette: ExpandedPalette;
|
|
77
|
+
policy?: ContrastPolicy;
|
|
78
|
+
}>): ResolvedAccessibleSurface;
|
|
79
|
+
export declare function requireResolvedAccessibleSurface(input: Readonly<{
|
|
80
|
+
surface: AccessibleColorSurfaceIntent;
|
|
81
|
+
palette: ExpandedPalette;
|
|
82
|
+
policy?: ContrastPolicy;
|
|
83
|
+
}>): ResolvedAccessibleSurface;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockDesignMetadata } from './blockFlow';
|
|
2
2
|
import { type PageDesignEditorIssue } from './pageDesignEditorModel';
|
|
3
|
-
import type { CompiledBlockRuntimeFields } from './runtimeCompiler';
|
|
3
|
+
import type { CompiledBlockRuntimeFields, SurfaceResolutionContext } from './runtimeCompiler';
|
|
4
4
|
import { type ContentTemplateBlockScope, type ContentTemplateDesignBlockId, type ContentTemplateDesignIntent } from './contentTemplateDesignIntent';
|
|
5
5
|
import type { LayoutVariantKey } from './types';
|
|
6
6
|
export type ContentTemplateRuntimeBlockInput = Readonly<{
|
|
@@ -23,4 +23,5 @@ export type CompiledContentTemplateRuntime = Readonly<{
|
|
|
23
23
|
export declare function compileContentTemplateRuntimeFields(input: Readonly<{
|
|
24
24
|
intent: ContentTemplateDesignIntent;
|
|
25
25
|
blocks: readonly ContentTemplateRuntimeBlockInput[];
|
|
26
|
+
surfaceResolutionContext: SurfaceResolutionContext;
|
|
26
27
|
}>): CompiledContentTemplateRuntime;
|
|
@@ -5,7 +5,7 @@ import { type HeaderLookId } from './headerLooks';
|
|
|
5
5
|
import { type FooterLookId } from './footerLooks';
|
|
6
6
|
import { type CuratedChoice } from './curatedChoices';
|
|
7
7
|
import { type AppearancePresetId, type DesignSystemTemplate, type NonEmptyReadonlyArray, type SiteStyleId } from './types';
|
|
8
|
-
export declare const curatedSiteStyleIdValues: readonly ["site-style:calm-studio", "site-style:clear-professional", "site-style:warm-editorial", "site-style:bright-community", "site-style:quiet-luxury", "site-style:practical-services", "site-style:modern-wellness", "site-style:bold-launch", "site-style:south-west-twerk-school"];
|
|
8
|
+
export declare const curatedSiteStyleIdValues: readonly ["site-style:calm-studio", "site-style:clear-professional", "site-style:warm-editorial", "site-style:bright-community", "site-style:quiet-luxury", "site-style:practical-services", "site-style:quiet-practice", "site-style:personal-retreat-journal", "site-style:tactile-workshop", "site-style:modern-wellness", "site-style:bold-launch", "site-style:south-west-twerk-school"];
|
|
9
9
|
export type CuratedSiteStyleIdValue = typeof curatedSiteStyleIdValues[number];
|
|
10
10
|
type CuratedSiteStyleHeroOverrides = Readonly<{
|
|
11
11
|
typography?: NonNullable<NonNullable<Theme['hero']>['typography']>;
|
|
@@ -32,12 +32,31 @@ export type CuratedSiteStyleThemeOverrides = Readonly<{
|
|
|
32
32
|
}>;
|
|
33
33
|
export type ButtonPersonalityChoice = CuratedChoice<KnownButtonPersonalityId>;
|
|
34
34
|
export type PaletteVariantChoice = CuratedChoice<KnownPaletteVariantId>;
|
|
35
|
+
export type CuratedSiteStyleSelectionKeywordRule = Readonly<{
|
|
36
|
+
kind: 'phrase';
|
|
37
|
+
value: string;
|
|
38
|
+
}> | Readonly<{
|
|
39
|
+
kind: 'word';
|
|
40
|
+
value: string;
|
|
41
|
+
}> | Readonly<{
|
|
42
|
+
kind: 'substring';
|
|
43
|
+
value: string;
|
|
44
|
+
}>;
|
|
45
|
+
export type CuratedSiteStyleCreatorSelection = Readonly<{
|
|
46
|
+
kind: 'site_creator_keyword_heuristic';
|
|
47
|
+
priority: number;
|
|
48
|
+
}> | Readonly<{
|
|
49
|
+
kind: 'primary_goal_support';
|
|
50
|
+
}> | Readonly<{
|
|
51
|
+
kind: 'explicit_only';
|
|
52
|
+
}>;
|
|
35
53
|
export type CuratedSiteStyle = Readonly<{
|
|
36
54
|
id: SiteStyleId;
|
|
37
55
|
name: string;
|
|
38
56
|
description: string;
|
|
39
57
|
generationBrief: string;
|
|
40
|
-
|
|
58
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
59
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
41
60
|
template: DesignSystemTemplate;
|
|
42
61
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
43
62
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
@@ -60,7 +79,56 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
60
79
|
name: string;
|
|
61
80
|
description: string;
|
|
62
81
|
generationBrief: string;
|
|
63
|
-
|
|
82
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
83
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
84
|
+
template: DesignSystemTemplate;
|
|
85
|
+
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
86
|
+
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
87
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
88
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
89
|
+
/** Authored picker choices. First item is the default/fallback. */
|
|
90
|
+
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
91
|
+
/** Authored picker choices. First item is the default/fallback. */
|
|
92
|
+
paletteVariantChoices: NonEmptyReadonlyArray<PaletteVariantChoice>;
|
|
93
|
+
}>, Readonly<{
|
|
94
|
+
id: SiteStyleId;
|
|
95
|
+
name: string;
|
|
96
|
+
description: string;
|
|
97
|
+
generationBrief: string;
|
|
98
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
99
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
100
|
+
template: DesignSystemTemplate;
|
|
101
|
+
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
102
|
+
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
103
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
104
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
105
|
+
/** Authored picker choices. First item is the default/fallback. */
|
|
106
|
+
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
107
|
+
/** Authored picker choices. First item is the default/fallback. */
|
|
108
|
+
paletteVariantChoices: NonEmptyReadonlyArray<PaletteVariantChoice>;
|
|
109
|
+
}>, Readonly<{
|
|
110
|
+
id: SiteStyleId;
|
|
111
|
+
name: string;
|
|
112
|
+
description: string;
|
|
113
|
+
generationBrief: string;
|
|
114
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
115
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
116
|
+
template: DesignSystemTemplate;
|
|
117
|
+
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
118
|
+
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
119
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
120
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
121
|
+
/** Authored picker choices. First item is the default/fallback. */
|
|
122
|
+
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
123
|
+
/** Authored picker choices. First item is the default/fallback. */
|
|
124
|
+
paletteVariantChoices: NonEmptyReadonlyArray<PaletteVariantChoice>;
|
|
125
|
+
}>, Readonly<{
|
|
126
|
+
id: SiteStyleId;
|
|
127
|
+
name: string;
|
|
128
|
+
description: string;
|
|
129
|
+
generationBrief: string;
|
|
130
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
131
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
64
132
|
template: DesignSystemTemplate;
|
|
65
133
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
66
134
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
@@ -75,7 +143,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
75
143
|
name: string;
|
|
76
144
|
description: string;
|
|
77
145
|
generationBrief: string;
|
|
78
|
-
|
|
146
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
147
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
79
148
|
template: DesignSystemTemplate;
|
|
80
149
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
81
150
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
@@ -90,7 +159,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
90
159
|
name: string;
|
|
91
160
|
description: string;
|
|
92
161
|
generationBrief: string;
|
|
93
|
-
|
|
162
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
163
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
94
164
|
template: DesignSystemTemplate;
|
|
95
165
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
96
166
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
@@ -105,7 +175,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
105
175
|
name: string;
|
|
106
176
|
description: string;
|
|
107
177
|
generationBrief: string;
|
|
108
|
-
|
|
178
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
179
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
109
180
|
template: DesignSystemTemplate;
|
|
110
181
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
111
182
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
@@ -120,7 +191,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
120
191
|
name: string;
|
|
121
192
|
description: string;
|
|
122
193
|
generationBrief: string;
|
|
123
|
-
|
|
194
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
195
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
124
196
|
template: DesignSystemTemplate;
|
|
125
197
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
126
198
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
@@ -135,7 +207,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
135
207
|
name: string;
|
|
136
208
|
description: string;
|
|
137
209
|
generationBrief: string;
|
|
138
|
-
|
|
210
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
211
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
139
212
|
template: DesignSystemTemplate;
|
|
140
213
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
141
214
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
@@ -150,7 +223,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
150
223
|
name: string;
|
|
151
224
|
description: string;
|
|
152
225
|
generationBrief: string;
|
|
153
|
-
|
|
226
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
227
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
154
228
|
template: DesignSystemTemplate;
|
|
155
229
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
156
230
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
@@ -165,7 +239,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
165
239
|
name: string;
|
|
166
240
|
description: string;
|
|
167
241
|
generationBrief: string;
|
|
168
|
-
|
|
242
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
243
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
169
244
|
template: DesignSystemTemplate;
|
|
170
245
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
171
246
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
@@ -180,7 +255,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
180
255
|
name: string;
|
|
181
256
|
description: string;
|
|
182
257
|
generationBrief: string;
|
|
183
|
-
|
|
258
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
259
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
184
260
|
template: DesignSystemTemplate;
|
|
185
261
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
186
262
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
@@ -196,7 +272,8 @@ export declare const curatedSiteStylesById: Map<SiteStyleId, Readonly<{
|
|
|
196
272
|
name: string;
|
|
197
273
|
description: string;
|
|
198
274
|
generationBrief: string;
|
|
199
|
-
|
|
275
|
+
selectionKeywordRules: readonly CuratedSiteStyleSelectionKeywordRule[];
|
|
276
|
+
siteCreatorSelection: CuratedSiteStyleCreatorSelection;
|
|
200
277
|
template: DesignSystemTemplate;
|
|
201
278
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
202
279
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
@@ -24,10 +24,13 @@ export declare const generatedSiteStyleIdSchema: z.ZodPipe<z.ZodEnum<{
|
|
|
24
24
|
"site-style:bright-community": "site-style:bright-community";
|
|
25
25
|
"site-style:quiet-luxury": "site-style:quiet-luxury";
|
|
26
26
|
"site-style:practical-services": "site-style:practical-services";
|
|
27
|
+
"site-style:quiet-practice": "site-style:quiet-practice";
|
|
28
|
+
"site-style:personal-retreat-journal": "site-style:personal-retreat-journal";
|
|
29
|
+
"site-style:tactile-workshop": "site-style:tactile-workshop";
|
|
27
30
|
"site-style:modern-wellness": "site-style:modern-wellness";
|
|
28
31
|
"site-style:bold-launch": "site-style:bold-launch";
|
|
29
32
|
"site-style:south-west-twerk-school": "site-style:south-west-twerk-school";
|
|
30
|
-
}>, z.ZodTransform<SiteStyleId, "site-style:calm-studio" | "site-style:clear-professional" | "site-style:warm-editorial" | "site-style:bright-community" | "site-style:quiet-luxury" | "site-style:practical-services" | "site-style:modern-wellness" | "site-style:bold-launch" | "site-style:south-west-twerk-school">>;
|
|
33
|
+
}>, z.ZodTransform<SiteStyleId, "site-style:calm-studio" | "site-style:clear-professional" | "site-style:warm-editorial" | "site-style:bright-community" | "site-style:quiet-luxury" | "site-style:practical-services" | "site-style:quiet-practice" | "site-style:personal-retreat-journal" | "site-style:tactile-workshop" | "site-style:modern-wellness" | "site-style:bold-launch" | "site-style:south-west-twerk-school">>;
|
|
31
34
|
export declare const generatedBlockDesignIntentSchema: z.ZodObject<{
|
|
32
35
|
sectionSurface: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33
36
|
source: z.ZodLiteral<"generated">;
|
|
@@ -163,10 +166,13 @@ export declare const generatedPageDesignIntentSchema: z.ZodObject<{
|
|
|
163
166
|
"site-style:bright-community": "site-style:bright-community";
|
|
164
167
|
"site-style:quiet-luxury": "site-style:quiet-luxury";
|
|
165
168
|
"site-style:practical-services": "site-style:practical-services";
|
|
169
|
+
"site-style:quiet-practice": "site-style:quiet-practice";
|
|
170
|
+
"site-style:personal-retreat-journal": "site-style:personal-retreat-journal";
|
|
171
|
+
"site-style:tactile-workshop": "site-style:tactile-workshop";
|
|
166
172
|
"site-style:modern-wellness": "site-style:modern-wellness";
|
|
167
173
|
"site-style:bold-launch": "site-style:bold-launch";
|
|
168
174
|
"site-style:south-west-twerk-school": "site-style:south-west-twerk-school";
|
|
169
|
-
}>, z.ZodTransform<SiteStyleId, "site-style:calm-studio" | "site-style:clear-professional" | "site-style:warm-editorial" | "site-style:bright-community" | "site-style:quiet-luxury" | "site-style:practical-services" | "site-style:modern-wellness" | "site-style:bold-launch" | "site-style:south-west-twerk-school">>;
|
|
175
|
+
}>, z.ZodTransform<SiteStyleId, "site-style:calm-studio" | "site-style:clear-professional" | "site-style:warm-editorial" | "site-style:bright-community" | "site-style:quiet-luxury" | "site-style:practical-services" | "site-style:quiet-practice" | "site-style:personal-retreat-journal" | "site-style:tactile-workshop" | "site-style:modern-wellness" | "site-style:bold-launch" | "site-style:south-west-twerk-school">>;
|
|
170
176
|
blocks: z.ZodArray<z.ZodObject<{
|
|
171
177
|
blockId: z.ZodString;
|
|
172
178
|
blockKind: z.ZodString;
|
|
@@ -5,7 +5,7 @@ import { type PaletteOverrides, type PaletteVariantId } from '../palette/variant
|
|
|
5
5
|
import { type CuratedSiteStyle } from './curatedSiteStyles';
|
|
6
6
|
import { type FooterLookId, type FooterSelectionContext, type FooterSelectionResult } from './footerLooks';
|
|
7
7
|
import { type HeaderSelectionContext, type HeaderLookId, type HeaderSelectionResult } from './headerLooks';
|
|
8
|
-
import { type CompiledBlockRuntimeFields, type CompiledPageRuntime, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing } from './runtimeCompiler';
|
|
8
|
+
import { type CompiledBlockRuntimeFields, type CompiledPageRuntime, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, type SurfaceResolutionContext } from './runtimeCompiler';
|
|
9
9
|
import type { AppearancePresetId, DesignBlockId, SiteStyleId } from './types';
|
|
10
10
|
/**
|
|
11
11
|
* Browser-safe public API for Theme V2 live preview compilation.
|
|
@@ -20,7 +20,7 @@ export { buildPageDesignEditorReadModel, boundaryOptions, pageFlowPresets, type
|
|
|
20
20
|
export { autoDesignChoice, reducePageDesignIntentForUserAction, resolvePageDesignBlockLookChoice, resolvePageDesignBoundaryChoice, userPinnedDesignChoice, type PageDesignChoice, type PageDesignIntent, type PageDesignUserAction, } from './pageDesignIntent';
|
|
21
21
|
export { repairDesignIssue, resolveBlockDesignPlan } from './resolver';
|
|
22
22
|
export { cycleableOptionsFromResolved, deriveDesignCustomizationScope, recommendedDesignOption, type CycleableDesignOption, type CycleableOptions, type DesignCustomizationAuthority, type DesignCustomizationScope, type DesignCustomizationSurface, type DesignCustomizationUnsupportedReason, type DesignOptionIssue, type ResolvedDesignOption, } from './previewCustomization';
|
|
23
|
-
export { compileBlockRuntimeFields, compilePageRuntimeFields, compileTokenRecipes, compiledRuntimeStyleFieldNames, defaultComponentRuntimeRules, defaultDesignRuntimeRules, stripCompiledRuntimeStyleFields, type CompiledBlockRuntime, type CompiledBlockRuntimeFields, type CompiledPageRuntime, type CompileBlockRuntimeInput, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, } from './runtimeCompiler';
|
|
23
|
+
export { compileBlockRuntimeFields, compilePageRuntimeFields, compileTokenRecipes, compiledRuntimeStyleFieldNames, defaultComponentRuntimeRules, defaultDesignRuntimeRules, surfaceResolutionContextFromPalette, surfaceResolutionContextFromTheme, stripCompiledRuntimeStyleFields, type CompiledBlockRuntime, type CompiledBlockRuntimeFields, type CompiledPageRuntime, type CompileBlockRuntimeInput, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, type SurfaceResolutionContext, } from './runtimeCompiler';
|
|
24
24
|
export { defaultCuratedChoice, requireEntriesForCuratedChoices, resolveCuratedChoice, type CuratedChoice, type CuratedChoiceResolution, } from './curatedChoices';
|
|
25
25
|
export { curatedSiteStyles, defaultButtonPersonalityForSiteStyle, defaultPaletteVariantForSiteStyle, getCuratedSiteStyle, type CuratedSiteStyle, } from './curatedSiteStyles';
|
|
26
26
|
export { asDesignBlockId, asSiteStyleId, makeBoundaryId, type AppearancePresetId, type BoundaryOptionId, type DesignBlockId, type DesignBoundaryId, type LayoutVariantKey, type NonEmptyReadonlyArray, type PageFlowPresetId, type ResolvedPageDesignPlan, type SiteStyleId, } from './types';
|
|
@@ -98,6 +98,7 @@ export type EditorModelRuntimeLookOverride<TBlockId extends DesignBlockId = Desi
|
|
|
98
98
|
}>;
|
|
99
99
|
export type CompileEditorModelRuntimeInput<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
100
100
|
editorModel: PageDesignEditorReadModel<TBlockId>;
|
|
101
|
+
surfaceResolutionContext: SurfaceResolutionContext;
|
|
101
102
|
lookOverrides?: readonly EditorModelRuntimeLookOverride<TBlockId>[];
|
|
102
103
|
designRules?: DesignRuntimeRules;
|
|
103
104
|
componentRules?: ComponentRuntimeRules;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CardStylesOverride, type ContainerStylesOverride, type SectionStylesOverride, type Theme } from '../schema';
|
|
2
|
+
import { type ExpandedPalette } from '../palette/expandPalette';
|
|
2
3
|
import { type ButtonPersonalityId } from '../buttons/personalities';
|
|
3
4
|
import { type PaletteOverrides, type PaletteVariantId } from '../palette/variants';
|
|
4
5
|
import { type RuntimeStyleWriteResultForFields, type StyleAuthority } from './designState';
|
|
@@ -33,8 +34,15 @@ export type CompiledBlockRuntime = Readonly<{
|
|
|
33
34
|
sectionPaddingX: SectionPaddingX;
|
|
34
35
|
fields: CompiledBlockRuntimeFields;
|
|
35
36
|
}>;
|
|
37
|
+
export type SurfaceResolutionContext = Readonly<{
|
|
38
|
+
kind: 'concrete-palette';
|
|
39
|
+
palette: ExpandedPalette;
|
|
40
|
+
}>;
|
|
41
|
+
export declare function surfaceResolutionContextFromPalette(palette: ExpandedPalette): SurfaceResolutionContext;
|
|
42
|
+
export declare function surfaceResolutionContextFromTheme(theme: Pick<Theme, 'palette'>): SurfaceResolutionContext;
|
|
36
43
|
export type CompileBlockRuntimeInput<TBlockId extends string, TPurpose extends string> = Readonly<{
|
|
37
44
|
block: ResolvedBlockDesignPlan<TBlockId, TPurpose>;
|
|
45
|
+
surfaceResolutionContext: SurfaceResolutionContext;
|
|
38
46
|
designRules?: DesignRuntimeRules;
|
|
39
47
|
componentRules?: ComponentRuntimeRules;
|
|
40
48
|
sectionSpacing?: SemanticSpacing;
|
|
@@ -62,24 +70,18 @@ export declare const defaultDesignRuntimeRules: {
|
|
|
62
70
|
readonly background: {
|
|
63
71
|
readonly type: "color";
|
|
64
72
|
readonly color: "muted";
|
|
65
|
-
readonly textColor: "text";
|
|
66
|
-
readonly headingColor: "text";
|
|
67
73
|
};
|
|
68
74
|
};
|
|
69
75
|
readonly 'accent-band': {
|
|
70
76
|
readonly background: {
|
|
71
77
|
readonly type: "color";
|
|
72
78
|
readonly color: "primary";
|
|
73
|
-
readonly textColor: "primaryForeground";
|
|
74
|
-
readonly headingColor: "primaryForeground";
|
|
75
79
|
};
|
|
76
80
|
};
|
|
77
81
|
readonly 'brand-depth-band': {
|
|
78
82
|
readonly background: {
|
|
79
83
|
readonly type: "color";
|
|
80
84
|
readonly color: "primary-800";
|
|
81
|
-
readonly textColor: "primaryForeground";
|
|
82
|
-
readonly headingColor: "primaryForeground";
|
|
83
85
|
};
|
|
84
86
|
};
|
|
85
87
|
readonly 'hero-image': {
|
|
@@ -212,6 +214,7 @@ export declare function compileBlockRuntimeFieldsIntoContent<TBlockId extends st
|
|
|
212
214
|
/** Compiles a resolved page plan into legacy runtime fields for each resolved block. */
|
|
213
215
|
export declare function compilePageRuntimeFields<TBlockId extends string, TPurpose extends string>(input: Readonly<{
|
|
214
216
|
resolved: ResolvedPageDesignPlan<TBlockId, TPurpose>;
|
|
217
|
+
surfaceResolutionContext: SurfaceResolutionContext;
|
|
215
218
|
designRules?: DesignRuntimeRules;
|
|
216
219
|
componentRules?: ComponentRuntimeRules;
|
|
217
220
|
sectionSpacing?: SemanticSpacing;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const calloutVariants: (props?: ({
|
|
4
|
-
tone?: "success" | "default" | "warning" | "
|
|
4
|
+
tone?: "success" | "default" | "warning" | "info" | "danger" | null | undefined;
|
|
5
5
|
layout?: "inline" | "banner" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type CalloutProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof calloutVariants> & {
|