@udecode/plate-popper
Advanced tools
Comparing version 5.0.0 to 5.0.1
# @udecode/plate-popper | ||
## 5.0.1 | ||
### Patch Changes | ||
- [#1103](https://github.com/udecode/plate/pull/1103) [`53d13cbc`](https://github.com/udecode/plate/commit/53d13cbcfc7af26040cb86182a7ea0ba9ae5abec) Thanks [@zbeyens](https://github.com/zbeyens)! - hide the popper when not yet placed at the expected position | ||
- [#1103](https://github.com/udecode/plate/pull/1103) [`53d13cbc`](https://github.com/udecode/plate/commit/53d13cbcfc7af26040cb86182a7ea0ba9ae5abec) Thanks [@zbeyens](https://github.com/zbeyens)! - fix blurry text by disabling gpu acceleration | ||
## 5.0.0 | ||
### Minor Changes | ||
- [#1086](https://github.com/udecode/plate/pull/1086) [`9a091446`](https://github.com/udecode/plate/commit/9a091446ae393c23f64f0b011e431fb2d002aaf8) Thanks [@zbeyens](https://github.com/zbeyens)! - new package |
@@ -85,2 +85,7 @@ import { ReactEditor } from 'slate-react'; | ||
} | ||
}, { | ||
name: 'computeStyles', | ||
options: { | ||
gpuAcceleration: false | ||
} | ||
}, // user modifiers to override the default | ||
@@ -92,5 +97,7 @@ ...modifiers], | ||
const { | ||
update | ||
update, | ||
state | ||
} = popperResult; | ||
const styles = !isHidden ? popperResult.styles : { ...popperResult.styles, | ||
const isReady = !isHidden && !!state; | ||
const styles = isReady ? popperResult.styles : { ...popperResult.styles, | ||
popper: { ...popperResult.styles.popper, | ||
@@ -97,0 +104,0 @@ display: 'none' |
@@ -89,2 +89,7 @@ 'use strict'; | ||
} | ||
}, { | ||
name: 'computeStyles', | ||
options: { | ||
gpuAcceleration: false | ||
} | ||
}, // user modifiers to override the default | ||
@@ -96,5 +101,7 @@ ...modifiers], | ||
const { | ||
update | ||
update, | ||
state | ||
} = popperResult; | ||
const styles = !isHidden ? popperResult.styles : { ...popperResult.styles, | ||
const isReady = !isHidden && !!state; | ||
const styles = isReady ? popperResult.styles : { ...popperResult.styles, | ||
popper: { ...popperResult.styles.popper, | ||
@@ -101,0 +108,0 @@ display: 'none' |
{ | ||
"name": "@udecode/plate-popper", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Popper utilities for Plate", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
29259
294