
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@citizendev/bubble-color-picker
Advanced tools
This is a simple proof-of-concept to set up a viable development workflow to build a Bubble plugin element using Preact.js. The aim is to allow plugin developers to break out of the limited Bubble plugin SDK.
Write up:
Clone this repository, run yarn
to install dependencies.
Create a Bubble plugin. You can also fork this plugin to skip the next Bubble plugin setup steps. template
Add this piece of code into the shared header of Bubble:
<script>
function loadJS(url, module = false) {
let scriptEle = document.createElement("script");
scriptEle.setAttribute("src", url);
scriptEle.setAttribute("type", module ? "module" : "text/javascript" );
document.head.appendChild(scriptEle);
}
function loadCSS(url) {
let link = document.createElement("link");
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = url;
link.media = 'all';
document.head.appendChild(link);
}
window.devServerURL = "_*_DEV_SERVER_URL_*_";
if (!!window.devServerURL) {
loadJS(window.devServerURL + "/index.umd.js");
loadCSS(window.devServerURL + "/style.css");
}
</script>
Add a new Bubble plugin element. Set the update function as below:
function(instance, properties, context) {
if (!instance.data.element) {
instance.data.element = document.createElement("custom-counter");
instance.canvas.append(instance.data.element);
}
instance.data.element.properties = properties;
}
Add the plugin into a test app, and set the DEV_SERVER_URL
plugin key to be http://localhost:3000
.
Put the new Bubble element in your test app.
Run yarn dev
on your machine.
Open test app.
FAQs
## About:
The npm package @citizendev/bubble-color-picker receives a total of 100 weekly downloads. As such, @citizendev/bubble-color-picker popularity was classified as not popular.
We found that @citizendev/bubble-color-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.