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.
data-view-web-component
Advanced tools
Readme
Execute both commands in parallel
npm run build-watch
and
npm run storybook
npm start
To publish the Web Component, simply run npm publish
in the root directory. This will automatically run the prepare
script which builds the component before publishing.
The React Wrapper Library should also always be published at the same time, with the same package version (not for a technical reason, rather to facilitate understanding). The generated files (react-library/lib/*
) get generated when the build
script is executed in the root directory, since React is one of the output targets.
cd react-library
npm publish
. Just like in the root, the prepare
script will be called and will compile the Typescript.To use this Web Component in a React App, it is recommended to use the React Wrapper Library. This allows for correct Event Propagation and passing Object & Arrays directly as Props, aswell as allowing Intellisense for the props.
npm install data-card-react
<script type='module' src='https://unpkg.com/data-view-web-component@0.0.6/dist/data-view-web-component/data-view-web-component.esm.js'></script>
in the head of your index.htmlnpm install data-view-web-component --save
<script type='module' src='node_modules/data-view-web-component/data-view-web-component/data-view-web-component.esm.js'></script>
in the head of your index.htmlimport { applyPolyfills, defineCustomElements } from 'data-view-web-component/loader';
applyPolyfills().then(() => {
defineCustomElements();
});
npm install data-view-web-component --save
import data-view-web-component;
All Icons from this list can be used: https://icon-sets.iconify.design/
FAQs
Generic Web Component used to display various hierarchical data in a card format
The npm package data-view-web-component receives a total of 505 weekly downloads. As such, data-view-web-component popularity was classified as not popular.
We found that data-view-web-component demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.