Closed Leizhenpeng closed 1 month ago
https://github.com/Leizhenpeng/content-ui-inject
This package is under rapid development
The core target is to handle three types of injection + two injection timings of csui.
If you are interested, I can put it in the package directory of this repo and we can develop it together!
@Leizhenpeng If you're interested we can add your plugin as one module for this template, when we will create a #400 😄 It will become a part of this template, but also other users can download it as standalone module ❤️ I hope @Jonghakseo are all in, for this idea 😆
I love the idea of installing dependencies to use additional libraries, and embedding them inside boilerplate!
# Injecting content UI is a complex and common requirement, especially for developers working on sophisticated plugins that require various entry points for other operations. Currently, we provide a manual method for creating a short route, but this approach falls short for the following reasons:
Limited Flexibility: There are primarily two modes of content-UI injection: iframe and shadow root. Shadow root itself has three subtypes:
Injection Timing Mechanisms: Plugins may need to inject content UI:
Given the complexity and high setup cost for users, I have maintained a separate package that specifically handles content UI injection logic.
This package simplifies and optimizes the injection process. Here’s a simple demo illustrating its effectiveness and efficiency:
By integrating examples from this package into our documentation, we can significantly reduce the learning curve for users and enable them to handle more complex scenarios efficiently.