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

rc-mentions

Package Overview
Dependencies
Maintainers
3
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-mentions - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

8

es/KeywordTrigger.js

@@ -13,3 +13,3 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";

overflow: {
adjustX: 0,
adjustX: 1,
adjustY: 1

@@ -22,3 +22,3 @@ }

overflow: {
adjustX: 0,
adjustX: 1,
adjustY: 1

@@ -31,3 +31,3 @@ }

overflow: {
adjustX: 0,
adjustX: 1,
adjustY: 1

@@ -40,3 +40,3 @@ }

overflow: {
adjustX: 0,
adjustX: 1,
adjustY: 1

@@ -43,0 +43,0 @@ }

@@ -56,4 +56,10 @@ import _extends from "@babel/runtime/helpers/esm/extends";

activeIndex = _this$state.activeIndex,
measuring = _this$state.measuring; // Skip if not measuring
measuring = _this$state.measuring;
var clientOnKeyDown = _this.props.onKeyDown;
if (clientOnKeyDown) {
clientOnKeyDown(event);
} // Skip if not measuring
if (!measuring) {

@@ -117,2 +123,3 @@ return;

prefix = _this$props$prefix === void 0 ? '' : _this$props$prefix,
clientOnKeyUp = _this$props.onKeyUp,
onSearch = _this$props.onSearch,

@@ -125,5 +132,10 @@ validateSearch = _this$props.validateSearch;

measureIndex = _getLastMeasureIndex.location,
measurePrefix = _getLastMeasureIndex.prefix; // Skip if match the white key list
measurePrefix = _getLastMeasureIndex.prefix; // If the client implements an onKeyUp handler, call it
if (clientOnKeyUp) {
clientOnKeyUp(event);
} // Skip if match the white key list
if ([KeyCode.ESC, KeyCode.UP, KeyCode.DOWN, KeyCode.ENTER].indexOf(which) !== -1) {

@@ -130,0 +142,0 @@ return;

@@ -31,3 +31,3 @@ "use strict";

overflow: {
adjustX: 0,
adjustX: 1,
adjustY: 1

@@ -40,3 +40,3 @@ }

overflow: {
adjustX: 0,
adjustX: 1,
adjustY: 1

@@ -49,3 +49,3 @@ }

overflow: {
adjustX: 0,
adjustX: 1,
adjustY: 1

@@ -58,3 +58,3 @@ }

overflow: {
adjustX: 0,
adjustX: 1,
adjustY: 1

@@ -61,0 +61,0 @@ }

@@ -81,4 +81,10 @@ "use strict";

activeIndex = _this$state.activeIndex,
measuring = _this$state.measuring; // Skip if not measuring
measuring = _this$state.measuring;
var clientOnKeyDown = _this.props.onKeyDown;
if (clientOnKeyDown) {
clientOnKeyDown(event);
} // Skip if not measuring
if (!measuring) {

@@ -142,2 +148,3 @@ return;

prefix = _this$props$prefix === void 0 ? '' : _this$props$prefix,
clientOnKeyUp = _this$props.onKeyUp,
onSearch = _this$props.onSearch,

@@ -150,5 +157,10 @@ validateSearch = _this$props.validateSearch;

measureIndex = _getLastMeasureIndex.location,
measurePrefix = _getLastMeasureIndex.prefix; // Skip if match the white key list
measurePrefix = _getLastMeasureIndex.prefix; // If the client implements an onKeyUp handler, call it
if (clientOnKeyUp) {
clientOnKeyUp(event);
} // Skip if match the white key list
if ([_KeyCode.default.ESC, _KeyCode.default.UP, _KeyCode.default.DOWN, _KeyCode.default.ENTER].indexOf(which) !== -1) {

@@ -155,0 +167,0 @@ return;

{
"name": "rc-mentions",
"version": "1.6.1",
"version": "1.6.2",
"description": "React Mentions",

@@ -44,4 +44,4 @@ "keywords": [

"@types/enzyme": "^3.1.15",
"@types/react": "^16.7.17",
"@types/react-dom": "^16.0.11",
"@types/react": "^17.0.13",
"@types/react-dom": "^17.0.8",
"@types/warning": "^3.0.0",

@@ -51,7 +51,7 @@ "@umijs/fabric": "^2.0.8",

"enzyme-to-json": "^3.1.4",
"eslint": "^7.1.0",
"eslint": "^8.9.0",
"father": "^2.13.6",
"lodash.debounce": "^4.0.8",
"np": "^7.0.0",
"react": "^16.0.0",
"react": "^17.0.2",
"react-dom": "^16.0.0",

@@ -58,0 +58,0 @@ "typescript": "^4.0.3"

@@ -80,2 +80,4 @@ # rc-mentions

| onChange | Trigger when value changed |(text: string) => void | - |
| onKeyDown | Trigger when user hits a key | React.KeyboardEventHandler<HTMLTextAreaElement> | - |
| onKeyUp | Trigger when user releases a key | React.KeyboardEventHandler<HTMLTextAreaElement> | - |
| onSelect | Trigger when user select the option | (option: OptionProps, prefix: string) => void | - |

@@ -82,0 +84,0 @@ | onSearch | Trigger when prefix hit | (text: string, prefix: string) => void | - |

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