mirror of
https://github.com/storytold/figcraft.git
synced 2026-12-05 22:58:51 +00:00
The .fig import now keeps each main's Figma identity (layer guid on the main and every layer in it, library key when present) in the node's plugin data as fig.* keys, and instances keep their main's guid as fig.main. The paste reads the file key from the clipboard's figmeta span and stamps it as fig.file. When the mains an instance uses are not in the pasted layers, adopt_pasted matches them with components the file already holds (same guid and file, or same library key) and links the instance and its layers to them. No match keeps today's result with one warning in the paste result. fig.* keys are not named in the .fig export's plugin-data note. Reverse order (mains pasted after their instances) is deferred. pack_canvas (and the export schema) are exposed so engine tests can build synthetic payloads. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Model-Effort: Opus 5.5 drove; Fable 5.1 briefed; Sonnet 5.5 wrote at medium