@lumel/mention 5.2.1 → 5.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## To Be Released
7
7
 
8
+ ## 5.2.2
9
+
10
+ - adjust react peer dependency
11
+
8
12
  ## 5.2.1
9
13
 
10
14
  - support react 18 in peer dependencies [#2701](https://github.com/draft-js-plugins/draft-js-plugins/issues/2701)
@@ -28,7 +28,7 @@ interface EntryProps {
28
28
  searchValue?: string;
29
29
  }
30
30
  declare const Entry: {
31
- ({ onMentionSelect, mention, theme, index, onMentionFocus, isFocused, id, searchValue, entryComponent, }: EntryProps): ReactElement;
31
+ ({ onMentionSelect, mention, theme, index, onMentionFocus, isFocused, id, searchValue, entryComponent: EntryComponent, }: EntryProps): ReactElement;
32
32
  propTypes: {
33
33
  entryComponent: PropTypes.Validator<any>;
34
34
  searchValue: PropTypes.Requireable<string>;
@@ -75,6 +75,7 @@ export declare class MentionSuggestions extends Component<MentionSuggestionsProp
75
75
  commitSelection: () => DraftHandleValue;
76
76
  openDropdown: () => void;
77
77
  closeDropdown: () => void;
78
+ private getMentionKey;
78
79
  render(): ReactElement | null;
79
80
  }
80
81
  export default MentionSuggestions;
@@ -1,6 +1,6 @@
1
- import { EditorState } from 'draft-js';
2
- import { ReactElement, ReactNode } from 'react';
3
- import { MentionPluginStore } from '.';
1
+ import { EditorState } from "draft-js";
2
+ import { ReactElement, ReactNode } from "react";
3
+ import { MentionPluginStore } from ".";
4
4
  export interface MentionSuggestionsPortalProps {
5
5
  offsetKey: string;
6
6
  store: MentionPluginStore;