@tiptap/extension-emoji 3.4.4 → 3.4.5

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/dist/index.cjs CHANGED
@@ -19580,7 +19580,7 @@ var Emoji = import_core.Node.create({
19580
19580
  })
19581
19581
  );
19582
19582
  if (this.options.enableEmoticons) {
19583
- const emoticons = this.options.emojis.map((item) => item.emoticons).flat().filter((item) => item);
19583
+ const emoticons = this.options.emojis.flatMap((item) => item.emoticons).filter((item) => item);
19584
19584
  const emoticonRegex = new RegExp(`(?:^|\\s)(${emoticons.map((item) => (0, import_core.escapeForRegEx)(item)).join("|")}) $`);
19585
19585
  inputRules.push(
19586
19586
  (0, import_core.nodeInputRule)({