
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@talisman-connect/ui
Advanced tools
npm i --save @talisman-connect/ui
Modal
Example
import { Modal } from '@talisman-connect/ui';
<Modal
className={}
// The Modal title
title={}
// The Modal toggle
isOpen={false}
// The id where the Modal is appended. By default, it's appended to document.body.
appId=""
// Callback on Modal close
handleClose={() => { ... }}
// [Optional] Callback on Modal back button click. Used with a multi modal setup.
handleBack={() => { ... }}
>
<div>The modal body</div>
</Modal>
useLocalStorage
Use localStorage values with ease.
import { useLocalStorage } from '@talisman-connect/ui';
const Dummy = () => {
const [value, setValue] = useLocalStorage('dummy-key');
return (
<button onClick={() => setValue('Dummy')}>{value || 'Click Me'}</button>
);
};
useOnClickOutside
Detects clicks outside of the ref
element and calls the provided callback.
import { useOnClickOutside } from '@talisman-connect/ui';
const Popup = ({ handleClose }) => {
const ref = useRef<HTMLDivElement>(null);
useOnClickOutside(ref, handleClose);
return <div ref={ref}>/* content */</div>;
};
truncateMiddle
Truncates the input string and replace with dots.
import { truncateMiddle } from '@talisman-connect/ui';
truncateMiddle('5FNfznCsgDKywfDXsYTf7YydpnMHUr8fjabK48rS2oFUugdc'); // 5FNf...ugdc
Run nx test talisman-connect-ui
to execute the unit tests via Jest.
FAQs
## Setup:
We found that @talisman-connect/ui demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.