@portabletext/editor
Advanced tools
Comparing version 1.18.0 to 1.18.1
@@ -67,2 +67,4 @@ import { getFirstBlock, getSelectedBlocks, getLastBlock, getFocusTextBlock, isSelectionCollapsed, getFocusSpan, getFocusBlock } from "../_chunks-es/selector.is-selection-collapsed.js"; | ||
}) => { | ||
if (event.text === ":") | ||
return !1; | ||
if (!emojiCharRegEx.test(event.text)) | ||
@@ -69,0 +71,0 @@ return { |
{ | ||
"name": "@portabletext/editor", | ||
"version": "1.18.0", | ||
"version": "1.18.1", | ||
"description": "Portable Text Editor made in React", | ||
@@ -83,3 +83,3 @@ "keywords": [ | ||
"@types/lodash.startcase": "^4.4.9", | ||
"@types/react": "^19.0.1", | ||
"@types/react": "^19.0.2", | ||
"@types/react-dom": "^19.0.2", | ||
@@ -101,3 +101,3 @@ "@typescript-eslint/eslint-plugin": "^8.18.1", | ||
"typescript": "5.7.2", | ||
"vite": "^6.0.3", | ||
"vite": "^6.0.4", | ||
"vitest": "^2.1.8", | ||
@@ -104,0 +104,0 @@ "vitest-browser-react": "^0.0.4", |
@@ -43,2 +43,6 @@ import {assertEvent, assign, createActor, setup} from 'xstate' | ||
guard: ({context, event}) => { | ||
if (event.text === ':') { | ||
return false | ||
} | ||
const isEmojiChar = emojiCharRegEx.test(event.text) | ||
@@ -45,0 +49,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3365905
47776