mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-29 01:34:37 +01:00
Copying a main component in a library file and pasting it into another file made a copy of the main there: a new component of that file, not linked to the library. Copy then Paste of a main in its own file already makes an instance, and pasting an instance from the library file already uses the main from the library. Now a main the source file publishes is an instance of it from that library too, which gets enabled the same way, as Figma does with a published component. A variant is an instance of that variant. A main the library doesn't offer (hidden from publishing, added since the last publish) and a main from a file that publishes no library still paste as a copy. Making those an instance as well was rejected: their main would stay in the other file, so the instance would show a missing main. The part of adopt_pasted that brings published components in is now from_published, shared with the new published_main.