Thank you for the reply.
Tried this solution out but unfortunately it looks like the version I’m building on has an older list of initialized transformers, which happens to be missing the composer-editor-reply-placeholder.
For a bit more context, I’m refactoring plugin features into using Glimmer components after the deprecation of the registerConnectorClass API. The code below is what was set up originally.
export default {
initialize(container) {
withPluginApi("1.6.0", api => {
api.registerConnectorClass("composer-fields", "handlebars-template-name", {
setupComponent(attrs, component) {
const model = attrs.model;
const controller = api.container.lookup("controller:composer");
if (controller) {
controller.addObserver("model.categoryId", this, function () {
// logic to set values for showToggle & isRestricted
let props = {
showField: showToggle && isRestricted,
}
component.setProperties(Object.assign(props));
})
}
}
}
Is there another way to get this same functionality from a glimmer component? Specifically observing changes on the model and/or categoryId.