slate-react 0.91.2 → 0.91.3
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.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/plugin/with-react.d.ts.map +1 -1
- package/dist/slate-react.js +3 -3
- package/dist/slate-react.min.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-react.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/plugin/with-react.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EASX,MAAM,OAAO,CAAA;AA0Bd,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"with-react.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/plugin/with-react.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EASX,MAAM,OAAO,CAAA;AA0Bd,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C;;;;;;;GAOG;AAEH,eAAO,MAAM,SAAS,mFAsSrB,CAAA"}
|
package/dist/slate-react.js
CHANGED
|
@@ -6369,7 +6369,7 @@
|
|
|
6369
6369
|
}
|
|
6370
6370
|
}, [readOnly, attributes.onKeyDown]),
|
|
6371
6371
|
onPaste: React.useCallback(function (event) {
|
|
6372
|
-
if (!readOnly && ReactEditor.
|
|
6372
|
+
if (!readOnly && ReactEditor.hasEditableTarget(editor, event.target) && !isEventHandled(event, attributes.onPaste)) {
|
|
6373
6373
|
// COMPAT: Certain browsers don't support the `beforeinput` event, so we
|
|
6374
6374
|
// fall back to React's `onPaste` here instead.
|
|
6375
6375
|
// COMPAT: Firefox, Chrome and Safari don't emit `beforeinput` events
|
|
@@ -34543,7 +34543,7 @@
|
|
|
34543
34543
|
return false;
|
|
34544
34544
|
};
|
|
34545
34545
|
|
|
34546
|
-
e.onChange = function () {
|
|
34546
|
+
e.onChange = function (options) {
|
|
34547
34547
|
// COMPAT: React doesn't batch `setState` hook calls, which means that the
|
|
34548
34548
|
// children and selection can get out of sync for one render pass. So we
|
|
34549
34549
|
// have to use this unstable API to ensure it batches them. (2019/12/03)
|
|
@@ -34555,7 +34555,7 @@
|
|
|
34555
34555
|
onContextChange();
|
|
34556
34556
|
}
|
|
34557
34557
|
|
|
34558
|
-
onChange();
|
|
34558
|
+
onChange(options);
|
|
34559
34559
|
});
|
|
34560
34560
|
};
|
|
34561
34561
|
|