au-widget-design-editor/Commands/swap-surfaces-command
Classes
SwapSurfacesCommand
Swaps two surfaces (pages) in the product.
Here, we swap the first page of the loaded product with the second page.
{
"type": "design-editor",
"name": "editor",
"params": {
"initial": { ... },
"swapSurfaces": `[{
"lhsSurfaceIndex": 0,
"rhsSurfaceIndex": 1,
}]`
}
}