@ones-editor/editor 0.0.7-beta.35 → 0.0.7-beta.36

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.js CHANGED
@@ -23309,17 +23309,9 @@ var __publicField = (obj, key, value) => {
23309
23309
  const blockIndex2 = getBlockIndex(block);
23310
23310
  let lastBlock22;
23311
23311
  blocks.forEach((b, index2) => {
23312
- var _a2;
23313
- const currentBlock = getBlockByIndex(getContainerById(editor, containerId), blockIndex2 + index2);
23314
- if (currentBlock && isTextKindBlock(editor, currentBlock) && isEmptyTextBlock(editor, currentBlock)) {
23315
- editor.doc.localUpdateBlockText(containerId, blockIndex2, [
23316
- ...(_a2 = b.text) != null ? _a2 : []
23317
- ]);
23318
- } else {
23319
- const newBlock2 = editor.insertBlock(containerId, blockIndex2 + index2, b, void 0, { noFocus: true });
23320
- if (index2 === blocks.length - 1) {
23321
- lastBlock22 = newBlock2;
23322
- }
23312
+ const newBlock2 = editor.insertBlock(containerId, blockIndex2 + index2, b, void 0, { noFocus: true });
23313
+ if (index2 === blocks.length - 1) {
23314
+ lastBlock22 = newBlock2;
23323
23315
  }
23324
23316
  });
23325
23317
  if (lastBlock22) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "0.0.7-beta.35",
3
+ "version": "0.0.7-beta.36",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",