@ones-editor/editor 2.8.25-beta.14 → 2.8.25-beta.16

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
@@ -4116,6 +4116,7 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4116
4116
  .comment-item-root .item-head-tools {
4117
4117
  display: flex;
4118
4118
  align-items: center;
4119
+ justify-content: center;
4119
4120
  visibility: hidden;
4120
4121
  }
4121
4122
  .comment-item-root .item-head-tools .editor-text-button {
@@ -4125,8 +4126,8 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4125
4126
  color: #0064ff;
4126
4127
  }
4127
4128
  .comment-item-root .item-head-tools .editor-text-button svg {
4128
- width: 20px;
4129
- height: 20px;
4129
+ width: 16px;
4130
+ height: 16px;
4130
4131
  }
4131
4132
  .comment-item-root .item-head-tools.active {
4132
4133
  visibility: visible;
@@ -70222,6 +70223,10 @@ ${codeText}
70222
70223
  });
70223
70224
  }
70224
70225
  }
70226
+ reloadList(data2) {
70227
+ super.reloadList(data2);
70228
+ this._items.forEach((item) => item.addListener("resize", this.handleItemResize));
70229
+ }
70225
70230
  }
70226
70231
  function addBlockComments(doc2, block, resultMap) {
70227
70232
  if (block.comments) {
@@ -70640,13 +70645,17 @@ ${codeText}
70640
70645
  this.noResolvedCommentTip = null;
70641
70646
  }
70642
70647
  show(groupId) {
70643
- var _a;
70648
+ var _a, _b;
70644
70649
  removeClass(this.root, "hidden");
70645
70650
  if (groupId) {
70651
+ if (this.listType !== "current") {
70652
+ const commandItem = (_a = this.switcherItem.children) == null ? void 0 : _a[0];
70653
+ this.handleSwitchType(this.switcherBar, commandItem);
70654
+ }
70646
70655
  const index2 = this.list.findItemIndex(groupId);
70647
70656
  this.list.setActiveItem(index2);
70648
70657
  }
70649
- (_a = this.commentOptions) == null ? void 0 : _a.controller.showCommentList();
70658
+ (_b = this.commentOptions) == null ? void 0 : _b.controller.showCommentList();
70650
70659
  }
70651
70660
  hide() {
70652
70661
  addClass(this.root, "hidden");
@@ -93820,7 +93829,7 @@ ${data2.plantumlText}
93820
93829
  }
93821
93830
  }
93822
93831
  });
93823
- editor.version = "2.8.25-beta.14";
93832
+ editor.version = "2.8.25-beta.16";
93824
93833
  return editor;
93825
93834
  }
93826
93835
  function isDoc(doc2) {
@@ -93933,7 +93942,7 @@ ${data2.plantumlText}
93933
93942
  }
93934
93943
  });
93935
93944
  OnesEditorToolbar.register(editor);
93936
- editor.version = "2.8.25-beta.14";
93945
+ editor.version = "2.8.25-beta.16";
93937
93946
  return editor;
93938
93947
  }
93939
93948
  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.25-beta.14",
3
+ "version": "2.8.25-beta.16",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {