Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ yarn.lock install:


# Unlink any linked dependencies before building a bundle.
bundle-pre:
bundle-pre::
-$(YARN) unlink @patternslib/dev
-$(YARN) unlink @patternslib/patternslib
$(YARN) install --force
Expand Down
62 changes: 31 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,39 @@
"license": "MIT",
"main": "./src/tiptap.js",
"dependencies": {
"@tiptap/core": "2.24.1",
"@tiptap/extension-blockquote": "^2.24.1",
"@tiptap/extension-bold": "^2.24.1",
"@tiptap/extension-bullet-list": "^2.24.1",
"@tiptap/extension-code": "^2.24.1",
"@tiptap/extension-code-block": "^2.24.1",
"@tiptap/extension-document": "^2.24.1",
"@tiptap/extension-dropcursor": "^2.24.1",
"@tiptap/extension-gapcursor": "^2.24.1",
"@tiptap/extension-hard-break": "^2.24.1",
"@tiptap/extension-heading": "^2.24.1",
"@tiptap/extension-history": "^2.24.1",
"@tiptap/extension-horizontal-rule": "^2.24.1",
"@tiptap/extension-image": "^2.24.1",
"@tiptap/extension-italic": "^2.24.1",
"@tiptap/extension-link": "^2.24.1",
"@tiptap/extension-list-item": "^2.24.1",
"@tiptap/extension-mention": "^2.24.1",
"@tiptap/extension-ordered-list": "^2.24.1",
"@tiptap/extension-paragraph": "^2.24.1",
"@tiptap/extension-placeholder": "^2.24.1",
"@tiptap/extension-strike": "^2.24.1",
"@tiptap/extension-table": "^2.24.1",
"@tiptap/extension-table-cell": "^2.24.1",
"@tiptap/extension-table-header": "^2.24.1",
"@tiptap/extension-table-row": "^2.24.1",
"@tiptap/extension-text": "^2.24.1",
"@tiptap/pm": "^2.24.1",
"@tiptap/suggestion": "^2.24.1"
"@tiptap/core": "2.27.2",
"@tiptap/extension-blockquote": "^2.27.2",
"@tiptap/extension-bold": "^2.27.2",
"@tiptap/extension-bullet-list": "^2.27.2",
"@tiptap/extension-code": "^2.27.2",
"@tiptap/extension-code-block": "^2.27.2",
"@tiptap/extension-document": "^2.27.2",
"@tiptap/extension-dropcursor": "^2.27.2",
"@tiptap/extension-gapcursor": "^2.27.2",
"@tiptap/extension-hard-break": "^2.27.2",
"@tiptap/extension-heading": "^2.27.2",
"@tiptap/extension-history": "^2.27.2",
"@tiptap/extension-horizontal-rule": "^2.27.2",
"@tiptap/extension-image": "^2.27.2",
"@tiptap/extension-italic": "^2.27.2",
"@tiptap/extension-link": "^2.27.2",
"@tiptap/extension-list-item": "^2.27.2",
"@tiptap/extension-mention": "^2.27.2",
"@tiptap/extension-ordered-list": "^2.27.2",
"@tiptap/extension-paragraph": "^2.27.2",
"@tiptap/extension-placeholder": "^2.27.2",
"@tiptap/extension-strike": "^2.27.2",
"@tiptap/extension-table": "^2.27.2",
"@tiptap/extension-table-cell": "^2.27.2",
"@tiptap/extension-table-header": "^2.27.2",
"@tiptap/extension-table-row": "^2.27.2",
"@tiptap/extension-text": "^2.27.2",
"@tiptap/pm": "^2.27.2",
"@tiptap/suggestion": "^2.27.2"
},
"devDependencies": {
"@patternslib/dev": "^3.8.1",
"@patternslib/patternslib": "^9.10.2"
"@patternslib/dev": "^4.0.0",
"@patternslib/patternslib": "^9.10.5"
},
"scripts": {
"start": "NODE_ENV=development webpack serve --config webpack.config.js",
Expand Down
10 changes: 5 additions & 5 deletions src/context_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export async function context_menu({
const reference_position = posToDOMRect(
editor.view,
editor.state.selection.from,
editor.state.selection.to
editor.state.selection.to,
);

instance.tippy?.setProps({
Expand All @@ -69,7 +69,7 @@ export async function context_menu({
async (e) => {
if (
[e.target, ...dom.get_parents(e.target)].includes(
instance?.tippy.popper
instance?.tippy.popper,
)
) {
// Do not close the context menu if we click in it.
Expand All @@ -80,7 +80,7 @@ export async function context_menu({
pattern_name: pattern.name,
});
instance = null;
}
},
);
events.add_event_listener(
document,
Expand All @@ -96,7 +96,7 @@ export async function context_menu({
pattern_name: pattern.name,
});
instance = null;
}
},
);

instance.show();
Expand All @@ -112,7 +112,7 @@ export async function context_menu_close({ instance, pattern_name }) {
if (instance) {
await instance.hide();
instance.destroy();
instance = null;
instance = null; // eslint-disable-line no-useless-assignment
}

// Unregister the pattern
Expand Down
Loading
Loading