Nested component slots are not available in the parent component editor

When I insert a component containing slots into another component, its slots are not available in the Structure panel while editing the parent component.

Steps to reproduce:

  1. Create a component (A) containing one or more slots.

  2. Insert an instance of component A directly onto a page. Its slots are available and can be populated as expected.

  3. Create another component (B).

  4. Insert an instance of component A into the definition of component B.

  5. Check the Structure panel while editing component B.

Actual behavior:

The slots of the nested component are not displayed and cannot be populated.

Expected behavior:

The slots of the nested component should be available and editable within the parent component editor, just as they are when the component is inserted directly onto a page.