Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@bpmn-io/diagram-js-ui
Advanced tools
Changelog
0.2.3
FIX
: correct type exportsFIX
: turn into an actual moduleCHORE
: add package exports
declarationReadme
A wrapper around htm/preact
that exposes components for building reactive HTML widgets in the context of diagram-js and extensions.
This module is available through diagram-js/lib/ui
. Use it to create and mount your Preact components and render them through the htm
utility.
// MyService.js
import { render, html } from 'diagram-js/lib/ui';
import MyCounter from './MyCounter';
export default function MyService() {
const parentElement = document.createElement('div');
render(html`<${MyCounter} />`, parentElement);
}
// MyCounter.js
import { useState, html } from 'diagram-js/lib/ui';
export default function MyCounter(props) {
const counter = useState(0);
return html`
<div>Counter: ${counter}</div>
`;
}
# install all dependencies
npm install
# lint and build the library
npm run all
MIT
FAQs
[![CI](https://github.com/bpmn-io/diagram-js-ui/actions/workflows/CI.yml/badge.svg)](https://github.com/bpmn-io/diagram-js-ui/actions/workflows/CI.yml)
The npm package @bpmn-io/diagram-js-ui receives a total of 24,121 weekly downloads. As such, @bpmn-io/diagram-js-ui popularity was classified as popular.
We found that @bpmn-io/diagram-js-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.