@tiptap/extension-emoji 3.0.9 → 3.2.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/extension-emoji",
3
3
  "description": "emoji extension for tiptap",
4
- "version": "3.0.9",
4
+ "version": "3.2.0",
5
5
  "homepage": "https://tiptap.dev/api/nodes/emoji",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -36,9 +36,9 @@
36
36
  "dist"
37
37
  ],
38
38
  "peerDependencies": {
39
- "@tiptap/core": "^3.0.9",
40
- "@tiptap/pm": "^3.0.9",
41
- "@tiptap/suggestion": "^3.0.9"
39
+ "@tiptap/core": "^3.2.0",
40
+ "@tiptap/suggestion": "^3.2.0",
41
+ "@tiptap/pm": "^3.2.0"
42
42
  },
43
43
  "dependencies": {
44
44
  "emoji-regex": "^10.4.0",
@@ -49,9 +49,9 @@
49
49
  "emoji-datasource": "^7.0.2",
50
50
  "json5": "^2.2.3",
51
51
  "tsm": "^2.3.0",
52
- "@tiptap/core": "^3.0.9",
53
- "@tiptap/pm": "^3.0.9",
54
- "@tiptap/suggestion": "^3.0.9"
52
+ "@tiptap/core": "^3.2.0",
53
+ "@tiptap/pm": "^3.2.0",
54
+ "@tiptap/suggestion": "^3.2.0"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "tsup",
package/src/emoji.ts CHANGED
@@ -389,6 +389,10 @@ export const Emoji = Node.create<EmojiOptions, EmojiStorage>({
389
389
 
390
390
  // replace text emojis with emoji node on any change
391
391
  appendTransaction: (transactions, oldState, newState) => {
392
+ // Skip processing during IME composition
393
+ if (this.editor.view.composing) {
394
+ return
395
+ }
392
396
  const docChanges = transactions.some(transaction => transaction.docChanged) && !oldState.doc.eq(newState.doc)
393
397
 
394
398
  if (!docChanges) {