openpencil/tests/engine/figma/api
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
..
absolute fix(figma-api): expose node transforms 2026-08-03 20:17:32 +03:00
auto-layout test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
corner test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
create feat(figma-api): add exposeInstanceSwap for real instance-swap component properties 2026-08-29 16:30:42 +03:00
document test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
find test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
frozen test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
internals test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
layout fix(figma-api): implement layout compatibility gaps 2026-08-12 18:50:25 +03:00
min-max test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
node test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
property test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
stroke feat(editor): add stroke geometry controls 2026-07-17 19:01:42 +03:00
text test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
tree test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
vector fix(figma-api): match Figma vector editing (#444) 2026-08-02 22:32:16 +03:00
clone.test.ts
components.test.ts
expanded.test.ts
flatten-renderer.test.ts feat(text): wrap styled outline text 2026-05-17 20:23:55 +03:00
grouping-compat.test.ts refactor(figma-api): align grouping API signatures 2026-05-17 17:11:15 +03:00
grouping.test.ts
helpers.ts
images.test.ts chore: format codebase 2026-05-24 12:15:29 +03:00
mask.test.ts
selection.test.ts
serialization.test.ts chore(lint): reject broad unknown type assertions 2026-05-25 00:26:02 +03:00
stubs.test.ts
traversal.test.ts
variables.test.ts feat(figma-api): expose vector paths and modes 2026-07-22 15:07:20 +03:00