about summary refs log tree commit diff
path: root/package.json
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-08-17 13:39:59 -0700
committerGitHub <noreply@github.com>2023-08-17 13:39:59 -0700
commit4a59178cd2d7028e99a977e0ed10193d135e30dd (patch)
treead02636ac1987214843a737df94b48d240427819 /package.json
parent5e63d3164b58552f81b597eff83cba991bea958e (diff)
downloadvoidsky-4a59178cd2d7028e99a977e0ed10193d135e30dd.tar.zst
Update the web composer textinput to an emitter (close #1193) (#1205)
The tiptap useEditor() hook creates an awkward challenge for passing
event handlers into its plugins and native events. By introducing a
memoized editor, we should be able to shuttle events out of tiptap
without retriggering the useEditor hook. The emitter can then change
its registered handlers with each state update.
Diffstat (limited to 'package.json')
-rw-r--r--package.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json
index 02492aceb..c897ead5f 100644
--- a/package.json
+++ b/package.json
@@ -70,6 +70,7 @@
     "base64-js": "^1.5.1",
     "bcp-47-match": "^2.0.3",
     "email-validator": "^2.0.4",
+    "eventemitter3": "^5.0.1",
     "expo": "~48.0.18",
     "expo-application": "~5.1.1",
     "expo-build-properties": "~0.5.1",