@ones-editor/editor 2.5.1-beta.16 → 2.5.1-beta.18

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
@@ -74676,7 +74676,11 @@ ${codeText}
74676
74676
  };
74677
74677
  const rootBlocks = tokensToBlocks(tokens, tokenToBlockOptions);
74678
74678
  if (rootBlocks.length === 0) {
74679
- return null;
74679
+ rootBlocks.push({
74680
+ id: genId(),
74681
+ type: "text",
74682
+ text: []
74683
+ });
74680
74684
  }
74681
74685
  doc2.blocks.root.push(...rootBlocks);
74682
74686
  return doc2;
@@ -92535,7 +92539,7 @@ ${data2.plantumlText}
92535
92539
  }
92536
92540
  }
92537
92541
  });
92538
- editor.version = "2.5.1-beta.16";
92542
+ editor.version = "2.5.1-beta.18";
92539
92543
  return editor;
92540
92544
  }
92541
92545
  function isDoc(doc2) {
@@ -92648,7 +92652,7 @@ ${data2.plantumlText}
92648
92652
  }
92649
92653
  });
92650
92654
  OnesEditorToolbar.register(editor);
92651
- editor.version = "2.5.1-beta.16";
92655
+ editor.version = "2.5.1-beta.18";
92652
92656
  return editor;
92653
92657
  }
92654
92658
  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.16",
3
+ "version": "2.5.1-beta.18",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {