Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maskito/react

Package Overview
Dependencies
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maskito/react - npm Package Compare versions

Comparing version 0.12.1 to 0.13.0

6

index.esm.js

@@ -1,2 +0,2 @@

import { Maskito, MASKITO_DEFAULT_OPTIONS } from '@maskito/core';
import { Maskito, MASKITO_DEFAULT_OPTIONS, MASKITO_DEFAULT_ELEMENT_PREDICATE } from '@maskito/core';
import { useLayoutEffect, useEffect, useState, useCallback } from 'react';

@@ -6,3 +6,2 @@

const defaultMaskitoPredicate = e => e.querySelector('input,textarea') || e;
/**

@@ -23,6 +22,5 @@ * Hook for convenient use of Maskito in React

const useMaskito = ({
options = MASKITO_DEFAULT_OPTIONS,
elementPredicate = defaultMaskitoPredicate
elementPredicate = MASKITO_DEFAULT_ELEMENT_PREDICATE
} = {}) => {

@@ -29,0 +27,0 @@ const [element, setElement] = useState(null);

@@ -9,5 +9,2 @@ (function (global, factory) {

var defaultMaskitoPredicate = function (e) {
return e.querySelector('input,textarea') || e;
};
/**

@@ -28,3 +25,2 @@ * Hook for convenient use of Maskito in React

var useMaskito = function (_a) {

@@ -35,3 +31,3 @@ var _b = _a === void 0 ? {} : _a,

_d = _b.elementPredicate,
elementPredicate = _d === void 0 ? defaultMaskitoPredicate : _d;
elementPredicate = _d === void 0 ? core.MASKITO_DEFAULT_ELEMENT_PREDICATE : _d;

@@ -38,0 +34,0 @@ var _e = react.useState(null),

{
"name": "@maskito/react",
"version": "0.12.1",
"version": "0.13.0",
"description": "The React-specific Maskito's library",

@@ -26,3 +26,3 @@ "keywords": [

"contributors": [
"Alex Inkin <alexander@inkin.ru>",
"Alex Inkin <alexander@inkin.ru> (https://twitter.com/waterplea)",
"Maksim Ivanov <splincodewd@yandex.ru>",

@@ -44,3 +44,3 @@ "Vladimir Potekhin <vladimir.potekh@gmail.com>",

"peerDependencies": {
"@maskito/core": "^0.12.1",
"@maskito/core": "^0.13.0",
"react": ">=16.8",

@@ -47,0 +47,0 @@ "react-dom": ">=16.8"

@@ -11,3 +11,3 @@ # @maskito/react

<p align="center">
<a href="https://tinkoff.github.io/maskito/javascript-frameworks/react">Documentation</a> •
<a href="https://tinkoff.github.io/maskito/frameworks/react">Documentation</a> •
<a href="https://github.com/Tinkoff/maskito/issues/new/choose">Submit an Issue</a> •

@@ -14,0 +14,0 @@ <a href="https://t.me/taiga_ui">Contact Us</a>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc