slate-react 0.109.0 → 0.110.0

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.
@@ -4589,6 +4589,12 @@
4589
4589
  * A React context for sharing the `composing` state of the editor.
4590
4590
  */
4591
4591
  var ComposingContext = /*#__PURE__*/React.createContext(false);
4592
+ /**
4593
+ * Get the current `composing` state of the editor.
4594
+ */
4595
+ var useComposing = function useComposing() {
4596
+ return React.useContext(ComposingContext);
4597
+ };
4592
4598
 
4593
4599
  var _excluded$1 = ["autoFocus", "decorate", "onDOMBeforeInput", "placeholder", "readOnly", "renderElement", "renderLeaf", "renderPlaceholder", "scrollSelectionIntoView", "style", "as", "disableDefaultStyles"],
4594
4600
  _excluded2 = ["text"];
@@ -37099,6 +37105,7 @@
37099
37105
  exports.NODE_TO_PARENT = NODE_TO_PARENT;
37100
37106
  exports.ReactEditor = ReactEditor;
37101
37107
  exports.Slate = Slate;
37108
+ exports.useComposing = useComposing;
37102
37109
  exports.useEditor = useEditor;
37103
37110
  exports.useFocused = useFocused;
37104
37111
  exports.useReadOnly = useReadOnly;