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

@types/react-mentions

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-mentions - npm Package Compare versions

Comparing version 2.4.0 to 3.0.0

11

react-mentions/index.d.ts

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

// Type definitions for react-mentions 2.4
// Type definitions for react-mentions 3.0
// Project: https://github.com/signavio/react-mentions

@@ -32,5 +32,3 @@ // Definitions by: Scott Willeke <https://github.com/activescott>

allowSpaceInQuery?: boolean;
markup?: string;
value?: string;
displayTransform?: DisplayTransformFunc;
onChange?: OnChangeHandlerFunc;

@@ -44,3 +42,2 @@ placeholder?: string;

style?: any;
regex?: RegExp;
suggestionsPortalHost?: Element;

@@ -78,6 +75,7 @@ inputRef?: React.RefObject<HTMLTextAreaElement> | React.RefObject<HTMLInputElement>;

export interface MentionProps {
type?: string;
onAdd?: (id: string | number, display: string) => void;
renderSuggestion?: (suggestion: SuggestionDataItem, search: string, highlightedDisplay: React.ReactNode, index: number, focused: boolean) => React.ReactNode;
className?: string;
markup?: string;
displayTransform?: DisplayTransformFunc;
trigger: string | RegExp;

@@ -88,2 +86,3 @@ isLoading?: boolean;

appendSpaceOnAdd?: boolean;
regex?: RegExp;
}

@@ -111,3 +110,3 @@

*/
export type DisplayTransformFunc = (id: string, display: string, type: string) => string;
export type DisplayTransformFunc = (id: string, display: string) => string;

@@ -114,0 +113,0 @@ /**

{
"name": "@types/react-mentions",
"version": "2.4.0",
"version": "3.0.0",
"description": "TypeScript definitions for react-mentions",

@@ -22,3 +22,4 @@ "license": "MIT",

"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/react-mentions"
},

@@ -29,4 +30,4 @@ "scripts": {},

},
"typesPublisherContentHash": "c511b637fd122920d81dfc186ae5755cd74577ca87db9ccf309dcdd86d75f24b",
"typesPublisherContentHash": "cdf642e6976934b3067dc2cd20581aba52b4c7f10cbdb79ce1407d6af13c6329",
"typeScriptVersion": "2.8"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 24 Jan 2019 23:28:40 GMT
* Last updated: Wed, 01 May 2019 05:07:58 GMT
* Dependencies: @types/react

@@ -14,0 +14,0 @@ * Global values: none

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