Hi @QuinnSouther ,
If you are using Custom UI as the bodied macro then the content has to be rendered within an iframe. If you use UI Kit as the bodied macro then it will be much faster as is it won’t have to render an addition iframe wrapper for the bodied macro content.
If you have to have to use Custom UI as the bodied macro then the content will be first rendered in a wrapping iframe then each macro will be rendered either in an iframe if it is a Custom UI macro or not if it is UI Kit.
This is what the ADF document would look like for a Custom UI Bodied macro with a Custom UI macro inside.
Does that answer your question?
{
"type": "doc",
"content": [
{
"type": "bodiedExtension",
"attrs": {
"layout": "default",
"extensionType": "com.atlassian.ecosystem",
"extensionKey": "example-bodied-extension-key",
"text": "custom-ui-bodied-macro (Development)",
"parameters": {
"layout": "bodiedExtension",
"forgeEnvironment": "DEVELOPMENT",
"extensionProperties": {
"accountId": "example-account-id",
"extension": {
"appVersion": "3.13.0",
"environmentType": "DEVELOPMENT",
"consentUrl": "https://id.atlassian.com/outboundAuth/start",
"dataClassificationPolicyDecision": {
"status": "ALLOWED"
},
"type": "xen:macro",
"environmentKey": "default",
"environmentId": "example-environment-id",
"appId": "example-app-id",
"scopes": [],
"id": "example-extension-ari",
"installationId": "example-installation-id",
"properties": {
"layout": "bodied",
"resolver": {
"function": "resolver"
},
"resourceUploadId": "example-resource-upload-id",
"resource": "main",
"description": "Inserts Hello world!",
"title": "custom-ui-bodied-macro",
"type": "xen:macro",
"key": "custom-ui-bodied-macro-hello-world"
},
"key": "custom-ui-bodied-macro-hello-world"
},
"cloudId": "example-cloud-id",
"contextIds": [
"example-confluence-workspace-ari"
],
"extensionData": {
"type": "macro",
"content": {
"id": "example-page-id",
"type": "page"
},
"space": {
"id": "example-space-id",
"key": "example-space-key"
}
}
},
"localId": "example-local-id",
"extensionId": "example-bodied-extension-id",
"extensionTitle": "custom-ui-bodied-macro (Development)"
},
"localId": "example-local-id"
},
"content": [
{
"type": "paragraph",
"attrs": {
"localId": "example-paragraph-local-id"
},
"content": [
{
"type": "inlineExtension",
"attrs": {
"extensionType": "com.atlassian.ecosystem",
"extensionKey": "example-inline-extension-key",
"text": "custom-ui-inline-macros (Development)",
"parameters": {
"layout": "inlineExtension",
"guestParams": {
"myField": "test"
},
"forgeEnvironment": "DEVELOPMENT",
"extensionProperties": {
"accountId": "example-account-id",
"extension": {
"appVersion": "3.1.0",
"environmentType": "DEVELOPMENT",
"consentUrl": "https://id.atlassian.com/outboundAuth/start",
"dataClassificationPolicyDecision": {
"status": "ALLOWED"
},
"type": "xen:macro",
"environmentKey": "default",
"environmentId": "example-inline-environment-id",
"appId": "example-inline-app-id",
"scopes": [],
"id": "example-inline-extension-ari",
"installationId": "example-inline-installation-id",
"properties": {
"layout": "inline",
"resolver": {
"function": "resolver"
},
"resourceUploadId": "example-inline-resource-upload-id",
"resource": "main",
"description": "Inserts Hello world!",
"type": "xen:macro",
"title": "custom-ui-inline-macros",
"config": {
"resource": "macro-config",
"viewportSize": "max",
"title": "Config"
},
"key": "custom-ui-inline-macros-hello-world"
},
"key": "custom-ui-inline-macros-hello-world"
},
"cloudId": "example-cloud-id",
"contextIds": [
"example-confluence-workspace-ari"
],
"extensionData": {
"type": "macro",
"content": {
"id": "example-page-id",
"type": "page"
},
"space": {
"id": "example-space-id",
"key": "example-space-key"
}
}
},
"localId": "example-inline-local-id",
"extensionId": "example-inline-extension-id",
"extensionTitle": "custom-ui-inline-macros (Development)"
},
"localId": "example-inline-local-id-2"
}
}
]
}
]
},
],
"version": 1
}