@ones-editor/editor 1.1.16-beta.16 → 1.1.16-beta.17

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
@@ -26425,26 +26425,23 @@ ${codeText}
26425
26425
  const path = getBlockPath(block);
26426
26426
  const blockData = editor.doc.getBlockData(containerId, blockIndex);
26427
26427
  const blockClass = getBlockClass(editor, block);
26428
- const updated = (_a = blockClass == null ? void 0 : blockClass.handleUpdateBlock) == null ? void 0 : _a.call(blockClass, editor, block, blockData);
26429
- if (updated) {
26430
- editor.editorBlockRenders.updateBlock(editor, path, block, blockData);
26431
- } else {
26432
- const newBlock = editor.editorBlocks.createBlock(path, container, blockData);
26433
- const newChildren = pickChildrenWithoutTools(newBlock);
26434
- pickChildrenWithoutTools(block);
26435
- newChildren.forEach((node) => {
26436
- block.appendChild(node);
26437
- });
26438
- const newTools = getExistsBlockTools(newBlock);
26439
- if (newTools) {
26440
- const oldTools = getExistsBlockTools(block);
26441
- if (oldTools) {
26442
- oldTools.remove();
26443
- }
26444
- block.appendChild(newTools);
26428
+ (_a = blockClass == null ? void 0 : blockClass.handleUpdateBlock) == null ? void 0 : _a.call(blockClass, editor, block, blockData);
26429
+ editor.editorBlockRenders.updateBlock(editor, path, block, blockData);
26430
+ const newBlock = editor.editorBlocks.createBlock(path, container, blockData);
26431
+ const newChildren = pickChildrenWithoutTools(newBlock);
26432
+ pickChildrenWithoutTools(block);
26433
+ newChildren.forEach((node) => {
26434
+ block.appendChild(node);
26435
+ });
26436
+ const newTools = getExistsBlockTools(newBlock);
26437
+ if (newTools) {
26438
+ const oldTools = getExistsBlockTools(block);
26439
+ if (oldTools) {
26440
+ oldTools.remove();
26445
26441
  }
26446
- copyElementAttributes(newBlock, block);
26442
+ block.appendChild(newTools);
26447
26443
  }
26444
+ copyElementAttributes(newBlock, block);
26448
26445
  handleBlockElementUpdated$1(editor, block, blockData);
26449
26446
  editor.blockHooks.forEach((hook) => {
26450
26447
  var _a2;
@@ -75363,7 +75360,7 @@ ${data.flowchartText}
75363
75360
  }
75364
75361
  }
75365
75362
  });
75366
- editor.version = "1.1.16-beta.16";
75363
+ editor.version = "1.1.16-beta.17";
75367
75364
  return editor;
75368
75365
  }
75369
75366
  function isDoc(doc2) {
@@ -75445,7 +75442,7 @@ ${data.flowchartText}
75445
75442
  });
75446
75443
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
75447
75444
  OnesEditorToolbar.register(editor);
75448
- editor.version = "1.1.16-beta.16";
75445
+ editor.version = "1.1.16-beta.17";
75449
75446
  return editor;
75450
75447
  }
75451
75448
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "1.1.16-beta.16",
3
+ "version": "1.1.16-beta.17",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",