@tiptap/extension-emoji 3.4.3 → 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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/emoji.ts +1 -4
package/dist/index.js
CHANGED
|
@@ -19545,7 +19545,7 @@ var Emoji = Node.create({
|
|
|
19545
19545
|
})
|
|
19546
19546
|
);
|
|
19547
19547
|
if (this.options.enableEmoticons) {
|
|
19548
|
-
const emoticons = this.options.emojis.
|
|
19548
|
+
const emoticons = this.options.emojis.flatMap((item) => item.emoticons).filter((item) => item);
|
|
19549
19549
|
const emoticonRegex = new RegExp(`(?:^|\\s)(${emoticons.map((item) => escapeForRegEx(item)).join("|")}) $`);
|
|
19550
19550
|
inputRules.push(
|
|
19551
19551
|
nodeInputRule({
|