slate-vue3 0.4.2 → 0.4.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/history.js CHANGED
@@ -156,7 +156,7 @@ const withHistory = (editor) => {
156
156
  if (merge == null) {
157
157
  if (lastBatch == null) {
158
158
  merge = false;
159
- } else if (operations.length !== 0) {
159
+ } else if (operations.includes(lastOp)) {
160
160
  merge = true;
161
161
  } else {
162
162
  merge = shouldMerge(op, lastOp);
@@ -1,4 +1,4 @@
1
- export type { RenderElementProps, RenderLeafProps, RenderPlaceholderProps, } from './utils/interface';
1
+ export type { RenderElementProps, RenderLeafProps, RenderPlaceholderProps, RenderTextProps, } from './utils/interface';
2
2
  export { Slate } from './components/slate';
3
3
  export { Editable } from './components/editable';
4
4
  export { DEFAULT_ELEMENT_RENDER, DEFAULT_LEAF_RENDER, DEFAULT_TEXT_RENDER, DEFAULT_PLACEHOLDER_RENDER, DEFAULT_SCROLL_INTO_VIEW, DEFAULT_DECORATE_FN, } from './components/utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slate-vue3",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",