You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add component property support (BOOLEAN & TEXT) (#340)
## Summary
Today when an AI fetches a Figma component, it only sees the default state — any layers hidden by boolean properties (like "On Sale" or "Show Badge") are silently dropped. The AI has no idea those layers exist or that the component supports toggling them.
This PR fixes that:
- **Components now show their full capability.** Hidden conditional layers are included in the output, annotated with which property controls them. Property definitions list all available properties with their types and defaults.
- **Instances stay clean.** Instance output shows the resolved state with simplified property values — hidden layers are still stripped since they represent "what is" rather than "what could be."
- **Property format is AI-friendly.** Explicit `{ type, defaultValue }` on definitions, `Record<name, value>` on instances, `characters` renamed to `text` to match existing fields.
Covers BOOLEAN and TEXT properties. VARIANT and INSTANCE_SWAP are Phase 2.
0 commit comments