@fileverse-dev/ddoc 2.1.3-patch-14 → 2.1.3-patch-15

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.
Files changed (2) hide show
  1. package/dist/index.es.js +6 -6
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -146678,14 +146678,14 @@ const t_ = ({
146678
146678
  (l) => l.id === e
146679
146679
  ), o = {
146680
146680
  shouldShow: ({ editor: l }) => {
146681
- var d, h;
146682
- const c = (d = l.getAttributes("comment")) == null ? void 0 : d.resolved, u = l.view.hasFocus(), f = l.isActive("comment") && !c && u;
146683
- if (f) {
146684
- const p = (h = l.getAttributes("comment")) == null ? void 0 : h.commentId;
146685
- l.commands.setCommentActive(p);
146681
+ var f, d;
146682
+ const c = (f = l.getAttributes("comment")) == null ? void 0 : f.resolved, u = l.isActive("comment") && !c;
146683
+ if (u) {
146684
+ const h = (d = l.getAttributes("comment")) == null ? void 0 : d.commentId;
146685
+ l.commands.setCommentActive(h);
146686
146686
  } else
146687
146687
  l.commands.unsetCommentActive();
146688
- return f;
146688
+ return u;
146689
146689
  },
146690
146690
  onHide: ({ editor: l }) => {
146691
146691
  l.commands.unsetCommentActive();
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "2.1.3-patch-14",
5
+ "version": "2.1.3-patch-15",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {