@tiptap/extension-floating-menu
Advanced tools
Comparing version 2.0.0-beta.50 to 2.0.0-beta.51
@@ -88,3 +88,3 @@ 'use strict'; | ||
update(view, oldState) { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
const { state } = view; | ||
@@ -109,3 +109,3 @@ const { doc, selection } = state; | ||
(_b = this.tippy) === null || _b === void 0 ? void 0 : _b.setProps({ | ||
getReferenceClientRect: () => core.posToDOMRect(view, from, to), | ||
getReferenceClientRect: ((_c = this.tippyOptions) === null || _c === void 0 ? void 0 : _c.getReferenceClientRect) || (() => core.posToDOMRect(view, from, to)), | ||
}); | ||
@@ -112,0 +112,0 @@ this.show(); |
@@ -80,3 +80,3 @@ import { posToDOMRect, Extension } from '@tiptap/core'; | ||
update(view, oldState) { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
const { state } = view; | ||
@@ -101,3 +101,3 @@ const { doc, selection } = state; | ||
(_b = this.tippy) === null || _b === void 0 ? void 0 : _b.setProps({ | ||
getReferenceClientRect: () => posToDOMRect(view, from, to), | ||
getReferenceClientRect: ((_c = this.tippyOptions) === null || _c === void 0 ? void 0 : _c.getReferenceClientRect) || (() => posToDOMRect(view, from, to)), | ||
}); | ||
@@ -104,0 +104,0 @@ this.show(); |
@@ -86,3 +86,3 @@ (function (global, factory) { | ||
update(view, oldState) { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
const { state } = view; | ||
@@ -107,3 +107,3 @@ const { doc, selection } = state; | ||
(_b = this.tippy) === null || _b === void 0 ? void 0 : _b.setProps({ | ||
getReferenceClientRect: () => core.posToDOMRect(view, from, to), | ||
getReferenceClientRect: ((_c = this.tippyOptions) === null || _c === void 0 ? void 0 : _c.getReferenceClientRect) || (() => core.posToDOMRect(view, from, to)), | ||
}); | ||
@@ -110,0 +110,0 @@ this.show(); |
{ | ||
"name": "@tiptap/extension-floating-menu", | ||
"description": "floating-menu extension for tiptap", | ||
"version": "2.0.0-beta.50", | ||
"version": "2.0.0-beta.51", | ||
"homepage": "https://tiptap.dev", | ||
@@ -36,3 +36,4 @@ "keywords": [ | ||
}, | ||
"gitHead": "82759a898a77aa0bf6a459178021e86b6713ef39" | ||
"sideEffects": false, | ||
"gitHead": "90e719c711dbccae6a7333956d543fb93789f3d3" | ||
} |
@@ -159,3 +159,3 @@ import { Editor, posToDOMRect } from '@tiptap/core' | ||
this.tippy?.setProps({ | ||
getReferenceClientRect: () => posToDOMRect(view, from, to), | ||
getReferenceClientRect: this.tippyOptions?.getReferenceClientRect || (() => posToDOMRect(view, from, to)), | ||
}) | ||
@@ -162,0 +162,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
58910