@types/react-mentions
Advanced tools
Comparing version 4.1.1 to 4.1.2
@@ -29,22 +29,22 @@ // Type definitions for react-mentions 4.1 | ||
*/ | ||
singleLine?: boolean; | ||
singleLine?: boolean | undefined; | ||
/** | ||
* If set to `true` spaces will not interrupt matching suggestions | ||
*/ | ||
allowSpaceInQuery?: boolean; | ||
allowSuggestionsAboveCursor?: boolean; | ||
forceSuggestionsAboveCursor?: boolean; | ||
ignoreAccents?: boolean; | ||
value?: string; | ||
onChange?: OnChangeHandlerFunc; | ||
placeholder?: string; | ||
onBlur?: (event: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>, clickedSuggestion: boolean) => void; | ||
onSelect?: (event: React.UIEvent) => void; | ||
onKeyDown?: (event: React.KeyboardEvent<HTMLTextAreaElement> | React.KeyboardEvent<HTMLInputElement>) => void; | ||
allowSpaceInQuery?: boolean | undefined; | ||
allowSuggestionsAboveCursor?: boolean | undefined; | ||
forceSuggestionsAboveCursor?: boolean | undefined; | ||
ignoreAccents?: boolean | undefined; | ||
value?: string | undefined; | ||
onChange?: OnChangeHandlerFunc | undefined; | ||
placeholder?: string | undefined; | ||
onBlur?: ((event: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>, clickedSuggestion: boolean) => void) | undefined; | ||
onSelect?: ((event: React.UIEvent) => void) | undefined; | ||
onKeyDown?: ((event: React.KeyboardEvent<HTMLTextAreaElement> | React.KeyboardEvent<HTMLInputElement>) => void) | undefined; | ||
children: React.ReactElement<MentionProps> | Array<React.ReactElement<MentionProps>>; | ||
className?: string; | ||
className?: string | undefined; | ||
classNames?: any; | ||
style?: any; | ||
suggestionsPortalHost?: Element; | ||
inputRef?: React.Ref<HTMLTextAreaElement> | React.Ref<HTMLInputElement>; | ||
suggestionsPortalHost?: Element | undefined; | ||
inputRef?: React.Ref<HTMLTextAreaElement> | React.Ref<HTMLInputElement> | undefined; | ||
/** | ||
@@ -54,3 +54,3 @@ * This label would be exposed to screen readers when suggestion popup appears | ||
*/ | ||
a11ySuggestionsListLabel?: string; | ||
a11ySuggestionsListLabel?: string | undefined; | ||
} | ||
@@ -65,3 +65,3 @@ | ||
*/ | ||
inputRef?: HTMLInputElement | HTMLTextAreaElement; | ||
inputRef?: HTMLInputElement | HTMLTextAreaElement | undefined; | ||
} | ||
@@ -74,3 +74,3 @@ | ||
// MentionsInput uses substyle (https://github.com/jfschwarz/substyle) which adds this wrappedInstance | ||
wrappedInstance?: MentionsInputComponentUnrwapped; | ||
wrappedInstance?: MentionsInputComponentUnrwapped | undefined; | ||
} | ||
@@ -88,13 +88,13 @@ | ||
export interface MentionProps { | ||
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; | ||
onAdd?: ((id: string | number, display: string) => void) | undefined; | ||
renderSuggestion?: ((suggestion: SuggestionDataItem, search: string, highlightedDisplay: React.ReactNode, index: number, focused: boolean) => React.ReactNode) | undefined; | ||
className?: string | undefined; | ||
markup?: string | undefined; | ||
displayTransform?: DisplayTransformFunc | undefined; | ||
trigger: string | RegExp; | ||
isLoading?: boolean; | ||
isLoading?: boolean | undefined; | ||
data: SuggestionDataItem[] | DataFunc; | ||
style?: any; | ||
appendSpaceOnAdd?: boolean; | ||
regex?: RegExp; | ||
appendSpaceOnAdd?: boolean | undefined; | ||
regex?: RegExp | undefined; | ||
} | ||
@@ -101,0 +101,0 @@ |
@@ -12,5 +12,5 @@ /** | ||
export interface Options { | ||
selectionStartBefore?: number; | ||
selectionEndBefore?: number; | ||
selectionEndAfter?: number; | ||
selectionStartBefore?: number | undefined; | ||
selectionEndBefore?: number | undefined; | ||
selectionEndAfter?: number | undefined; | ||
} | ||
@@ -17,0 +17,0 @@ |
{ | ||
"name": "@types/react-mentions", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "TypeScript definitions for react-mentions", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-mentions", | ||
"license": "MIT", | ||
@@ -29,4 +30,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "c5d1276da69232ed0a4a7c4407b5cf4a2146cee4101d096b3198c13982fdaa85", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "14c18e94816f983443c845d766458e44e07791ca86ccdaba275b59e019c77dd2", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 24 May 2021 12:32:38 GMT | ||
* Last updated: Thu, 08 Jul 2021 20:20:56 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
13336
0