From 48f15b73613669f4889ba9a74cd861af060092f1 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 9 Oct 2023 14:58:34 -0500 Subject: [PATCH] install fork of suggestion plugin --- package.json | 1 + src/view/com/composer/text-input/web/Tags/plugin.tsx | 2 +- src/view/com/composer/text-input/web/Tags/view.tsx | 2 +- yarn.lock | 5 +++++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 84c5d7c6d3..90192f74e8 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@bam.tech/react-native-image-resizer": "^3.0.4", "@braintree/sanitize-url": "^6.0.2", "@emoji-mart/react": "^1.1.1", + "@estrattonbailey/tiptap-suggestion": "^2.2.0-rc.3", "@expo/html-elements": "^0.4.2", "@expo/webpack-config": "^19.0.0", "@fortawesome/fontawesome-svg-core": "^6.1.1", diff --git a/src/view/com/composer/text-input/web/Tags/plugin.tsx b/src/view/com/composer/text-input/web/Tags/plugin.tsx index 7bb8f76829..93d365ff15 100644 --- a/src/view/com/composer/text-input/web/Tags/plugin.tsx +++ b/src/view/com/composer/text-input/web/Tags/plugin.tsx @@ -3,7 +3,7 @@ import {mergeAttributes, Node} from '@tiptap/core' import {Node as ProseMirrorNode} from '@tiptap/pm/model' import {PluginKey} from '@tiptap/pm/state' -import Suggestion, {SuggestionOptions} from '@tiptap/suggestion' +import Suggestion, {SuggestionOptions} from '@estrattonbailey/tiptap-suggestion' export type TagOptions = { HTMLAttributes: Record diff --git a/src/view/com/composer/text-input/web/Tags/view.tsx b/src/view/com/composer/text-input/web/Tags/view.tsx index 4a07093ec9..0f538b4a43 100644 --- a/src/view/com/composer/text-input/web/Tags/view.tsx +++ b/src/view/com/composer/text-input/web/Tags/view.tsx @@ -6,7 +6,7 @@ import { SuggestionOptions, SuggestionProps, SuggestionKeyDownProps, -} from '@tiptap/suggestion' +} from '@estrattonbailey/tiptap-suggestion' import {TagsAutocompleteModel} from 'state/models/ui/tags-autocomplete' import {usePalette} from 'lib/hooks/usePalette' diff --git a/yarn.lock b/yarn.lock index 9a6fc04a73..6007b44131 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1812,6 +1812,11 @@ resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.47.0.tgz#5478fdf443ff8158f9de171c704ae45308696c7d" integrity sha512-P6omY1zv5MItm93kLM8s2vr1HICJH8v0dvddDhysbIuZ+vcjOHg5Zbkf1mTkcmi2JA9oBG2anOkRnW8WJTS8Og== +"@estrattonbailey/tiptap-suggestion@^2.2.0-rc.3": + version "2.2.0-rc.3" + resolved "https://registry.yarnpkg.com/@estrattonbailey/tiptap-suggestion/-/tiptap-suggestion-2.2.0-rc.3.tgz#190edb6b9bb620977ef5f1b8c9467bce8900cd21" + integrity sha512-RY16dkvtoCXLSgwW8E5j40LI+v2SUXzfbN63OPPDO7RrI/cXGyjpTz4pAGTOa2q4aU/2QTR/xPjBIpPHhxikLw== + "@expo/bunyan@4.0.0", "@expo/bunyan@^4.0.0": version "4.0.0" resolved "https://registry.yarnpkg.com/@expo/bunyan/-/bunyan-4.0.0.tgz#be0c1de943c7987a9fbd309ea0b1acd605890c7b"