@ones-editor/editor 3.0.4-beta.108 → 3.0.4-beta.110
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 +20 -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,
|
|
@@ -30924,6 +30924,7 @@ ${codeText}
|
|
|
30924
30924
|
var _a;
|
|
30925
30925
|
return (_a = c.onStatusChanged) == null ? void 0 : _a.call(c, status);
|
|
30926
30926
|
});
|
|
30927
|
+
this.editor.rootElement.setAttribute("data-edit-status", status);
|
|
30927
30928
|
}
|
|
30928
30929
|
onError(error2) {
|
|
30929
30930
|
this.callbacks.forEach((c) => {
|
|
@@ -75382,7 +75383,7 @@ ${codeText}
|
|
|
75382
75383
|
handleInsertEmptyBlock: handleInsertEmptyBlock$1
|
|
75383
75384
|
};
|
|
75384
75385
|
}
|
|
75385
|
-
function handleUpdateBlock$
|
|
75386
|
+
function handleUpdateBlock$6(editor, blockElement, blockData) {
|
|
75386
75387
|
updateBlockContent(editor, blockElement, blockData);
|
|
75387
75388
|
setTimeout(() => {
|
|
75388
75389
|
const range = editor.selection.range;
|
|
@@ -75446,7 +75447,7 @@ ${codeText}
|
|
|
75446
75447
|
selectionToDoc,
|
|
75447
75448
|
getOptions: getOptions$6,
|
|
75448
75449
|
getTextToolbarReferenceClient: getTextToolbarReferenceClient$1,
|
|
75449
|
-
handleUpdateBlock: handleUpdateBlock$
|
|
75450
|
+
handleUpdateBlock: handleUpdateBlock$6,
|
|
75450
75451
|
handleDeleteBlock: handleDeleteBlock$4,
|
|
75451
75452
|
getBlockProperties: getBlockProperties$9,
|
|
75452
75453
|
handleDropOver(editor, targetBlock, dragData, x, y) {
|
|
@@ -81547,6 +81548,18 @@ ${docStr}
|
|
|
81547
81548
|
requestDownload(url, fileData2.fileName);
|
|
81548
81549
|
});
|
|
81549
81550
|
}
|
|
81551
|
+
function handleUpdateBlock$5(editor, block, blockData) {
|
|
81552
|
+
if (blockData.embedData.src && blockData.embedData.src !== "empty") {
|
|
81553
|
+
setTimeout(() => {
|
|
81554
|
+
const cardRoot = block.querySelector(".card-root");
|
|
81555
|
+
if (cardRoot) {
|
|
81556
|
+
removeClass(cardRoot, "file-empty");
|
|
81557
|
+
}
|
|
81558
|
+
removeClass(block, "uploading");
|
|
81559
|
+
}, 2e3);
|
|
81560
|
+
}
|
|
81561
|
+
return true;
|
|
81562
|
+
}
|
|
81550
81563
|
class FileEmbedCommands {
|
|
81551
81564
|
constructor(editor) {
|
|
81552
81565
|
__publicField(this, "group", "hovering-toolbar");
|
|
@@ -81683,6 +81696,7 @@ ${docStr}
|
|
|
81683
81696
|
const FileEmbed = {
|
|
81684
81697
|
embedType: "office",
|
|
81685
81698
|
createEmbedContent: createEmbedContent$7,
|
|
81699
|
+
handleUpdateBlock: handleUpdateBlock$5,
|
|
81686
81700
|
getBlockProperties: getBlockProperties$8,
|
|
81687
81701
|
convertTo: convertTo$a,
|
|
81688
81702
|
toStandardDoc: toStandardDoc$1,
|
|
@@ -96726,7 +96740,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96726
96740
|
}
|
|
96727
96741
|
}
|
|
96728
96742
|
});
|
|
96729
|
-
editor.version = "3.0.4-beta.
|
|
96743
|
+
editor.version = "3.0.4-beta.110";
|
|
96730
96744
|
return editor;
|
|
96731
96745
|
}
|
|
96732
96746
|
function isDoc(doc2) {
|
|
@@ -96860,7 +96874,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96860
96874
|
OnesEditorDropTarget.register(editor);
|
|
96861
96875
|
OnesEditorTocProvider.register(editor);
|
|
96862
96876
|
OnesEditorExclusiveBlock.register(editor);
|
|
96863
|
-
editor.version = "3.0.4-beta.
|
|
96877
|
+
editor.version = "3.0.4-beta.110";
|
|
96864
96878
|
return editor;
|
|
96865
96879
|
}
|
|
96866
96880
|
async function showDocVersions(editor, options, serverUrl) {
|