feat(core): add ability to replace elements

related to #CAM-2175