@ones-editor/editor 3.0.4-beta.107 → 3.0.4-beta.108

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
@@ -65540,6 +65540,13 @@ $$${mathData.mathjaxText}$$
65540
65540
  const embedData = toImageEmbedData(this.images, getWidthPercent(this.blockData));
65541
65541
  this.editor.updateEmbedData(block2, embedData);
65542
65542
  setTimeout(() => {
65543
+ const doc2 = this.editor.doc.externalDoc;
65544
+ if ("status" in doc2) {
65545
+ const status = doc2.status;
65546
+ if (status !== "clean") {
65547
+ console.error("doc is dirty");
65548
+ }
65549
+ }
65543
65550
  removeClass(block2, "media-block-uploading");
65544
65551
  }, 2e3);
65545
65552
  return true;
@@ -81423,6 +81430,13 @@ ${docStr}
81423
81430
  }
81424
81431
  } else {
81425
81432
  setTimeout(() => {
81433
+ const doc2 = editor.doc.externalDoc;
81434
+ if ("status" in doc2) {
81435
+ const status = doc2.status;
81436
+ if (status !== "clean") {
81437
+ console.error("doc is dirty");
81438
+ }
81439
+ }
81426
81440
  removeClass(block, "uploading");
81427
81441
  }, 2e3);
81428
81442
  }
@@ -92224,6 +92238,13 @@ ${data2.plantumlText}
92224
92238
  this.renderRetry(file2, e2);
92225
92239
  }
92226
92240
  setTimeout(() => {
92241
+ const doc2 = editor.doc.externalDoc;
92242
+ if ("status" in doc2) {
92243
+ const status = doc2.status;
92244
+ if (status !== "clean") {
92245
+ console.error("doc is dirty");
92246
+ }
92247
+ }
92227
92248
  removeClass(block, "media-block-uploading");
92228
92249
  }, 2e3);
92229
92250
  });
@@ -96705,7 +96726,7 @@ ${JSON.stringify(error2, null, 2)}`);
96705
96726
  }
96706
96727
  }
96707
96728
  });
96708
- editor.version = "3.0.4-beta.107";
96729
+ editor.version = "3.0.4-beta.108";
96709
96730
  return editor;
96710
96731
  }
96711
96732
  function isDoc(doc2) {
@@ -96839,7 +96860,7 @@ ${JSON.stringify(error2, null, 2)}`);
96839
96860
  OnesEditorDropTarget.register(editor);
96840
96861
  OnesEditorTocProvider.register(editor);
96841
96862
  OnesEditorExclusiveBlock.register(editor);
96842
- editor.version = "3.0.4-beta.107";
96863
+ editor.version = "3.0.4-beta.108";
96843
96864
  return editor;
96844
96865
  }
96845
96866
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "3.0.4-beta.107",
3
+ "version": "3.0.4-beta.108",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {