Streamlit AGGrid: add custom cell editor

I’d like to add this custom cell editor or something similar in functionality:
Option 1: ag-grid-autocomplete-editor - npm (
Option 2: Next-level cell editing in ag-Grid with CRUD and React Hooks

How do I go about making this custom cell editor JS to the AG Grid? I could add just the code to JSCode object, but what about the dependencies in the import statements? Do I need to create a component within Streamlit?