@ones-editor/editor 2.6.5 → 2.6.6

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
@@ -85500,6 +85500,9 @@ ${data2.flowchartText}
85500
85500
  async function plantumlUrlToResourceId(editor, url) {
85501
85501
  try {
85502
85502
  const plantumlImgFile = await downloadObjectToFile(editor, url);
85503
+ if (!plantumlImgFile) {
85504
+ return await Promise.resolve(url);
85505
+ }
85503
85506
  const uploadResourceResult = await editor.doc.uploadResource(plantumlImgFile);
85504
85507
  return uploadResourceResult.resourceId;
85505
85508
  } catch (error2) {
@@ -90808,9 +90811,6 @@ ${data2.plantumlText}
90808
90811
  return void 0;
90809
90812
  }
90810
90813
  function hasBorder(block) {
90811
- if (block.type === "embed" && block.embedType && embedTypeHasImage(block.embedType) && block.embedData && block.embedData.src) {
90812
- return true;
90813
- }
90814
90814
  return false;
90815
90815
  }
90816
90816
  async function getBlockObject(block, md5Func, textsByBox) {
@@ -90823,7 +90823,7 @@ ${data2.plantumlText}
90823
90823
  texts: await getBlockTextObjects(block, textsByBox),
90824
90824
  list: getBlockListObject(block),
90825
90825
  images: getBlockImageObject(block, md5Func),
90826
- border: hasBorder(block)
90826
+ border: hasBorder()
90827
90827
  };
90828
90828
  }
90829
90829
  async function getCodeObject(block, data2, md5Func, textsByBox) {
@@ -92478,7 +92478,7 @@ ${data2.plantumlText}
92478
92478
  }
92479
92479
  }
92480
92480
  });
92481
- editor.version = "2.6.5";
92481
+ editor.version = "2.6.6";
92482
92482
  return editor;
92483
92483
  }
92484
92484
  function isDoc(doc2) {
@@ -92591,7 +92591,7 @@ ${data2.plantumlText}
92591
92591
  }
92592
92592
  });
92593
92593
  OnesEditorToolbar.register(editor);
92594
- editor.version = "2.6.5";
92594
+ editor.version = "2.6.6";
92595
92595
  return editor;
92596
92596
  }
92597
92597
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.6.5",
3
+ "version": "2.6.6",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {