
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@ewc-lib/ewc-dialog-clipboard
Advanced tools
This is a dialog to enable a user to copy some given text into the OS's clipboard.
This is a dialog to enable a user to copy some given text into the OS's clipboard.
Before click on button
After click on button
The API of ewc-dialog applies to this component as well, because it derives from ewc-dialog.
However because this is a single purpose specialisation of ewc-dialog, there should be no need to specialise it any further.
This component introduces the following properties:
The properties can be modified at runtime.
Please see usage-example/ directory for examples on how to use this component.
This component is buildless and can be used with bundlers, as well as in a vanillaJS context.
The following object is defined internally to specify the default texts.
{
title: "Embed visualisation",
prompt: "Copy the following code or click the button to automatically copy to clipboard.",
buttonText: "Copy to clipboard",
outcomeSuccess: "Copied to clipboard",
outcomeFailure: "Code could not be copied to clipboard"
}
The texts can be changed by supplying an object w/ the properties shown above to the messages setter.
Note that it is mandatory to set each property in the given object - supplying an object w/ only some of the properties results in undefined behaviour.
The examples in the usage-example/ directory also contain this use case.
npm install @ewc-lib/ewc-dialog-clipboard
Import the component in your application:
// Using ES modules
import "@ewc-lib/ewc-css-common/custom-props.css"
import "@ewc-lib/ewc-dialog-clipboard"
2.2.3-beta
2.2.2-beta
2.2.1-beta
2.2.0-beta
2.1.0-beta
2.0.4-alpha
FAQs
This is a dialog to enable a user to copy some given text into the OS's clipboard.
The npm package @ewc-lib/ewc-dialog-clipboard receives a total of 5 weekly downloads. As such, @ewc-lib/ewc-dialog-clipboard popularity was classified as not popular.
We found that @ewc-lib/ewc-dialog-clipboard demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.