@ones-editor/editor 3.0.4-beta.108 → 3.0.4-beta.109
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 +19 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13426,7 +13426,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13426
13426
|
}
|
|
13427
13427
|
embed.handleDeleteBlock(editor, block, local, options);
|
|
13428
13428
|
}
|
|
13429
|
-
function handleUpdateBlock$
|
|
13429
|
+
function handleUpdateBlock$7(editor, block, blockData) {
|
|
13430
13430
|
const embedType = getEmbedType(block);
|
|
13431
13431
|
const embed = getEmbedClassByType(editor, embedType);
|
|
13432
13432
|
if (embed.handleUpdateBlock) {
|
|
@@ -13483,7 +13483,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13483
13483
|
getBlockProperties: getBlockProperties$d,
|
|
13484
13484
|
getOptions: getOptions$a,
|
|
13485
13485
|
handleDeleteBlock: handleDeleteBlock$9,
|
|
13486
|
-
handleUpdateBlock: handleUpdateBlock$
|
|
13486
|
+
handleUpdateBlock: handleUpdateBlock$7,
|
|
13487
13487
|
handleDropOver: handleDropOver$2,
|
|
13488
13488
|
handleDrop: handleDrop$2,
|
|
13489
13489
|
toStandardDoc: toStandardDoc$2,
|
|
@@ -75382,7 +75382,7 @@ ${codeText}
|
|
|
75382
75382
|
handleInsertEmptyBlock: handleInsertEmptyBlock$1
|
|
75383
75383
|
};
|
|
75384
75384
|
}
|
|
75385
|
-
function handleUpdateBlock$
|
|
75385
|
+
function handleUpdateBlock$6(editor, blockElement, blockData) {
|
|
75386
75386
|
updateBlockContent(editor, blockElement, blockData);
|
|
75387
75387
|
setTimeout(() => {
|
|
75388
75388
|
const range = editor.selection.range;
|
|
@@ -75446,7 +75446,7 @@ ${codeText}
|
|
|
75446
75446
|
selectionToDoc,
|
|
75447
75447
|
getOptions: getOptions$6,
|
|
75448
75448
|
getTextToolbarReferenceClient: getTextToolbarReferenceClient$1,
|
|
75449
|
-
handleUpdateBlock: handleUpdateBlock$
|
|
75449
|
+
handleUpdateBlock: handleUpdateBlock$6,
|
|
75450
75450
|
handleDeleteBlock: handleDeleteBlock$4,
|
|
75451
75451
|
getBlockProperties: getBlockProperties$9,
|
|
75452
75452
|
handleDropOver(editor, targetBlock, dragData, x, y) {
|
|
@@ -81547,6 +81547,18 @@ ${docStr}
|
|
|
81547
81547
|
requestDownload(url, fileData2.fileName);
|
|
81548
81548
|
});
|
|
81549
81549
|
}
|
|
81550
|
+
function handleUpdateBlock$5(editor, block, blockData) {
|
|
81551
|
+
if (blockData.embedData.src && blockData.embedData.src !== "empty") {
|
|
81552
|
+
setTimeout(() => {
|
|
81553
|
+
const cardRoot = block.querySelector(".card-root");
|
|
81554
|
+
if (cardRoot) {
|
|
81555
|
+
removeClass(cardRoot, "file-empty");
|
|
81556
|
+
}
|
|
81557
|
+
removeClass(block, "uploading");
|
|
81558
|
+
}, 2e3);
|
|
81559
|
+
}
|
|
81560
|
+
return true;
|
|
81561
|
+
}
|
|
81550
81562
|
class FileEmbedCommands {
|
|
81551
81563
|
constructor(editor) {
|
|
81552
81564
|
__publicField(this, "group", "hovering-toolbar");
|
|
@@ -81683,6 +81695,7 @@ ${docStr}
|
|
|
81683
81695
|
const FileEmbed = {
|
|
81684
81696
|
embedType: "office",
|
|
81685
81697
|
createEmbedContent: createEmbedContent$7,
|
|
81698
|
+
handleUpdateBlock: handleUpdateBlock$5,
|
|
81686
81699
|
getBlockProperties: getBlockProperties$8,
|
|
81687
81700
|
convertTo: convertTo$a,
|
|
81688
81701
|
toStandardDoc: toStandardDoc$1,
|
|
@@ -96726,7 +96739,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96726
96739
|
}
|
|
96727
96740
|
}
|
|
96728
96741
|
});
|
|
96729
|
-
editor.version = "3.0.4-beta.
|
|
96742
|
+
editor.version = "3.0.4-beta.109";
|
|
96730
96743
|
return editor;
|
|
96731
96744
|
}
|
|
96732
96745
|
function isDoc(doc2) {
|
|
@@ -96860,7 +96873,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96860
96873
|
OnesEditorDropTarget.register(editor);
|
|
96861
96874
|
OnesEditorTocProvider.register(editor);
|
|
96862
96875
|
OnesEditorExclusiveBlock.register(editor);
|
|
96863
|
-
editor.version = "3.0.4-beta.
|
|
96876
|
+
editor.version = "3.0.4-beta.109";
|
|
96864
96877
|
return editor;
|
|
96865
96878
|
}
|
|
96866
96879
|
async function showDocVersions(editor, options, serverUrl) {
|