@fileverse-dev/ddoc 3.2.0 → 3.2.1

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 +2 -0
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -40064,6 +40064,8 @@ const Nc = new Rt(
40064
40064
  },
40065
40065
  onSelectionUpdate() {
40066
40066
  var s;
40067
+ if (!this.editor.isEditable)
40068
+ return;
40067
40069
  const e = this.storage.activeCommentId, { $from: t } = this.editor.state.selection, n = t.marks(), r = this.editor.schema.marks.comment, o = n.find((a) => a.type === r), i = ((s = o == null ? void 0 : o.attrs.commentId) == null ? void 0 : s.trim()) || null;
40068
40070
  this.storage.activeCommentId = i, this.options.onCommentActivated(i || ""), !(!e && !i) && requestAnimationFrame(() => {
40069
40071
  var a, l;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.2.0",
5
+ "version": "3.2.1",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {