@ones-editor/editor 2.5.1-beta.11 → 2.5.1-beta.13

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
@@ -73910,6 +73910,15 @@ ${codeText}
73910
73910
  }
73911
73911
  function paragraphToBlocks(token, options) {
73912
73912
  const { text: text2, children } = options.tokensToTextWithChildren(token.tokens, options);
73913
+ if (text2.length > 0 && toPlainText(text2).trim().toUpperCase() === "[TOC]") {
73914
+ const tocBlock = {
73915
+ id: genId(),
73916
+ type: "embed",
73917
+ embedType: "toc",
73918
+ embedData: {}
73919
+ };
73920
+ return [tocBlock];
73921
+ }
73913
73922
  const blocks = [];
73914
73923
  if (text2.length > 0) {
73915
73924
  blocks.push({
@@ -92160,7 +92169,7 @@ ${data2.plantumlText}
92160
92169
  }
92161
92170
  }
92162
92171
  });
92163
- editor.version = "2.5.1-beta.11";
92172
+ editor.version = "2.5.1-beta.13";
92164
92173
  return editor;
92165
92174
  }
92166
92175
  function isDoc(doc2) {
@@ -92273,7 +92282,7 @@ ${data2.plantumlText}
92273
92282
  }
92274
92283
  });
92275
92284
  OnesEditorToolbar.register(editor);
92276
- editor.version = "2.5.1-beta.11";
92285
+ editor.version = "2.5.1-beta.13";
92277
92286
  return editor;
92278
92287
  }
92279
92288
  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.5.1-beta.11",
3
+ "version": "2.5.1-beta.13",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {