@ones-editor/editor 2.8.28-beta.7 → 2.8.28-beta.8

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
@@ -63668,11 +63668,6 @@ $$${mathData.mathjaxText}$$
63668
63668
  });
63669
63669
  return comments;
63670
63670
  }
63671
- function getCommentsCountInDoc(editor, commentsProvider) {
63672
- const commentGroups = getCommentsGroupFromDoc(editor, commentsProvider);
63673
- const count = commentGroups.length;
63674
- return count;
63675
- }
63676
63671
  function getCommentsFromPos(editor, pos) {
63677
63672
  const commentIds = [];
63678
63673
  const block = editor.getBlockById(pos.blockId);
@@ -70884,7 +70879,7 @@ ${codeText}
70884
70879
  });
70885
70880
  __publicField(this, "updateCommentCount", () => {
70886
70881
  var _a, _b;
70887
- const count = getCommentsCountInDoc(this.editor, this.commentsProvider);
70882
+ const count = getCommentsGroup(this.commentsProvider.getComments()).length;
70888
70883
  (_b = (_a = this.commentOptions) == null ? void 0 : _a.onCommentCountChange) == null ? void 0 : _b.call(_a, count);
70889
70884
  this.updateCommentCountTip();
70890
70885
  });
@@ -94624,7 +94619,7 @@ ${JSON.stringify(error2, null, 2)}`);
94624
94619
  }
94625
94620
  }
94626
94621
  });
94627
- editor.version = "2.8.28-beta.7";
94622
+ editor.version = "2.8.28-beta.8";
94628
94623
  return editor;
94629
94624
  }
94630
94625
  function isDoc(doc2) {
@@ -94738,7 +94733,7 @@ ${JSON.stringify(error2, null, 2)}`);
94738
94733
  }
94739
94734
  });
94740
94735
  OnesEditorToolbar.register(editor);
94741
- editor.version = "2.8.28-beta.7";
94736
+ editor.version = "2.8.28-beta.8";
94742
94737
  return editor;
94743
94738
  }
94744
94739
  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.8.28-beta.7",
3
+ "version": "2.8.28-beta.8",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {