@ones-editor/editor 3.0.9-beta.2 → 3.0.9-beta.3

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
@@ -52396,7 +52396,22 @@ ${codeText}
52396
52396
  var _a, _b, _c;
52397
52397
  const list2 = blockData;
52398
52398
  if (type === "text") {
52399
- const text2 = ((_a = TextBlock.convertTo) == null ? void 0 : _a.call(TextBlock, editor, blockData, doc2, "text", path)) || "";
52399
+ let text2 = ((_a = TextBlock.convertTo) == null ? void 0 : _a.call(TextBlock, editor, blockData, doc2, "text", path)) || "";
52400
+ if (path.length === 1) {
52401
+ if (list2.checkbox === "checked") {
52402
+ text2 = `[x] ${text2}`;
52403
+ } else if (list2.checkbox === "unchecked") {
52404
+ text2 = `[ ] ${text2}`;
52405
+ }
52406
+ if (list2.ordered) {
52407
+ text2 = `${list2.start}. ${text2}`;
52408
+ } else {
52409
+ text2 = `- ${text2}`;
52410
+ }
52411
+ const level = list2.level || 0;
52412
+ const prefix = level > 0 ? " ".repeat(level - 1) : "";
52413
+ text2 = prefix + text2;
52414
+ }
52400
52415
  return text2;
52401
52416
  }
52402
52417
  if (type === "markdown") {
@@ -96873,7 +96888,7 @@ ${JSON.stringify(error2, null, 2)}`);
96873
96888
  }
96874
96889
  }
96875
96890
  });
96876
- editor.version = "3.0.9-beta.2";
96891
+ editor.version = "3.0.9-beta.3";
96877
96892
  return editor;
96878
96893
  }
96879
96894
  function isDoc(doc2) {
@@ -97007,7 +97022,7 @@ ${JSON.stringify(error2, null, 2)}`);
97007
97022
  OnesEditorDropTarget.register(editor);
97008
97023
  OnesEditorTocProvider.register(editor);
97009
97024
  OnesEditorExclusiveBlock.register(editor);
97010
- editor.version = "3.0.9-beta.2";
97025
+ editor.version = "3.0.9-beta.3";
97011
97026
  return editor;
97012
97027
  }
97013
97028
  async function showDocVersions(editor, options, serverUrl) {
@@ -97142,7 +97157,7 @@ ${JSON.stringify(error2, null, 2)}`);
97142
97157
  }
97143
97158
  }
97144
97159
  });
97145
- editor.version = "3.0.9-beta.2";
97160
+ editor.version = "3.0.9-beta.3";
97146
97161
  return editor;
97147
97162
  }
97148
97163
  const emojis$1 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "3.0.9-beta.2",
3
+ "version": "3.0.9-beta.3",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {