@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/lib/index.d.ts CHANGED
@@ -14,7 +14,7 @@ export { default as Popover } from './MentionSuggestions/Popover';
14
14
  export { defaultTheme };
15
15
  export { addMention };
16
16
  export type { MentionPluginTheme };
17
- export declare type PopperOptions = Omit<Partial<PopperJS.Options>, 'modifiers'> & {
17
+ export type PopperOptions = Omit<Partial<PopperJS.Options>, 'modifiers'> & {
18
18
  createPopper?: typeof PopperJS.createPopper;
19
19
  modifiers?: ReadonlyArray<Modifier<unknown>>;
20
20
  };
@@ -24,6 +24,8 @@ export interface MentionData {
24
24
  name: string;
25
25
  id?: null | string | number;
26
26
  [x: string]: any;
27
+ /** Optional explicit React key – takes precedence over id/name. Must be unique. */
28
+ key?: string;
27
29
  }
28
30
  export interface MultiMentionData {
29
31
  [fieldName: string]: MentionData[];