slate-react 0.91.8 → 0.91.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5103,6 +5103,10 @@
5103
5103
  var Editable = function Editable(props) {
5104
5104
  var _EDITOR_TO_PLACEHOLDE, _EDITOR_TO_PLACEHOLDE2;
5105
5105
 
5106
+ var defaultRenderPlaceholder = React.useCallback(function (props) {
5107
+ return /*#__PURE__*/React__default['default'].createElement(DefaultPlaceholder, Object.assign({}, props));
5108
+ }, []);
5109
+
5106
5110
  var autoFocus = props.autoFocus,
5107
5111
  _props$decorate = props.decorate,
5108
5112
  decorate = _props$decorate === void 0 ? defaultDecorate : _props$decorate,
@@ -5113,9 +5117,7 @@
5113
5117
  renderElement = props.renderElement,
5114
5118
  renderLeaf = props.renderLeaf,
5115
5119
  _props$renderPlacehol = props.renderPlaceholder,
5116
- renderPlaceholder = _props$renderPlacehol === void 0 ? function (props) {
5117
- return /*#__PURE__*/React__default['default'].createElement(DefaultPlaceholder, Object.assign({}, props));
5118
- } : _props$renderPlacehol,
5120
+ renderPlaceholder = _props$renderPlacehol === void 0 ? defaultRenderPlaceholder : _props$renderPlacehol,
5119
5121
  _props$scrollSelectio = props.scrollSelectionIntoView,
5120
5122
  scrollSelectionIntoView = _props$scrollSelectio === void 0 ? defaultScrollSelectionIntoView : _props$scrollSelectio,
5121
5123
  _props$style = props.style,