@ones-editor/editor 3.0.4-beta.103 → 3.0.4-beta.105
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 +27 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -65536,9 +65536,11 @@ $$${mathData.mathjaxText}$$
|
|
|
65536
65536
|
if (!block2) {
|
|
65537
65537
|
return false;
|
|
65538
65538
|
}
|
|
65539
|
-
removeClass(block2, "media-block-uploading");
|
|
65540
65539
|
const embedData = toImageEmbedData(this.images, getWidthPercent(this.blockData));
|
|
65541
65540
|
this.editor.updateEmbedData(block2, embedData);
|
|
65541
|
+
setTimeout(() => {
|
|
65542
|
+
removeClass(block2, "media-block-uploading");
|
|
65543
|
+
}, 500);
|
|
65542
65544
|
return true;
|
|
65543
65545
|
} catch (err) {
|
|
65544
65546
|
logger$1B.error(err);
|
|
@@ -67391,11 +67393,11 @@ ${codeText}
|
|
|
67391
67393
|
}
|
|
67392
67394
|
function applyPlaceholderToBlock(editor, block, placeholder2) {
|
|
67393
67395
|
removePlaceholderFromBlock(editor, block);
|
|
67394
|
-
if (!isEmptyTextBlockWithoutCompositionText(editor, block)) {
|
|
67395
|
-
return;
|
|
67396
|
-
}
|
|
67397
67396
|
setTimeout(() => {
|
|
67398
67397
|
var _a;
|
|
67398
|
+
if (!isEmptyTextBlockWithoutCompositionText(editor, block)) {
|
|
67399
|
+
return;
|
|
67400
|
+
}
|
|
67399
67401
|
const contentElem = getBlockContent(block);
|
|
67400
67402
|
if (typeof placeholder2 === "string") {
|
|
67401
67403
|
contentElem.setAttribute("data-content-placeholder", placeholder2);
|
|
@@ -70912,6 +70914,19 @@ ${codeText}
|
|
|
70912
70914
|
iconUrl: comment.avatarUrl,
|
|
70913
70915
|
mentionId: comment.userId
|
|
70914
70916
|
};
|
|
70917
|
+
const blockText = editorGetBlockText(replyEditor.editor, focusBlock);
|
|
70918
|
+
let hasMention = false;
|
|
70919
|
+
blockText.forEach((textSegment) => {
|
|
70920
|
+
var _a, _b;
|
|
70921
|
+
if (((_a = textSegment.attributes) == null ? void 0 : _a.type) === "mention" && ((_b = textSegment.attributes) == null ? void 0 : _b.mentionId) === comment.userId) {
|
|
70922
|
+
hasMention = true;
|
|
70923
|
+
return;
|
|
70924
|
+
}
|
|
70925
|
+
});
|
|
70926
|
+
if (hasMention) {
|
|
70927
|
+
replyEditor.editor.focus();
|
|
70928
|
+
return;
|
|
70929
|
+
}
|
|
70915
70930
|
replyEditor.editor.insertBoxToBlock(focusBlock, 0, mentionBoxData);
|
|
70916
70931
|
});
|
|
70917
70932
|
__publicField(this, "handleCommentItemMore", (groupItem) => {
|
|
@@ -81406,7 +81421,9 @@ ${docStr}
|
|
|
81406
81421
|
progressBar.style.setProperty("--progress", `${progressValue}%`);
|
|
81407
81422
|
}
|
|
81408
81423
|
} else {
|
|
81409
|
-
|
|
81424
|
+
setTimeout(() => {
|
|
81425
|
+
removeClass(block, "uploading");
|
|
81426
|
+
}, 500);
|
|
81410
81427
|
}
|
|
81411
81428
|
}
|
|
81412
81429
|
function setFileCardUploadError(editor, blockId) {
|
|
@@ -92205,7 +92222,9 @@ ${data2.plantumlText}
|
|
|
92205
92222
|
this.emit("mediaError", editor, "upload_error", oldBlockData.id);
|
|
92206
92223
|
this.renderRetry(file2, e2);
|
|
92207
92224
|
}
|
|
92208
|
-
|
|
92225
|
+
setTimeout(() => {
|
|
92226
|
+
removeClass(block, "media-block-uploading");
|
|
92227
|
+
}, 500);
|
|
92209
92228
|
});
|
|
92210
92229
|
__publicField(this, "destroy", () => {
|
|
92211
92230
|
this.mediaContainer = null;
|
|
@@ -96685,7 +96704,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96685
96704
|
}
|
|
96686
96705
|
}
|
|
96687
96706
|
});
|
|
96688
|
-
editor.version = "3.0.4-beta.
|
|
96707
|
+
editor.version = "3.0.4-beta.105";
|
|
96689
96708
|
return editor;
|
|
96690
96709
|
}
|
|
96691
96710
|
function isDoc(doc2) {
|
|
@@ -96819,7 +96838,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96819
96838
|
OnesEditorDropTarget.register(editor);
|
|
96820
96839
|
OnesEditorTocProvider.register(editor);
|
|
96821
96840
|
OnesEditorExclusiveBlock.register(editor);
|
|
96822
|
-
editor.version = "3.0.4-beta.
|
|
96841
|
+
editor.version = "3.0.4-beta.105";
|
|
96823
96842
|
return editor;
|
|
96824
96843
|
}
|
|
96825
96844
|
async function showDocVersions(editor, options, serverUrl) {
|