I can't seem to ever see the slots in the render function when using them inside an object:
export type RootProps = DefaultRootProps;
export const Root: RootConfig<RootProps> = {
defaultProps: {
array: [{
title: "Title",
}],
object: {},
},
fields: {
slot: {
type: "slot",
},
object: {
type: "object",
objectFields: {
slot: {
type: "slot",
},
},
},
array: {
label: "Array",
type: "array",
arrayFields: {
title: {
label: "Title",
type: "text",
},
slot: {
type: "slot",
}
}
}
},
render: ({ puck: { isEditing, renderDropZone: DropZone }, ...props}) => {
console.log("Root render", props?.object?.slot, props.array?.[0]?.slot);
...
Is this intentional? are slots only allowed at the top level for field definitions? I can't seem to see the slot field appear within an array either of a default value, they only appear when you manually add an item to the array from the UI