update api to use WebComponents instead of Platform.