Skip to content

feat: add element constraints and lifecycle hooks to component manifests#5020

Merged
Pavel910 merged 20 commits intonextfrom
pavel/feat/wb-element-constraints
Mar 17, 2026
Merged

feat: add element constraints and lifecycle hooks to component manifests#5020
Pavel910 merged 20 commits intonextfrom
pavel/feat/wb-element-constraints

Conversation

@Pavel910
Copy link
Collaborator

@Pavel910 Pavel910 commented Mar 17, 2026

Summary

  • Element constraints system: New ConstraintEvaluator in website-builder-sdk that validates element placement and deletion via constraints, descendantConstraints, and canDelete functions on component manifests
  • onChange/onDescendantChange lifecycle hooks: Components can now declare handlers that fire on create/update/delete, enabling cross-element side effects (e.g., ancestor input updates)
  • Editor SDK enhancements: New hooks (useCreateElement, useDeleteElement, useUpdateElement, useElementInputs)
  • Misc fixes: Toolbar rendering optimization

🤖 Generated with Claude Code

@Pavel910 Pavel910 added this to the 6.0.0 milestone Mar 17, 2026
@Pavel910 Pavel910 changed the title feat: add element constraints, onChange/onDescendantChange handlers, and funnel builder feat: add element constraints and lifecycle hooks to component manifests Mar 17, 2026
@Pavel910 Pavel910 merged commit 7d5bb69 into next Mar 17, 2026
20 checks passed
@Pavel910 Pavel910 modified the milestones: 6.0.0, 6.1.0 Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant