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.
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +7 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/slate-react.js +7 -0
- package/dist/slate-react.min.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3229,6 +3229,12 @@ var RestoreDOM = IS_ANDROID ? RestoreDOMComponent : function (_ref) {
|
|
|
3229
3229
|
* A React context for sharing the `composing` state of the editor.
|
|
3230
3230
|
*/
|
|
3231
3231
|
var ComposingContext = /*#__PURE__*/React.createContext(false);
|
|
3232
|
+
/**
|
|
3233
|
+
* Get the current `composing` state of the editor.
|
|
3234
|
+
*/
|
|
3235
|
+
var useComposing = function useComposing() {
|
|
3236
|
+
return React.useContext(ComposingContext);
|
|
3237
|
+
};
|
|
3232
3238
|
|
|
3233
3239
|
var _excluded$1 = ["autoFocus", "decorate", "onDOMBeforeInput", "placeholder", "readOnly", "renderElement", "renderLeaf", "renderPlaceholder", "scrollSelectionIntoView", "style", "as", "disableDefaultStyles"],
|
|
3234
3240
|
_excluded2 = ["text"];
|
|
@@ -5181,6 +5187,7 @@ exports.NODE_TO_INDEX = NODE_TO_INDEX;
|
|
|
5181
5187
|
exports.NODE_TO_PARENT = NODE_TO_PARENT;
|
|
5182
5188
|
exports.ReactEditor = ReactEditor;
|
|
5183
5189
|
exports.Slate = Slate;
|
|
5190
|
+
exports.useComposing = useComposing;
|
|
5184
5191
|
exports.useEditor = useEditor;
|
|
5185
5192
|
exports.useFocused = useFocused;
|
|
5186
5193
|
exports.useReadOnly = useReadOnly;
|