@ones-editor/editor 3.0.4-beta.104 → 3.0.4-beta.106
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 +12 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25403,6 +25403,7 @@ var __publicField = (obj, key, value) => {
|
|
|
25403
25403
|
const boxId = genId();
|
|
25404
25404
|
info == null ? void 0 : info.boxIdMap.set(op.attributes.id, boxId);
|
|
25405
25405
|
op.attributes.id = boxId;
|
|
25406
|
+
op.attributes.created = Date.now();
|
|
25406
25407
|
}
|
|
25407
25408
|
});
|
|
25408
25409
|
return {
|
|
@@ -65536,9 +65537,11 @@ $$${mathData.mathjaxText}$$
|
|
|
65536
65537
|
if (!block2) {
|
|
65537
65538
|
return false;
|
|
65538
65539
|
}
|
|
65539
|
-
removeClass(block2, "media-block-uploading");
|
|
65540
65540
|
const embedData = toImageEmbedData(this.images, getWidthPercent(this.blockData));
|
|
65541
65541
|
this.editor.updateEmbedData(block2, embedData);
|
|
65542
|
+
setTimeout(() => {
|
|
65543
|
+
removeClass(block2, "media-block-uploading");
|
|
65544
|
+
}, 500);
|
|
65542
65545
|
return true;
|
|
65543
65546
|
} catch (err) {
|
|
65544
65547
|
logger$1B.error(err);
|
|
@@ -81419,7 +81422,9 @@ ${docStr}
|
|
|
81419
81422
|
progressBar.style.setProperty("--progress", `${progressValue}%`);
|
|
81420
81423
|
}
|
|
81421
81424
|
} else {
|
|
81422
|
-
|
|
81425
|
+
setTimeout(() => {
|
|
81426
|
+
removeClass(block, "uploading");
|
|
81427
|
+
}, 500);
|
|
81423
81428
|
}
|
|
81424
81429
|
}
|
|
81425
81430
|
function setFileCardUploadError(editor, blockId) {
|
|
@@ -92218,7 +92223,9 @@ ${data2.plantumlText}
|
|
|
92218
92223
|
this.emit("mediaError", editor, "upload_error", oldBlockData.id);
|
|
92219
92224
|
this.renderRetry(file2, e2);
|
|
92220
92225
|
}
|
|
92221
|
-
|
|
92226
|
+
setTimeout(() => {
|
|
92227
|
+
removeClass(block, "media-block-uploading");
|
|
92228
|
+
}, 500);
|
|
92222
92229
|
});
|
|
92223
92230
|
__publicField(this, "destroy", () => {
|
|
92224
92231
|
this.mediaContainer = null;
|
|
@@ -96698,7 +96705,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96698
96705
|
}
|
|
96699
96706
|
}
|
|
96700
96707
|
});
|
|
96701
|
-
editor.version = "3.0.4-beta.
|
|
96708
|
+
editor.version = "3.0.4-beta.106";
|
|
96702
96709
|
return editor;
|
|
96703
96710
|
}
|
|
96704
96711
|
function isDoc(doc2) {
|
|
@@ -96832,7 +96839,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96832
96839
|
OnesEditorDropTarget.register(editor);
|
|
96833
96840
|
OnesEditorTocProvider.register(editor);
|
|
96834
96841
|
OnesEditorExclusiveBlock.register(editor);
|
|
96835
|
-
editor.version = "3.0.4-beta.
|
|
96842
|
+
editor.version = "3.0.4-beta.106";
|
|
96836
96843
|
return editor;
|
|
96837
96844
|
}
|
|
96838
96845
|
async function showDocVersions(editor, options, serverUrl) {
|