@ones-editor/editor 2.2.14-beta.13 → 2.2.14-beta.14

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
@@ -28538,7 +28538,10 @@ ${codeText}
28538
28538
  }
28539
28539
  function editorHandleCopyMarkdown(editor) {
28540
28540
  if (editor.selection.range.isCollapsed()) {
28541
- return false;
28541
+ const block = editor.selection.focusedBlock;
28542
+ if (!isEmbedBlock(block)) {
28543
+ return false;
28544
+ }
28542
28545
  }
28543
28546
  const doc2 = selectionToDoc$2(editor);
28544
28547
  addMetaToDoc(editor, doc2);
@@ -82016,13 +82019,13 @@ ${content}
82016
82019
  return "<p>[mermaid]</p>";
82017
82020
  }
82018
82021
  if (type === "markdown") {
82019
- if (data2.src) {
82020
- return `![mermaid](${editor.doc.buildResourceUrl(data2.src, { withToken: true })})`;
82021
- }
82022
82022
  if (data2.mermaidText) {
82023
- return `\`\`\`mermaid\`\`\`
82023
+ return `\`\`\`mermaid
82024
82024
  ${data2.mermaidText}
82025
- \`\`\`\`\`\``;
82025
+ \`\`\``;
82026
+ }
82027
+ if (data2.src) {
82028
+ return `![mermaid](${editor.doc.buildResourceUrl(data2.src, { withToken: true })})`;
82026
82029
  }
82027
82030
  }
82028
82031
  return "";
@@ -82113,7 +82116,8 @@ ${data2.mermaidText}
82113
82116
  code: embedData.flowchartText,
82114
82117
  src: embedData.src,
82115
82118
  flex: embedData.flex,
82116
- height: embedData.height
82119
+ height: embedData.height,
82120
+ view: embedData.view
82117
82121
  };
82118
82122
  });
82119
82123
  }
@@ -82182,13 +82186,13 @@ ${data2.mermaidText}
82182
82186
  return "<p>[flowchart]</p>";
82183
82187
  }
82184
82188
  if (type === "markdown") {
82185
- if (data2.src) {
82186
- return `![flowchart](${editor.doc.buildResourceUrl(data2.src, { withToken: true })})`;
82187
- }
82188
82189
  if (data2.flowchartText) {
82189
- return `\`\`\`flowchart\`\`\`
82190
+ return `\`\`\`flowchart
82190
82191
  ${data2.flowchartText}
82191
- \`\`\`\`\`\``;
82192
+ \`\`\``;
82193
+ }
82194
+ if (data2.src) {
82195
+ return `![flowchart](${editor.doc.buildResourceUrl(data2.src, { withToken: true })})`;
82192
82196
  }
82193
82197
  }
82194
82198
  return "";
@@ -83092,7 +83096,8 @@ ${data2.flowchartText}
83092
83096
  code: embedData.plantumlText,
83093
83097
  src: embedData.src,
83094
83098
  flex: embedData.flex,
83095
- height: embedData.height
83099
+ height: embedData.height,
83100
+ view: embedData.view
83096
83101
  };
83097
83102
  });
83098
83103
  }
@@ -83162,13 +83167,13 @@ ${data2.flowchartText}
83162
83167
  return "<p>[plantuml]</p>";
83163
83168
  }
83164
83169
  if (type === "markdown") {
83165
- if (data2.src) {
83166
- return `![plantuml](${editor.doc.buildResourceUrl(data2.src, { withToken: true })})`;
83167
- }
83168
83170
  if (data2.plantumlText) {
83169
- return `\`\`\`plantuml\`\`\`
83171
+ return `\`\`\`plantuml
83170
83172
  ${data2.plantumlText}
83171
- \`\`\`\`\`\``;
83173
+ \`\`\``;
83174
+ }
83175
+ if (data2.src) {
83176
+ return `![plantuml](${editor.doc.buildResourceUrl(data2.src, { withToken: true })})`;
83172
83177
  }
83173
83178
  }
83174
83179
  return "";
@@ -88971,7 +88976,7 @@ ${data2.plantumlText}
88971
88976
  }
88972
88977
  }
88973
88978
  });
88974
- editor.version = "2.2.14-beta.13";
88979
+ editor.version = "2.2.14-beta.14";
88975
88980
  return editor;
88976
88981
  }
88977
88982
  function isDoc(doc2) {
@@ -89072,7 +89077,7 @@ ${data2.plantumlText}
89072
89077
  });
89073
89078
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
89074
89079
  OnesEditorToolbar.register(editor);
89075
- editor.version = "2.2.14-beta.13";
89080
+ editor.version = "2.2.14-beta.14";
89076
89081
  return editor;
89077
89082
  }
89078
89083
  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.2.14-beta.13",
3
+ "version": "2.2.14-beta.14",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {