openpencil/tests
xemc 7dc46bb993 feat(figma-api): add exposeInstanceSwap for real instance-swap component properties
Adds figma.exposeInstanceSwap(slots, candidates, propertyName), which
exposes one or more nested instances as an instance-swap slot — the
enclosing component (or component set, walking up past intermediate
variant members) gets an INSTANCE_SWAP property offering the given
candidates, and each slot instance is tagged to respond to it. Mirrors
Figma's "Create component property > Instance swap", letting a designer
pick which component fills a slot (e.g. an icon on a button) instead of
the slot being baked-in static content.

Exposed as the expose_instance_swap MCP/CLI/chat tool.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-29 16:30:42 +03:00
..
e2e feat(app): add language picker to General settings 2026-08-29 16:01:03 +03:00
engine feat(figma-api): add exposeInstanceSwap for real instance-swap component properties 2026-08-29 16:30:42 +03:00
figma style: tighten import grouping 2026-05-06 02:22:08 +03:00
fixtures refactor(tools): organize internal CLI workflows (#600) 2026-08-29 14:42:44 +03:00
helpers fix(editor): commit vector drags on pointer release (#586) 2026-08-24 16:02:27 +03:00