Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@atlaskit/inline-dialog
Advanced tools
An inline dialog React component for secondary content and controls that are displayed on user request
The Inline Dialog is a container for secondary content and controls that are displayed on user request.
Interact with a live demo of the @atlaskit/inline-dialog component.
npm install @atlaskit/inline-dialog
@atlaskit/inline-dialog
is a React component that can wrap content and then toggle the display of an aligned dialog box.
Example usage:
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import AKInlineDialog from '@atlaskit/inline-dialog';
class ButtonActivatedDialog extends PureComponent {
static propTypes = {
content: PropTypes.node,
position: PropTypes.string,
}
state = {
isOpen: false,
};
handleClick = () => {
this.setState({
isOpen: !this.state.isOpen,
});
}
handleOnClose = ({ isOpen }) => {
this.setState({ isOpen });
}
render() {
return (
<AKInlineDialog
content={this.props.content}
position={this.props.position}
isOpen={this.state.isOpen}
onClose={this.handleOnClose}
>
<AKButton
onClick={this.handleClick}
iconBefore={<BitbucketAdminIcon />}
isSelected
/>
</AKInlineDialog>
);
}
}
This would allow you to use the ButtonActivatedDialog
class to render something similar to the example gif above.
* Please note that this module could have dependencies that are governed by the Atlassian Design Guidelines license which will be automatically included on install. Each dependency has a license file that indicates whether the Atlassian Design Guidelines license applies.
Let us know what you think of our components and docs, your feedback is really important for us.
Are you in trouble? Read through our contribution guidelines and raise an issue to us.
FAQs
An inline dialog is a pop-up container for small amounts of information. It can also contain controls.
We found that @atlaskit/inline-dialog demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.