@tiptap/suggestion
Advanced tools
Comparing version 2.0.0-beta.32 to 2.0.0-beta.33
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-beta.33](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-beta.32...@tiptap/suggestion@2.0.0-beta.33) (2021-04-16) | ||
### Bug Fixes | ||
* fix type for clientRect ([07c6d51](https://github.com/ueberdosis/tiptap-next/commit/07c6d513388c4538140e0ff37dc9035c9dc6fea3)) | ||
# [2.0.0-beta.32](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-beta.31...@tiptap/suggestion@2.0.0-beta.32) (2021-04-16) | ||
@@ -8,0 +19,0 @@ |
@@ -36,3 +36,3 @@ import { Editor, Range } from '@tiptap/core'; | ||
decorationNode: Element | null; | ||
clientRect: () => (DOMRect | null); | ||
clientRect: (() => DOMRect) | null; | ||
} | ||
@@ -39,0 +39,0 @@ export interface SuggestionKeyDownProps { |
@@ -99,3 +99,5 @@ 'use strict'; | ||
// this can be used for building popups without a DOM node | ||
clientRect: () => (decorationNode === null || decorationNode === void 0 ? void 0 : decorationNode.getBoundingClientRect()) || null, | ||
clientRect: decorationNode | ||
? () => decorationNode.getBoundingClientRect() | ||
: null, | ||
}; | ||
@@ -102,0 +104,0 @@ if (handleExit) { |
@@ -95,3 +95,5 @@ import { Plugin, PluginKey } from 'prosemirror-state'; | ||
// this can be used for building popups without a DOM node | ||
clientRect: () => (decorationNode === null || decorationNode === void 0 ? void 0 : decorationNode.getBoundingClientRect()) || null, | ||
clientRect: decorationNode | ||
? () => decorationNode.getBoundingClientRect() | ||
: null, | ||
}; | ||
@@ -98,0 +100,0 @@ if (handleExit) { |
@@ -98,3 +98,5 @@ (function (global, factory) { | ||
// this can be used for building popups without a DOM node | ||
clientRect: () => (decorationNode === null || decorationNode === void 0 ? void 0 : decorationNode.getBoundingClientRect()) || null, | ||
clientRect: decorationNode | ||
? () => decorationNode.getBoundingClientRect() | ||
: null, | ||
}; | ||
@@ -101,0 +103,0 @@ if (handleExit) { |
{ | ||
"name": "@tiptap/suggestion", | ||
"description": "suggestion plugin for tiptap", | ||
"version": "2.0.0-beta.32", | ||
"version": "2.0.0-beta.33", | ||
"homepage": "https://tiptap.dev", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "ea9f5410915f45f7ba12d5c816965976f1956862" | ||
"gitHead": "148380b70de9dabfc4d0f933b70fe8cc6a093f2b" | ||
} |
@@ -39,3 +39,3 @@ import { Editor, Range } from '@tiptap/core' | ||
decorationNode: Element | null, | ||
clientRect: () => (DOMRect | null), | ||
clientRect: (() => DOMRect) | null, | ||
} | ||
@@ -107,3 +107,5 @@ | ||
// this can be used for building popups without a DOM node | ||
clientRect: () => decorationNode?.getBoundingClientRect() || null, | ||
clientRect: decorationNode | ||
? () => decorationNode.getBoundingClientRect() | ||
: null, | ||
} | ||
@@ -110,0 +112,0 @@ |
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
958503
1563