@ones-editor/editor 3.0.17-beta.4 → 3.0.17-beta.6
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
|
@@ -83243,6 +83243,9 @@ ${docStr}
|
|
|
83243
83243
|
const blocks = this.docObject.blocks[containerId];
|
|
83244
83244
|
const blockData = blocks[updateIndex];
|
|
83245
83245
|
assert(logger$C, !blockData.deleted, `block has already deleted: ${containerId}/${blockIndex}`);
|
|
83246
|
+
if (!Array.isArray(blockData.text)) {
|
|
83247
|
+
blockData.text = [];
|
|
83248
|
+
}
|
|
83246
83249
|
const text2 = blockData.text;
|
|
83247
83250
|
assert(logger$C, text2, `no text for block: ${JSON.stringify(blockData)}`);
|
|
83248
83251
|
const newText = updateBlockText(text2, actions2, user);
|
|
@@ -97337,7 +97340,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97337
97340
|
}
|
|
97338
97341
|
}
|
|
97339
97342
|
});
|
|
97340
|
-
editor.version = "3.0.17-beta.
|
|
97343
|
+
editor.version = "3.0.17-beta.6";
|
|
97341
97344
|
return editor;
|
|
97342
97345
|
}
|
|
97343
97346
|
function isDoc(doc2) {
|
|
@@ -97471,7 +97474,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97471
97474
|
OnesEditorDropTarget.register(editor);
|
|
97472
97475
|
OnesEditorTocProvider.register(editor);
|
|
97473
97476
|
OnesEditorExclusiveBlock.register(editor);
|
|
97474
|
-
editor.version = "3.0.17-beta.
|
|
97477
|
+
editor.version = "3.0.17-beta.6";
|
|
97475
97478
|
return editor;
|
|
97476
97479
|
}
|
|
97477
97480
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -97606,7 +97609,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97606
97609
|
}
|
|
97607
97610
|
}
|
|
97608
97611
|
});
|
|
97609
|
-
editor.version = "3.0.17-beta.
|
|
97612
|
+
editor.version = "3.0.17-beta.6";
|
|
97610
97613
|
return editor;
|
|
97611
97614
|
}
|
|
97612
97615
|
const emojis$1 = {
|