[bug] import_components refuses components nested in an artboard; instance attribute docs disagree #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context: PaperCraft build of 2026-10-17, Design System page with components, then
import_componentsinto another page.Expected: components made with
create_componentcan be imported.Actual:
create_componentkeeps the component inside its artboard;import_componentsthen answers "no matching top-level components on that page (create_component first)" althoughget_componentslists them. Only aftermove_nodes {parentId:"root"}does the import work. Also the guide says<x-paper-instance component-id="ID"/>, the tool description sayscomponent="Name"; the name form works, the id form was not needed.Repro: create an artboard,
write_htmla button frame into it,create_component,get_components(listed),import_componentsinto another page (refused).Workaround: move each component to the page root first; use the name form of
x-paper-instance.Impact: the documented Design System workflow silently fails. Either import nested components or have
create_componenthoist them (or say so in its result), and align the docs on the instance attribute.Fixed in commit
5169fe6and released in v0.3.1.Follow-up: after move_nodes {parentId:"root"} the hoisted components do not keep their world position; all land on the same spot and overlap (observed with 25 components). Expected: position kept, as the tool description says for free parents.