mirror of
https://github.com/penpot/penpot.git
synced 2026-10-30 06:20:32 +00:00
generate-instantiate-component validated the new copy on its own. When the copy is created inside another component it is a nested copy, but the validator starts with a :not-component context and reported :nested-copy-not-allowed, a false error that broke 34 common tests on JS. When the new copy is not an instance root, validate the instance roots that hold its parent instead. The validator then walks the copy with the right context, and also checks the parents that may change (e.g. layouts). AI-assisted-by: claude-opus-5-5