Usar componente color-input com usuários não administradores

Hello :waving_hand:

In one of my plugins I would like to use the color-input component. However this component is located in the discourse/admin folder so whenever I try to import it as a non-admin user, it cannot be found because Discourse prevents non-admin users from loading admin components (if I understood correctly).

Would it make sense to move this component outside of the admin folder?

The alternative is obviously to use my own component or copy the existing one, but I wanted to ask you first. Maybe there is a way to load this component regardless of the user status but I don’t know how.

Thanks for your help!

4 curtidas