| 1 |
import { BlockPatchingConfirm } from '@agent/workflows/block-selector/components/BlockPatchingConfirm'; |
| 2 |
|
| 3 |
const BLOCK_ID_ATTR = 'data-extendify-agent-block-id'; |
| 4 |
|
| 5 |
export default { |
| 6 |
// Block ids exist only on the front end — TagBlocks bails in wp-admin. |
| 7 |
available: () => !!document.querySelector(`[${BLOCK_ID_ATTR}]`), |
| 8 |
id: 'select-block', |
| 9 |
whenFinished: { component: BlockPatchingConfirm }, |
| 10 |
// No `requires: ['block']` — this workflow is what produces the selection. |
| 11 |
}; |
| 12 |
|