
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@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.
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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.