@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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +17 -20
- package/package.json +1 -1
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
|
-
|
|
26429
|
-
|
|
26430
|
-
|
|
26431
|
-
|
|
26432
|
-
|
|
26433
|
-
|
|
26434
|
-
|
|
26435
|
-
|
|
26436
|
-
|
|
26437
|
-
|
|
26438
|
-
const
|
|
26439
|
-
if (
|
|
26440
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
75445
|
+
editor.version = "1.1.16-beta.17";
|
|
75449
75446
|
return editor;
|
|
75450
75447
|
}
|
|
75451
75448
|
async function showDocVersions(editor, options, serverUrl) {
|