
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@snack-uikit/input-private
Advanced tools
npm i @snack-uikit/input-private
export type Type = 'text' | 'password'
export type InputPrivateProps = RefAttributes<HTMLInputElement> &
WithSupportProps<{
name?: string;
value: string;
onChange?(value: string, e?: ChangeEvent<HTMLInputElement>): void;
id?: string;
className?: string;
placeholder?: string;
type?: Types;
disabled?: boolean;
autoComplete?: boolean;
maxLength?: number;
onFocus?: FocusEventHandler<HTMLInputElement>;
onBlur?: FocusEventHandler<HTMLInputElement>;
prefix?: ReactNode;
postfix?: ReactNode;
onClick?: MouseEventHandler<HTMLInputElement>;
onMouseDown?: MouseEventHandler<HTMLInputElement>;
}>;
name | type | default value | description |
---|---|---|---|
name | string | - | Значение html-атрибута name |
value | string | - | Значение input |
onChange | (value: string, e?: ChangeEvent<HTMLInputElement>) => void | - | Колбек смены значения |
placeholder | string | - | Значение плейсхолдера |
id | string | - | Значение html-атрибута id |
className | string | - | CSS-класс |
type | enum Type: "number" , "text" , "password" , "tel" , "email" , "url" | text | Тип инпута |
disabled | boolean | - | Является ли поле деактивированным |
readonly | boolean | - | Является ли поле доступным только для чтения |
autoComplete | string | boolean | false | Включен ли автокомплит для поля |
maxLength | number | - | Максимальная длина вводимого значения |
min | number | - | Минимальное значение поля |
max | number | - | Максимальное значение поля |
step | string | number | - | Максимальное значение поля |
onFocus | FocusEventHandler<HTMLInputElement> | - | Колбек обработки получения фокуса |
onBlur | FocusEventHandler<HTMLInputElement> | - | Колбек обработки потери фокуса |
onKeyDown | KeyboardEventHandler<HTMLInputElement> | - | Колбек обработки начала нажатия клавиши клавиатуры |
onPaste | ClipboardEventHandler<HTMLInputElement> | - | Колбек обработки вставки значения |
tabIndex | number | - | Значение атрибута tab-index |
onClick | MouseEventHandler<HTMLInputElement> | - | Колбек обработки клика |
onMouseDown | MouseEventHandler<HTMLInputElement> | - | Колбек обработки нажатия кнопки мыши |
key | Key | - | |
ref | LegacyRef<HTMLInputElement> | - | Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref). @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
hook
Позволяет использовать клавиатуру для навигации по элементам управления
hook
Позволяет использовать кнопку сброса значения
helper
Переносит курсор в конец поля ввода
helper
Выделяет весь текст в поле ввода
helper
Откладывает колбек на следующий цикл EventLoop
helper
Проверяет находится ли курсор в начале поля ввода
helper
Проверяет находится ли курсор в конце поля ввода
FAQs
Unknown package
The npm package @snack-uikit/input-private receives a total of 954 weekly downloads. As such, @snack-uikit/input-private popularity was classified as not popular.
We found that @snack-uikit/input-private demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.